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.RAList.measure ts = List.foldr (fun (t : Chapter3.RAList.Tree a) (acc : ℕ) => Chapter3.RAList.measure.size t + acc) 0 ts
Instances For
Equations
Instances For
@[irreducible]
Equations
- Chapter3.RAList.fromTs [] = []
- Chapter3.RAList.fromTs (Chapter3.RAList.Tree.leaf x_1 :: ts) = x_1 :: Chapter3.RAList.fromTs ts
- Chapter3.RAList.fromTs (Chapter3.RAList.Tree.node n t1 t2 :: ts) = Chapter3.RAList.fromTs (t1 :: t2 :: ts)
Instances For
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Chapter3.RAList.updateT 0 x✝ (Chapter3.RAList.Tree.leaf n) = Chapter3.RAList.Tree.leaf x✝
- Chapter3.RAList.updateT x✝¹ x✝ (Chapter3.RAList.Tree.leaf y) = Chapter3.RAList.Tree.leaf y
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Chapter3.RAList.updateRA x✝¹ x✝ [] = []
- Chapter3.RAList.updateRA x✝¹ x✝ (Chapter3.RAList.Digit.zero :: xs) = Chapter3.RAList.Digit.zero :: Chapter3.RAList.updateRA x✝¹ x✝ xs
Instances For
Equations
- x✝¹.updatesRA x✝ = List.foldl (flip (Function.uncurry Chapter3.RAList.updateRA)) x✝¹ x✝
Instances For
Equations
Instances For
Equations
- Chapter3.fa₀ n = (Chapter1.scanl (fun (x1 x2 : ℕ) => 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.1 < x✝.size then let i := ⟨p.1, h⟩; Chapter3.accum x✝¹ (x✝.set (↑i) (x✝¹ x✝[i] p.2) 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 : ℕ)
(is : List (ℕ × v))
:
Array a
Equations
- Chapter3.accumArray₁ f e n is = Chapter3.accum f (Array.replicate n e) is