Skip to content

Commit

Permalink
example tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
leepike committed Mar 22, 2013
1 parent a85324f commit 80df11e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Div0.hs
Expand Up @@ -44,7 +44,7 @@ instance Arbitrary Exp where


-- property: so long as 0 isn't in the divisor, we won't try to divide by 0. -- property: so long as 0 isn't in the divisor, we won't try to divide by 0.
-- It's false: something might evaluate to 0 still. -- It's false: something might evaluate to 0 still.
prop_div :: Exp -> ScProp prop_div :: Exp -> ScProperty
prop_div e = divSubTerms e --> eval e /= Nothing prop_div e = divSubTerms e --> eval e /= Nothing
-- prop_div e = property $ case x of -- prop_div e = property $ case x of
-- Nothing -> True -- Nothing -> True
Expand Down
2 changes: 1 addition & 1 deletion examples/LambdaCalc.hs
Expand Up @@ -113,7 +113,7 @@ instance Arbitrary Pr where
-- prop0 (Pr (e0, e1)) = alphaEq e0 e1 ==> betaEq e0 e1 -- prop0 (Pr (e0, e1)) = alphaEq e0 e1 ==> betaEq e0 e1


-- if you do a beta reduction to nf -- if you do a beta reduction to nf
-- prop1 :: Pr -> ScProp -- prop1 :: Pr -> ScProperty
-- prop1 (Pr e0 e1) = -- Timeout due to possible non-termination -- prop1 (Pr e0 e1) = -- Timeout due to possible non-termination
-- within 1000 $ alphaEq e0 e1 --> betaEq e0 (substVar "x" "y" e1) -- within 1000 $ alphaEq e0 e1 --> betaEq e0 (substVar "x" "y" e1)


Expand Down

0 comments on commit 80df11e

Please sign in to comment.