Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Ike Mulder
Iris
Commits
b5ad0e0f
Commit
b5ad0e0f
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
minor formatting nits
parent
7fc1124c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
heap_lang/lib/lock.v
+3
-3
3 additions, 3 deletions
heap_lang/lib/lock.v
proofmode/coq_tactics.v
+2
-2
2 additions, 2 deletions
proofmode/coq_tactics.v
tests/heap_lang.v
+1
-1
1 addition, 1 deletion
tests/heap_lang.v
with
6 additions
and
6 deletions
heap_lang/lib/lock.v
+
3
−
3
View file @
b5ad0e0f
...
...
@@ -52,12 +52,12 @@ Lemma newlock_spec N (R : iProp) Φ :
(
heap_ctx
heapN
★
R
★
(
∀
l
,
is_lock
l
R
-★
Φ
(
LocV
l
)))
⊢
WP
newlock
#
()
{{
Φ
}}
.
Proof
.
iIntros
{?}
"(#Hh
&HR&
HΦ)"
.
rewrite
/
newlock
.
iIntros
{?}
"(#Hh
& HR &
HΦ)"
.
rewrite
/
newlock
.
wp_seq
.
iApply
wp_pvs
.
wp_alloc
l
as
"Hl"
.
iPvs
(
own_alloc
(
Excl
()))
as
{
γ
}
"Hγ"
;
first
done
.
iPvs
(
inv_alloc
N
_
(
lock_inv
γ
l
R
))
"[H
R Hl Hγ
]"
as
"#?"
;
first
done
.
iPvs
(
inv_alloc
N
_
(
lock_inv
γ
l
R
))
"
-
[H
Φ
]"
as
"#?"
;
first
done
.
{
iNext
.
iExists
false
.
by
iFrame
"Hl HR"
.
}
iPvsIntro
;
iApply
"HΦ"
.
iExists
N
,
γ
.
by
repeat
iSplit
.
iPvsIntro
.
iApply
"HΦ"
.
iExists
N
,
γ
.
by
repeat
iSplit
.
Qed
.
Lemma
acquire_spec
l
R
(
Φ
:
val
→
iProp
)
:
...
...
This diff is collapsed.
Click to expand it.
proofmode/coq_tactics.v
+
2
−
2
View file @
b5ad0e0f
...
...
@@ -570,7 +570,7 @@ Qed.
(** * Rewriting *)
Lemma
tac_rewrite
Δ
i
p
Pxy
(
lr
:
bool
)
Q
:
envs_lookup
i
Δ
=
Some
(
p
,
Pxy
)
→
∀
{
A
:
cofeT
}
x
y
(
Φ
:
A
→
uPred
M
),
∀
{
A
:
cofeT
}
(
x
y
:
A
)
(
Φ
:
A
→
uPred
M
),
Pxy
⊢
(
x
≡
y
)
%
I
→
Q
⊣⊢
Φ
(
if
lr
then
y
else
x
)
→
(
∀
n
,
Proper
(
dist
n
==>
dist
n
)
Φ
)
→
...
...
@@ -761,7 +761,7 @@ Global Instance or_destruct_later P Q1 Q2 :
Proof
.
rewrite
/
OrDestruct
=>
->
.
by
rewrite
later_or
.
Qed
.
Lemma
tac_or_destruct
Δ
Δ1
Δ2
i
p
j1
j2
P
P1
P2
Q
:
envs_lookup
i
Δ
=
Some
(
p
,
P
)
%
I
→
OrDestruct
P
P1
P2
→
envs_lookup
i
Δ
=
Some
(
p
,
P
)
→
OrDestruct
P
P1
P2
→
envs_simple_replace
i
p
(
Esnoc
Enil
j1
P1
)
Δ
=
Some
Δ1
→
envs_simple_replace
i
p
(
Esnoc
Enil
j2
P2
)
Δ
=
Some
Δ2
→
Δ1
⊢
Q
→
Δ2
⊢
Q
→
Δ
⊢
Q
.
...
...
This diff is collapsed.
Click to expand it.
tests/heap_lang.v
+
1
−
1
View file @
b5ad0e0f
...
...
@@ -70,6 +70,6 @@ Section ClosedProofs.
Proof
.
iProof
.
iIntros
"! Hσ"
.
iPvs
(
heap_alloc
nroot
)
"Hσ"
as
{
h
}
"[? _]"
;
first
by
rewrite
nclose_nroot
.
iApply
heap_e_spec
;
last
done
;
by
rewrite
nclose_nroot
.
iApply
heap_e_spec
;
last
done
;
by
rewrite
nclose_nroot
.
Qed
.
End
ClosedProofs
.
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