We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec04327 commit e1835ceCopy full SHA for e1835ce
Mathlib/Data/Rat/Floor.lean
@@ -405,7 +405,7 @@ theorem fract_inv_num_lt_num_of_pos {q : ℚ} (q_pos : 0 < q) : (fract q⁻¹).n
405
suffices ((q.den : ℤ) - q.num * ⌊q_inv⌋).natAbs.Coprime q.num.natAbs from
406
mod_cast Rat.num_div_eq_of_coprime q_num_pos this
407
have tmp := Nat.coprime_sub_mul_floor_rat_div_of_coprime q.reduced.symm
408
- simpa only [Nat.cast_natAbs, abs_of_nonneg q_num_pos.le] using tmp
+ simpa only [Nat.cast_natAbs, _root_.abs_of_nonneg q_num_pos.le] using tmp
409
rwa [this]
410
-- to show the claim, start with the following inequality
411
have q_inv_num_denom_ineq : q⁻¹.num - ⌊q⁻¹⌋ * q⁻¹.den < q⁻¹.den := by
0 commit comments