Contrapose #
The contrapose tactic transforms the goal into its contrapositive when that goal is an
implication or an iff. It also avoids creating a double negation if there already is a negation.
contraposeturns a goalP → Qinto¬ Q → ¬ Pand a goalP ↔ Qinto¬ P ↔ ¬ Qcontrapose!runscontraposeand then pushes negations insidePandQusingpush_negcontrapose hfirst reverts the local assumptionh, and then usescontraposeandintro hcontrapose! hfirst reverts the local assumptionh, and then usescontrapose!andintro hcontrapose h with new_huses the namenew_hfor the introduced hypothesis
An option to turn off the feature that contrapose negates both sides of ↔ goals.
This may be useful for teaching.
Transforms the goal into its contrapositive.
contraposeturns a goalP → Qinto¬ Q → ¬ Pand it turns a goalP ↔ Qinto¬ P ↔ ¬ Qcontrapose hfirst reverts the local assumptionh, and then usescontraposeandintro hcontrapose h with new_huses the namenew_hfor the introduced hypothesis
Equations
- One or more equations did not get rendered due to their size.
Instances For
Transforms the goal into its contrapositive and pushes negations in the result.
Usage matches contrapose
Equations
- One or more equations did not get rendered due to their size.