Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-atomic
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
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
FP
iris-atomic
Commits
b9c66be3
Commit
b9c66be3
authored
8 years ago
by
Zhen Zhang
Browse files
Options
Downloads
Patches
Plain Diff
stronger empty casE
parent
445187e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
treiber_stack.v
+7
-4
7 additions, 4 deletions
treiber_stack.v
with
7 additions
and
4 deletions
treiber_stack.v
+
7
−
4
View file @
b9c66be3
...
@@ -87,7 +87,8 @@ Section proof.
...
@@ -87,7 +87,8 @@ Section proof.
Definition
pop_triple
(
s
:
loc
)
:=
Definition
pop_triple
(
s
:
loc
)
:=
atomic_triple
(
fun
xs
=>
is_stack
s
xs
)
%
I
atomic_triple
(
fun
xs
=>
is_stack
s
xs
)
%
I
(
fun
xs
ret
=>
ret
=
NONEV
∨
(
∃
x
,
ret
=
SOMEV
x
★
□
R
x
))
%
I
(
*
FIXME
:
we
can
give
a
stronger
one
*
)
(
fun
xs
ret
=>
(
ret
=
NONEV
∧
xs
=
[]
∧
is_stack
s
[])
∨
(
∃
x
,
ret
=
SOMEV
x
★
□
R
x
))
%
I
(
*
FIXME
:
we
can
give
a
stronger
one
*
)
(
nclose
heapN
)
(
nclose
heapN
)
⊤
⊤
(
pop
#
s
).
(
pop
#
s
).
...
@@ -104,9 +105,11 @@ Section proof.
...
@@ -104,9 +105,11 @@ Section proof.
destruct
xs
as
[
|
y
'
xs
'
].
destruct
xs
as
[
|
y
'
xs
'
].
-
simpl
.
iDestruct
"Hxs"
as
(
hd
)
"[Hs Hhd]"
.
-
simpl
.
iDestruct
"Hxs"
as
(
hd
)
"[Hs Hhd]"
.
wp_load
.
iDestruct
"Hvs'"
as
"[_ Hvs']"
.
wp_load
.
iDestruct
"Hvs'"
as
"[_ Hvs']"
.
iVs
(
"Hvs'"
$
!
NONEV
with
"[]"
)
as
"HQ"
;
first
by
iLeft
.
iDestruct
"Hhd"
as
(
q
)
"[Hhd Hhd']"
.
iVsIntro
.
wp_let
.
iDestruct
"Hhd"
as
(
q
)
"Hhd"
.
iVs
(
"Hvs'"
$
!
NONEV
with
"[-Hhd]"
)
as
"HQ"
.
wp_load
.
wp_match
.
{
iLeft
.
iSplit
=>
//. iSplit=>//.
iExists
hd
.
iFrame
.
rewrite
/
is_stack
'
.
eauto
.
}
iVsIntro
.
wp_let
.
wp_load
.
wp_match
.
iVsIntro
.
by
iExists
[].
iVsIntro
.
by
iExists
[].
-
simpl
.
iDestruct
"Hxs"
as
(
hd
)
"[Hs Hhd]"
.
-
simpl
.
iDestruct
"Hxs"
as
(
hd
)
"[Hs Hhd]"
.
simpl
.
iDestruct
"Hhd"
as
(
hd
'
q
)
"([Hhd Hhd'] & #Hy' & Hxs')"
.
simpl
.
iDestruct
"Hhd"
as
(
hd
'
q
)
"([Hhd Hhd'] & #Hy' & Hxs')"
.
...
...
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