Commit 2025-11-27 08:19 4c04a1de

View on Github →

feat(Data/Finsupp/Basic): Finsupp.optionElim (#25920) Similar to how Finsupp.cons constructs a map Fin (n + 1) →₀ M from a map Fin n →₀ M, we define Finsupp.optionElim' to construct a map Option α →₀ M from a map α →₀ M, given an additional value for none. We base this on the new optionEquiv definition. As a function, it behaves as Option.elim', hence the name. We prove a variety of API lemmas, based on those for Finsupp.cons, to bring the definitions more in line with the contents of Data/Finsupp/Fin. Original PR: https://github.com/leanprover-community/mathlib4/pull/13861

Estimated changes