Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gilles Coremans
ASTTool
Commits
176ba07b
Commit
176ba07b
authored
Apr 17, 2020
by
Gilles Coremans
Browse files
Make the precondition for FCo preservation stricter
parent
1fb1a5e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
FCO/Test.hs
View file @
176ba07b
...
...
@@ -18,7 +18,7 @@ args = Args{replay=Nothing, maxSuccess=1000, maxDiscardRatio=1000000, maxSize=10
-- The type of a term does not change when a reduction step is performed
coPreservation
::
Term
->
Property
coPreservation
te
=
(
isRight
ty
)
&&
(
not
$
CoI
.
isVal
te
)
coPreservation
te
=
(
isRight
ty
)
&&
(
not
$
CoI
.
isVal
te
)
&&
(
isJust
$
CoI
.
stepEval
te
)
==>
ty
==
tyStep
where
ty
=
CoI
.
typeOf
te
CoI
.
Nil
tyStep
=
(
flip
CoI
.
typeOf
)
CoI
.
Nil
$
fromMaybe
undefined
$
CoI
.
stepEval
te
...
...
Write
Preview
Markdown
is supported
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