package lambdapi
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0e2e73e0ea0c674f1263bf85ed3453ed3d6084d38eea29974a03ba9e382d29d7
sha512=2831db57fcd09206687a92fc9ee7d363e87bcec5167949e9c8161d41c63d5887b9f3556bfd63a7a9a0c12e5a5dc61a397baf4f496ebdb2a2fce122142c05e7a1
doc/lambdapi.handle/Handle/Tactic/index.html
Module Handle.TacticSource
Handling of tactics.
Number of admitted axioms in the current signature. Used to name the generated axioms. This reference is reset in Compile for each new compiled module.
add_axiom ss sym_pos m adds in signature state ss a new axiom symbol of type !(m.meta_type) and instantiate m with it. WARNING: It does not check whether the type of m contains metavariables. Return updated signature state ss and the new axiom symbol.
admit_meta ss sym_pos m adds as many axioms as needed in the signature state ss to instantiate the metavariable m by a fresh axiom added to the signature ss.
val tac_admit :
Core.Sig_state.t ->
Common.Pos.popt ->
Proof.proof_state ->
Goal.goal_typ ->
Proof.proof_statetac_admit ss pos ps gt admits typing goal gt.
tac_solve pos ps tries to simplify the unification goals of the proof state ps and fails if constraints are unsolvable.
val tac_refine :
?check:??? ->
Common.Pos.popt ->
Proof.proof_state ->
Goal.goal_typ ->
Goal.goal list ->
Core.Term.problem ->
Core.Term.term ->
Proof.proof_statetac_refine pos ps gt gs p t refines the typing goal gt with t.
ind_data t returns the ind_data structure of s if t is of the form s t1 .. tn with s an inductive type. Fails otherwise.
val tac_induction :
Common.Pos.popt ->
Proof.proof_state ->
Goal.goal_typ ->
Goal.goal list ->
Proof.proof_statetac_induction pos ps gt tries to apply the induction tactic on the typing goal gt.
get_prod_ids env do_whnf t returns the list v1;..;vn if do_whnf is true and whnf t is of the form Π v1:A1, .., Π vn:An, u with u not a product, or if do_whnf is false and t is of the form Π v1:A1, .., Π vn:An, u with u not a product.
Builtin tactic names.
get_config ss pos build the configuration using ss.
val p_term :
Core.Sig_state.t ->
Common.Pos.popt ->
int Lplib.Extra.StrMap.t ->
Core.Term.term ->
Parsing.Syntax.p_termp_term pos t converts the term t into a p_term at position pos.
string_of_term pos t returns the string contained in a string literal term t.
p_term_of_string_term pos t turns into a p_term a string literal term t that is part of a bigger term obtained by scoping and normalizing of a p_term at position pos.
val p_rwpatt_of_string_term :
Common.Pos.popt ->
Core.Term.term ->
Parsing.Syntax.p_rwpatt optionp_rwpatt_of_string_term pos t turns into a p_rwpatt option a string literal term t that is part of a bigger term obtained by scoping and normalizing of a p_term at position pos.
int_of_term pos t returns the int contained in a string literal term t.
is_right pos t returns true iff t is "right".
new_name prefix env returns a string prefixed by prefix and not occurring in env.
Representation of a tactic output.
val handle :
Core.Sig_state.t ->
Common.Pos.popt ->
bool ->
tac_output ->
Parsing.Syntax.p_tactic ->
int ->
tac_outputhandle sym_pos priv r tac n applies the tactic tac from the previous tactic output r and checks that the number of goals of the new proof state is compatible with the number n of subproofs. When tac fails, the proof state it was applied to is attached to the error (see Proof.state_on_error).