Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
stdpp
Merge requests
!389
Add the feed revert, efeed revert, efeed inversion, and efeed destruct tactics
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Add the feed revert, efeed revert, efeed inversion, and efeed destruct tactics
ci/msammler/more_feed
into
master
Overview
20
Commits
1
Pipelines
16
Changes
1
1 unresolved thread
Show all comments
Closed
Michael Sammler
requested to merge
ci/msammler/more_feed
into
master
2 years ago
Overview
20
Commits
1
Pipelines
16
Changes
1
1 unresolved thread
Show all comments
Expand
0
0
Merge request reports
Compare
master
version 7
b073f60d
2 years ago
version 6
e602be15
2 years ago
version 5
01c9168e
2 years ago
version 4
421b0601
2 years ago
version 3
6ef5ba7b
2 years ago
version 2
92801af3
2 years ago
version 1
d4c9e771
2 years ago
master (base)
and
latest version
latest version
33661a3f
1 commit,
2 years ago
version 7
b073f60d
1 commit,
2 years ago
version 6
e602be15
1 commit,
2 years ago
version 5
01c9168e
1 commit,
2 years ago
version 4
421b0601
1 commit,
2 years ago
version 3
6ef5ba7b
1 commit,
2 years ago
version 2
92801af3
1 commit,
2 years ago
version 1
d4c9e771
1 commit,
2 years ago
1 file
+
15
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
theories/tactics.v
+
15
−
0
Options
@@ -499,7+499,7 @@
(** Given [H : A_1 → ... → A_n → B] (where each [A_i] is non-dependent), the
tactic [feed tac H tac_by] creates a subgoal for each [A_i] and calls [tac p]
with the generated proof [p] of [B]. *)
Tactic
Notation
"feed"
tactic
(
tac
)
constr
(
H
)
:=
let
rec
go
H
:=
let
T
:=
type
of
H
in
lazymatch
eval
hnf
in
T
with
@@ -516,7+516,7 @@
(** The tactic [efeed tac H] is similar to [feed], but it also instantiates
dependent premises of [H] with evars. *)
Tactic
Notation
"efeed"
constr
(
H
)
"using"
tactic3
(
tac
)
"by"
tactic3
(
bytac
)
:=
let
rec
go
H
:=
let
T
:=
type
of
H
in
lazymatch
eval
hnf
in
T
with
@@ -548,7+548,7 @@
Tactic
Notation
"efeed"
"specialize"
hyp
(
H
)
:=
efeed
H
using
(
fun
p
=>
specialize
p
)
.
Tactic
Notation
"feed"
"generalize"
constr
(
H
)
:=
feed
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
generalize
H'
)
H
.
Tactic
Notation
"efeed"
"generalize"
constr
(
H
)
:=
efeed
H
using
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
generalize
H'
)
.
Tactic
Notation
"feed"
"inversion"
constr
(
H
)
:=
feed
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
inversion
H'
)
H
.
Tactic
Notation
"efeed"
"inversion"
constr
(
H
)
:=
efeed
H
using
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
inversion
H'
)
.
Tactic
Notation
"feed"
"inversion"
constr
(
H
)
"as"
simple_intropattern
(
IP
)
:=
feed
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
inversion
H'
as
IP
)
H
.
Tactic
Notation
"efeed"
"inversion"
constr
(
H
)
"as"
simple_intropattern
(
IP
)
:=
efeed
H
using
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
inversion
H'
as
IP
)
.
Tactic
Notation
"feed"
"destruct"
constr
(
H
)
:=
feed
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
destruct
H'
)
H
.
Tactic
Notation
"efeed"
"destruct"
constr
(
H
)
:=
efeed
H
using
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
destruct
H'
)
.
Tactic
Notation
"feed"
"destruct"
constr
(
H
)
"as"
simple_intropattern
(
IP
)
:=
feed
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
destruct
H'
as
IP
)
H
.
Tactic
Notation
"efeed"
"destruct"
constr
(
H
)
"as"
simple_intropattern
(
IP
)
:=
efeed
H
using
(
fun
p
=>
let
H'
:=
fresh
in
pose
proof
p
as
H'
;
destruct
H'
as
IP
)
.
(** The block definitions are taken from [Coq.Program.Equality] and can be used
by tactics to separate their goal from hypotheses they generalize over. *)
Loading