Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
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
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
Paolo G. Giarrusso
iris
Commits
a1f5f2f6
Commit
a1f5f2f6
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
make dfrac variable names consistent with gmap_view
parent
6dba10c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/algebra/dfrac.v
+9
-9
9 additions, 9 deletions
theories/algebra/dfrac.v
with
9 additions
and
9 deletions
theories/algebra/dfrac.v
+
9
−
9
View file @
a1f5f2f6
...
...
@@ -35,7 +35,7 @@ Section dfrac.
Canonical
Structure
dfracO
:=
leibnizO
dfrac
.
Implicit
Types
p
q
:
Qp
.
Implicit
Types
x
y
:
dfrac
.
Implicit
Types
dp
dq
:
dfrac
.
Global
Instance
DfracOwn_inj
:
Inj
(
=
)
(
=
)
DfracOwn
.
Proof
.
by
injection
1
.
Qed
.
...
...
@@ -43,8 +43,8 @@ Section dfrac.
Proof
.
by
injection
1
.
Qed
.
(** An element is valid as long as the sum of its content is less than one. *)
Instance
dfrac_valid
:
Valid
dfrac
:=
λ
x
,
match
x
with
Instance
dfrac_valid
:
Valid
dfrac
:=
λ
dq
,
match
dq
with
|
DfracOwn
q
=>
q
≤
1
|
DfracDiscarded
=>
True
|
DfracBoth
q
=>
q
<
1
...
...
@@ -53,8 +53,8 @@ Section dfrac.
(** As in the fractional camera the core is undefined for elements denoting
ownership of a fraction. For elements denoting the knowledge that a fraction has
been discarded the core is the identity function. *)
Instance
dfrac_pcore
:
PCore
dfrac
:=
λ
x
,
match
x
with
Instance
dfrac_pcore
:
PCore
dfrac
:=
λ
dq
,
match
dq
with
|
DfracOwn
q
=>
None
|
DfracDiscarded
=>
Some
DfracDiscarded
|
DfracBoth
q
=>
Some
DfracDiscarded
...
...
@@ -62,8 +62,8 @@ Section dfrac.
(** When elements are combined, ownership is added together and knowledge of
discarded fractions is combined with the max operation. *)
Instance
dfrac_op
:
Op
dfrac
:=
λ
x
y
,
match
x
,
y
with
Instance
dfrac_op
:
Op
dfrac
:=
λ
dq
dp
,
match
dq
,
dp
with
|
DfracOwn
q
,
DfracOwn
q'
=>
DfracOwn
(
q
+
q'
)
|
DfracOwn
q
,
DfracDiscarded
=>
DfracBoth
q
|
DfracOwn
q
,
DfracBoth
q'
=>
DfracBoth
(
q
+
q'
)
...
...
@@ -97,12 +97,12 @@ Section dfrac.
Definition
dfrac_ra_mixin
:
RAMixin
dfrac
.
Proof
.
split
;
try
apply
_
.
-
intros
[?|
|?]
y
cx
<-
;
intros
[
=
<-
];
eexists
_;
done
.
-
intros
[?|
|?]
?
dq
<-
;
intros
[
=
<-
];
eexists
_;
done
.
-
intros
[?|
|?]
[?|
|?]
[?|
|?];
rewrite
/
op
/
dfrac_op
1
?assoc_L
1
?assoc_L
;
done
.
-
intros
[?|
|?]
[?|
|?];
rewrite
/
op
/
dfrac_op
1
?(
comm_L
Qp_add
);
done
.
-
intros
[?|
|?]
cx
;
rewrite
/
pcore
/
dfrac_pcore
;
intros
[
=
<-
];
-
intros
[?|
|?]
dq
;
rewrite
/
pcore
/
dfrac_pcore
;
intros
[
=
<-
];
rewrite
/
op
/
dfrac_op
;
done
.
-
intros
[?|
|?]
?
[
=
<-
];
done
.
-
intros
[?|
|?]
[?|
|?]
?
[[?|
|?]
[
=
]]
[
=
<-
];
eexists
_;
split
;
try
done
;
...
...
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