Equations
- Chapter1.map₁ f [] = []
- Chapter1.map₁ f (x :: xs_2) = f x :: Chapter1.map₁ f xs_2
Instances For
Equations
- Chapter1.map₂ x✝ [] = []
- Chapter1.map₂ x✝ (x_2 :: xs) = x✝ x_2 :: Chapter1.map₂ x✝ xs
Instances For
Equations
- Chapter1.map f [] = []
- Chapter1.map f (x :: xs_1) = f x :: Chapter1.map f xs_1
Instances For
Equations
- Chapter1.filter p [] = []
- Chapter1.filter p (x_1 :: xs) = if p x_1 = true then x_1 :: Chapter1.filter p xs else Chapter1.filter p xs
Instances For
Equations
- Chapter1.foldr f e [] = e
- Chapter1.foldr f e (x_1 :: xs) = f x_1 (Chapter1.foldr f e xs)
Instances For
Equations
- Chapter1.label xs = (List.range xs.length).zip xs
Instances For
Equations
- Chapter1.length₁ xs = Chapter1.foldr (fun (x : a) (y : Nat) => y + 1) 0 xs
Instances For
Equations
Instances For
Equations
- Chapter1.length₂.succ x✝ n = n + 1
Instances For
Equations
- Chapter1.length₃ = Chapter1.foldr (fun (x : α) (n : Nat) => n + 1) 0
Instances For
Equations
- Chapter1.foldl f e [] = e
- Chapter1.foldl f e (x_1 :: xs) = Chapter1.foldl f (f e x_1) xs
Instances For
Equations
- Chapter1.foldl₀ f e = Chapter1.foldr (flip f) e ∘ List.reverse
Instances For
Equations
- Chapter1.foldl₁ f e xs = Chapter1.foldr (flip f) e xs.reverse
Instances For
Equations
- Chapter1.instReprPoint = { reprPrec := Chapter1.instReprPoint.repr }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Chapter1.head = List.foldr (fun (x x_1 : α) => x) default
Instances For
Equations
Instances For
Equations
Instances For
Equations
- Chapter1.scanl x✝¹ x✝ [] = [x✝]
- Chapter1.scanl x✝¹ x✝ (x_3 :: xs) = x✝ :: Chapter1.scanl x✝¹ (x✝¹ x✝ x_3) xs
Instances For
Equations
- Chapter1.scanr₀ f q₀ as = (Chapter1.scanr₀.aux f q₀ as).val
Instances For
Equations
- Chapter1.inserts x [] = [[x]]
- Chapter1.inserts x (x_2 :: xs) = (x :: x_2 :: xs) :: Chapter1.map (fun (x : List a) => x_2 :: x) (Chapter1.inserts x xs)
Instances For
Equations
Instances For
Equations
- Chapter1.perm₁ [] = [[]]
- Chapter1.perm₁ (x_1 :: xs) = Chapter1.concatMap (fun (x : List a) => Chapter1.inserts x_1 x) (Chapter1.perm₁ xs)
Instances For
Instances For
Equations
- Chapter1.perm₁'.step x xss = Chapter1.concatMap (Chapter1.inserts x) xss
Instances For
Instances For
Equations
Instances For
Equations
Instances For
Equations
- Chapter1.while' p = Chapter1.until' (not ∘ p)
Instances For
theorem
Chapter1.foldr_fusion
{a b c : Type}
(f : a → c → c)
(e : c)
(xs : List a)
(g : a → b → b)
(h : c → b)
(h₁ : ∀ (x : a) (y : c), h (f x y) = g x (h y))
:
Equations
- Chapter1.tails [] = [[]]
- Chapter1.tails (x_1 :: xs) = (x_1 :: xs) :: Chapter1.tails xs
Instances For
Equations
- Chapter1.collapse₀ xss = Chapter1.collapse₀.help [] xss
Instances For
Equations
- Chapter1.collapse₁ xss = Chapter1.collapse₁.help [] xss
Instances For
Equations
Instances For
Equations
- Chapter1.collapse₂.labelsum xss = (Chapter1.map List.sum xss).zip xss