You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/server/nng/NNG/Levels/AdvAddition/Level_1.lean

31 lines
485 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import NNG.Metadata
import NNG.MyNat.Addition
Game "NNG"
World "AdvAddition"
Level 1
Title ""
open MyNat
Introduction
"
"
theorem MyNat.succ_inj {a b : } : succ a = succ b → a = b := by simp only [succ.injEq, imp_self]
theorem MyNat.zero_ne_succ (a : ) : zero ≠ succ a := by simp only [ne_eq, not_false_iff]
Statement succ_inj'
""
{a b : } (hs : succ a = succ b) : a = b := by
exact succ_inj hs
NewLemma MyNat.succ_inj MyNat.zero_ne_succ
Conclusion
"
"