Module Structures.Structure
A structure S is a non recursive inductive type with a single constructor
type projection={proj_name : Names.Name.t;field name
proj_true : bool;false = projection for a defined field (letin)
proj_canonical : bool;false = not to be used for CS inference
proj_body : Names.Constant.t option;the projection function
}A projection to a structure field
type t={name : Names.inductive;projections : projection list;nparams : int;}
val make : Environ.env -> Names.inductive -> projection list -> tval register : t -> unitval subst : Mod_subst.substitution -> t -> tval rebuild : Environ.env -> t -> trefreshes nparams, e.g. after section discharging
val find : Names.inductive -> tfind ispreturns the Structure.t associated to the inductive pathispif it corresponds to a structure, otherwise it fails withNot_found
val find_from_projection : Names.Constant.t -> traise
Not_foundif not a structure projection
val find_projections : Names.inductive -> Names.Constant.t option listlookup_projections ispreturns the projections associated to the inductive pathispif it corresponds to a structure, otherwise it fails withNot_found
val projection_nparams : Names.Constant.t -> intraise
Not_foundif not a projection
val is_projection : Names.Constant.t -> bool