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
Simcha van Collem
Iris
Commits
e4f1b5c2
Commit
e4f1b5c2
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
A bunch of missing Params instances.
parent
686f5740
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
theories/algebra/agree.v
+3
-4
3 additions, 4 deletions
theories/algebra/agree.v
theories/algebra/csum.v
+7
-3
7 additions, 3 deletions
theories/algebra/csum.v
theories/algebra/excl.v
+3
-0
3 additions, 0 deletions
theories/algebra/excl.v
theories/prelude/base.v
+2
-0
2 additions, 0 deletions
theories/prelude/base.v
with
15 additions
and
7 deletions
theories/algebra/agree.v
+
3
−
4
View file @
e4f1b5c2
...
@@ -193,7 +193,7 @@ Section list_theory.
...
@@ -193,7 +193,7 @@ Section list_theory.
Context
`
(
R'
:
relation
B
)
(
f
:
A
→
B
)
{
Hf
:
Proper
(
R
==>
R'
)
f
}
.
Context
`
(
R'
:
relation
B
)
(
f
:
A
→
B
)
{
Hf
:
Proper
(
R
==>
R'
)
f
}
.
Collection
Hyps
:=
Type
Hf
.
Collection
Hyps
:=
Type
Hf
.
Local
Set
Default
Proof
Using
"Hyps"
.
Local
Set
Default
Proof
Using
"Hyps"
.
Global
Instance
list_setincl_fmap
:
Global
Instance
list_setincl_fmap
:
Proper
(
list_setincl
R
==>
list_setincl
R'
)
(
fmap
f
)
.
Proper
(
list_setincl
R
==>
list_setincl
R'
)
(
fmap
f
)
.
Proof
using
Hf
.
Proof
using
Hf
.
...
@@ -201,7 +201,7 @@ Section list_theory.
...
@@ -201,7 +201,7 @@ Section list_theory.
destruct
(
Hab
_
Ha
)
as
(
b
&
Hb
&
HR
)
.
exists
(
f
b
)
.
destruct
(
Hab
_
Ha
)
as
(
b
&
Hb
&
HR
)
.
exists
(
f
b
)
.
split
;
first
eapply
elem_of_list_fmap
;
eauto
.
split
;
first
eapply
elem_of_list_fmap
;
eauto
.
Qed
.
Qed
.
Global
Instance
list_setequiv_fmap
:
Global
Instance
list_setequiv_fmap
:
Proper
(
list_setequiv
R
==>
list_setequiv
R'
)
(
fmap
f
)
.
Proper
(
list_setequiv
R
==>
list_setequiv
R'
)
(
fmap
f
)
.
Proof
using
Hf
.
intros
??
[??]
.
split
;
apply
list_setincl_fmap
;
done
.
Qed
.
Proof
using
Hf
.
intros
??
[??]
.
split
;
apply
list_setincl_fmap
;
done
.
Qed
.
...
@@ -213,9 +213,7 @@ Section list_theory.
...
@@ -213,9 +213,7 @@ Section list_theory.
intros
(
a
&
->
&
Ha
)
%
elem_of_list_fmap
(
b
&
->
&
Hb
)
%
elem_of_list_fmap
.
intros
(
a
&
->
&
Ha
)
%
elem_of_list_fmap
(
b
&
->
&
Hb
)
%
elem_of_list_fmap
.
apply
Hf
.
exact
:
Hl
.
apply
Hf
.
exact
:
Hl
.
Qed
.
Qed
.
End
fmap
.
End
fmap
.
End
list_theory
.
End
list_theory
.
Section
agree
.
Section
agree
.
...
@@ -408,6 +406,7 @@ Lemma agree_validI {M} x y : ✓ (x ⋅ y) ⊢ (x ≡ y : uPred M).
...
@@ -408,6 +406,7 @@ Lemma agree_validI {M} x y : ✓ (x ⋅ y) ⊢ (x ≡ y : uPred M).
Proof
.
uPred
.
unseal
;
split
=>
r
n
_
?;
by
apply
:
agree_op_invN
.
Qed
.
Proof
.
uPred
.
unseal
;
split
=>
r
n
_
?;
by
apply
:
agree_op_invN
.
Qed
.
End
agree
.
End
agree
.
Instance
:
Params
(
@
to_agree
)
1
.
Arguments
agreeC
:
clear
implicits
.
Arguments
agreeC
:
clear
implicits
.
Arguments
agreeR
:
clear
implicits
.
Arguments
agreeR
:
clear
implicits
.
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/csum.v
+
7
−
3
View file @
e4f1b5c2
...
@@ -10,13 +10,17 @@ Local Arguments cmra_validN _ _ !_ /.
...
@@ -10,13 +10,17 @@ Local Arguments cmra_validN _ _ !_ /.
Local
Arguments
cmra_valid
_
!
_
/.
Local
Arguments
cmra_valid
_
!
_
/.
Inductive
csum
(
A
B
:
Type
)
:=
Inductive
csum
(
A
B
:
Type
)
:=
|
Cinl
:
A
→
csum
A
B
|
Cinl
:
A
→
csum
A
B
|
Cinr
:
B
→
csum
A
B
|
Cinr
:
B
→
csum
A
B
|
CsumBot
:
csum
A
B
.
|
CsumBot
:
csum
A
B
.
Arguments
Cinl
{_
_}
_
.
Arguments
Cinl
{_
_}
_
.
Arguments
Cinr
{_
_}
_
.
Arguments
Cinr
{_
_}
_
.
Arguments
CsumBot
{_
_}
.
Arguments
CsumBot
{_
_}
.
Instance
:
Params
(
@
Cinl
)
2
.
Instance
:
Params
(
@
Cinr
)
2
.
Instance
:
Params
(
@
CsumBot
)
2
.
Instance
maybe_Cinl
{
A
B
}
:
Maybe
(
@
Cinl
A
B
)
:=
λ
x
,
Instance
maybe_Cinl
{
A
B
}
:
Maybe
(
@
Cinl
A
B
)
:=
λ
x
,
match
x
with
Cinl
a
=>
Some
a
|
_
=>
None
end
.
match
x
with
Cinl
a
=>
Some
a
|
_
=>
None
end
.
Instance
maybe_Cinr
{
A
B
}
:
Maybe
(
@
Cinr
A
B
)
:=
λ
x
,
Instance
maybe_Cinr
{
A
B
}
:
Maybe
(
@
Cinr
A
B
)
:=
λ
x
,
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/excl.v
+
3
−
0
View file @
e4f1b5c2
...
@@ -10,6 +10,9 @@ Inductive excl (A : Type) :=
...
@@ -10,6 +10,9 @@ Inductive excl (A : Type) :=
Arguments
Excl
{_}
_
.
Arguments
Excl
{_}
_
.
Arguments
ExclBot
{_}
.
Arguments
ExclBot
{_}
.
Instance
:
Params
(
@
Excl
)
1
.
Instance
:
Params
(
@
ExclBot
)
1
.
Notation
excl'
A
:=
(
option
(
excl
A
))
.
Notation
excl'
A
:=
(
option
(
excl
A
))
.
Notation
Excl'
x
:=
(
Some
(
Excl
x
))
.
Notation
Excl'
x
:=
(
Some
(
Excl
x
))
.
Notation
ExclBot'
:=
(
Some
ExclBot
)
.
Notation
ExclBot'
:=
(
Some
ExclBot
)
.
...
...
This diff is collapsed.
Click to expand it.
theories/prelude/base.v
+
2
−
0
View file @
e4f1b5c2
...
@@ -422,6 +422,8 @@ Notation "p .1" := (fst p) (at level 10, format "p .1").
...
@@ -422,6 +422,8 @@ Notation "p .1" := (fst p) (at level 10, format "p .1").
Notation
"p .2"
:=
(
snd
p
)
(
at
level
10
,
format
"p .2"
)
.
Notation
"p .2"
:=
(
snd
p
)
(
at
level
10
,
format
"p .2"
)
.
Instance
:
Params
(
@
pair
)
2
.
Instance
:
Params
(
@
pair
)
2
.
Instance
:
Params
(
@
fst
)
2
.
Instance
:
Params
(
@
snd
)
2
.
Notation
curry
:=
prod_curry
.
Notation
curry
:=
prod_curry
.
Notation
uncurry
:=
prod_uncurry
.
Notation
uncurry
:=
prod_uncurry
.
...
...
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