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`.
5 lines
137 B
Text
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]
|