You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Analysis/Appendix_A_1.lean
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,10 @@ An introduction to mathematical statements. Showcases some basic tactics and Le
8
8
-/
9
9
10
10
11
-
-- Example A.1.1. What the textbook calls "statements" are objects of type `Prop` in Lean. Also, in Lean we tend to assign "junk" values to expressions that might normally be considered undefined, so discussions regarding undefined terms in the textbook should be adjusted accordingly.
12
-
11
+
/- Example A.1.1. What the textbook calls "statements" are objects of type `Prop` in Lean. Also,
12
+
in Lean we tend to assign "junk" values to expressions that might normally be considered
13
+
undefined, so discussions regarding undefined terms in the textbook should be adjusted
14
+
accordingly. -/
13
15
#check2+2=4
14
16
#check2+2=5
15
17
@@ -186,7 +188,8 @@ example {X Y Z:Prop} (hXY: X ↔ Y) (hXZ: X ↔ Z) : [X,Y,Z].TFAE := by
186
188
tfae_have 1 ↔ 3 := by exact hXZ -- This line is optional
187
189
tfae_finish
188
190
189
-
/-- Note for the {name (full := List.TFAE.out)}`out` method that one indexes starting from 0, in contrast to the {tactic}`tfae_have` tactic. -/
191
+
/-- Note for the {name (full := List.TFAE.out)}`out` method that one indexes starting from 0, in
192
+
contrast to the {tactic}`tfae_have` tactic. -/
190
193
example {X Y Z:Prop} (h: [X,Y,Z].TFAE) : X ↔ Y := by
191
194
exact h.out 01
192
195
@@ -198,7 +201,8 @@ example {X Y:Prop} : ¬ (X ↔ Y) ↔ sorry := by sorry
-- the first line of this construction should be either `apply isTrue` or `apply isFalse`, depending on whether you believe the given statement to be true or false.
204
+
--the first line of this construction should be either `apply isTrue` or `apply isFalse`,
205
+
--depending on whether you believe the given statement to be true or false.
0 commit comments