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.
Darn, missed a trick:
ring_exp
can solve the equality being proved here withcalc
.Approved
A quick explanation why
SUBMISSION
is important. Consider the following test code:A user can pass these tests with the following "solution":
But with
SUBMISSION
defined in Preloaded, this trick does not work.I had to delete the
:= fib_eq
part from thedef SUBMISSION
line to make it compile.OK, I made those changes! Sorry, I don't fully understand why things work the way they work yet.
Please add the following lines to Preloaded:
And change the test code:
Also don't forget to update Sample Test Cases.
Lean translation.
The extra
cases n
used here to make the-1
s easier to get rid of is sweet! It's a very convenient way of replacing everyn
in a goal withn.succ
.