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
144584f3
Commit
144584f3
authored
10 years ago
by
David Swasey
Browse files
Options
Downloads
Patches
Plain Diff
mu_mono implicits.
parent
aa186b57
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
iris_core.v
+1
-1
1 addition, 1 deletion
iris_core.v
lib/ModuRes/PreoMet.v
+5
-3
5 additions, 3 deletions
lib/ModuRes/PreoMet.v
with
6 additions
and
4 deletions
iris_core.v
+
1
−
1
View file @
144584f3
...
...
@@ -83,7 +83,7 @@ Module Type IRIS_CORE (RL : RA_T) (C : CORE_LANG) (R: IRIS_RES RL C) (WP: WORLD_
Lemma
lt0
(
n
:
nat
)
:
~
n
<
0
.
Proof
.
by
omega
.
Qed
.
Lemma
propsMW
{
P
w
n
r
w'
}
(
HSw
:
w
⊑
w'
)
:
P
w
n
r
->
P
w'
n
r
.
Proof
.
exact
:
(
mu_mono
_
_
P
_
_
HSw
)
.
Qed
.
Proof
.
exact
:
(
mu_mono
P
HSw
)
.
Qed
.
Lemma
propsMNR
{
P
w
n
r
n'
r'
}
(
HLe
:
n'
<=
n
)
(
HSr
:
r
⊑
r'
)
:
P
w
n
r
->
P
w
n'
r'
.
Proof
.
exact
:
(
uni_pred
_
_
_
_
_
HLe
HSr
)
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
lib/ModuRes/PreoMet.v
+
5
−
3
View file @
144584f3
...
...
@@ -30,6 +30,8 @@ Record monoMet_morphism T U `{pcmT : pcmType T} `{pcmU : pcmType U} := mkMUMorph
Arguments
mkMUMorph
[
T
U
]
{_
_
_
_
_
_
_
_
_
_}
_
_
.
Arguments
mu_morph
[
T
U
]
{_
_
_
_
_
_
_
_
_
_}
_
.
Arguments
mu_mono
{_
_}
{_
_
_
_
_
_
_
_
_
_}
_
{_
_}
_
.
Infix
"-m>"
:=
monoMet_morphism
(
at
level
45
,
right
associativity
)
:
pumet_scope
.
Notation
"'m[(' f ')]'"
:=
(
mkMUMorph
n
[(
f
)]
_)
.
Delimit
Scope
pumet_scope
with
pm
.
...
...
@@ -42,7 +44,7 @@ Section Morph_Props.
Program
Definition
pcomp
(
f
:
U
-
m
>
V
)
(
g
:
T
-
m
>
U
)
:=
m
[(
f
<
M
<
g
)]
.
Next
Obligation
.
intros
x
y
HSub
;
now
apply
mu_mono
,
mu_mono
.
intros
x
y
HSub
;
apply
mu_mono
;
now
apply
mu_mono
.
Qed
.
Program
Definition
pid
:=
m
[(
umid
_)]
.
...
...
@@ -105,8 +107,8 @@ Section PUMMorphProps1.
-
intros
f
g
h
Hfg
Hgh
;
simpl
;
etransitivity
;
[
apply
Hfg
|
apply
Hgh
]
.
Qed
.
Global
Instance
PM_proper
(
f
:
T
-
m
>
U
)
:
Pro
per
(
pord
==>
pord
)
f
:=
mu_mono
_
_
f
.
Global
Instance
PM_proper
(
f
:
T
-
m
>
U
)
:
Proper
(
pord
==>
pord
)
f
.
Pro
of
.
apply
mu_mono
.
Qed
.
Definition
PMasMono
(
f
:
T
-
m
>
U
)
:
(
T
-
m
>
U
)
%
pd
:=
mkMMorph
(
mu_morph
f
)
_
.
...
...
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