Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Actris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Actris
Commits
41042d04
Commit
41042d04
authored
1 year ago
by
Robbert Krebbers
Browse files
Options
Downloads
Plain Diff
Merge branch 'robbert/multiarg_tactics' into 'master'
Refactor multi-arg tactics. See merge request
!34
parents
9b4483ea
a374d450
No related branches found
No related tags found
1 merge request
!34
Refactor multi-arg tactics.
Pipeline
#103689
passed
8 months ago
Changes
1
Pipelines
107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/channel/proofmode.v
+6
-58
6 additions, 58 deletions
theories/channel/proofmode.v
with
6 additions
and
58 deletions
theories/channel/proofmode.v
+
6
−
58
View file @
41042d04
...
@@ -241,37 +241,9 @@ Tactic Notation "wp_recv" "as" constr(pat) :=
...
@@ -241,37 +241,9 @@ Tactic Notation "wp_recv" "as" constr(pat) :=
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
constr
(
pat
)
:=
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
pat
)
.
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
pat
)
.
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
"("
simple_intropattern
(
x1
)
")"
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
constr
(
pat
)
:=
"("
ne_simple_intropattern_list
(
ys
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
)
pat
)
.
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
_
iDestructHyp
H
ys
pat
)
.
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
"("
simple_intropattern
(
x1
)
simple_intropattern
(
x2
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
x2
)
pat
)
.
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
"("
simple_intropattern
(
x1
)
simple_intropattern
(
x2
)
simple_intropattern
(
x3
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
x2
x3
)
pat
)
.
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
"("
simple_intropattern
(
x1
)
simple_intropattern
(
x2
)
simple_intropattern
(
x3
)
simple_intropattern
(
x4
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
x2
x3
x4
)
pat
)
.
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
"("
simple_intropattern
(
x1
)
simple_intropattern
(
x2
)
simple_intropattern
(
x3
)
simple_intropattern
(
x4
)
simple_intropattern
(
x5
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
x2
x3
x4
x5
)
pat
)
.
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
"("
simple_intropattern
(
x1
)
simple_intropattern
(
x2
)
simple_intropattern
(
x3
)
simple_intropattern
(
x4
)
simple_intropattern
(
x5
)
simple_intropattern
(
x6
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
x2
x3
x4
x5
x6
)
pat
)
.
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
"("
simple_intropattern
(
x1
)
simple_intropattern
(
x2
)
simple_intropattern
(
x3
)
simple_intropattern
(
x4
)
simple_intropattern
(
x5
)
simple_intropattern
(
x6
)
simple_intropattern
(
x7
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
x2
x3
x4
x5
x6
x7
)
pat
)
.
Tactic
Notation
"wp_recv"
"("
simple_intropattern_list
(
xs
)
")"
"as"
"("
simple_intropattern
(
x1
)
simple_intropattern
(
x2
)
simple_intropattern
(
x3
)
simple_intropattern
(
x4
)
simple_intropattern
(
x5
)
simple_intropattern
(
x6
)
simple_intropattern
(
x7
)
simple_intropattern
(
x8
)
")"
constr
(
pat
)
:=
wp_recv_core
(
intros
xs
)
as
(
fun
H
=>
iDestructHyp
H
as
(
x1
x2
x3
x4
x5
x6
x7
x8
)
pat
)
.
Lemma
tac_wp_send
`{
!
chanG
Σ
,
!
heapGS
Σ
}
{
TT
:
tele
}
Δ
neg
i
js
K
c
v
p
m
tv
tP
tp
Φ
:
Lemma
tac_wp_send
`{
!
chanG
Σ
,
!
heapGS
Σ
}
{
TT
:
tele
}
Δ
neg
i
js
K
c
v
p
m
tv
tP
tp
Φ
:
envs_lookup
i
Δ
=
Some
(
false
,
c
↣
p
)
%
I
→
envs_lookup
i
Δ
=
Some
(
false
,
c
↣
p
)
%
I
→
...
@@ -347,31 +319,8 @@ Tactic Notation "wp_send_core" tactic3(tac_exist) "with" constr(pat) :=
...
@@ -347,31 +319,8 @@ Tactic Notation "wp_send_core" tactic3(tac_exist) "with" constr(pat) :=
Tactic
Notation
"wp_send"
"with"
constr
(
pat
)
:=
Tactic
Notation
"wp_send"
"with"
constr
(
pat
)
:=
wp_send_core
(
idtac
)
with
pat
.
wp_send_core
(
idtac
)
with
pat
.
Tactic
Notation
"wp_send"
"("
uconstr
(
x1
)
")"
"with"
constr
(
pat
)
:=
Tactic
Notation
"wp_send"
"("
ne_uconstr_list
(
xs
)
")"
"with"
constr
(
pat
)
:=
wp_send_core
(
eexists
x1
)
with
pat
.
wp_send_core
(
ltac1_list_iter
ltac
:(
fun
x
=>
eexists
x
)
xs
)
with
pat
.
Tactic
Notation
"wp_send"
"("
uconstr
(
x1
)
uconstr
(
x2
)
")"
"with"
constr
(
pat
)
:=
wp_send_core
(
eexists
x1
;
eexists
x2
)
with
pat
.
Tactic
Notation
"wp_send"
"("
uconstr
(
x1
)
uconstr
(
x2
)
uconstr
(
x3
)
")"
"with"
constr
(
pat
)
:=
wp_send_core
(
eexists
x1
;
eexists
x2
;
eexists
x3
)
with
pat
.
Tactic
Notation
"wp_send"
"("
uconstr
(
x1
)
uconstr
(
x2
)
uconstr
(
x3
)
uconstr
(
x4
)
")"
"with"
constr
(
pat
)
:=
wp_send_core
(
eexists
x1
;
eexists
x2
;
eexists
x3
;
eexists
x4
)
with
pat
.
Tactic
Notation
"wp_send"
"("
uconstr
(
x1
)
uconstr
(
x2
)
uconstr
(
x3
)
uconstr
(
x4
)
uconstr
(
x5
)
")"
"with"
constr
(
pat
)
:=
wp_send_core
(
eexists
x1
;
eexists
x2
;
eexists
x3
;
eexists
x4
;
eexists
x5
)
with
pat
.
Tactic
Notation
"wp_send"
"("
uconstr
(
x1
)
uconstr
(
x2
)
uconstr
(
x3
)
uconstr
(
x4
)
")"
uconstr
(
x5
)
uconstr
(
x6
)
")"
"with"
constr
(
pat
)
:=
wp_send_core
(
eexists
x1
;
eexists
x2
;
eexists
x3
;
eexists
x4
;
eexists
x5
;
eexists
x6
)
with
pat
.
Tactic
Notation
"wp_send"
"("
uconstr
(
x1
)
uconstr
(
x2
)
uconstr
(
x3
)
uconstr
(
x4
)
")"
uconstr
(
x5
)
uconstr
(
x6
)
uconstr
(
x7
)
")"
"with"
constr
(
pat
)
:=
wp_send_core
(
eexists
x1
;
eexists
x2
;
eexists
x3
;
eexists
x4
;
eexists
x5
;
eexists
x6
;
eexists
x7
)
with
pat
.
Tactic
Notation
"wp_send"
"("
uconstr
(
x1
)
uconstr
(
x2
)
uconstr
(
x3
)
uconstr
(
x4
)
")"
uconstr
(
x5
)
uconstr
(
x6
)
uconstr
(
x7
)
uconstr
(
x8
)
")"
"with"
constr
(
pat
)
:=
wp_send_core
(
eexists
x1
;
eexists
x2
;
eexists
x3
;
eexists
x4
;
eexists
x5
;
eexists
x6
;
eexists
x7
;
eexists
x8
)
with
pat
.
Lemma
tac_wp_branch
`{
!
chanG
Σ
,
!
heapGS
Σ
}
Δ
i
j
K
Lemma
tac_wp_branch
`{
!
chanG
Σ
,
!
heapGS
Σ
}
Δ
i
j
K
c
p
P1
P2
(
p1
p2
:
iProto
Σ
)
Φ
:
c
p
P1
P2
(
p1
p2
:
iProto
Σ
)
Φ
:
...
@@ -501,5 +450,4 @@ Tactic Notation "wp_fork_chan" constr(prot) "as"
...
@@ -501,5 +450,4 @@ Tactic Notation "wp_fork_chan" constr(prot) "as"
wp_fork_chan
prot
as
c
pat
and
c
pat
.
wp_fork_chan
prot
as
c
pat
and
c
pat
.
Tactic
Notation
"wp_fork_chan"
constr
(
prot
)
:=
Tactic
Notation
"wp_fork_chan"
constr
(
prot
)
:=
let
iNew
:=
iFresh
in
wp_fork_chan
prot
as
?
"?"
.
wp_fork_chan
prot
as
?
iNew
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment