@[irreducible]
Equations
- Chapter0.factorial₀ n = if n = 0 then 1 else n * Chapter0.factorial₀ (n - 1)
Instances For
@[irreducible]
Equations
- Chapter0.factorial₁ n = if n ≤ 0 then 1 else n * Chapter0.factorial₁ (n - 1)
Instances For
@[irreducible]
Equations
- Chapter0.factorial₂ n = if h : (n == 0) = true then 1 else have this := ⋯; n * Chapter0.factorial₂ (n - 1)
Instances For
Equations
- Chapter0.factorial₃ 0 = 1
- Chapter0.factorial₃ n.succ = Chapter0.factorial₃ n * (n + 1)