package rocq-runtime

  1. Overview
  2. Docs
The Rocq Prover -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

rocq-9.0.0.tar.gz
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be

doc/rocq-runtime.pretyping/Structures/Structure/index.html

Module Structures.StructureSource

A structure S is a non recursive inductive type with a single constructor

Sourcetype projection = {
  1. proj_name : Names.Name.t;
    (*

    field name

    *)
  2. proj_true : bool;
    (*

    false = projection for a defined field (letin)

    *)
  3. proj_canonical : bool;
    (*

    false = not to be used for CS inference

    *)
  4. proj_body : Names.Constant.t option;
    (*

    the projection function

    *)
}

A projection to a structure field

Sourcetype t = {
  1. name : Names.inductive;
  2. projections : projection list;
  3. nparams : int;
}
Sourceval register : t -> unit
Sourceval subst : Mod_subst.substitution -> t -> t
Sourceval rebuild : Environ.env -> t -> t

refreshes nparams, e.g. after section discharging

Sourceval find : Names.inductive -> t

find isp returns the Structure.t associated to the inductive path isp if it corresponds to a structure, otherwise it fails with Not_found

Sourceval find_from_projection : Names.Constant.t -> t

raise Not_found if not a structure projection

Sourceval find_projections : Names.inductive -> Names.Constant.t option list

lookup_projections isp returns the projections associated to the inductive path isp if it corresponds to a structure, otherwise it fails with Not_found

Sourceval projection_nparams : Names.Constant.t -> int

raise Not_found if not a projection

Sourceval is_projection : Names.Constant.t -> bool
Sourceval projection_number : Environ.env -> Names.Constant.t -> int

projection_number env p returns the position of the projection p in the structure it corresponds to, counting from 0.

OCaml

Innovation. Community. Security.