Skip to content

Commit 570ff68

Browse files
DavidLedvinkaDavid Ledvinka
andcommitted
chore: deprecate unused norm_cast lemma (leanprover-community#35604)
This lemma does not appear to fire as a norm_cast lemma and outside of norm_cast, Nat.cast_sub should be used instead. Co-authored-by: David Ledvinka <dledvinka.ledvinka@mail.utoronto.ca>
1 parent 601ec6b commit 570ff68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Mathlib/Tactic/Zify.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def zifyProof (simpArgs : Option (Syntax.TSepArray `Lean.Parser.Tactic.simpStar
116116

117117
variable {R : Type*} [AddGroupWithOne R]
118118

119-
@[norm_cast] theorem Nat.cast_sub_of_add_le {m n k} (h : m + k ≤ n) :
119+
@[deprecated "use Nat.cast_sub" (since := "2026-02-21"), norm_cast]
120+
theorem Nat.cast_sub_of_add_le {m n k} (h : m + k ≤ n) :
120121
((n - m : ℕ) : R) = n - m := Nat.cast_sub (m.le_add_right k |>.trans h)
121122

122123
@[norm_cast] theorem Nat.cast_sub_of_lt {m n} (h : m < n) :

0 commit comments

Comments
 (0)