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
William Mansky
Iris
Commits
33e57825
Commit
33e57825
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add internal_eq_entails uPred law
parent
58a14ab9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/base_logic/bi.v
+9
-1
9 additions, 1 deletion
theories/base_logic/bi.v
theories/base_logic/upred.v
+8
-0
8 additions, 0 deletions
theories/base_logic/upred.v
with
17 additions
and
1 deletion
theories/base_logic/bi.v
+
9
−
1
View file @
33e57825
...
...
@@ -180,7 +180,7 @@ Global Instance ownM_ne : NonExpansive (@uPred_ownM M) := uPred_primitive.ownM_n
Global
Instance
cmra_valid_ne
{
A
:
cmraT
}
:
NonExpansive
(
@
uPred_cmra_valid
M
A
)
:=
uPred_primitive
.
cmra_valid_ne
.
(** Re-exporting primitive
Own and valid lemmas
*)
(** Re-exporting primitive
lemmas that are not in any interface
*)
Lemma
ownM_op
(
a1
a2
:
M
)
:
uPred_ownM
(
a1
⋅
a2
)
⊣⊢
uPred_ownM
a1
∗
uPred_ownM
a2
.
Proof
.
exact
:
uPred_primitive
.
ownM_op
.
Qed
.
...
...
@@ -194,6 +194,14 @@ Lemma bupd_ownM_updateP x (Φ : M → Prop) :
x
~~>:
Φ
→
uPred_ownM
x
⊢
|
==>
∃
y
,
⌜
Φ
y
⌝
∧
uPred_ownM
y
.
Proof
.
exact
:
uPred_primitive
.
bupd_ownM_updateP
.
Qed
.
(* This is really just a special case of an entailment
between two [siProp], but we do not have the infrastructure
to express the more general case. This temporary proof rule will
be replaced by the proper one eventually. *)
Lemma
internal_eq_entails
{
A
B
:
ofeT
}
(
a1
a2
:
A
)
(
b1
b2
:
B
)
:
(
∀
n
,
a1
≡
{
n
}
≡
a2
→
b1
≡
{
n
}
≡
b2
)
→
a1
≡
a2
⊢
b1
≡
b2
.
Proof
.
exact
:
uPred_primitive
.
internal_eq_entails
.
Qed
.
Lemma
ownM_valid
(
a
:
M
)
:
uPred_ownM
a
⊢
✓
a
.
Proof
.
exact
:
uPred_primitive
.
ownM_valid
.
Qed
.
Lemma
cmra_valid_intro
{
A
:
cmraT
}
P
(
a
:
A
)
:
✓
a
→
P
⊢
(
✓
a
)
.
...
...
This diff is collapsed.
Click to expand it.
theories/base_logic/upred.v
+
8
−
0
View file @
33e57825
...
...
@@ -722,6 +722,14 @@ Proof.
unseal
=>
?
.
split
=>
n
x
?
.
by
apply
(
discrete_iff
n
)
.
Qed
.
(* This is really just a special case of an entailment
between two [siProp], but we do not have the infrastructure
to express the more general case. This temporary proof rule will
be replaced by the proper one eventually. *)
Lemma
internal_eq_entails
{
A
B
:
ofeT
}
(
a1
a2
:
A
)
(
b1
b2
:
B
)
:
(
∀
n
,
a1
≡
{
n
}
≡
a2
→
b1
≡
{
n
}
≡
b2
)
→
a1
≡
a2
⊢
b1
≡
b2
.
Proof
.
unseal
=>
Hsi
.
split
=>
n
x
?
.
apply
Hsi
.
Qed
.
(** Basic update modality *)
Lemma
bupd_intro
P
:
P
⊢
|
==>
P
.
Proof
.
...
...
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