Skip to content

Commit

Permalink
Fix sorry in NNRat.cast_divNat (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Command-Master authored May 2, 2024
1 parent 3ec222d commit ff5ae59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LeanAPAP/Mathlib/Data/Rat/Cast/CharZero.lean
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ lemma cast_zpow (q : ℚ≥0) (n : ℤ) : ↑(q ^ n) = ((q : α) ^ n : α) := ma
@[simp, norm_cast] lemma cast_div (p q) : (p / q : ℚ≥0) = (p / q : α) := map_div₀ (castHom α) _ _

@[simp, norm_cast]
lemma cast_divNat (a b : ℕ) : (divNat a b : α) = a / b := sorry
lemma cast_divNat (a b : ℕ) : (divNat a b : α) = a / b := by
rw [← cast_natCast, ← cast_natCast b, ← cast_div]
congr
ext
apply Rat.mkRat_eq_div

end DivisionSemiring
end NNRat

0 comments on commit ff5ae59

Please sign in to comment.