lean4-htt/tests/lean/run/788.lean
Kim Morrison 6d495586a1
chore: deprecate Fin.ofNat (replaced by Fin.ofNat', subsequently to be renamed) (#6242)
This PR deprecates `Fin.ofNat` in favour of `Fin.ofNat'` (which takes an
`[NeZero]` instance, rather than returning an element of `Fin (n+1)`).

After leaving the deprecation warning in place for some time, we will
then rename `ofNat'` back to `ofNat`.
2024-11-28 05:23:23 +00:00

5 lines
137 B
Text

example : (0 : Nat) = Nat.zero := by
simp only [OfNat.ofNat]
example : (0 : Fin 9) = (Fin.ofNat' _ 0) := by
simp only [OfNat.ofNat]