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
Tej Chajed
iris
Commits
8b4c7038
Commit
8b4c7038
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Misc logic.v stuff.
parent
edff0fe3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/logic.v
+10
-8
10 additions, 8 deletions
iris/logic.v
with
10 additions
and
8 deletions
iris/logic.v
+
10
−
8
View file @
8b4c7038
...
@@ -164,9 +164,6 @@ Program Definition uPred_valid {M : cmraT} (a : M) : uPred M :=
...
@@ -164,9 +164,6 @@ Program Definition uPred_valid {M : cmraT} (a : M) : uPred M :=
{|
uPred_holds
n
x
:=
validN
n
a
|}
.
{|
uPred_holds
n
x
:=
validN
n
a
|}
.
Solve
Obligations
with
naive_solver
eauto
2
using
cmra_valid_le
.
Solve
Obligations
with
naive_solver
eauto
2
using
cmra_valid_le
.
Definition
uPred_fixpoint
{
M
}
(
P
:
uPred
M
→
uPred
M
)
`{
!
Contractive
P
}
:
uPred
M
:=
fixpoint
P
(
uPred_const
True
)
.
Delimit
Scope
uPred_scope
with
I
.
Delimit
Scope
uPred_scope
with
I
.
Bind
Scope
uPred_scope
with
uPred
.
Bind
Scope
uPred_scope
with
uPred
.
Arguments
uPred_holds
{_}
_
%
I
_
_
.
Arguments
uPred_holds
{_}
_
%
I
_
_
.
...
@@ -184,6 +181,7 @@ Notation "∃ x .. y , P" :=
...
@@ -184,6 +181,7 @@ Notation "∃ x .. y , P" :=
(
uPred_exist
(
λ
x
,
.
.
(
uPred_exist
(
λ
y
,
P
))
..))
:
uPred_scope
.
(
uPred_exist
(
λ
x
,
.
.
(
uPred_exist
(
λ
y
,
P
))
..))
:
uPred_scope
.
Notation
"▷ P"
:=
(
uPred_later
P
)
(
at
level
20
)
:
uPred_scope
.
Notation
"▷ P"
:=
(
uPred_later
P
)
(
at
level
20
)
:
uPred_scope
.
Notation
"□ P"
:=
(
uPred_always
P
)
(
at
level
20
)
:
uPred_scope
.
Notation
"□ P"
:=
(
uPred_always
P
)
(
at
level
20
)
:
uPred_scope
.
Infix
"≡"
:=
uPred_eq
:
uPred_scope
.
Section
logic
.
Section
logic
.
Context
{
M
:
cmraT
}
.
Context
{
M
:
cmraT
}
.
...
@@ -197,6 +195,13 @@ Proof.
...
@@ -197,6 +195,13 @@ Proof.
*
intros
HPQ
;
split
;
intros
x
i
;
apply
HPQ
.
*
intros
HPQ
;
split
;
intros
x
i
;
apply
HPQ
.
*
by
intros
[
HPQ
HQP
];
intros
x
i
?;
split
;
[
apply
HPQ
|
apply
HQP
]
.
*
by
intros
[
HPQ
HQP
];
intros
x
i
?;
split
;
[
apply
HPQ
|
apply
HQP
]
.
Qed
.
Qed
.
Global
Instance
uPred_entails_proper
:
Proper
((
≡
)
==>
(
≡
)
==>
iff
)
((
⊆
)
:
relation
(
uPred
M
))
.
Proof
.
intros
P1
P2
HP
Q1
Q2
HQ
;
rewrite
uPred_equiv_spec
in
HP
,
HQ
;
split
;
intros
.
*
by
rewrite
(
proj2
HP
),
<-
(
proj1
HQ
)
.
*
by
rewrite
(
proj1
HP
),
<-
(
proj2
HQ
)
.
Qed
.
(** Non-expansiveness *)
(** Non-expansiveness *)
Global
Instance
uPred_const_proper
:
Proper
(
iff
==>
(
≡
))
(
@
uPred_const
M
)
.
Global
Instance
uPred_const_proper
:
Proper
(
iff
==>
(
≡
))
(
@
uPred_const
M
)
.
...
@@ -285,6 +290,8 @@ Global Instance uPred_own_proper :
...
@@ -285,6 +290,8 @@ Global Instance uPred_own_proper :
Proper
((
≡
)
==>
(
≡
))
(
@
uPred_own
M
)
:=
ne_proper
_
.
Proper
((
≡
)
==>
(
≡
))
(
@
uPred_own
M
)
:=
ne_proper
_
.
(** Introduction and elimination rules *)
(** Introduction and elimination rules *)
Lemma
uPred_const_intro
P
(
Q
:
Prop
)
:
Q
→
P
⊆
uPred_const
Q
.
Proof
.
by
intros
???
.
Qed
.
Lemma
uPred_True_intro
P
:
P
⊆
True
%
I
.
Lemma
uPred_True_intro
P
:
P
⊆
True
%
I
.
Proof
.
done
.
Qed
.
Proof
.
done
.
Qed
.
Lemma
uPred_False_elim
P
:
False
%
I
⊆
P
.
Lemma
uPred_False_elim
P
:
False
%
I
⊆
P
.
...
@@ -457,9 +464,4 @@ Lemma uPred_own_valid (a : M) : uPred_own a ⊆ uPred_valid a.
...
@@ -457,9 +464,4 @@ Lemma uPred_own_valid (a : M) : uPred_own a ⊆ uPred_valid a.
Proof
.
Proof
.
intros
x
n
Hv
[
a'
Hx
];
simpl
;
rewrite
Hx
in
Hv
;
eauto
using
cmra_valid_op_l
.
intros
x
n
Hv
[
a'
Hx
];
simpl
;
rewrite
Hx
in
Hv
;
eauto
using
cmra_valid_op_l
.
Qed
.
Qed
.
(* Fix *)
Lemma
uPred_fixpoint_unfold
(
P
:
uPred
M
→
uPred
M
)
`{
!
Contractive
P
}
:
uPred_fixpoint
P
≡
P
(
uPred_fixpoint
P
)
.
Proof
.
apply
fixpoint_unfold
.
Qed
.
End
logic
.
End
logic
.
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