package rocq-runtime
Module Ltac2_plugin.Tac2typing_envSource
Source
val empty_env :
?strict:bool ->
?accumulate_errors:bool ->
UnivNames.universe_binders ->
unit ->
tdefault strict:true, accumulate_errors:false
In accumulate mode, add the error to the list in the env. Otherwise raise UserError.
Get accumulated errors. Assertion failure if not in accumulate mode.
Source
val get_variable0 :
(Names.Id.t -> bool) ->
Tac2expr.tacref Tac2expr.or_relid ->
Tac2expr.tacref Locus.or_varView function, allows to ensure head normal forms
unify0 raises CannotUnify, unify raises usererror
Source
val unify :
?loc:Loc.t ->
t ->
TVar.t Tac2expr.glb_typexpr ->
TVar.t Tac2expr.glb_typexpr ->
unitSource
val unify_arrow :
?loc:Loc.t ->
t ->
TVar.t Tac2expr.glb_typexpr ->
(Loc.t option * TVar.t Tac2expr.glb_typexpr) list ->
TVar.t Tac2expr.glb_typexprSource
val subst_type :
('a -> 'b Tac2expr.glb_typexpr) ->
'a Tac2expr.glb_typexpr ->
'b Tac2expr.glb_typexprSource
val normalize :
t ->
(int Stdlib.ref * int Tac2expr.glb_typexpr TVar.Map.t Stdlib.ref) ->
TVar.t Tac2expr.glb_typexpr ->
int Tac2expr.glb_typexpr