Equations
- One or more equations did not get rendered due to their size.
Instances For
@[irreducible]
Equations
- sl.initsSL = if h : sl.isEmpty = true then Chapter3.SymList.snocSL sl Chapter3.SymList.nil else have this := ⋯; Chapter3.SymList.snocSL sl sl.initSL.initsSL
Instances For
Equations
Instances For
Equations
- Chapter3.measure ts = List.foldr (fun (t : Chapter3.Tree a) (acc : Nat) => Chapter3.measure.size t + acc) 0 ts
Instances For
Equations
- Chapter3.measure.size (Chapter3.Tree.leaf n) = 1
- Chapter3.measure.size (Chapter3.Tree.node n t1 t2) = 1 + Chapter3.measure.size t1 + Chapter3.measure.size t2
Instances For
@[irreducible]
Equations
- Chapter3.fromTs [] = []
- Chapter3.fromTs (Chapter3.Tree.leaf x_1 :: ts) = x_1 :: Chapter3.fromTs ts
- Chapter3.fromTs (Chapter3.Tree.node n t1 t2 :: ts) = Chapter3.fromTs (t1 :: t2 :: ts)
Instances For
Instances For
Equations
- Chapter3.updateT 0 x✝ (Chapter3.Tree.leaf n) = Chapter3.Tree.leaf x✝
- Chapter3.updateT x✝¹ x✝ (Chapter3.Tree.leaf y) = Chapter3.Tree.leaf y
- Chapter3.updateT x✝¹ x✝ (Chapter3.Tree.node n t1 t2) = if x✝¹ < n / 2 then Chapter3.Tree.node n (Chapter3.updateT x✝¹ x✝ t1) t2 else Chapter3.Tree.node n t1 (Chapter3.updateT (x✝¹ - n / 2) x✝ t2)
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Chapter3.updateRA x✝¹ x✝ [] = []
- Chapter3.updateRA x✝¹ x✝ (Chapter3.Digit.zero :: xs) = Chapter3.Digit.zero :: Chapter3.updateRA x✝¹ x✝ xs
Instances For
Equations
- Chapter3.updatesRA x✝¹ x✝ = List.foldl (flip (Function.uncurry Chapter3.updateRA)) x✝¹ x✝
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
- Chapter3.fa₀ n = (Chapter1.scanl (fun (x1 x2 : Nat) => x1 * x2) 1 (List.range' 1 n)).toArray
Instances For
Equations
- Chapter3.accum x✝¹ x✝ [] = x✝
- Chapter3.accum x✝¹ x✝ (p :: ps) = if h : p.fst < x✝.size then let i := ⟨p.fst, h⟩; Chapter3.accum x✝¹ (x✝.set (↑i) (x✝¹ x✝[i] p.snd) h) ps else Chapter3.accum x✝¹ x✝ ps
Instances For
def
Chapter3.accumArray₁
{a : Type u_1}
{v : Type u_2}
(f : a → v → a)
(e : a)
(n : Nat)
(is : List (Nat × v))
:
Array a
Equations
- Chapter3.accumArray₁ f e n is = Chapter3.accum f (Array.replicate n e) is