Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testFactorial1 not solvable with "Refl" #54

Open
peterb12 opened this issue Dec 21, 2018 · 1 comment
Open

testFactorial1 not solvable with "Refl" #54

peterb12 opened this issue Dec 21, 2018 · 1 comment

Comments

@peterb12
Copy link

peterb12 commented Dec 21, 2018

Using "Refl" as the solution for test_factorial1 (or 2) yields:

 |   When checking right hand side of testFactorial1 with expected type
 |           factorial 3 = 6
 |   
 |   Type mismatch between
 |           6 = 6 (Type of Refl)
 |   and
 |           factorial 3 = 6 (Expected type)
 |   
 |   Specifically:
 |           Type mismatch between
 |                   6
 |           and
 |                   factorial 3

This is important because (1) no other tactics have been introduced at this point and (2) later in the chapter, we explicitly claim that it is solvable that way:

Now that we've defined a few datatypes and functions, let's turn to stating and
proving properties of their behavior. Actually, we've already started doing
this: each of the functions beginning with \idr{test} in the previous sections
makes a precise claim about the behavior of some function on some particular
inputs. The proofs of these claims were always the same: use \idr{Refl} to check
that both sides contain identical values.

@clayrat
Copy link
Collaborator

clayrat commented Dec 21, 2018

Ah, we're just missing %default total in the header of the file, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants