Skip to content

Commit

Permalink
chore: Deprecated aliases for Rat.cast_natCast, Rat.cast_intCast (#…
Browse files Browse the repository at this point in the history
…11636)

These were moved in #11552.
  • Loading branch information
YaelDillies committed Mar 24, 2024
1 parent 1f8fea7 commit 0e6c4e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mathlib/Data/Rat/Cast/Defs.lean
Expand Up @@ -48,6 +48,10 @@ theorem cast_natCast (n : ℕ) : ((n : ℚ) : α) = n := by
rw [← Int.cast_ofNat, cast_intCast, Int.cast_ofNat]
#align rat.cast_coe_nat Rat.cast_natCast

-- 2024-03-21
@[deprecated] alias cast_coe_int := cast_intCast
@[deprecated] alias cast_coe_nat := cast_natCast

-- See note [no_index around OfNat.ofNat]
@[simp, norm_cast] lemma cast_ofNat (n : ℕ) [n.AtLeastTwo] :
((no_index (OfNat.ofNat n : ℚ)) : α) = (OfNat.ofNat n : α) := by
Expand Down

0 comments on commit 0e6c4e2

Please sign in to comment.