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
12326eeb
Commit
12326eeb
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Support `absolutely` modality in `iAlways`.
parent
b69525df
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/monpred.v
+34
-0
34 additions, 0 deletions
theories/proofmode/monpred.v
with
34 additions
and
0 deletions
theories/proofmode/monpred.v
+
34
−
0
View file @
12326eeb
...
...
@@ -14,6 +14,33 @@ Proof. by rewrite /IsBiIndexRel. Qed.
Hint
Extern
1
(
IsBiIndexRel
_
_)
=>
unfold
IsBiIndexRel
;
assumption
:
typeclass_instances
.
Section
always_modalities
.
Context
{
I
:
biIndex
}
{
PROP
:
bi
}
.
Lemma
always_modality_absolutely_mixin
:
always_modality_mixin
(
@
monPred_absolutely
I
PROP
)
(
AIEnvFilter
Absolute
)
(
AIEnvForall
Absolute
)
.
Proof
.
split
;
eauto
using
bi
.
equiv_entails_sym
,
absolute_absolutely
,
monPred_absolutely_mono
,
monPred_absolutely_and
,
monPred_absolutely_sep_2
with
typeclass_instances
.
Qed
.
Definition
always_modality_absolutely
:=
AlwaysModality
_
always_modality_absolutely_mixin
.
(* We can only filter the spatial context in case the BI is affine *)
Lemma
always_modality_absolutely_filter_spatial_mixin
`{
BiAffine
PROP
}
:
always_modality_mixin
(
@
monPred_absolutely
I
PROP
)
(
AIEnvFilter
Absolute
)
(
AIEnvFilter
Absolute
)
.
Proof
.
split
;
eauto
using
bi
.
equiv_entails_sym
,
absolute_absolutely
,
monPred_absolutely_mono
,
monPred_absolutely_and
,
monPred_absolutely_sep_2
with
typeclass_instances
.
Qed
.
Definition
always_modality_absolutely_filter_spatial
`{
BiAffine
PROP
}
:=
AlwaysModality
_
always_modality_absolutely_filter_spatial_mixin
.
End
always_modalities
.
Section
bi
.
Context
{
I
:
biIndex
}
{
PROP
:
bi
}
.
Local
Notation
monPred
:=
(
monPred
I
PROP
)
.
...
...
@@ -23,6 +50,13 @@ Implicit Types 𝓟 𝓠 𝓡 : PROP.
Implicit
Types
φ
:
Prop
.
Implicit
Types
i
j
:
I
.
Global
Instance
from_always_absolutely
P
:
FromAlways
always_modality_absolutely
(
∀
ᵢ
P
)
P
|
1
.
Proof
.
by
rewrite
/
FromAlways
.
Qed
.
Global
Instance
from_always_absolutely_filter_spatial
`{
BiAffine
PROP
}
P
:
FromAlways
always_modality_absolutely_filter_spatial
(
∀
ᵢ
P
)
P
|
0
.
Proof
.
by
rewrite
/
FromAlways
.
Qed
.
Global
Instance
make_monPred_at_pure
φ
i
:
MakeMonPredAt
i
⌜
φ
⌝
⌜
φ
⌝.
Proof
.
by
rewrite
/
MakeMonPredAt
monPred_at_pure
.
Qed
.
Global
Instance
make_monPred_at_emp
i
:
MakeMonPredAt
i
emp
emp
.
...
...
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