lean2/tests/lean/induction1.lean.expected.out
Leonardo de Moura 57c0006916 chore(*): cleanup lean builtin symbols, replace :: with _
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-09 08:33:52 -08:00

14 lines
440 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Set: pp::colors
Set: pp::unicode
Imported 'macros'
Using: Nat
Assumed: Induction
Proved: Comm1
Proved: Comm2
theorem Comm2 : ∀ n m : , n + m = m + n :=
λ n : ,
Induction
(λ x : , n + x == x + n)
(Nat::add_zeror n ⋈ symm (Nat::add_zerol n))
(λ (m : ) (iH : n + m = m + n),
Nat::add_succr n m ⋈ subst (refl (n + m + 1)) iH ⋈ symm (Nat::add_succl m n))