Skip to content

Commit 89f87a6

Browse files
authored
Merge pull request #429 from brandondong/rat_sub
Add missing 4.2 definition
2 parents 5a0a1df + 45078bd commit 89f87a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

analysis/Analysis/Section_4_2.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ instance Rat.instField : Field Rat where
237237

238238
example : (3//4) / (5//6) = 9 // 10 := by sorry
239239

240+
/-- Definition of subtraction -/
241+
theorem Rat.sub_eq (a b:Rat) : a - b = a + (-b) := by rfl
242+
240243
def Rat.coe_int_hom : ℤ →+* Rat where
241244
toFun n := (n:Rat)
242245
map_zero' := rfl

0 commit comments

Comments
 (0)