Commit 2026-12-01 10:07 b5247b08

View on Github →

refactor(Tactic/Positivity): add a cache (#45072) This PR adds caching to positivity, following the implementation in FunProp. It is the first step towards #45305 . This does not speed up mathlib but is crucial for the positivity_lemma attribute. PositivityM is now StateRefT State MetaM, so the positivity extensions don't need to change. The cache distinguishes results with and without PartialOrder. Qq's assertInstancesCommute only works in MetaM, so we lift it in Core.lean until leanprover-community/quote4#181 is in Mathlib. The positivity tests are moved into MathlibTest/Tactic/Positivity/.

Estimated changes