Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(data/fin): add some lemmas about coercions and of_nat (#2522)
Two of these lemmas allow norm_cast to work with inequalities involving fin values converted to ℕ. The rest are for simplifying expressions where of_nat is used to convert from ℕ to fin, in cases where an inequality means of_nat does not in fact change the value. There are very few lemmas relating to of_nat in mathlib at present. These lemmas were found useful in formalising solutions to an olympiad problem, see <https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/Some.20olympiad.20formalisations>, and seem more generally relevant than to just that particular problem.
- Loading branch information