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
128c9125
Commit
128c9125
authored
7 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Tweak.
parent
46ffdc4a
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/bi/embedding.v
+4
-3
4 additions, 3 deletions
theories/bi/embedding.v
with
4 additions
and
3 deletions
theories/bi/embedding.v
+
4
−
3
View file @
128c9125
...
...
@@ -37,6 +37,7 @@ Class SbiEmbedding (PROP1 PROP2 : sbi) `{BiEmbed PROP1 PROP2} := {
Section
bi_embedding
.
Context
`{
BiEmbedding
PROP1
PROP2
}
.
Local
Notation
bi_embed
:=
(
bi_embed
(
A
:=
PROP1
)
(
B
:=
PROP2
))
.
Local
Notation
"⎡ P ⎤"
:=
(
bi_embed
P
)
:
bi_scope
.
Implicit
Types
P
Q
R
:
PROP1
.
Global
Instance
bi_embed_proper
:
Proper
((
≡
)
==>
(
≡
))
bi_embed
.
...
...
@@ -49,7 +50,7 @@ Section bi_embedding.
rewrite
EQ
//.
Qed
.
Lemma
bi_embed_valid
(
P
:
PROP1
)
:
bi_embed
P
↔
P
.
Lemma
bi_embed_valid
(
P
:
PROP1
)
:
⎡
P
⎤%
I
↔
P
.
Proof
.
by
rewrite
/
bi_valid
-
bi_embed_emp
;
split
=>?;
[
apply
(
inj
bi_embed
)|
f_equiv
]
.
Qed
.
...
...
@@ -78,7 +79,7 @@ Section bi_embedding.
apply
bi
.
equiv_spec
;
split
;
[|
apply
bi_embed_wand_2
]
.
apply
bi
.
wand_intro_l
.
by
rewrite
-
bi_embed_sep
bi
.
wand_elim_r
.
Qed
.
Lemma
bi_embed_pure
φ
:
bi_embed
⌜
φ
⌝
⊣⊢
⌜
φ
⌝.
Lemma
bi_embed_pure
φ
:
⎡
⌜
φ
⌝
⎤
⊣⊢
⌜
φ
⌝.
Proof
.
rewrite
(
@
bi
.
pure_alt
PROP1
)
(
@
bi
.
pure_alt
PROP2
)
bi_embed_exist
.
do
2
f_equiv
.
apply
bi
.
equiv_spec
.
split
;
[
apply
bi
.
True_intro
|]
.
...
...
@@ -86,7 +87,7 @@ Section bi_embedding.
last
apply
bi
.
True_intro
.
apply
bi
.
impl_intro_l
.
by
rewrite
right_id
.
Qed
.
Lemma
bi_embed_internal_eq
(
A
:
ofeT
)
(
x
y
:
A
)
:
bi_embed
(
x
≡
y
)
⊣⊢
x
≡
y
.
Lemma
bi_embed_internal_eq
(
A
:
ofeT
)
(
x
y
:
A
)
:
⎡
x
≡
y
⎤
⊣⊢
x
≡
y
.
Proof
.
apply
bi
.
equiv_spec
;
split
;
[
apply
bi_embed_internal_eq_1
|]
.
etrans
;
[
apply
(
bi
.
internal_eq_rewrite
x
y
(
λ
y
,
⎡
x
≡
y
⎤%
I
));
solve_proper
|]
.
...
...
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