package lambdapi
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=0e2e73e0ea0c674f1263bf85ed3453ed3d6084d38eea29974a03ba9e382d29d7
sha512=2831db57fcd09206687a92fc9ee7d363e87bcec5167949e9c8161d41c63d5887b9f3556bfd63a7a9a0c12e5a5dc61a397baf4f496ebdb2a2fce122142c05e7a1
doc/lambdapi.handle/Handle/Goal/index.html
Module Handle.GoalSource
Goal.
type goal_typ = {goal_meta : Core.Term.meta;(*Goal metavariable.
*)goal_hyps : Core.Env.t;(*Precomputed scoping environment.
*)goal_type : Core.Term.term;(*Precomputed type.
*)
}The string representation of a goal g is a tuple (l,b,s,t) where l is a list of pairs of strings (assumption_name,assumption_type) and, if g is a typing goal, then b=true, s is the goal meta name and t is the goal type, and if g is a unification goal, then b=false and s and t are the LHS and RHS of the goal respectively.
ctxt g returns the typing context of the goal g.
env g returns the scoping environment of the goal g.
of_meta m creates a goal from the meta m.
val simpl_opt :
(Core.Term.ctxt -> Core.Term.term -> Core.Term.term option) ->
goal ->
goal optionsimpl_opt f g tries to simplify the goal g with the function f.
simpl f g simplifies the goal g with the function f.
val typ_or_def :
int Lplib.Extra.StrMap.t ->
Format.formatter ->
(Core.Term.term * Core.Term.term option) ->
unittyp_or_def idmap ppf (_,ty,def) prints in ppf the type ty or the definition def if there is one.
val ctxt_elt :
int Lplib.Extra.StrMap.t ->
Format.formatter ->
(Core.Term.var * Core.Term.term * Core.Term.term option) ->
unitctxt_elt idmap ppf x prints in ppf the context element x.
val env_elt :
int Lplib.Extra.StrMap.t ->
Format.formatter ->
(string * ('a * Core.Term.term * Core.Term.term option)) ->
unitenv_elt idmap ppf x prints in ppf the environment element x.
hyps ppf g prints on ppf the beta-normal forms of the hypotheses of the goal g.
concl ppf g prints on ppf the beta-normal form of the conclusion of the goal g.
pp ppf g prints on ppf the beta-normal form of the goal g with its hypotheses.
pp_no_hyp ppf g prints on ppf the beta-normal form of the conclusion of the goal g without its hypotheses.
add_goals_of_problem p gs extends the list of goals gs with the metavariables and constraints of p.