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
William Mansky
Iris
Commits
ff508ad9
Commit
ff508ad9
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.mpi-sws.org:FP/iris-coq
parents
c55672d8
b90854c7
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
algebra/upred.v
+16
-20
16 additions, 20 deletions
algebra/upred.v
heap_lang/derived.v
+1
-1
1 addition, 1 deletion
heap_lang/derived.v
heap_lang/lifting.v
+3
-4
3 additions, 4 deletions
heap_lang/lifting.v
with
20 additions
and
25 deletions
algebra/upred.v
+
16
−
20
View file @
ff508ad9
...
...
@@ -833,21 +833,31 @@ Proof. done. Qed.
Lemma
valid_weaken
{
A
:
cmraT
}
(
a
b
:
A
)
:
✓
(
a
⋅
b
)
⊑
✓
a
.
Proof
.
intros
r
n
_;
apply
cmra_validN_op_l
.
Qed
.
(* Own and valid derived *)
Lemma
ownM_invalid
(
a
:
M
)
:
¬
✓
{
0
}
a
→
uPred_ownM
a
⊑
False
.
Proof
.
by
intros
;
rewrite
ownM_valid
valid_elim
.
Qed
.
Global
Instance
ownM_mono
:
Proper
(
flip
(
≼
)
==>
(
⊑
))
(
@
uPred_ownM
M
)
.
Proof
.
move
=>
a
b
[
c
H
]
.
rewrite
H
ownM_op
.
eauto
.
Qed
.
(* Products *)
Lemma
prod_equivI
{
A
B
:
cofeT
}
(
x
y
:
A
*
B
)
:
(
x
≡
y
)
%
I
≡
(
x
.
1
≡
y
.
1
∧
x
.
2
≡
y
.
2
:
uPred
M
)
%
I
.
Proof
.
done
.
Qed
.
Lemma
prod_validI
{
A
B
:
cmraT
}
(
x
:
A
*
B
)
:
(
✓
x
)
%
I
≡
(
✓
x
.
1
∧
✓
x
.
2
:
uPred
M
)
%
I
.
Proof
.
done
.
Qed
.
(* Later *)
Lemma
later_equivI
{
A
:
cofeT
}
(
x
y
:
later
A
)
:
(
x
≡
y
)
%
I
≡
(
▷
(
later_car
x
≡
later_car
y
)
:
uPred
M
)
%
I
.
Proof
.
done
.
Qed
.
(* Own and valid derived *)
Lemma
ownM_invalid
(
a
:
M
)
:
¬
✓
{
0
}
a
→
uPred_ownM
a
⊑
False
.
Proof
.
by
intros
;
rewrite
ownM_valid
valid_elim
.
Qed
.
Global
Instance
ownM_mono
:
Proper
(
flip
(
≼
)
==>
(
⊑
))
(
@
uPred_ownM
M
)
.
Proof
.
move
=>
a
b
[
c
H
]
.
rewrite
H
ownM_op
.
eauto
.
Qed
.
(* Discrete *)
(* For equality, there already is timeless_eq *)
Lemma
discrete_validI
{
A
:
cofeT
}
`{
∀
x
:
A
,
Timeless
x
}
`{
Op
A
,
Valid
A
,
Unit
A
,
Minus
A
}
(
ra
:
RA
A
)
(
x
:
discreteRA
ra
)
:
(
✓
x
)
%
I
≡
(
■
✓
x
:
uPred
M
)
%
I
.
Proof
.
done
.
Qed
.
(* Timeless *)
Lemma
timelessP_spec
P
:
TimelessP
P
↔
∀
x
n
,
✓
{
n
}
x
→
P
0
x
→
P
n
x
.
...
...
@@ -962,23 +972,9 @@ Proof. by rewrite -(always_always Q); apply always_entails_r'. Qed.
End
uPred_logic
.
Section
discrete
.
Context
{
A
:
cofeT
}
`{
∀
x
:
A
,
Timeless
x
}
.
Context
{
op
:
Op
A
}
{
v
:
Valid
A
}
`{
Unit
A
,
Minus
A
}
(
ra
:
RA
A
)
.
(** Internalized properties of discrete RAs *)
(* For equality, there already is timeless_eq *)
Lemma
discrete_validI
{
M
}
(
x
:
discreteRA
ra
)
:
(
✓
x
)
%
I
≡
(
■
✓
x
:
uPred
M
)
%
I
.
Proof
.
apply
(
anti_symm
(
⊑
))
.
-
move
=>?
n
?
.
done
.
-
move
=>?
n
?
?
.
by
apply
:
discrete_valid
.
Qed
.
End
discrete
.
(* Hint DB for the logic *)
Create
HintDb
I
.
Hint
Resolve
const_intro
.
Hint
Resolve
or_elim
or_intro_l'
or_intro_r'
:
I
.
Hint
Resolve
and_intro
and_elim_l'
and_elim_r'
:
I
.
Hint
Resolve
always_mono
:
I
.
...
...
This diff is collapsed.
Click to expand it.
heap_lang/derived.v
+
1
−
1
View file @
ff508ad9
...
...
@@ -30,7 +30,7 @@ Proof.
by
rewrite
-
wp_let'
//=
?to_of_val
?subst_empty
.
Qed
.
Lemma
wp_skip
E
Q
:
▷
(
Q
(
LitV
LitUnit
))
⊑
wp
E
Skip
Q
.
Lemma
wp_skip
E
Q
:
▷
(
Q
(
LitV
LitUnit
))
⊑
wp
E
Skip
Q
.
Proof
.
rewrite
-
wp_seq
-
wp_value
//
-
wp_value
//.
Qed
.
Lemma
wp_le
E
(
n1
n2
:
Z
)
P
Q
:
...
...
This diff is collapsed.
Click to expand it.
heap_lang/lifting.v
+
3
−
4
View file @
ff508ad9
...
...
@@ -76,13 +76,12 @@ Proof.
Qed
.
(** Base axioms for core primitives of the language: Stateless reductions *)
Lemma
wp_fork
E
e
:
▷
wp
(
Σ
:=
Σ
)
coPset_all
e
(
λ
_,
True
)
⊑
wp
E
(
Fork
e
)
(
λ
v
,
v
=
LitV
LitUnit
)
.
Lemma
wp_fork
E
e
Q
:
(
▷
Q
(
LitV
LitUnit
)
★
▷
wp
(
Σ
:=
Σ
)
coPset_all
e
(
λ
_,
True
)
)
⊑
wp
E
(
Fork
e
)
Q
.
Proof
.
rewrite
-
(
wp_lift_pure_det_step
(
Fork
e
)
(
Lit
LitUnit
)
(
Some
e
))
//=
;
last
by
intros
;
inv_step
;
eauto
.
apply
later_mono
,
sep_intro_True_l
;
last
done
.
by
rewrite
-
(
wp_value
_
_
(
Lit
_))
//
;
apply
const_intro
.
rewrite
later_sep
-
(
wp_value
_
_
(
Lit
_))
//.
Qed
.
(* For the lemmas involving substitution, we only derive a preliminary version.
...
...
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