Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val infer :
Common.Pos.popt ->
Core.Term.problem ->
Core.Term.ctxt ->
Core.Term.term ->
Core.Term.term
infer pos p c t
returns a type for the term t
in context c
and under the constraints of p
if there is one, or
Fatal.
c
must well sorted. Note that p
gets modified.
val check :
Common.Pos.popt ->
Core.Term.problem ->
Core.Term.ctxt ->
Core.Term.term ->
Core.Term.term ->
unit
check pos p c t a
checks that the term t
has type a
in context c
and under the constraints of p
, or
Fatal.
c
must well sorted. Note that p
gets modified.
val check_sort :
Common.Pos.popt ->
Core.Term.problem ->
Core.Term.ctxt ->
Core.Term.term ->
unit
check_sort pos p c t
checks that the term t
has type Type
or Kind
in context c
and under the constraints of p
, or
Fatal.
c
must be well sorted.
val handle :
Core.Sig_state.t ->
Proof.proof_state option ->
Parsing.Syntax.p_query ->
result
handle_query ss ps q