We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f15985d commit b8a2f92Copy full SHA for b8a2f92
1 file changed
analysis/Analysis/solutions/Section_2_1.lean
@@ -46,6 +46,8 @@ instance Nat.instZero : Zero Nat := ⟨ zero ⟩
46
#check (0:Nat)
47
48
/-- Axiom 2.2 (Successor of a natural number is a natural number) -/
49
+-- The `100` in `postfix:100` indicates a high precedence, so that `++` binds
50
+-- strongly to any variables to which it is applied. –MDH
51
postfix:100 "++" => Nat.succ
52
#check (fun n ↦ n++)
53
@@ -81,7 +83,7 @@ theorem Nat.succ_ne (n:Nat) : n++ ≠ 0 := by
81
83
theorem Nat.four_ne : (4:Nat) ≠ 0 := by
82
84
-- By definition, 4 = 3++.
85
change 3++ ≠ 0
- -- By axiom 2.3, 3++ is not zero.
86
+ -- By Axiom 2.3, 3++ is not zero.
87
exact succ_ne _
88
89
/--
0 commit comments