Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Rice Wine
Iris
Commits
280d91b0
Commit
280d91b0
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Clean up some ndisjoint stuff in the proofmode tactics.
parent
4f918d4a
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
heap_lang/proofmode.v
+5
-5
5 additions, 5 deletions
heap_lang/proofmode.v
program_logic/namespaces.v
+2
-0
2 additions, 0 deletions
program_logic/namespaces.v
proofmode/invariants.v
+2
-2
2 additions, 2 deletions
proofmode/invariants.v
proofmode/sts.v
+1
-1
1 addition, 1 deletion
proofmode/sts.v
with
10 additions
and
8 deletions
heap_lang/proofmode.v
+
5
−
5
View file @
280d91b0
...
...
@@ -105,7 +105,7 @@ Tactic Notation "wp_alloc" ident(l) "as" constr(H) :=
[
let
e'
:=
match
goal
with
|
-
to_val
?e'
=
_
=>
e'
end
in
wp_done
||
fail
"wp_alloc:"
e'
"not a value"
|
iAssumption
||
fail
"wp_alloc: cannot find heap_ctx"
|
done
||
eauto
with
ndisj
|
solve_
ndisj
|
apply
_
|
first
[
intros
l
|
fail
1
"wp_alloc:"
l
"not fresh"
];
eexists
;
split
;
...
...
@@ -126,7 +126,7 @@ Tactic Notation "wp_load" :=
|
fail
1
"wp_load: cannot find 'Load' in"
e
];
eapply
tac_wp_load
;
[
iAssumption
||
fail
"wp_load: cannot find heap_ctx"
|
done
||
eauto
with
ndisj
|
solve_
ndisj
|
apply
_
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦
{_}
_)
%
I
)
=>
l
end
in
iAssumptionCore
||
fail
"wp_cas_fail: cannot find"
l
"↦ ?"
...
...
@@ -145,7 +145,7 @@ Tactic Notation "wp_store" :=
[
let
e'
:=
match
goal
with
|
-
to_val
?e'
=
_
=>
e'
end
in
wp_done
||
fail
"wp_store:"
e'
"not a value"
|
iAssumption
||
fail
"wp_store: cannot find heap_ctx"
|
done
||
eauto
with
ndisj
|
solve_
ndisj
|
apply
_
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦
{_}
_)
%
I
)
=>
l
end
in
iAssumptionCore
||
fail
"wp_store: cannot find"
l
"↦ ?"
...
...
@@ -167,7 +167,7 @@ Tactic Notation "wp_cas_fail" :=
|
let
e'
:=
match
goal
with
|
-
to_val
?e'
=
_
=>
e'
end
in
wp_done
||
fail
"wp_cas_fail:"
e'
"not a value"
|
iAssumption
||
fail
"wp_cas_fail: cannot find heap_ctx"
|
done
||
eauto
with
ndisj
|
solve_
ndisj
|
apply
_
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦
{_}
_)
%
I
)
=>
l
end
in
iAssumptionCore
||
fail
"wp_cas_fail: cannot find"
l
"↦ ?"
...
...
@@ -189,7 +189,7 @@ Tactic Notation "wp_cas_suc" :=
|
let
e'
:=
match
goal
with
|
-
to_val
?e'
=
_
=>
e'
end
in
wp_done
||
fail
"wp_cas_suc:"
e'
"not a value"
|
iAssumption
||
fail
"wp_cas_suc: cannot find heap_ctx"
|
done
||
eauto
with
ndisj
|
solve_
ndisj
|
apply
_
|
let
l
:=
match
goal
with
|
-
_
=
Some
(_,
(
?l
↦
{_}
_)
%
I
)
=>
l
end
in
iAssumptionCore
||
fail
"wp_cas_suc: cannot find"
l
"↦ ?"
...
...
This diff is collapsed.
Click to expand it.
program_logic/namespaces.v
+
2
−
0
View file @
280d91b0
...
...
@@ -67,3 +67,5 @@ Hint Resolve ndisj_subseteq_difference : ndisj.
Hint
Extern
0
(_
.
@
_
⊥
_
.
@
_)
=>
apply
ndot_ne_disjoint
;
congruence
:
ndisj
.
Hint
Resolve
ndot_preserve_disjoint_l
:
ndisj
.
Hint
Resolve
ndot_preserve_disjoint_r
:
ndisj
.
Ltac
solve_ndisj
:=
eauto
with
ndisj
.
This diff is collapsed.
Click to expand it.
proofmode/invariants.v
+
2
−
2
View file @
280d91b0
...
...
@@ -39,7 +39,7 @@ Tactic Notation "iInvCore" constr(N) "as" constr(H) :=
[
let
P
:=
match
goal
with
|
-
IsFSA
?P
_
_
_
_
=>
P
end
in
apply
_
||
fail
"iInv: cannot viewshift in goal"
P
|
try
fast_done
(* atomic *)
|
done
||
eauto
with
ndisj
(* [eauto with ndisj] is slow *)
|
solve_ndisj
|
iAssumption
||
fail
"iInv: invariant"
N
"not found"
|
env_cbv
;
reflexivity
|
simpl
(* get rid of FSAs *)
]
.
...
...
@@ -65,7 +65,7 @@ Tactic Notation "iInvCore>" constr(N) "as" constr(H) :=
[
let
P
:=
match
goal
with
|
-
IsFSA
?P
_
_
_
_
=>
P
end
in
apply
_
||
fail
"iInv: cannot viewshift in goal"
P
|
try
fast_done
(* atomic *)
|
done
||
eauto
with
ndisj
(* [eauto with ndisj] is slow *)
|
solve_ndisj
|
iAssumption
||
fail
"iOpenInv: invariant"
N
"not found"
|
let
P
:=
match
goal
with
|
-
TimelessP
?P
=>
P
end
in
apply
_
||
fail
"iInv:"
P
"not timeless"
...
...
This diff is collapsed.
Click to expand it.
proofmode/sts.v
+
1
−
1
View file @
280d91b0
...
...
@@ -41,6 +41,6 @@ Tactic Notation "iSts" constr(H) "as"
|
try
fast_done
(* atomic *)
|
iAssumptionCore
||
fail
"iSts:"
H
"not found"
|
iAssumption
||
fail
"iSts: invariant not found"
|
done
||
eauto
with
ndisj
(* [eauto with ndisj] is slow *)
|
solve_ndisj
|
intros
s
Hs
;
eexists
;
split
;
[
env_cbv
;
reflexivity
|
simpl
]]
.
Tactic
Notation
"iSts"
constr
(
H
)
"as"
simple_intropattern
(
s
)
:=
iSts
H
as
s
?
.
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