Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Tej Chajed
iris
Commits
ce748a67
Commit
ce748a67
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Remove superfluous parameter of agreement.
parent
9813f9b5
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
modures/agree.v
+8
-9
8 additions, 9 deletions
modures/agree.v
with
8 additions
and
9 deletions
modures/agree.v
+
8
−
9
View file @
ce748a67
Require
Export
modures
.
cmra
.
Local
Hint
Extern
10
(_
≤
_)
=>
omega
.
Record
agree
A
`{
Dist
A
}
:=
Agree
{
Record
agree
(
A
:
Type
)
:
Type
:=
Agree
{
agree_car
:>
nat
→
A
;
agree_is_valid
:
nat
→
Prop
;
agree_valid_0
:
agree_is_valid
0
;
agree_valid_S
n
:
agree_is_valid
(
S
n
)
→
agree_is_valid
n
}
.
Arguments
Agree
{_
_
}
_
_
_
_
.
Arguments
agree_car
{_
_
}
_
_
.
Arguments
agree_is_valid
{_
_
}
_
_
.
Arguments
Agree
{_}
_
_
_
_
.
Arguments
agree_car
{_}
_
_
.
Arguments
agree_is_valid
{_}
_
_
.
Section
agree
.
Context
`{
Cofe
A
}
.
...
...
@@ -124,8 +124,7 @@ Proof.
Qed
.
End
agree
.
Program
Definition
agree_map
`{
Dist
A
,
Dist
B
}
(
f
:
A
→
B
)
(
x
:
agree
A
)
:
agree
B
:=
Program
Definition
agree_map
{
A
B
}
(
f
:
A
→
B
)
(
x
:
agree
A
)
:
agree
B
:=
{|
agree_car
n
:=
f
(
x
n
);
agree_is_valid
:=
agree_is_valid
x
|}
.
Solve
Obligations
with
auto
using
agree_valid_0
,
agree_valid_S
.
...
...
@@ -147,10 +146,10 @@ Section agree_map.
try
apply
Hxy
;
try
apply
Hf
;
eauto
using
@
agree_valid_le
.
Qed
.
End
agree_map
.
Lemma
agree_map_id
`{
Cofe
A
}
(
x
:
agree
A
)
:
agree_map
id
x
=
x
.
Lemma
agree_map_id
{
A
}
(
x
:
agree
A
)
:
agree_map
id
x
=
x
.
Proof
.
by
destruct
x
.
Qed
.
Lemma
agree_map_compose
`{
Cofe
A
,
Cofe
B
,
Cofe
C
}
(
f
:
A
→
B
)
(
g
:
B
→
C
)
(
x
:
agree
A
)
:
agree_map
(
g
∘
f
)
x
=
agree_map
g
(
agree_map
f
x
)
.
Lemma
agree_map_compose
{
A
B
C
}
(
f
:
A
→
B
)
(
g
:
B
→
C
)
(
x
:
agree
A
)
:
agree_map
(
g
∘
f
)
x
=
agree_map
g
(
agree_map
f
x
)
.
Proof
.
done
.
Qed
.
Canonical
Structure
agreeRA
(
A
:
cofeT
)
:
cmraT
:=
CMRAT
(
agree
A
)
.
...
...
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