package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=66e57ea55275903bef74d5bf36fbe0f1
sha512=1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b
doc/coq-core.pretyping/Structures/Structure/index.html
Module Structures.Structure
Source
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
refreshes nparams, e.g. after section discharging
find isp
returns the Structure.t associated to the inductive path isp
if it corresponds to a structure, otherwise it fails with Not_found
raise Not_found
if not a structure projection
lookup_projections isp
returns the projections associated to the inductive path isp
if it corresponds to a structure, otherwise it fails with Not_found
raise Not_found
if not a projection
projection_number env p
returns the position of the projection p in the structure it corresponds to, counting from 0.