Proj#
Ltac2.Proj
type t = projectionType of primitive projections. This includes the unfolding boolean.
equal p1 p2 tests equality of primitive projections.
Projections obtained through module aliases or Include are not considered equal by this function. The unfolding boolean is not ignored.
val index : t -> intindex proj returns the index of the field that proj projects.
val unfolded : t -> boolunfolded proj returns the unfolding boolean.
of_constant cst gets the primitive projection associated to the constant. The returned projection is folded. Returns None when the constant is not associated to a primitive projection.
val to_constant : t -> Names.Projection.Repr.t optionto_constant proj gets the constant associated to the primitive projection. Currently always returns Some but this may change in the future.