Compare commits

...

1 Commits

Author SHA1 Message Date
Kim Morrison
64e7ffa0a4 chore: add Rat.max_def lemma 2025-10-22 11:30:56 +11:00
2 changed files with 14 additions and 0 deletions

View File

@@ -1023,6 +1023,19 @@ theorem ofScientific_def' :
· push_cast
rfl
/-!
# min and max
-/
@[grind =] protected theorem max_def {n m : Rat} : max n m = if n m then m else n := rfl
@[grind =] protected theorem min_def {n m : Rat} : min n m = if n m then n else m := rfl
/-!
# floor
-/
theorem floor_def (a : Rat) : a.floor = a.num / a.den := by
rw [Rat.floor]
split <;> simp_all

View File

@@ -0,0 +1 @@
example : (1 : Rat) + max 2 3 = 4 := by grind