Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glen Mével
Iris
Commits
f85824ee
Commit
f85824ee
authored
Jan 14, 2022
by
Robbert Krebbers
Browse files
Merge branch 'pr-13969-take3' into 'master'
Fix bi_rewrite_relation hint priority See merge request
iris/iris!773
parents
5070f7f5
a9140f8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
coq-iris.opam
View file @
f85824ee
...
...
@@ -28,7 +28,7 @@ tags: [
depends: [
"coq" { (>= "8.13" & < "8.16~") | (= "dev") }
"coq-stdpp" { (= "dev.2022-01-1
3.0.607ee2b1
") | (= "dev") }
"coq-stdpp" { (= "dev.2022-01-1
4.1.ac02dbbd
") | (= "dev") }
]
build: ["./make-package" "iris" "-j%{jobs}%"]
...
...
iris/algebra/updates.v
View file @
f85824ee
...
...
@@ -52,8 +52,11 @@ Lemma cmra_update_exclusive `{!Exclusive x} y:
Proof
.
move
=>??[
z
|]=>[/
exclusiveN_l
[]|
_
].
by
apply
cmra_valid_validN
.
Qed
.
(** Updates form a preorder. *)
(** We set this rewrite relation's priority below the stdlib's
([impl], [iff], [eq], ...) and [≡] but above [⊑].
[eq] (at 100) < [≡] (at 150) < [cmra_update] (at 170) < [⊑] (at 200) *)
Global
Instance
cmra_update_rewrite_relation
:
RewriteRelation
(@
cmra_update
A
)
:
=
{}.
RewriteRelation
(@
cmra_update
A
)
|
170
:
=
{}.
Global
Instance
cmra_update_preorder
:
PreOrder
(@
cmra_update
A
).
Proof
.
split
.
...
...
iris/bi/interface.v
View file @
f85824ee
...
...
@@ -224,7 +224,11 @@ Global Arguments bi_persistently {PROP} _ : simpl never, rename.
Global
Arguments
bi_later
{
PROP
}
_
:
simpl
never
,
rename
.
Global
Hint
Extern
0
(
bi_entails
_
_
)
=>
reflexivity
:
core
.
Global
Instance
bi_rewrite_relation
(
PROP
:
bi
)
:
RewriteRelation
(@
bi_entails
PROP
)
:
=
{}.
(** We set this rewrite relation's priority below the stdlib's
([impl], [iff], [eq], ...) and [≡] but above [⊑].
[eq] (at 100) < [≡] (at 150) < [bi_entails _] (at 170) < [⊑] (at 200)
*)
Global
Instance
bi_rewrite_relation
(
PROP
:
bi
)
:
RewriteRelation
(@
bi_entails
PROP
)
|
170
:
=
{}.
Global
Instance
bi_inhabited
{
PROP
:
bi
}
:
Inhabited
PROP
:
=
populate
(
bi_pure
True
).
Notation
"P ⊢ Q"
:
=
(
bi_entails
P
%
I
Q
%
I
)
:
stdpp_scope
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment