fact
stringlengths
6
2.88k
type
stringclasses
17 values
library
stringclasses
2 values
imports
listlengths
0
16
filename
stringclasses
89 values
symbolic_name
stringlengths
1
36
docstring
stringclasses
1 value
Notation"clear" "-" ids(list1(ident)) := Std.keep ids.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Abbreviationclear := clear.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
Abbreviationrefine := Control.refine.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
absurd0c := Control.enter (fun _ => Std.absurd (c ())).
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
absurd0
Notation"absurd" c(thunk(open_constr)) := absurd0 c.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
subst0ids := match ids with | [] => Std.subst_all () | _ => Std.subst ids end.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
subst0
Notation"subst" ids(list0(ident)) := subst0 ids.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Abbreviationsubst := subst.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
Notation"discriminate" arg(opt(destruction_arg)) := Std.discriminate false arg.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Abbreviationdiscriminate := discriminate.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
Notation"ediscriminate" arg(opt(destruction_arg)) := Std.discriminate true arg.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Abbreviationediscriminate := ediscriminate.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
Notation"injection" arg(opt(destruction_arg)) ipat(opt(seq("as", intropatterns))):= Std.injection false ipat arg.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Notation"einjection" arg(opt(destruction_arg)) ipat(opt(seq("as", intropatterns))):= Std.injection true ipat arg.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
default_dbdbs := match dbs with | None => Some [] | Some dbs => match dbs with | None => None | Some l => Some l end end.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
default_db
default_listuse := match use with | None => [] | Some use => use end.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
default_list
trivial0use dbs := let dbs := default_db dbs in let use := default_list use in Std.trivial Std.Off use dbs.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
trivial0
Notation"trivial" use(opt(seq("using", list1(reference, ",")))) dbs(opt(seq("with", hintdb))) := trivial0 use dbs.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Abbreviationtrivial := trivial.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
auto0n use dbs := let dbs := default_db dbs in let use := default_list use in Std.auto Std.Off n use dbs.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
auto0
Notation"auto" n(opt(tactic(0))) use(opt(seq("using", list1(reference, ",")))) dbs(opt(seq("with", hintdb))) := auto0 n use dbs.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Abbreviationauto := auto.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
eauto0n use dbs := let dbs := default_db dbs in let use := default_list use in Std.eauto Std.Off n use dbs.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
eauto0
Notation"eauto" n(opt(tactic(0))) use(opt(seq("using", list1(reference, ",")))) dbs(opt(seq("with", hintdb))) := eauto0 n use dbs.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Abbreviationeauto := eauto.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
Notation"typeclasses_eauto" n(opt(tactic(0))) dbs(opt(seq("with", list1(ident)))) := Std.typeclasses_eauto None n dbs.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Notation"typeclasses_eauto" "bfs" n(opt(tactic(0))) dbs(opt(seq("with", list1(ident)))) := Std.typeclasses_eauto (Some Std.BFS) n dbs.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Abbreviationtypeclasses_eauto := typeclasses_eauto.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
Notation"unify" x(constr) y(constr) := Std.unify x y.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Notation"congruence" n(opt(tactic(0))) l(opt(seq("with", list1(constr)))) := Std.congruence n l.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
Notation"simple" "congruence" n(opt(tactic(0))) l(opt(seq("with", list1(constr)))) := Std.simple_congruence n l. #[deprecated(since="9.1", note="Use Std.f_equal instead.")]
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
f_equal0:= Std.f_equal.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
f_equal0
Abbreviationf_equal := Std.f_equal ().
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Abbreviation
now0t := t (); ltac1:(easy_forward_decl).
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
now0
Notation"now" t(thunk(tactic(6))) := now0 t.
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
Notation
start_profiling() := ltac1:(start ltac profiling).
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
start_profiling
stop_profiling() := ltac1:(stop ltac profiling).
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
stop_profiling
show_profile() := ltac1:(show ltac profile).
Ltac2
Ltac2
[ "Require Import Corelib.Init.Ltac", "Require Import Ltac2.Init", "Require Ltac2.Control Ltac2.Fresh Ltac2.Option Ltac2.Pattern Ltac2.Array Ltac2.Int Ltac2.Std Ltac2.Constr" ]
Ltac2/Notations.v
show_profile
may(f : 'a -> unit) (ov : 'a option) := match ov with | Some v => f v | None => () end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
may
map(f : 'a -> 'b) (ov : 'a option) := match ov with | Some v => Some (f v) | None => None end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
map
filter(f : 'a -> bool) (o : 'a option) := match o with | Some x => if f x then Some x else None | None => None end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
filter
iter(f : 'a -> unit) (ov : 'a option) := match ov with | Some v => f v | None => () end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
iter
default(def : 'a) (ov : 'a option) := match ov with | Some v => v | None => def end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
default
map_default(f : 'a -> 'b) (def : 'b) (ov : 'a option) := match ov with | Some v => f v | None => def end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
map_default
get(ov : 'a option) := match ov with | Some v => v | None => Control.throw No_value end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
get
get_bt(ov : 'a option) := match ov with | Some v => v | None => Control.zero No_value end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
get_bt
bind(x : 'a option) (f : 'a -> 'b option) := match x with | Some x => f x | None => None end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
bind
join(x : 'a option option) := match x with | Some x => x | None => None end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
join
ret(x : 'a) := Some x.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
ret
lift(f : 'a -> 'b) (x : 'a option) := map f x.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
lift
equal(eq : 'a -> 'b -> bool) (a : 'a option) (b : 'b option) : bool := match a with | None => match b with | None => true | _ => false end | Some a => match b with | Some b => eq a b | _ => false end end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
equal
compare(cmp : 'a -> 'b -> int) (a : 'a option) (b : 'b option) := match a, b with | Some a, Some b => cmp a b | None, None => 0 | None, Some _ => -1 | Some _, None => 1 end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
compare
is_some(a : 'a option) := match a with | Some _ => true | None => false end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
is_some
is_none(a : 'a option) := match a with | Some _ => false | None => true end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Control" ]
Ltac2/Option.v
is_none
Typet := pattern.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
Type
Typecontext.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
Type
Typematch_kind := [ | MatchPattern | MatchContext ].
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
Type
Type'a constr_matching := (match_kind * t * (context -> constr array -> 'a)) list.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
Type
lazy_match0t (pats:'a constr_matching) := let rec interp m := match m with | [] => Control.zero Match_failure | p :: m => let next _ := interp m in let (knd, pat, f) := p in let p := match knd with | MatchPattern => (fun _ => let context := empty_context in let bind := matche...
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
lazy_match0
multi_match0t (pats:'a constr_matching) := let rec interp e m := match m with | [] => Control.zero e | p :: m => let next e := interp e m in let (knd, pat, f) := p in let p := match knd with | MatchPattern => (fun _ => let context := empty_context in let bind := matches_vect ...
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
multi_match0
one_match0t m := Control.once (fun _ => multi_match0 t m).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
one_match0
Type'a goal_matching := ((((match_kind * t) option * (match_kind * t)) list * (match_kind * t)) * (ident array -> context array -> context array -> constr array -> context -> 'a)) list.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
Type
lazy_goal_match0rev (pats:'a goal_matching) := let rec interp m := match m with | [] => Control.zero Match_failure | p :: m => let next _ := interp m in let (pat, f) := p in let (phyps, pconcl) := pat in let cur _ := let (hids, hbctx, hctx, subst, cctx) := matches_goal rev phyps pconcl in ...
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
lazy_goal_match0
multi_goal_match0rev (pats:'a goal_matching) := let rec interp e m := match m with | [] => Control.zero e | p :: m => let next e := interp e m in let (pat, f) := p in let (phyps, pconcl) := pat in let cur _ := let (hids, hbctx, hctx, subst, cctx) := matches_goal rev phyps pconcl in f h...
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
multi_goal_match0
one_goal_match0rev pats := Control.once (fun _ => multi_goal_match0 rev pats).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Control" ]
Ltac2/Pattern.v
one_goal_match0
printffmt := Format.kfprintf print fmt.
Ltac2
Ltac2
[ "Require Import Ltac2.Message" ]
Ltac2/Printf.v
printf
fprintffmt := Format.kfprintf (fun x => x) fmt.
Ltac2
Ltac2
[ "Require Import Ltac2.Message" ]
Ltac2/Printf.v
fprintf
Notation"printf" fmt(format) := printf fmt.
Ltac2
Ltac2
[ "Require Import Ltac2.Message" ]
Ltac2/Printf.v
Notation
Notation"fprintf" fmt(format) := fprintf fmt.
Ltac2
Ltac2
[ "Require Import Ltac2.Message" ]
Ltac2/Printf.v
Notation
Typet := projection.
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Proj.v
Type
Typet := pstring.
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Pstring.v
Type
Typechar63 := uint63.
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Pstring.v
Type
Typet := Std.red_flags.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
Type
Notation"red_flags:(" s(strategy) ")" : 0 := s.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
Notation
none:= { rBeta := false; rMatch := false; rFix := false; rCofix := false; rZeta := false; rDelta := false; rConst := []; rStrength := Norm; }.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
none
all: t := { rBeta := true; rMatch := true; rFix := true; rCofix := true; rZeta := true; rDelta := true; rConst := []; rStrength := Norm; }.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
all
beta: t := red_flags:(beta).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
beta
beta_delta_zeta: t := red_flags:(beta delta zeta).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
beta_delta_zeta
beta_iota: t := red_flags:(beta iota).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
beta_iota
beta_iota_zeta: t := red_flags:(beta iota zeta).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
beta_iota_zeta
beta_zeta: t := red_flags:(beta zeta).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
beta_zeta
delta: t := red_flags:(delta).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
delta
zeta: t := red_flags:(zeta).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Std" ]
Ltac2/RedFlags.v
zeta
Type'a ref := 'a Init.ref.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Int" ]
Ltac2/Ref.v
Type
ref(v : 'a) : 'a ref := { contents := v}.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Int" ]
Ltac2/Ref.v
ref
get(r : 'a ref) : 'a := r.(contents).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Int" ]
Ltac2/Ref.v
get
set(r : 'a ref) (v : 'a) : unit := r.(contents) := v.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Int" ]
Ltac2/Ref.v
set
incr(r : int ref) : unit := r.(contents) := add (r.(contents)) 1.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Int" ]
Ltac2/Ref.v
incr
decr(r : int ref) : unit := r.(contents) := sub (r.(contents)) 1.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Int" ]
Ltac2/Ref.v
decr
update(r : 'a ref) (f : 'a -> 'a) : unit := r.(contents) := f (r.(contents)).
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Import Ltac2.Int" ]
Ltac2/Ref.v
update
Typet := Std.reference. Import Ltac2.Std.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Std Ltac2.Ident Ltac2.Ind Ltac2.Constructor Ltac2.Constant" ]
Ltac2/Reference.v
Type
equalr1 r2 := match r1, r2 with | VarRef i1, VarRef i2 => Ident.equal i1 i2 | ConstRef c1, ConstRef c2 => Constant.equal c1 c2 | IndRef ind1, IndRef ind2 => Ind.equal ind1 ind2 | ConstructRef cstr1, ConstructRef cstr2 => Constructor.equal cstr1 cstr2 | _, _ => false end.
Ltac2
Ltac2
[ "Require Import Ltac2.Init", "Require Ltac2.Std Ltac2.Ident Ltac2.Ind Ltac2.Constructor Ltac2.Constant" ]
Ltac2/Reference.v
equal
Typet.
Ltac2
Ltac2
[ "From Ltac2 Require Import Init", "From Ltac2 Require Std" ]
Ltac2/Rewrite.v
Type
rewrite_db(hintdb : ident) (i : ident option) : unit := rewrite_strat (Strategy.topdown (Strategy.hints hintdb)) i.
Ltac2
Ltac2
[ "From Ltac2 Require Import Init", "From Ltac2 Require Std" ]
Ltac2/Rewrite.v
rewrite_db
Typehypothesis := [ AnonHyp (int) | NamedHyp (ident) ].
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Std.v
Type
Typebindings := [ | NoBindings | ImplicitBindings (constr list) | ExplicitBindings ((hypothesis * constr) list) ].
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Std.v
Type
Typeconstr_with_bindings := constr * bindings.
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Std.v
Type
Typeoccurrences := [ | AllOccurrences | AllOccurrencesBut (int list) | NoOccurrences | OnlyOccurrences (int list) ].
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Std.v
Type
Typehyp_location_flag := [ InHyp | InHypTypeOnly | InHypValueOnly ].
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Std.v
Type
Typeclause := { on_hyps : (ident * occurrences * hyp_location_flag) list option; on_concl : occurrences; }.
Ltac2
Ltac2
[ "Require Import Ltac2.Init" ]
Ltac2/Std.v
Type