The Coq Proof Assistant

# Library Ltac2.Constructor

Require Import Ltac2.Init.
Ltac2 Type t := constructor.
Ltac2 @ external equal : t -> t -> bool := "coq-core.plugins.ltac2" "constructor_equal".
Constructors obtained through module aliases or Include are not considered equal by this function.
Ltac2 @ external inductive : t -> inductive := "coq-core.plugins.ltac2" "constructor_inductive".
Returns the inductive to which the given constructor belongs.
Ltac2 @ external index : t -> int := "coq-core.plugins.ltac2" "constructor_index".
Returns the index of the given constructor (such that c is Ind.get_constructor (Ind.data (inductive c)) (index c)).