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
Jonas Kastberg
iris
Commits
1cc547f4
Commit
1cc547f4
authored
1 year ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Proofmode support
parent
a2ef967c
No related branches found
No related tags found
No related merge requests found
Pipeline
#82567
failed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/program_logic/step_update.v
+52
-1
52 additions, 1 deletion
iris/program_logic/step_update.v
with
52 additions
and
1 deletion
iris/program_logic/step_update.v
+
52
−
1
View file @
1cc547f4
...
@@ -220,7 +220,7 @@ Section with_Σ.
...
@@ -220,7 +220,7 @@ Section with_Σ.
Qed
.
Qed
.
Lemma
step_update_mono
E1
E2
E3
P
Q
:
Lemma
step_update_mono
E1
E2
E3
P
Q
:
E
2
⊆
E
1
→
(|
~
{
E
2
,
E3
}
~>
P
)
-∗
(
P
=
{
E
2
,
E
1
}
=∗
Q
)
-∗
|
~
{
E
1
,
E3
}
~>
Q
.
E
1
⊆
E
2
→
(|
~
{
E
1
,
E3
}
~>
P
)
-∗
(
P
=
{
E
1
,
E
2
}
=∗
Q
)
-∗
|
~
{
E
2
,
E3
}
~>
Q
.
Proof
.
Proof
.
iIntros
(
Hle
)
"HP HPQ"
.
iIntros
(
σ
n
κ
κs
nt
)
"Hσ"
.
iIntros
(
Hle
)
"HP HPQ"
.
iIntros
(
σ
n
κ
κs
nt
)
"Hσ"
.
iApply
fupd_mask_weaken
;
[
done
|]
.
iIntros
"Hclose"
.
iApply
fupd_mask_weaken
;
[
done
|]
.
iIntros
"Hclose"
.
...
@@ -258,3 +258,54 @@ Notation "|~~| P" := (|~{∅}~| P) (at level 99, P at level 200, format "'[ ' |
...
@@ -258,3 +258,54 @@ Notation "|~~| P" := (|~{∅}~| P) (at level 99, P at level 200, format "'[ ' |
Notation
"|~{ E1 , E2 }~> P"
:=
(
step_update
E1
E2
P
)
(
at
level
99
,
P
at
level
200
,
format
"'[ ' |~{ E1 , E2 }~> '/' P ']'"
)
.
Notation
"|~{ E1 , E2 }~> P"
:=
(
step_update
E1
E2
P
)
(
at
level
99
,
P
at
level
200
,
format
"'[ ' |~{ E1 , E2 }~> '/' P ']'"
)
.
Notation
"|~{ E }~> P"
:=
(
step_update
E
∅
P
)
(
at
level
99
,
P
at
level
200
,
format
"'[ ' |~{ E }~> '/' P ']'"
)
.
Notation
"|~{ E }~> P"
:=
(
step_update
E
∅
P
)
(
at
level
99
,
P
at
level
200
,
format
"'[ ' |~{ E }~> '/' P ']'"
)
.
Notation
"|~~> P"
:=
(|
~
{
∅
}
~>
P
)
(
at
level
99
,
P
at
level
200
,
format
"'[ ' |~~> '/' P ']'"
)
.
Notation
"|~~> P"
:=
(|
~
{
∅
}
~>
P
)
(
at
level
99
,
P
at
level
200
,
format
"'[ ' |~~> '/' P ']'"
)
.
Section
with_Σ
.
Context
`{
iG
:
irisGS_gen
hlc
Λ
Σ
}
.
Class
IntoStep
(
P
Q
:
iProp
Σ
)
:=
into_step
:
P
⊢
|
~~>
Q
.
Instance
into_step_id
P
:
IntoStep
(|
~~>
P
)
P
|
0
.
Proof
.
rewrite
/
IntoStep
.
by
iIntros
"HP"
.
Qed
.
Instance
into_step_intro
P
:
IntoStep
P
P
|
1
.
Proof
.
rewrite
/
IntoStep
.
by
iApply
step_update_intro
.
Qed
.
Lemma
modality_step_mixin
:
modality_mixin
(
@
step_update
hlc
Λ
Σ
iG
∅
∅
)
(
MIEnvId
)
(
MIEnvTransform
IntoStep
)
.
Proof
.
split
;
simpl
.
-
iIntros
(
P
)
.
by
iApply
step_update_intro
.
-
rewrite
/
IntoStep
.
iIntros
(
P
Q
HPQ
)
"HP"
.
by
iApply
HPQ
.
-
iIntros
"H"
.
by
iApply
step_update_intro
.
-
iIntros
(
P
Q
HPQ
)
"HP"
.
iApply
(
step_update_mono
with
"HP"
);
[
done
|]
.
iIntros
"HP!>"
.
by
iApply
HPQ
.
-
iIntros
(
P
Q
)
"[HP HQ]"
.
iDestruct
(
step_update_comm
with
"HP HQ"
)
as
"HPQ"
;
[
set_solver
|]
.
by
rewrite
right_id_L
.
Qed
.
Definition
modality_step
:=
Modality
_
(
modality_step_mixin
)
.
Global
Instance
from_modality_step
P
:
FromModal
True
(
modality_step
)
(|
~~>
P
)
(|
~~>
P
)
P
.
Proof
.
by
rewrite
/
FromModal
/=.
Qed
.
Instance
elim_modal_step
p
P
Q
:
ElimModal
True
p
false
(|
==>
P
)
P
(|
~~>
Q
)
(|
~~>
Q
)
.
Proof
.
destruct
p
.
-
rewrite
/
ElimModal
.
iIntros
(_)
"[HP HPQ]"
.
iDestruct
"HP"
as
"#HP"
.
iApply
step_update_open
.
iMod
"HP"
.
iDestruct
(
"HPQ"
with
"HP"
)
as
"HQ"
.
iModIntro
.
iIntros
"!>"
.
by
iModIntro
.
-
rewrite
/
ElimModal
.
iIntros
(_)
"[HP HPQ]"
.
iApply
step_update_open
.
iMod
"HP"
.
iDestruct
(
"HPQ"
with
"HP"
)
as
"HQ"
.
by
iIntros
"!>!>!>"
.
Qed
.
Lemma
my_lemma
P
Q
:
(|
~~>
P
)
-∗
(
P
-∗
Q
)
-∗
|
~~>
Q
.
Proof
.
iIntros
"HP HPQ"
.
iIntros
"!>"
.
by
iApply
"HPQ"
.
Qed
.
Lemma
my_lemma2
P
Q
:
(|
~~>
P
)
-∗
(|
==>
P
-∗
Q
)
-∗
|
~~>
Q
.
Proof
.
iIntros
"HP HPQ"
.
iMod
"HPQ"
.
iIntros
"!>"
.
by
iApply
"HPQ"
.
Qed
.
End
with_Σ
.
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