# mathlibdocumentation

core.init.meta.smt.smt_tactic

meta def simp_attr.pre_smt  :

meta def ematch_lhs  :

meta def ematch  :

structure smt_pre_config  :
Type

Configuration for the smt tactic preprocessor. The preprocessor is applied whenever a new hypothesis is introduced.

• simp_attr: is the attribute name for the simplification lemmas that are used during the preprocessing step.

• max_steps: it is the maximum number of steps performed by the simplifier.

• zeta: if tt, then zeta reduction (i.e., unfolding let-expressions) is used during preprocessing.

structure smt_config  :
Type

Configuration for the smt_state object.

• em_attr: is the attribute name for the hinst_lemmas that are used for ematching
meta constant smt_goal  :
Type

meta def smt_state  :
Type

meta constant smt_state.mk  :

meta constant smt_state.to_format  :

meta constant smt_state.classical  :

Return tt iff classical excluded middle was enabled at smt_state.mk

meta def smt_tactic  :
Type → Type

@[instance]

@[instance]

@[instance]

@[instance]

meta constant tactic_to_smt_tactic (α : Type) :

@[instance]

@[instance]
meta def smt_tactic.has_coe (α : Type) :

@[instance]

meta constant smt_tactic.intros  :

meta constant smt_tactic.intron  :

meta constant smt_tactic.intro_lst  :

meta constant smt_tactic.close  :

Try to close main goal by using equalities implied by the congruence closure module.

meta constant smt_tactic.ematch_core  :
(exprbool)

Produce new facts using heuristic lemma instantiation based on E-matching. This tactic tries to match patterns from lemmas in the main goal with terms in the main goal. The set of lemmas is populated with theorems tagged with the attribute specified at smt_config.em_attr, and lemmas added using tactics such as smt_tactic.add_lemmas. The current set of lemmas can be retrieved using the tactic smt_tactic.get_lemmas.

Remark: the given predicate is applied to every new instance. The instance is only added to the state if the predicate returns tt.

meta constant smt_tactic.ematch_using  :

Produce new facts using heuristic lemma instantiation based on E-matching. This tactic tries to match patterns from the given lemmas with terms in the main goal.

meta constant smt_tactic.to_cc_state  :

meta constant smt_tactic.to_em_state  :

meta constant smt_tactic.get_config  :

meta constant smt_tactic.preprocess  :
expr

Preprocess the given term using the same simplifications rules used when we introduce a new hypothesis. The result is pair containing the resulting term and a proof that it is equal to the given one.

meta constant smt_tactic.get_lemmas  :

meta constant smt_tactic.set_lemmas  :

meta def smt_tactic.ematch  :

meta def smt_tactic.failed {α : Type} :

meta def smt_tactic.fail {α : Type} {β : Type u}  :
β →

meta def smt_tactic.try {α : Type} :

iterate_at_most n t: repeat the given tactic at most n times or until t fails

iterate_exactly n t : execute t n times

meta def smt_tactic.iterate  :

meta def smt_tactic.eblast  :

meta def smt_tactic.write  :

meta def smt_tactic.slift_aux {α : Type} :

meta def smt_tactic.slift {α : Type} :

This lift operation will restart the SMT state. It is useful for using tactics that change the set of hypotheses.

meta def smt_tactic.trace {α : Type}  :
α →

meta def smt_tactic.to_expr  :
pexpr(bool := tt)

meta def smt_tactic.all_goals  :

Apply the given tactic to all goals.

meta def smt_tactic.seq  :

LCF-style AND_THEN tactic. It applies tac1, and if succeed applies tac2 to each subgoal produced by tac1

@[instance]
meta def smt_tactic.has_andthen  :

meta def smt_tactic.focus1 {α : Type} :

meta def smt_tactic.solve1  :

meta def smt_tactic.swap  :

meta def smt_tactic.assert  :

Add a new goal for t, and the hypothesis (h : t) in the current goal.

meta def smt_tactic.assertv  :
name

Add the hypothesis (h : t) in the current goal if v has type t.

meta def smt_tactic.define  :

Add a new goal for t, and the hypothesis (h : t := ?M) in the current goal.

meta def smt_tactic.definev  :
name

Add the hypothesis (h : t := v) in the current goal if v has type t.

meta def smt_tactic.pose  :
name

Add (h : t := pr) to the current goal

meta def smt_tactic.note  :
name

Add (h : t) to the current goal, given a proof (pr : t)

meta def smt_tactic.proof_for  :

Return a proof for e, if 'e' is a known fact in the main goal.

Return a refutation for e (i.e., a proof for (not e)), if 'e' has been refuted in the main goal.

meta def smt_tactic.induction  :
expr

meta def smt_tactic.when (c : Prop) [decidable c] :

meta def using_smt {α : Type} :

meta def using_smt_with {α : Type} :
smt_config