Commit 2026-11-19 13:48 9a4f1646

View on Github →

chore: fix more congruence lemmas (#44093) A congr should vary all its explicit arguments, not just some of them. This issue is documented on the docstring of the @[congr] attribute, but there is no warning when you write a bad @[congr] lemma. Whenever a lemma seemed used sufficiently often, we fixed the congruence lemma by adding a new variant, with a primed name and the additional arguments varied also. Found by the linter in #43692; these should be all remaining bad lemmas in mathlib.

Estimated changes