Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tej Chajed
iris
Commits
9070e096
Commit
9070e096
authored
Feb 02, 2015
by
Ralf Jung
Browse files
move some things around, to make more use of our Props_ variables
parent
41d9f22b
Changes
1
Hide whitespace changes
Inline
Side-by-side
world_prop.v
View file @
9070e096
...
...
@@ -99,15 +99,6 @@ Module WorldProp (Res : PCM_T) : WORLD_PROP Res.
Definition
Props
:
=
FProp
PreProp
.
Definition
Wld
:
=
(
nat
-
f
>
PreProp
).
(* Establish the isomorphism *)
Definition
ı
:
PreProp
-
t
>
halve
(
cmfromType
Props
)
:
=
Unfold
.
Definition
ı
'
:
halve
(
cmfromType
Props
)
-
t
>
PreProp
:
=
Fold
.
Lemma
iso
P
:
ı
'
(
ı
P
)
==
P
.
Proof
.
apply
(
FU_id
P
).
Qed
.
Lemma
isoR
T
:
ı
(
ı
'
T
)
==
T
.
Proof
.
apply
(
UF_id
T
).
Qed
.
(* Define an order on PreProp. *)
Instance
PProp_preo
:
preoType
PreProp
:
=
disc_preo
PreProp
.
Instance
PProp_pcm
:
pcmType
PreProp
:
=
disc_pcm
PreProp
.
...
...
@@ -120,4 +111,13 @@ Module WorldProp (Res : PCM_T) : WORLD_PROP Res.
Instance
Props_preo
:
preoType
Props
:
=
_
.
Instance
Props_pcm
:
pcmType
Props
:
=
_
.
(* Establish the isomorphism *)
Definition
ı
:
PreProp
-
t
>
halve
(
cmfromType
Props
)
:
=
Unfold
.
Definition
ı
'
:
halve
(
cmfromType
Props
)
-
t
>
PreProp
:
=
Fold
.
Lemma
iso
P
:
ı
'
(
ı
P
)
==
P
.
Proof
.
apply
(
FU_id
P
).
Qed
.
Lemma
isoR
T
:
ı
(
ı
'
T
)
==
T
.
Proof
.
apply
(
UF_id
T
).
Qed
.
End
WorldProp
.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment