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"right" bnd(thunk(with_bindings)) := right0 false bnd. | 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 | |
Abbreviationright := right. | 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"eright" bnd(thunk(with_bindings)) := right0 true bnd. | 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 | |
Abbreviationeright := eright. | 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 | |
constructor0ev n bnd :=
enter_h ev (fun ev bnd => Std.constructor_n ev n bnd) bnd.
Local Ltac2 constructor1 ev x :=
match x with
| None => Control.enter (fun () => Std.constructor ev)
| Some (tac, bnd) => constructor0 ev tac bnd
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 | constructor0 | |
Abbreviationconstructor := constructor1 false None. | 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"constructor" x(opt(seq(tactic,thunk(with_bindings)))) := constructor1 false x. | 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 | |
Abbreviationeconstructor := constructor1 true None. | 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"econstructor" x(opt(seq(tactic,thunk(with_bindings)))) := constructor1 true x. | 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 | |
specialize0c pat :=
enter_h false (fun _ c => Std.specialize c pat) 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 | specialize0 | |
Notation"specialize" c(thunk(seq(constr, with_bindings))) ipat(opt(seq("as", intropattern))) :=
specialize0 c ipat. | 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 | |
elim0ev c bnd use :=
let f ev (c, bnd, use) := Std.elim ev (c, bnd) use in
enter_h ev f (fun () => c (), bnd (), use ()). | 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 | elim0 | |
Notation"elim" c(thunk(constr)) bnd(thunk(with_bindings))
use(thunk(opt(seq("using", constr, with_bindings)))) :=
elim0 false c bnd use. | 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"eelim" c(thunk(constr)) bnd(thunk(with_bindings))
use(thunk(opt(seq("using", constr, with_bindings)))) :=
elim0 true c bnd use. | 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 | |
apply0adv ev cb cl :=
Std.apply adv ev cb cl. | 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 | apply0 | |
Notation"eapply"
cb(list1(thunk(seq(open_constr, with_bindings)), ","))
cl(opt(seq("in", ident, opt(seq("as", intropattern))))) :=
apply0 true true cb cl. | 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"apply"
cb(list1(thunk(seq(open_constr, with_bindings)), ","))
cl(opt(seq("in", ident, opt(seq("as", intropattern))))) :=
apply0 true false cb cl. | 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_on_conclcl :=
match cl with
| None => { Std.on_hyps := Some []; Std.on_concl := Std.AllOccurrences }
| Some cl => cl
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_on_concl | |
pose0ev p :=
enter_h ev (fun _ (na, p) => Std.pose na p) p. | 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 | pose0 | |
Notation"pose" p(thunk(pose)) :=
pose0 false p. | 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"epose" p(thunk(pose)) :=
pose0 true p. | 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"set" p(thunk(pose)) cl(opt(clause)) :=
Std.set false p (default_on_concl cl). | 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"eset" p(thunk(pose)) cl(opt(clause)) :=
Std.set true p (default_on_concl cl). | 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 | |
assert0ev ast :=
enter_h ev (fun _ ast => Std.assert ast) ast. | 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 | assert0 | |
Notation"assert" ast(thunk(assert)) := assert0 false ast. | 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"eassert" ast(thunk(assert)) := assert0 true ast. | 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 | |
enough_from_assertion(a : Std.assertion) :=
match a with
| Std.AssertType ip_opt term tac_opt => Std.enough term (Some tac_opt) ip_opt
| Std.AssertValue ident constr => Std.pose (Some ident) constr
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 | enough_from_assertion | |
enough0ev ast :=
enter_h ev (fun _ ast => enough_from_assertion ast) ast. | 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 | enough0 | |
Notation"enough" ast(thunk(assert)) := enough0 false ast. | 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"eenough" ast(thunk(assert)) := enough0 true ast. | 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_everywherecl :=
match cl with
| None => { Std.on_hyps := None; Std.on_concl := Std.AllOccurrences }
| Some cl => cl
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_everywhere | |
Notation"remember"
c(thunk(open_constr))
na(opt(seq("as", ident)))
pat(opt(seq("eqn", ":", intropattern)))
cl(opt(clause)) :=
Std.remember false na c pat (default_everywhere cl). | 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"eremember"
c(thunk(open_constr))
na(opt(seq("as", ident)))
pat(opt(seq("eqn", ":", intropattern)))
cl(opt(clause)) :=
Std.remember true na c pat (default_everywhere cl). | 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 | |
induction0ev ic use :=
let f ev use := Std.induction ev ic use in
enter_h ev f use. | 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 | induction0 | |
Notation"induction"
ic(list1(induction_clause, ","))
use(thunk(opt(seq("using", constr, with_bindings)))) :=
induction0 false ic use. | 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"einduction"
ic(list1(induction_clause, ","))
use(thunk(opt(seq("using", constr, with_bindings)))) :=
induction0 true ic use. | 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 | |
generalize0gen :=
enter_h false (fun _ gen => Std.generalize gen) gen. | 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 | generalize0 | |
Notation"generalize"
gen(thunk(list1(seq (open_constr, occurrences, opt(seq("as", ident))), ","))) :=
generalize0 gen. | 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 | |
destruct0ev ic use :=
let f ev use := Std.destruct ev ic use in
enter_h ev f use. | 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 | destruct0 | |
Notation"destruct"
ic(list1(induction_clause, ","))
use(thunk(opt(seq("using", constr, with_bindings)))) :=
destruct0 false ic use. | 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"edestruct"
ic(list1(induction_clause, ","))
use(thunk(opt(seq("using", constr, with_bindings)))) :=
destruct0 true ic use. | 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" "inversion"
arg(destruction_arg)
pat(opt(seq("as", intropattern)))
ids(opt(seq("in", list1(ident)))) :=
Std.inversion Std.SimpleInversion arg pat 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 | |
Notation"inversion"
arg(destruction_arg)
pat(opt(seq("as", intropattern)))
ids(opt(seq("in", list1(ident)))) :=
Std.inversion Std.FullInversion arg pat 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 | |
Notation"inversion_clear"
arg(destruction_arg)
pat(opt(seq("as", intropattern)))
ids(opt(seq("in", list1(ident)))) :=
Std.inversion Std.FullInversionClear arg pat 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 | |
Abbreviationexfalso := Std.exfalso (). | 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"red" cl(opt(clause)) :=
Std.red (default_on_concl cl). | 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 | |
Abbreviationred := red. | 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"hnf" cl(opt(clause)) :=
Std.hnf (default_on_concl cl). | 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 | |
Abbreviationhnf := hnf. | 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"simpl" s(strategy) pl(opt(seq(pattern, occurrences))) cl(opt(clause)) :=
Std.simpl s pl (default_on_concl cl). | 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 | |
Abbreviationsimpl := simpl. | 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"cbv" s(strategy) cl(opt(clause)) :=
Std.cbv s (default_on_concl cl). | 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 | |
Abbreviationcbv := cbv. | 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"cbn" s(strategy) cl(opt(clause)) :=
Std.cbn s (default_on_concl cl). | 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 | |
Abbreviationcbn := cbn. | 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"lazy" s(strategy) cl(opt(clause)) :=
Std.lazy s (default_on_concl cl). | 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 | |
Abbreviationlazy := lazy. | 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"unfold" pl(list1(seq(reference, occurrences), ",")) cl(opt(clause)) :=
Std.unfold pl (default_on_concl cl). | 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 | |
fold0pl cl :=
let cl := default_on_concl cl in
Control.enter (fun () => Control.with_holes pl (fun pl => Std.fold pl cl)). | 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 | fold0 | |
Notation"fold" pl(thunk(list1(open_constr))) cl(opt(clause)) :=
fold0 pl cl. | 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"pattern" pl(list1(seq(constr, occurrences), ",")) cl(opt(clause)) :=
Std.pattern pl (default_on_concl cl). | 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"vm_compute" pl(opt(seq(pattern, occurrences))) cl(opt(clause)) :=
Std.vm pl (default_on_concl cl). | 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 | |
Abbreviationvm_compute := vm_compute. | 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"native_compute" pl(opt(seq(pattern, occurrences))) cl(opt(clause)) :=
Std.native pl (default_on_concl cl). | 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 | |
Abbreviationnative_compute := native_compute. | 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"eval" "red" "in" c(constr) :=
Std.eval_red 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 | |
Notation"eval" "hnf" "in" c(constr) :=
Std.eval_hnf 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 | |
Notation"eval" "simpl" s(strategy) pl(opt(seq(pattern, occurrences))) "in" c(constr) :=
Std.eval_simpl s pl 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 | |
Notation"eval" "cbv" s(strategy) "in" c(constr) :=
Std.eval_cbv s 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 | |
Notation"eval" "cbn" s(strategy) "in" c(constr) :=
Std.eval_cbn s 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 | |
Notation"eval" "lazy" s(strategy) "in" c(constr) :=
Std.eval_lazy s 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 | |
Notation"eval" "unfold" pl(list1(seq(reference, occurrences), ",")) "in" c(constr) :=
Std.eval_unfold pl 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 | |
Notation"eval" "fold" pl(thunk(list1(open_constr))) "in" c(constr) :=
Std.eval_fold (pl ()) 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 | |
Notation"eval" "pattern" pl(list1(seq(constr, occurrences), ",")) "in" c(constr) :=
Std.eval_pattern pl 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 | |
Notation"eval" "vm_compute" pl(opt(seq(pattern, occurrences))) "in" c(constr) :=
Std.eval_vm pl 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 | |
Notation"eval" "native_compute" pl(opt(seq(pattern, occurrences))) "in" c(constr) :=
Std.eval_native pl 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 | |
change0p cl :=
let (pat, c) := p in
Std.change pat c (default_on_concl cl). | 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 | change0 | |
Notation"change" c(conversion) cl(opt(clause)) := change0 c cl. | 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 | |
rewrite0ev rw cl tac :=
let cl := default_on_concl cl in
Std.rewrite ev rw cl tac. | 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 | rewrite0 | |
Notation"rewrite"
rw(list1(rewriting, ","))
cl(opt(clause))
tac(opt(seq("by", thunk(tactic)))) :=
rewrite0 false rw cl tac. | 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"setoid_rewrite"
ori(orient)
c(thunk(seq(open_constr, with_bindings)))
occs(occurrences)
id(opt(seq("in", ident))) :=
Std.setoid_rewrite (Option.default Std.LTR ori) c occs id. | 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"erewrite"
rw(list1(rewriting, ","))
cl(opt(clause))
tac(opt(seq("by", thunk(tactic)))) :=
rewrite0 true rw cl tac. | 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 | |
exact0ev c :=
Control.enter (fun _ =>
match ev with
| true =>
let c := c () in
Control.refine (fun _ => c)
| false =>
Control.with_holes c (fun c => Control.refine (fun _ => c))
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 | exact0 | |
exact1ev c :=
Control.enter (fun () =>
let c :=
Constr.Pretype.pretype
(if ev then Constr.Pretype.Flags.open_constr_flags_with_tc else Constr.Pretype.Flags.constr_flags)
(Constr.Pretype.expected_oftype (Control.goal()))
c
in
Std.exact_no_check 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 | exact1 | |
Notation"exact" c(preterm) := exact1 false 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 | |
Notation"eexact" c(preterm) := exact1 true 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 | |
Notation"intro" id(opt(ident)) mv(opt(move_location)) := Std.intro id mv. | 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 | |
Abbreviationintro := intro. | 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"move" id(ident) mv(move_location) := Std.move id mv. | 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 | |
Abbreviationreflexivity := Std.reflexivity (). | 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 | |
symmetry0cl :=
Std.symmetry (default_on_concl cl). | 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 | symmetry0 | |
Notation"symmetry" cl(opt(clause)) := symmetry0 cl. | 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 | |
Abbreviationsymmetry := symmetry. | 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"revert" ids(list1(ident)) := Std.revert 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 | |
Abbreviationassumption := Std.assumption (). | 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 | |
Abbreviationeassumption := Std.eassumption (). | 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 | |
Abbreviationetransitivity := Std.etransitivity (). | 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 | |
Abbreviationadmit := Std.admit (). | 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 | |
clear0ids := match ids with
| [] => Std.keep []
| _ => Std.clear 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 | clear0 | |
Notation"clear" ids(list0(ident)) := clear0 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.