Glossary of Tactics and Lemmas¶
Here’s a summary of all the tactics and some of the lemmas we will introduce in this class, as well as some other common ones you may encounter.
Implications in Lean¶
|
If Mathematically, this saying “this is what we were required to prove”. If you can’t fully close a goal, but want to work somewhat from the end, you can use If you can fully close a goal, you can also type |
|
If the target of the current goal is a function Mathematically, this is saying that in order to define a function from If you want to use this repeatedly, you can type |
|
If You can also create subgoals with |
|
|
|
If the target of the current goal is Mathematically, this is equivalent to saying “because |
And / Or¶
|
If If If If |
|
If the target of the current goal is If the target of the current goal is If the target of the current goal is You can also accomplish this with |
|
If the target of the current goal is |
|
If the target of the current goal is |
|
For an example, say you have |
Negations and Proof by Contradiction¶
|
Not a tactic, but a lemma. If |
|
Changes the target of the current goal to The name derives from “ex falso, quodlibet” which translates to “from contradiction, anything”. You should use this tactic when there are contradictory hypotheses present. |
|
Not a tactic, but a lemma. If |
|
If This lets you use the law of the excluded middle, combining |
|
If the target of the current goal is Mathematically, this is proof by contradiction.
This is essentially a combination of |
|
For example, if the target of the current goal is You can also push negations across a hypothesis |
|
If the target of the current goal is If the target of the current goal is Mathematically, this is replacing the target by its contrapositive. |
Quantifiers¶
|
If |
|
If the target of the current goal is |
|
If See also |
|
If the target of the current goal is You can also use |
Proving “trivial” statements¶
|
|
|
If |
|
If |
|
|
|
|
Equality¶
|
If
If additionally,
Mathematically, this is saying because You can also use this to unfold definitions, for instance if |
Induction¶
|
If One has target The other has target |
|
|