| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | open Names |
| 12 | open EConstr |
| 13 | |
| 14 | (** Fixpoint and co-fixpoint tactics. *) |
| 15 | |
| 16 | (** [fix f idx] refines the goal using a fixpoint. |
| 17 | - [f] is the name of the variable which represents the fixpoint. |
| 18 | - [idx] is the index of the structurally recursive argument (starting at 1). *) |
| 19 | val fix : Id.t -> int -> unit Proofview.tactic |
| 20 | |
| 21 | (** [mutual_fix f idx fs] refines the goal using a mutual fixpoint. |
| 22 | - [f] and [idx] are the name and recursive argument index for the first fixpoint. |
| 23 | The type of [f] is simply the conclusion of the goal. |
| 24 | - [fs] contains the name, recursive argument index, and type of every other fixpoint |
| 25 | in the mutual block. *) |
| 26 | val mutual_fix : |
| 27 | Id.t -> int -> (Id.t * int * constr) list -> unit Proofview.tactic |
| 28 | |
| 29 | (** [cofix f] refines the goal using a cofixpoint. |
| 30 | - [f] is the name of the variable which represents the cofixpoint. *) |
| 31 | val cofix : Id.t -> unit Proofview.tactic |
| 32 | |
| 33 | (** [mutual_cofix f fs] refines the goal using a mutual cofixpoint. |
| 34 | - [f] is the name of the first cofixpoint. The type of [f] is simply the conclusion of the goal. |
| 35 | - [fs] contains the name and type of every other cofixpoint in the mutual block. *) |
| 36 | val mutual_cofix : Id.t -> (Id.t * constr) list -> unit Proofview.tactic |