Commit 2026-07-27 16:25 1faf046e
View on Github →chore(Data/FunLike): tag IsApply lemmas as simp (#42027)
The new IsApply typeclasses allow many existing special-case coe_xxx lemmas to be unified; but the general lemmas currently do not have the simp tag. This tags them as simp.
Other minor changes:
- There were two lemmas with statements identical up to argument order:
FunLike.coe_smul(directly written) andFunLike.coe_smul'(auto-generated byto_additive). I unified these usingto_additive existing, with a deprecation alias forFunLike.coe_smul'. - Downstream code that uses
FunLike.coe_smul'is adjusted appropriately (un-squeezing a couple of lengthy terminalsimp only's in the process). - One more specific simp lemma downstream (
ContinuousLinearMap.coe_pow') is removed, becausesimpcan now prove it using theFunLikesimp lemmas. A misnamed lemma in this file,ContinuousLinearMap.coe_pow, was re-named toContinuousLinearMap.toLinearMap_pow. - There were just two simps (both in
Mathlib/Probability/Distributions/Gaussian/Basic.lean) which broke, because they used an un-squeezedsimpalong with an additional explicitly provided lemma (not part of the default simp set) that conflicted withFunLike.coe_zero. These I fixed by explicitly removingFunLike.coe_zerofrom the simp set where necessary.