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
Gaëtan Gilbert
Iris
Commits
4eb6e55d
Commit
4eb6e55d
authored
7 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
AddModal instances for except0 and later, to recover the old behavior
parent
1622b639
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/proofmode/class_instances.v
+27
-3
27 additions, 3 deletions
theories/proofmode/class_instances.v
with
27 additions
and
3 deletions
theories/proofmode/class_instances.v
+
27
−
3
View file @
4eb6e55d
...
@@ -868,16 +868,16 @@ Proof.
...
@@ -868,16 +868,16 @@ Proof.
intros
.
rewrite
/
ElimModal
(
except_0_intro
(_
-∗
_))
.
intros
.
rewrite
/
ElimModal
(
except_0_intro
(_
-∗
_))
.
by
rewrite
-
except_0_sep
wand_elim_r
.
by
rewrite
-
except_0_sep
wand_elim_r
.
Qed
.
Qed
.
Global
Instance
elim_modal_timeless
_bupd
P
Q
:
Global
Instance
elim_modal_
later_
timeless
P
Q
:
Timeless
P
→
IsExcept0
Q
→
ElimModal
(
▷
P
)
P
Q
Q
.
Timeless
P
→
IsExcept0
Q
→
ElimModal
(
▷
P
)
P
Q
Q
.
Proof
.
Proof
.
intros
.
rewrite
/
ElimModal
(
except_0_intro
(_
-∗
_))
(
timeless
P
)
.
intros
.
rewrite
/
ElimModal
(
except_0_intro
(_
-∗
_))
(
timeless
P
)
.
by
rewrite
-
except_0_sep
wand_elim_r
.
by
rewrite
-
except_0_sep
wand_elim_r
.
Qed
.
Qed
.
Global
Instance
elim_modal_timeless
_bupd'
p
P
Q
:
Global
Instance
elim_modal_
later_if_
timeless
p
P
Q
:
Timeless
P
→
IsExcept0
Q
→
ElimModal
(
▷
?p
P
)
P
Q
Q
.
Timeless
P
→
IsExcept0
Q
→
ElimModal
(
▷
?p
P
)
P
Q
Q
.
Proof
.
Proof
.
destruct
p
;
simpl
;
auto
using
elim_modal_timeless
_bupd
.
destruct
p
;
simpl
;
auto
using
elim_modal_
later_
timeless
.
intros
_
_
.
by
rewrite
/
ElimModal
wand_elim_r
.
intros
_
_
.
by
rewrite
/
ElimModal
wand_elim_r
.
Qed
.
Qed
.
...
@@ -896,6 +896,30 @@ Qed.
...
@@ -896,6 +896,30 @@ Qed.
Global
Instance
add_modal_bupd
P
Q
:
AddModal
(|
==>
P
)
P
(|
==>
Q
)
.
Global
Instance
add_modal_bupd
P
Q
:
AddModal
(|
==>
P
)
P
(|
==>
Q
)
.
Proof
.
by
rewrite
/
AddModal
bupd_frame_r
wand_elim_r
bupd_trans
.
Qed
.
Proof
.
by
rewrite
/
AddModal
bupd_frame_r
wand_elim_r
bupd_trans
.
Qed
.
(* High priority to add a ▷ rather than a ◇ when P is timeless. *)
Global
Instance
add_modal_later_except_0
P
Q
:
Timeless
P
→
AddModal
(
▷
P
)
P
(
◇
Q
)
|
0
.
Proof
.
intros
.
rewrite
/
AddModal
(
except_0_intro
(_
-∗
_))
(
timeless
P
)
.
by
rewrite
-
except_0_sep
wand_elim_r
except_0_idemp
.
Qed
.
Global
Instance
add_modal_later
P
Q
:
Timeless
P
→
AddModal
(
▷
P
)
P
(
▷
Q
)
|
0
.
Proof
.
intros
.
rewrite
/
AddModal
(
except_0_intro
(_
-∗
_))
(
timeless
P
)
.
by
rewrite
-
except_0_sep
wand_elim_r
except_0_later
.
Qed
.
Global
Instance
add_modal_except_0
P
Q
:
AddModal
(
◇
P
)
P
(
◇
Q
)
.
Proof
.
intros
.
rewrite
/
AddModal
(
except_0_intro
(_
-∗
_))
.
by
rewrite
-
except_0_sep
wand_elim_r
except_0_idemp
.
Qed
.
Global
Instance
add_modal_except_0_later
P
Q
:
AddModal
(
◇
P
)
P
(
▷
Q
)
.
Proof
.
intros
.
rewrite
/
AddModal
(
except_0_intro
(_
-∗
_))
.
by
rewrite
-
except_0_sep
wand_elim_r
except_0_later
.
Qed
.
(** IsExcept0 *)
(** IsExcept0 *)
Global
Instance
is_except_0_except_0
P
:
IsExcept0
(
◇
P
)
.
Global
Instance
is_except_0_except_0
P
:
IsExcept0
(
◇
P
)
.
Proof
.
by
rewrite
/
IsExcept0
except_0_idemp
.
Qed
.
Proof
.
by
rewrite
/
IsExcept0
except_0_idemp
.
Qed
.
...
...
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