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
Terraform modules
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
Yixuan Chen
Iris
Commits
eb0fb61d
Commit
eb0fb61d
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
let Coq infer the validity predicate
parent
2136375b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
heap_lang/heap.v
+3
-3
3 additions, 3 deletions
heap_lang/heap.v
program_logic/auth.v
+1
-1
1 addition, 1 deletion
program_logic/auth.v
with
4 additions
and
4 deletions
heap_lang/heap.v
+
3
−
3
View file @
eb0fb61d
...
...
@@ -43,7 +43,7 @@ Section heap.
Hint
Resolve
to_heap_valid
.
Global
Instance
heap_inv_proper
:
Proper
((
≡
)
==>
(
≡
))
(
heap_inv
HeapI
)
.
Proof
.
by
intros
h1
h2
;
fold_leibniz
=>
->
.
Qed
.
Proof
.
intros
h1
h2
.
by
fold_leibniz
=>
->
.
Qed
.
Lemma
heap_own_op
γ
σ1
σ2
:
(
heap_own
HeapI
γ
σ1
★
heap_own
HeapI
γ
σ2
)
%
I
...
...
@@ -59,7 +59,7 @@ Section heap.
Proof
.
(* TODO. *)
Abort
.
(* TODO:
Prove
equivalence to a big sum
.
*)
(* TODO:
Do we want
equivalence to a big sum
?
*)
Lemma
heap_alloc
N
σ
:
ownP
σ
⊑
pvs
N
N
(
∃
γ
,
heap_ctx
HeapI
γ
N
∧
heap_own
HeapI
γ
σ
)
.
...
...
@@ -73,7 +73,7 @@ Section heap.
P
⊑
wp
E
(
Load
(
Loc
l
))
Q
.
Proof
.
rewrite
/
heap_ctx
/
heap_own
.
intros
HN
Hl
Hctx
HP
.
eapply
(
auth_fsa
(
heap_inv
HeapI
)
(
wp_fsa
(
Load
_)
_)
(
λ
_,
True
)
id
)
.
eapply
(
auth_fsa
(
heap_inv
HeapI
)
(
wp_fsa
(
Load
_)
_)
id
)
.
{
eassumption
.
}
{
eassumption
.
}
rewrite
HP
=>{
HP
Hctx
HN
}
.
apply
sep_mono
;
first
done
.
apply
forall_intro
=>
hf
.
apply
wand_intro_l
.
rewrite
/
heap_inv
.
...
...
This diff is collapsed.
Click to expand it.
program_logic/auth.v
+
1
−
1
View file @
eb0fb61d
...
...
@@ -84,7 +84,7 @@ Section auth.
step-indices. However, since A is timeless, that should not be
a restriction. *)
Lemma
auth_fsa
{
X
:
Type
}
{
FSA
}
(
FSAs
:
FrameShiftAssertion
(
A
:=
X
)
FSA
)
Lv
L
`{
!
LocalUpdate
Lv
L
}
N
E
P
(
Q
:
X
→
iPropG
Λ
Σ
)
γ
a
:
L
`{
!
LocalUpdate
Lv
L
}
N
E
P
(
Q
:
X
→
iPropG
Λ
Σ
)
γ
a
:
nclose
N
⊆
E
→
P
⊑
auth_ctx
AuthI
γ
N
φ
→
P
⊑
(
auth_own
AuthI
γ
a
★
(
∀
a'
,
■✓
(
a
⋅
a'
)
★
▷
φ
(
a
⋅
a'
)
-★
...
...
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