| 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 |
Require Import Ltac2.Init. |
| 12 |
Require Import Ltac2.Std. |
| 13 |
|
| 14 |
Ltac2 Type t := Std.red_flags. |
| 15 |
|
| 16 |
Module Export Notations. |
| 17 |
Ltac2 Notation "red_flags:(" s(strategy) ")" : 0 := s. |
| 18 |
End Notations. |
| 19 |
|
| 20 |
Ltac2 none := { |
| 21 |
rBeta := false; rMatch := false; rFix := false; rCofix := false; |
| 22 |
rZeta := false; rDelta := false; rConst := []; rStrength := Norm; |
| 23 |
}. |
| 24 |
|
| 25 |
Ltac2 all : t := { |
| 26 |
rBeta := true; rMatch := true; rFix := true; rCofix := true; |
| 27 |
rZeta := true; rDelta := true; rConst := []; rStrength := Norm; |
| 28 |
}. |
| 29 |
|
| 30 |
Ltac2 beta : t := red_flags:(beta). |
| 31 |
Ltac2 beta_delta_zeta : t := red_flags:(beta delta zeta). |
| 32 |
Ltac2 beta_iota : t := red_flags:(beta iota). |
| 33 |
Ltac2 beta_iota_zeta : t := red_flags:(beta iota zeta). |
| 34 |
Ltac2 beta_zeta : t := red_flags:(beta zeta). |
| 35 |
Ltac2 delta : t := red_flags:(delta). |
| 36 |
Ltac2 zeta : t := red_flags:(zeta). |