Zulip Chat Archive

Stream: mathlib4

Topic: tactic request: `Nat.cast` to `ofNat`


Yury G. Kudryashov (Nov 02 2023 at 23:46):

It would be nice to have a tactic that generates a lemma about OfNat.ofNat from a lemma about Nat.cast. Here is a draft specification: #8135. Suggestions are welcome; implementations are more than welcome.
Optional idea: have a hierarchy of casts and autogenerate lemmas about, e.g., Int.cast from Rat.cast etc.


Last updated: Dec 20 2023 at 11:08 UTC