This document lists tactics available in Lean as of March 24, 2025, based on the provided documentation. Each tactic includes its name, syntax reference, and a brief description of its functionality.
- Syntax Reference:
[«tactic#adaptation_note_»] - Description: Adaptation notes are comments indicating that a piece of code has been modified to accommodate changes in Lean core. They typically require future action or maintenance.
- Syntax Reference:
[Mathlib.Tactic.«tactic#check__»] - Description: The
#check ttactic elaborates the termtand pretty prints it with its type ase : ty. Iftis an identifier, it prints a type declaration for the global constantt. Use#check (t)to print it as an elaborated expression. Allows stuck typeclass instance problems, which become metavariables in the output.
- Syntax Reference:
[Mathlib.CountHeartbeats.«tactic#count_heartbeats_»] - Description: Counts the heartbeats used by a tactic, e.g.,
#count_heartbeats simp.
- Syntax Reference:
[Mathlib.CountHeartbeats.«tactic#count_heartbeats!_In__»] - Description: Runs a tactic 10 times (or
ntimes with#count_heartbeats! n in tac), counting heartbeats and logging the range and standard deviation.
- Syntax Reference:
[Mathlib.Tactic.Find.«tactic#find_»] - Description: (No detailed description provided in the document.)
- Syntax Reference:
[LeanSearchClient.leansearch_search_tactic] - Description: Searches LeanSearch from within Lean. Queries must end with
.or?. Works as a command, term, or tactic, displaying only valid tactics in tactic mode. Example:#leansearch "If a natural number n is less than m, then the successor of n is less than the successor of m.".
- Syntax Reference:
[LeanSearchClient.loogle_tactic] - Description: Searches Loogle from within Lean. Can be used as a command, term, or tactic, displaying only valid tactics in tactic mode. Supports searching by constant, lemma name substring, subexpression, or main conclusion. Example:
#loogle List ?a → ?a.
- Syntax Reference:
[LeanSearchClient.moogle_search_tactic] - Description: Searches Moogle from within Lean. Queries must end with
.or?. Works as a command, term, or tactic, displaying only valid tactics in tactic mode. Example:#moogle "If a natural number n is less than m, then the successor of n is less than the successor of m.".
- Syntax Reference:
[LeanSearchClient.search_tactic] - Description: Searches either Moogle or LeanSearch based on the
leansearchclient.backendoption. Queries must end with.or?. In tactic mode without a query string, queries LeanStateSearch based on the goal state.
- Syntax Reference:
[LeanSearchClient.statesearch_search_tactic] - Description: Searches LeanStateSearch using the current main goal as the query. Options
statesearch.revisionandstatesearch.queriescan set the revision and number of results, respectively.
- Syntax Reference:
[Lean.Parser.Tactic.paren] - Description:
(tacs)executes a list of tactics in sequence without requiring the goal to be closed at the end, unlike· tacs. Tactics can be separated by newlines or;.
- Syntax Reference:
[Batteries.Tactic.seq_focus] - Description:
t <;> [t1; t2; ...; tn]focuses on the first goal, appliestto producensubgoals, then applies eachtito the corresponding subgoal, collecting the resulting subgoals.
- Syntax Reference:
[Lean.Parser.Tactic.«tactic_<;>_»] - Description:
tac <;> tac'runstacon the main goal andtac'on each produced goal, concatenating all goals produced bytac'.
- Syntax Reference:
[Batteries.Tactic.tactic_] - Description:
_in tactic position acts likedone, failing and listing goals if any remain. Useful as a placeholder after starting a tactic block likeby _.
- Syntax Reference:
[Mathlib.Tactic.Abel.abel] - Description: Evaluates equations in additive, commutative monoids and groups. Works as both a tactic and conv tactic. Variants include
abel1,abel_nf, and aggressive versions with!.
- Syntax Reference:
[Mathlib.Tactic.Abel.tacticAbel!] - Description: A more aggressive version of
abelusing a higher reducibility setting to identify atoms.
- Syntax Reference:
[Mathlib.Tactic.Abel.abel1] - Description: Fails if the target is not an equality provable by commutative monoid/group axioms.
- Syntax Reference:
[Mathlib.Tactic.Abel.abel1!] - Description: Aggressive version of
abel1with a higher reducibility setting.
- Syntax Reference:
[Mathlib.Tactic.Abel.abelNF] - Description: Rewrites group expressions into a normal form. Can be used at hypotheses with
abel_nf at hand configured with options likered,zetaDelta, andrecursive.
- Syntax Reference:
[Mathlib.Tactic.Abel.tacticAbel_nf!__] - Description: Aggressive version of
abel_nfwith a higher reducibility setting.
- Syntax Reference:
[Batteries.Tactic.tacticAbsurd_] - Description: Given a proof
hofp,absurd hchanges the goal to⊢ ¬ p. Ifpis¬q, the goal becomes⊢ q.
- Syntax Reference:
[Mathlib.Tactic.acChange] - Description:
ac_change g using nconverts togusingnsteps, followed byac_rfl. Useful for rearranging sums, e.g.,ac_change a + d + e + f + c + g + b ≤ _.
- Syntax Reference:
[Lean.Parser.Tactic.tacticAc_nf_] - Description: Normalizes equalities up to associative and commutative operators. Can normalize hypotheses and the goal target with
ac_nf at l.
- Syntax Reference:
[Lean.Parser.Tactic.acNf0] - Description: Implementation of
ac_nfwithout callingtrivialafterward.
- Syntax Reference:
[Lean.Parser.Tactic.acRfl] - Description: Proves equalities up to associative and commutative operators, e.g.,
a + b + c + d = d + (b + c) + awith appropriate instances.
- Syntax Reference:
[Lean.Parser.Tactic.tacticAdmit] - Description: Synonym for
sorry, closing the main goal with a placeholder.
- Syntax Reference:
[Aesop.Frontend.Parser.aesopTactic] - Description: Tries to solve the goal using rules registered with
@[aesop]. Supports clauses for customization, e.g.,(add unsafe 50% apply Or.inl).aesop?prints the proof as a suggestion.
- Syntax Reference:
[Aesop.Frontend.Parser.aesopTactic?] - Description: Variant of
aesopthat prints the found proof as aTry thissuggestion.
- Syntax Reference:
[CategoryTheory.aesop_cat] - Description: A wrapper for
aesopadding theCategoryTheoryrule set and allowing semireducible definition lookup duringintros. Fails if unable to solve, suitable for auto-params.
- Syntax Reference:
[CategoryTheory.aesop_cat?] - Description: Passes a
Try thissuggestion when usingaesop_cat.
- Syntax Reference:
[CategoryTheory.aesop_cat_nonterminal] - Description: Variant of
aesop_catthat does not fail if unable to solve, intended for exploration only.
- Syntax Reference:
[Aesop.tacticAesop_unfold_],[Aesop.tacticAesop_unfold_At_] - Description: (No detailed description provided in the document.)
- Syntax Reference:
[Mathlib.Tactic.tacticAlgebraize__] - Description: Adds
AlgebraandIsScalarTowerinstances fromRingHoms and convertsRingHomproperties toAlgebraproperties ifproperties := true.
- Syntax Reference:
[Mathlib.Tactic.tacticAlgebraize_only__] - Description: Adds only
AlgebraandIsScalarTowerinstances without converting properties tagged with@[algebraize].
- Syntax Reference:
[Lean.Parser.Tactic.allGoals] - Description: Runs a tactic on each goal, concatenating resulting goals. Fails if the tactic fails on any goal.
- Syntax Reference:
[Lean.Parser.Tactic.tacticAnd_intros] - Description: Applies
And.intrountil no further progress is made.
- Syntax Reference:
[Lean.Parser.Tactic.anyGoals] - Description: Applies a tactic to every goal, concatenating successful applications. Fails if the tactic fails on all goals.
- Syntax Reference:
[Mathlib.Tactic.tacticApply_At_],[Lean.Parser.Tactic.apply],[Mathlib.Tactic.applyWith] - Description: Matches the goal against the conclusion of an expression’s type, generating subgoals for unresolved premises. Supports forward reasoning at hypotheses and configuration options.
- Syntax Reference:
[Lean.Parser.Tactic.apply?] - Description: Searches the environment for applicable theorems, refining the goal with
applyand resolving conditions withsolve_by_elim. Optionalusingclause specifies required identifiers.
- Syntax Reference:
[Lean.Parser.Tactic.applyAssumption] - Description: Applies an assumption matching the goal’s head, with options to specify rules, omit hypotheses, or use attributes. Tries
symmandexfalsoif needed.
- Syntax Reference:
[Lean.Elab.Tactic.Ext.applyExtTheorem] - Description: Applies a single extensionality theorem to the current goal.
- Syntax Reference:
[Mathlib.Tactic.applyFun] - Description: Applies a function to equalities or inequalities in hypotheses or the goal, handling cases like
Monotone,StrictMono, orInjectivewith automatic or explicit discharging.
- Syntax Reference:
[Lean.Parser.Tactic.tacticApply_mod_cast_] - Description: Normalizes casts in the goal and expression, then applies the expression.
- Syntax Reference:
[Lean.Parser.Tactic.applyRfl] - Description: Similar to
rflbut without tryingeq_reflat the end.
- Syntax Reference:
[Lean.Parser.Tactic.applyRules] - Description: Iteratively applies a list of lemmas or hypotheses to solve the goal and subgoals, with options to customize assumptions, depth, and symmetry usage.
- Syntax Reference:
[ArithmeticFunction.arith_mult] - Description: Solves goals of the form
IsMultiplicative ffor arithmetic functions using lemmas tagged with@[arith_mult].
- Syntax Reference:
[ArithmeticFunction.arith_mult?] - Description: Like
arith_multbut prints the generated proof term.
- Syntax Reference:
[Array.tacticArray_get_dec] - Description: Proves
sizeOf arr[i] < sizeOf arrfor well-founded recursions over nested inductives.
- Syntax Reference:
[Array.tacticArray_mem_dec] - Description: Proves
sizeOf a < sizeOf arrgivena ∈ arrfor well-founded recursions.
- Syntax Reference:
[Lean.Parser.Tactic.as_aux_lemma] - Description: Wraps a tactic’s result in an auxiliary lemma to reduce expression size.
- Syntax Reference:
[Lean.Parser.Tactic.assumption] - Description: Solves the goal using a compatible hypothesis or fails.
- Syntax Reference:
[Mathlib.Tactic.tacticAssumption'] - Description: Tries
assumptionon all goals, succeeding if it closes at least one.
- Syntax Reference:
[Lean.Parser.Tactic.tacticAssumption_mod_cast_] - Description: Normalizes casts in the goal and hypotheses with
norm_cast, then tries to solve using a hypothesis.
- Syntax Reference:
[Lean.Parser.Tactic.attemptAll] - Description: Internal helper for implementing
try?.
- Syntax Reference:
[Mathlib.Tactic.Group.aux_group₁] - Description: Auxiliary tactic for
group, calling the simplifier only.
- Syntax Reference:
[Mathlib.Tactic.Group.aux_group₂] - Description: Auxiliary tactic for
group, normalizing exponents withring_nf.
- Syntax Reference:
[tacticBddDefault] - Description: Automatically fills boundedness proofs in complete lattices for statements used in both complete and conditionally complete lattices.
- Syntax Reference:
[Mathlib.Tactic.betaReduceStx] - Description: Completely beta reduces a location, substituting arguments into lambda expressions. Also available in
convmode.
- Syntax Reference:
[Mathlib.Tactic.Bicategory.tacticBicategory] - Description: Solves equations in bicategories differing only by structural morphisms using the coherence theorem.
- Syntax Reference:
[Mathlib.Tactic.BicategoryCoherence.tacticBicategory_coherence],[Mathlib.Tactic.Bicategory.tacticBicategory_coherence] - Description: Closes goals of the form
η = θwhereηandθare 2-isomorphisms of associators, unitors, and identities. Usepure_coherenceinstead.
- Syntax Reference:
[Mathlib.Tactic.Bicategory.tacticBicategory_nf] - Description: Normalizes both sides of an equality in a bicategory.
- Syntax Reference:
[Mathlib.Tactic.Borelize.tacticBorelize___] - Description: Adjusts
MeasurableSpaceinstances toborel αbased on existing assumptions, addingBorelSpaceinstances as needed.
- Syntax Reference:
[«tacticBound[_]»] - Description: Proves inequalities via recursion on expression structure using
@[bound]and@[bound_forward]lemmas, local hypotheses, and optional additional hypotheses.
- Syntax Reference:
[Lean.Parser.Tactic.bvCheck] - Description: Like
bv_decidebut uses a pre-stored LRAT proof file instead of calling a SAT solver, e.g.,bv_check "proof.lrat".
- Syntax Reference:
[Lean.Parser.Tactic.bvDecide],[Lean.Parser.Tactic.bvDecideMacro] - Description: Closes
BitVecandBoolgoals using an external SAT solver, verifying the proof in Lean. Limited to QF_BV-like goals and structures. Provides counterexamples on failure.
- Syntax Reference:
[Lean.Parser.Tactic.bvTraceMacro],[Lean.Parser.Tactic.bvTrace] - Description: Suggests a proof script for
bv_decideto cache LRAT proofs.
- Syntax Reference:
[Lean.Parser.Tactic.bvNormalize],[Lean.Parser.Tactic.bvNormalizeMacro] - Description: Runs
bv_decide’s normalization procedure to solve basicBitVecgoals.
- Syntax Reference:
[Lean.Parser.Tactic.tacticBv_omega] - Description: Adapts
omegaforBitVecby converting toNatstatements withbitvec_to_nat.
- Syntax Reference:
[«tacticBy_cases_:_»] - Description: Splits the goal into two cases:
h : pandh : ¬ p.
- Syntax Reference:
[Batteries.Tactic.byContra] - Description: Proves
⊢ pby contradiction, introducingh : ¬pand provingFalse. Handles decidable cases and negation normalization.
- Syntax Reference:
[byContra!] - Description: Reduces
⊢ pto provingFalsewithh : ¬ p, normalizing negations withpush_neg. Uses classical reasoning.
- Syntax Reference:
[Lean.calcTactic] - Description: Performs step-wise reasoning over transitive relations, e.g.,
calc a = b := pab ... y = z := pyz.
- Syntax Reference:
[Lean.Parser.Tactic.tacticRwa__] - Description: Short-hand for
rw; assumption.
- Syntax Reference:
[Aesop.Frontend.tacticSaturate____] - Description: (No detailed description provided in the document.)
- Syntax Reference:
[Aesop.Frontend.tacticSaturate?____] - Description: (No detailed description provided in the document.)
- Syntax Reference:
[Mathlib.Tactic.Says.says] - Description: Enhances a tactic
Xproducing "Try this: Y" with "Try this: X says Y", then runsYafter replacement. Verifiable withset_option says.verify true.
- Syntax Reference:
[Mathlib.Tactic.setTactic] - Description: (No detailed description provided in the document.)
- Syntax Reference:
[Mathlib.Tactic.tacticSet!_] - Description: (No detailed description provided in the document.)
- Syntax Reference:
[Lean.Parser.Tactic.set_option] - Description: Temporarily sets an option for a tactic block, e.g.,
set_option opt val in tacs.
- Syntax Reference:
[Lean.Parser.Tactic.tacticShow_] - Description: Unifies the first matching goal with a term
t, making it the main goal and replacing the target with the unifiedt.
- Syntax Reference:
[Lean.Parser.Tactic.showTerm] - Description: Runs a tactic and prints the generated term, e.g., "exact X Y Z" or "refine X ?_ Z".
- Syntax Reference:
[Lean.Parser.Tactic.simp] - Description: Simplifies the goal or hypotheses using
[simp]lemmas and optional expressions, with variants likesimp only,simp at, andsimp [*].
- Syntax Reference:
[Lean.Parser.Tactic.simpAutoUnfold] - Description:
simpwithautoUnfold := true, rewriting with all equation lemmas for partial evaluation.
- Syntax Reference:
[Lean.Parser.Tactic.simpTrace] - Description: Like
simpbut suggests an equivalentsimp onlycall to close the goal, reducing simp set size.
- Syntax Reference:
[Lean.Parser.Tactic.tacticSimp?!_] - Description: Combines
simp?andsimp!behaviors.
- Syntax Reference:
[Lean.Parser.Tactic.simpAll] - Description: Repeatedly simplifies all propositional hypotheses and the target until no further simplification is possible.
- Syntax Reference:
[Lean.Parser.Tactic.simpAllAutoUnfold] - Description:
simp_allwithautoUnfold := true.
- Syntax Reference:
[Lean.Parser.Tactic.simpAllTrace] - Description:
simp_allwith suggestion of an equivalentsimp onlycall.
- Syntax Reference:
[Lean.Parser.Tactic.tacticSimp_all?!_] - Description: Combines
simp_all?andsimp_all!behaviors.
- Syntax Reference:
[Lean.Parser.Tactic.simpAllArith] - Description: Deprecated shorthand for
simp_all +arith +decide. No longer needs+decidedue to simprocs.
- Syntax Reference:
[Lean.Parser.Tactic.simpAllArithBang] - Description: Deprecated shorthand for
simp_all! +arith +decide.
- Syntax Reference:
[Lean.Parser.Tactic.simpArith] - Description: Deprecated shorthand for
simp +arith +decide.
- Syntax Reference:
[Lean.Parser.Tactic.simpArithBang] - Description: Deprecated shorthand for
simp! +arith +decide.
- Syntax Reference:
[Mathlib.Tactic.«tacticSimp_intro_____..Only_»] - Description: Combines
simpandintro, simplifying variable types as they are introduced and using them to simplify subsequent arguments and the goal.
- Syntax Reference:
[Mathlib.Tactic.tacticSimp_rw___] - Description: Mixes
simpandrw, applying rewrite rules in order and repeatedly under binders like∀,∃, andfun.
- Syntax Reference:
[tacticSimp_wf] - Description: Unfolds definitions in well-founded relations, now obsolete since Lean 4.12 unfolds them automatically.
- Syntax Reference:
[Lean.Parser.Tactic.simpa] - Description: A finishing tactic modifying
simp, either using an expression (simpa using e) or a hypothesisthisto close the goal after simplification.
- Syntax Reference:
[Lean.Parser.Tactic.tacticSimpa!_] - Description:
simpawithautoUnfold := true.
- Syntax Reference:
[Lean.Parser.Tactic.tacticSimpa?_] - Description:
simpawith suggestion of an equivalentsimp onlycall.
- Syntax Reference:
[Lean.Parser.Tactic.tacticSimpa?!_] - Description: Combines
simpa?andsimpa!behaviors.
- Syntax Reference:
[List.tacticSizeOf_list_dec] - Description: Proves
sizeOf a < sizeOf aswhena ∈ asfor well-founded recursions over nested inductives.
- Syntax Reference:
[Lean.Parser.Tactic.skip] - Description: Does nothing.
- Syntax Reference:
[Lean.Parser.Tactic.sleep] - Description: Sleeps for a specified number of milliseconds, used for debugging.
- Syntax Reference:
[sliceLHS] - Description: Zooms to the left-hand side, adjusts categorical composition with associativity, and invokes a tactic on specified morphisms.
- Syntax Reference:
[sliceRHS] - Description: Zooms to the right-hand side, adjusts categorical composition, and invokes a tactic on specified morphisms.
- Syntax Reference:
[RatFunc.tacticSmul_tac] - Description: Solves equations for
RatFunc Kby applyingRatFunc.induction_on.
- Syntax Reference:
[Lean.solveTactic] - Description: Succeeds only if one of the given tactics solves the current goal, similar to
first.
- Syntax Reference:
[Lean.Parser.Tactic.solveByElim] - Description: Repeatedly applies assumptions to solve the goal and subgoals up to a specified depth, with backtracking and customizable assumptions.
- Syntax Reference:
[Lean.Parser.Tactic.tacticSorry] - Description: Closes the goal with a placeholder, intended for incomplete proofs, triggering a warning.
- Syntax Reference:
[CategoryTheory.sorryIfSorry] - Description: Closes the goal with
sorryif its type containssorry, failing otherwise.
- Syntax Reference:
[Lean.Parser.Tactic.specialize] - Description: Instantiates premises of a hypothesis with concrete terms, adding a new hypothesis and clearing the old one if possible.
- Syntax Reference:
[Mathlib.Tactic.TautoSet.specialize_all] - Description: Runs
specialize h xon all applicable hypotheses.
- Syntax Reference:
[Lean.Parser.Tactic.split] - Description: Breaks nested
if-then-elseandmatchexpressions into separate goals, e.g., splittingif n = 0 then Q else R.
- Syntax Reference:
[Batteries.Tactic.tacticSplit_ands] - Description: Applies
And.intrountil no progress is made.
- Syntax Reference:
[Mathlib.Tactic.splitIfs] - Description: Splits all
if-then-elseexpressions into multiple goals, optionally at specified locations with custom hypothesis names.
- Syntax Reference:
[Lean.Parser.Tactic.tacticStop_] - Description: Discards the rest of a proof with
repeat sorry, useful for focusing on earlier parts.
- Syntax Reference:
[Mathlib.Tactic.subsingletonStx] - Description: Proves equalities or heterogeneous equalities using subsingleton properties, running
introsfirst and supporting additional instances.
- Syntax Reference:
[Lean.Parser.Tactic.subst] - Description: Substitutes variables with equal terms based on hypotheses, handling nested equalities.
- Syntax Reference:
[Lean.Parser.Tactic.substEqs] - Description: Repeatedly substitutes according to equality hypotheses until no further progress.
- Syntax Reference:
[Lean.Parser.Tactic.substVars] - Description: Applies
substto all hypotheses of the formx = tort = x.
- Syntax Reference:
[Mathlib.Tactic.Substs.substs] - Description: Applies
substto given hypotheses from left to right.
- Syntax Reference:
[Mathlib.Tactic.successIfFailWithMsg] - Description: Succeeds only if a tactic fails with a specified message.
- Syntax Reference:
[Lean.Parser.Tactic.tacticSuffices_],[Mathlib.Tactic.tacticSuffices_] - Description: Replaces the goal with a new one, proving the original using an expression or tactic, optionally naming the hypothesis.
- Syntax Reference:
[Lean.Parser.Tactic.suggestPremises] - Description: Suggests premises for the goal using the registered premise selector, ordered by confidence.
- Syntax Reference:
[Batteries.Tactic.tacticSwap] - Description: Interchanges the 1st and 2nd goals, equivalent to
pick_goal 2.
- Syntax Reference:
[Mathlib.Tactic.«tacticSwap_var__,,»] - Description: Swaps variable names in hypotheses and the goal according to specified rules.
- Syntax Reference:
[Lean.Parser.Tactic.symm] - Description: Reverses a symmetric relation in the goal or a hypothesis using
[symm]lemmas.
- Syntax Reference:
[Lean.Parser.Tactic.symmSaturate] - Description: Adds symmetric versions of hypotheses with
@[symm]lemmas.
- Syntax Reference:
[Mathlib.Tactic.Tauto.tauto] - Description: Breaks down logical assumptions and splits goals until solvable by
reflexivityorsolve_by_elim, using classical reasoning.
- Syntax Reference:
[Mathlib.Tactic.TautoSet.tacticTauto_set] - Description: Proves tautologies involving set operations (
⊆,=, ∪, ∩, , ᶜ) and unfoldsDisjointandsymmDiff`.
- Syntax Reference:
[Mathlib.Tactic.TFAE.tfaeFinish] - Description: Closes
TFAE [P₁, P₂, ...]goals once sufficientPᵢ → PⱼorPᵢ ↔ Pⱼhypotheses are introduced.
- Syntax Reference:
[Mathlib.Tactic.TFAE.tfaeHave],[Mathlib.Tactic.TFAE.tfaeHave'] - Description: Introduces hypotheses like
Pᵢ → PⱼforTFAEproofs, supporting naming and matching. Deprecated goal-style syntax requires:=.
- Syntax Reference:
[Set.tacticToFinite_tac] - Description: Applies
Set.toFiniteto synthesizeSet.Finiteterms in auto-params.
- Syntax Reference:
[Set.tacticTo_encard_tac] - Description: Transfers
encardproofs to correspondingcardstatements.
- Syntax Reference:
[Lean.Parser.Tactic.trace],[Lean.Parser.Tactic.traceMessage] - Description: Evaluates a term to a string and prints it as a trace message or displays a specified message.
- Syntax Reference:
[Lean.Parser.Tactic.traceState] - Description: Displays the current tactic state in the info view.
- Syntax Reference:
[Batteries.Tactic.tacticTrans___] - Description: Applies transitivity to a goal with a transitive relation, splitting into two subgoals or using a metavariable.
- Syntax Reference:
[Batteries.Tactic.tacticTransitivity___] - Description: Synonym for
trans.
- Syntax Reference:
[Batteries.Tactic.triv] - Description: Deprecated variant of
trivial.
- Syntax Reference:
[Lean.Parser.Tactic.tacticTrivial] - Description: Tries simple tactics like
rflandcontradictionto close the goal, extensible viamacro_rules.
- Syntax Reference:
[Lean.Parser.Tactic.tacticTry_] - Description: Runs a tactic and succeeds even if it fails.
- Syntax Reference:
[Lean.Parser.Tactic.tryTrace] - Description: (No detailed description provided, internal use for
try?implementation.)
- Syntax Reference:
[Lean.Parser.Tactic.tryResult] - Description: Internal helper for
evalSuggestintry?.
- Syntax Reference:
[Mathlib.Tactic.tacticTry_this__] - Description: Suggests and executes a tactic with "Try this: ".
- Syntax Reference:
[tacticType_check_] - Description: Type checks an expression and traces its type.
- Syntax Reference:
[Lean.Parser.Tactic.unfold] - Description: Unfolds definitions in the target or hypotheses, using unfolding lemmas for recursive definitions.
- Syntax Reference:
[Mathlib.Tactic.InteractiveUnfold.tacticUnfold?] - Description: Suggests definitional unfoldings for a selected expression, simplifying with
whnfCoreand hiding default instance unfolds.
- Syntax Reference:
[Mathlib.Tactic.unfoldLetStx] - Description: Subsumed by
unfold, performs zeta reduction on local definitions. Also available aszetainconvmode.
- Syntax Reference:
[Mathlib.Tactic.unfoldProjsStx] - Description: Unfolds class instance projections at a location, also available in
convmode.
- Syntax Reference:
[Lean.Parser.Tactic.tacticUnhygienic_] - Description: Runs tactics with name hygiene disabled, making normally inaccessible names regular variables (use cautiously).
- Syntax Reference:
[intervalIntegral.tacticUniqueDiffWithinAt_Ici_Iic_univ] - Description: Closes goals of the form
UniqueDiffWithinAt ℝ s awheresisIic a,Ici a, oruniv.
- Syntax Reference:
[Tactic.Interactive.tacticUnit_interval] - Description: Solves inequalities like
0 ≤ ↑xand↑x ≤ 1forx : I.
- Syntax Reference:
[Batteries.Tactic.unreachable] - Description: Causes a compile-time panic, intended for asserting a tactic is never executed in tests.
- Syntax Reference:
[Mathlib.Tactic.useSyntax] - Description: Similar to
exists, refines with multiple terms and discharges goals with a configurable tactic, e.g.,use 42, 42.
- Syntax Reference:
[Mathlib.Tactic.«tacticUse!___,,»] - Description: Like
usebut applies constructors everywhere, flattening nested structures.
- Syntax Reference:
[Mathlib.Tactic.tacticUse_discharger] - Description: Default discharger for
useanduse!, similar totrivialbut avoidscontradictionordecide.
- Syntax Reference:
[tacticUse_finite_instance] - Description: (No detailed description provided in the document.)
- Syntax Reference:
[MeasureTheory.tacticVolume_tac] - Description: Uses
exact volumein auto-param arguments.
- Syntax Reference:
[Lean.Server.Test.Cancel.tacticWait_for_unblock_async] - Description: Waits for an
unblockcall in a subsequent document version, checking for cancellation.
- Syntax Reference:
[Mathlib.Tactic.BicategoryCoherence.whisker_simps] - Description: Simp lemmas for rewriting 2-morphisms into normal form.
- Syntax Reference:
[Mathlib.Tactic.tacticWhnf__] - Description: Reduces a location to weak-head normal form, also available in
convmode.
- Syntax Reference:
[ProofWidgets.withPanelWidgetsTacticStx] - Description: Displays selected panel widgets alongside the tactic state in a proof.
- Syntax Reference:
[Lean.Parser.Tactic.withReducible] - Description: Executes tactics with reducible transparency, unfolding only
[reducible]definitions.
- Syntax Reference:
[Lean.Parser.Tactic.withReducibleAndInstances] - Description: Executes tactics with
.instancestransparency, unfolding[reducible]and type class instances.
- Syntax Reference:
[Lean.Parser.Tactic.withUnfoldingAll] - Description: Executes tactics with
.alltransparency, unfolding all non-opaque definitions.
- Syntax Reference:
[Mathlib.Tactic.wlog] - Description: Adds an assumption
h : Pto the main goal and a side goal reducing¬ PtoP, often used with symmetry and generalization.
- Syntax Reference:
[Mathlib.Tactic.Zify.zify] - Description: Shifts
Natpropositions toIntfor better subtraction handling, using@[zify_simps]andpush_cast.
- Syntax Reference:
[Lean.cdot] - Description: Focuses on the main goal and tries to solve it with a tactic, failing otherwise.
This list is generated from the provided document and reflects tactics available as of March 24, 2025. For full details, refer to the original Lean documentation.