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
Jonas Kastberg
iris
Commits
e8ce5b38
Commit
e8ce5b38
authored
Mar 02, 2016
by
Ralf Jung
Browse files
test for 'crazy higher order'
parent
a1b07de1
Changes
1
Show whitespace changes
Inline
Side-by-side
program_logic/tests.v
View file @
e8ce5b38
(** This file tests a bunch of things. *)
From
program_logic
Require
Import
model
.
From
program_logic
Require
Import
model
saved_prop
.
Module
ModelTest
.
(* Make sure we got the notations right. *)
Definition
iResTest
{
Λ
:
language
}
{
Σ
:
rFunctor
}
(
w
:
iWld
Λ
Σ
)
(
p
:
iPst
Λ
)
(
g
:
iGst
Λ
Σ
)
:
iRes
Λ
Σ
:
=
Res
w
p
(
Some
g
).
End
ModelTest
.
Module
SavedPropTest
.
(* Test if we can really go "crazy higher order" *)
Section
sec
.
Definition
Σ
:
rFunctorG
:
=
#[
agreeRF
(
cofe_morCF
idCF
idCF
)
].
Context
{
Λ
:
language
}.
Notation
iProp
:
=
(
iPropG
Λ
Σ
).
Local
Instance
:
savedPropG
Λ
Σ
(
cofe_morCF
idCF
idCF
)
:
=
_
.
Definition
own_pred
γ
(
φ
:
laterC
iProp
-
n
>
laterC
iProp
)
:
iProp
:
=
saved_prop_own
γ
φ
.
End
sec
.
End
SavedPropTest
.
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