Documentation

Mathlib.Tactic.GCongr

Setup for the gcongr tactic #

The core implementation of the gcongr ("generalized congruence") tactic is in the file Tactic.GCongr.Core.

theorem Mathlib.Tactic.GCongr.imp_mono {a b c d : Prop} (h₁ : ca) (h₂ : cbd) :
(ab)cd

A version of imp_imp_imp that has an extra hypothesis c in the b → d hypothesis.

theorem Mathlib.Tactic.GCongr.and_mono {a b c d : Prop} (h₁ : ac) (h₂ : abd) :
a bc d

A version of And.imp with an extra hypothesis a in the b → d hypothesis.

We also use assumption to discharge side goals. In a further downstream file, positivity will also be registered as a discharger. From that point, positivity will be tried before assumption is: that is perfectly fine.

We register gcongr with the hint tactic.