Compare commits

...

1 Commits

Author SHA1 Message Date
Kim Morrison
3e42bac6f0 chore: add simp lemma Int.cast x = x 2025-04-10 11:21:55 +10:00

View File

@@ -420,6 +420,8 @@ instance : IntCast Int where intCast n := n
protected def Int.cast {R : Type u} [IntCast R] : Int R :=
IntCast.intCast
@[simp] theorem Int.cast_eq (x : Int) : Int.cast x = x := rfl
-- see the notes about coercions into arbitrary types in the module doc-string
instance [IntCast R] : CoeTail Int R where coe := Int.cast