Commit 2026-02-06 13:36 c01b1d7d
View on Github →feat(gcongr): beef up @[gcongr] tag to accept ↔ & any argument order (#33025)
This PR modifies the @[gcongr] tag to accept lemmas in more forms.
- Iff-lemmas are now accepted, and are turned into an auxiliary lemma that is simply one of the two implications.
- Implicational gcongr lemmas now don't need to have their arguments given in the "correct" order. An auxiliary lemma is generated if necessary.
The auxiliary lemma generation is done analogously to
simpwhich creates little lemmasFoo._simp_1., I also went throught all lemmas that haveGCongr.in the name, and removed all but one of them (the remaining one isGCongr.mem_of_le_of_mem) A future PR may introduce thegcongr attactic, which doesgcongrbut at hypotheses. This would be using the reverse direction of the iff lemmas tagged withgcongr. For this reason it is preferred to tag the iff lemma if possible.