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
Pierre Roux
Iris
Commits
8e9c3db7
Commit
8e9c3db7
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add all versions of `auth_frag_frag_valid`.
parent
54fecc1e
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/algebra/auth.v
+14
-6
14 additions, 6 deletions
theories/algebra/auth.v
with
14 additions
and
6 deletions
theories/algebra/auth.v
+
14
−
6
View file @
8e9c3db7
...
@@ -106,10 +106,14 @@ Section auth.
...
@@ -106,10 +106,14 @@ Section auth.
Proof
.
by
rewrite
view_auth_validN
auth_view_rel_unit
.
Qed
.
Proof
.
by
rewrite
view_auth_validN
auth_view_rel_unit
.
Qed
.
Lemma
auth_frag_validN
n
b
:
✓
{
n
}
(
◯
b
)
↔
✓
{
n
}
b
.
Lemma
auth_frag_validN
n
b
:
✓
{
n
}
(
◯
b
)
↔
✓
{
n
}
b
.
Proof
.
by
rewrite
view_frag_validN
auth_view_rel_exists
.
Qed
.
Proof
.
by
rewrite
view_frag_validN
auth_view_rel_exists
.
Qed
.
(**
S
tated as
an
implication
(instead of a bi-implication)
to force [apply] to
(**
Also s
tated as implication
s, which can be used
to force [apply] to
use the
use the
lemma in the right direction. *)
lemma in the right direction. *)
Lemma
auth_frag_frag_validN
_1
n
b1
b2
:
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
→
✓
{
n
}
(
b1
⋅
b2
)
.
Lemma
auth_frag_frag_validN
n
b1
b2
:
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
↔
✓
{
n
}
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_validN
.
Qed
.
Proof
.
apply
auth_frag_validN
.
Qed
.
Lemma
auth_frag_frag_validN_1
n
b1
b2
:
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
→
✓
{
n
}
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_frag_validN
.
Qed
.
Lemma
auth_frag_frag_validN_2
n
b1
b2
:
✓
{
n
}
(
b1
⋅
b2
)
→
✓
{
n
}
(
◯
b1
⋅
◯
b2
)
.
Proof
.
apply
auth_frag_frag_validN
.
Qed
.
Lemma
auth_both_frac_validN
n
q
a
b
:
Lemma
auth_both_frac_validN
n
q
a
b
:
✓
{
n
}
(
●
{
q
}
a
⋅
◯
b
)
↔
✓
{
n
}
q
∧
b
≼
{
n
}
a
∧
✓
{
n
}
a
.
✓
{
n
}
(
●
{
q
}
a
⋅
◯
b
)
↔
✓
{
n
}
q
∧
b
≼
{
n
}
a
∧
✓
{
n
}
a
.
...
@@ -132,10 +136,14 @@ Section auth.
...
@@ -132,10 +136,14 @@ Section auth.
rewrite
view_frag_valid
cmra_valid_validN
.
rewrite
view_frag_valid
cmra_valid_validN
.
by
setoid_rewrite
auth_view_rel_exists
.
by
setoid_rewrite
auth_view_rel_exists
.
Qed
.
Qed
.
(**
S
tated as
an
implication
(instead of a bi-implication)
to force [apply] to
(**
Also s
tated as implication
s, which can be used
to force [apply] to
use the
use the
lemma in the right direction. *)
lemma in the right direction. *)
Lemma
auth_frag_frag_valid
_1
b1
b2
:
✓
(
◯
b1
⋅
◯
b2
)
→
✓
(
b1
⋅
b2
)
.
Lemma
auth_frag_frag_valid
b1
b2
:
✓
(
◯
b1
⋅
◯
b2
)
↔
✓
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_valid
.
Qed
.
Proof
.
apply
auth_frag_valid
.
Qed
.
Lemma
auth_frag_frag_valid_1
b1
b2
:
✓
(
◯
b1
⋅
◯
b2
)
→
✓
(
b1
⋅
b2
)
.
Proof
.
apply
auth_frag_frag_valid
.
Qed
.
Lemma
auth_frag_frag_valid_2
b1
b2
:
✓
(
b1
⋅
b2
)
→
✓
(
◯
b1
⋅
◯
b2
)
.
Proof
.
apply
auth_frag_frag_valid
.
Qed
.
(** These lemma statements are a bit awkward as we cannot possibly extract a
(** These lemma statements are a bit awkward as we cannot possibly extract a
single witness for [b ≼ a] from validity, we have to make do with one witness
single witness for [b ≼ a] from validity, we have to make do with one witness
...
...
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