Definition
Tactic ( Lean)
A tactic is a command that constructs a proof by working on the current goals and their local context. In a
byblock, tactics may close a goal, transform it or reduce it to new goals; a completed proof leaves no goals unresolved.
Tactics
exact
Definition
Link to originalexact ( Lean)
apply
Definition
Link to originalapply ( Lean)
The tactic
apply tworks backwards from the conclusion of a proof or theoremt. If its conclusion matches the current goal, Lean infers the required arguments where possible and creates goals for the remaining ones. For, applying tto a goalleaves the goal .
funext
Definition
Link to originalfunext ( Lean)
The tactic
funext xapplies function extensionality: to prove two functionsequal, it suffices to prove for every . It introduces an arbitrary input xand replaces the function-equality goal with equality of the outputs atx.
unfold
Definition
Link to originalunfold ( Lean)
simp
Definition
Link to originalsimp ( Lean)
The tactic
simpsimplifies a goal using registered simplification lemmas and built-in reductions. It closes the goal when the simplified proposition is immediately provable; otherwise, it leaves a simpler goal.
simp [d]additionally unfolds the definitiondor uses the lemmad.simp at hsimplifies the assumptionhinstead of the goal.