Skip to content

Commit

Permalink
chore: remove upstreamed Coe* Nat instances
Browse files Browse the repository at this point in the history
* see: mathlib4#2878, std4#107
  • Loading branch information
thorimur committed Mar 17, 2023
1 parent b70bb6e commit 37fc027
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Mathlib/Data/Nat/Cast/Defs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ protected def Nat.unaryCast {R : Type u} [One R] [Zero R] [Add R] : ℕ → R

#align nat.cast Nat.cast

-- see note [coercion into rings]
instance [NatCast R] : CoeTail ℕ R where coe := Nat.cast

-- see note [coercion into rings]
instance [NatCast R] : CoeHTCT ℕ R where coe := Nat.cast

/-- This instance is needed to ensure that `instCoeNatInt` is not used. -/
instance : Coe ℕ ℤ where coe := Nat.cast

-- the following four declarations are not in mathlib3 and are relevant to the way numeric
-- literals are handled in Lean 4.

Expand Down

0 comments on commit 37fc027

Please sign in to comment.