Skip to content

Commit b8a2f92

Browse files
committed
Add comments
1 parent f15985d commit b8a2f92

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

analysis/Analysis/solutions/Section_2_1.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ instance Nat.instZero : Zero Nat := ⟨ zero ⟩
4646
#check (0:Nat)
4747

4848
/-- 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
4951
postfix:100 "++" => Nat.succ
5052
#check (fun n ↦ n++)
5153

@@ -81,7 +83,7 @@ theorem Nat.succ_ne (n:Nat) : n++ ≠ 0 := by
8183
theorem Nat.four_ne : (4:Nat) ≠ 0 := by
8284
-- By definition, 4 = 3++.
8385
change 3++ ≠ 0
84-
-- By axiom 2.3, 3++ is not zero.
86+
-- By Axiom 2.3, 3++ is not zero.
8587
exact succ_ne _
8688

8789
/--

0 commit comments

Comments
 (0)