Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
What's the motivation behind this kata? I don't understand why we're proving equality of a bunch of proof terms.
I loved the simplicity of this kata. Very cool.
Should be fixed now, I've inserted the relevant calls to
idtac "<PASSED::>"
andidtac "<FAILED::>"
. I don't think it's necessary to open an issue there, as this is a rather esoteric kata with correspondingly esoteric methods of testing.@JasonGross
The runner needs to know if the solution is a valid one somehow. And we decided what's considered valid in https://github.com/codewars/codewars-runner-cli/issues/425
Can you open a new issue at https://github.com/codewars/coq_codewars ? We can discuss what can be done over there.
I'm a bit confused why I need to use
Print Assumptions
or https://github.com/codewars/coq_codewars ; if the test file runs to completion without throwing errors, then this should be considered succeeding. I can addPrint Assumptions I
at the bottom just to conform to the way things are set up, but that seems silly, and https://github.com/codewars/coq_codewars isn't flexible enough to do the kind of check needed for this kata. Is there a way to get the right output for the test runner to accept things usingidtac
?Ah, I had assumed not being able to complete was obvious from my original comment so I didn't understand the point of your comment.
After trying to understand it, I thought your comment was referring to the fact I unpublished it (and making it impossible to submit a solution). My bad.
That's exactly what I just said...
? It's currently impossible to complete (it was actually never possible) because there's no test output. I don't think it should be kept published.
This kata probably got published because of the bug where publishing from a draft state bypasses the check.
(making it impossible to submit a solution)
@JasonGross
This kata doesn't seem to output anything for the runner to process.
The current output is:
Please use https://github.com/codewars/coq_codewars or
Print Assumptions
.I've unpublished the kata for now.
Yes, this is part of the semantics of
Qed
.Thanks, I didn't know the behavior of
Defined
is different fromQed
's. It works after I changedQed
toDefined
.BTW, if
Qed
is used to close the proofs,compute
does nothing..
Okay, this time it worked, though I could have sworn I had done that last time.
You need to update that select box to 8.11, then click Validate Solution, and you'll see that you'll have to update the code to be compatible with 8.11.
I mean, the CW runner requires there to be tests or it thinks they failed, so you need to add a test.
Loading more items...