Challenges
Every Lean problem in the curriculum, checked by the kernel. Any correct proof is accepted.
- A twisted corner is not solved★
The cube with one corner twisted in place is not the solved cube.
new - double 21 = 42★
Doubling 21 gives 42.
new - Fill in the missing step★
If P is true, and Q is true, then P is true.
new - P → Q → Q★
If P is true, and Q is true, then Q is true.
new - Build an AND★
If P is true and Q is true, then P ∧ Q is true.
new - Use an AND★
If P ∧ Q is true then P is true.
new - Prove an OR★
If P is true then P ∨ Q is true.
new - Every number has a bigger one★
For every natural number n there is a number m with n < m.
new - Chaining equalities★
If a = b and b = c then a = c.
new - The twist invariant tells them apart★★
The total corner twist (mod 3) of the twisted cube differs from that of the solved cube.
new - R has order 4★★
Four quarter turns of R give the solved cube, and two do not.
new - R U R' U' six times★★
Repeating R U R' U' six times returns the cube to solved.
new - R U fifteen times is not solved★★
Repeating R U fifteen times does not return the cube to solved (its order is 105).
new - The 1/8 edge skip★★
There are 8 ways the four last-layer edges can be flipped, and exactly one of them is already solved.
new - The 1/27 corner skip★★
There are 27 ways the four last-layer corners can be twisted, and exactly one of them is already solved.
new - P → Q → P as a function★★
If P is true, and Q is true, then P is true, written as a term.
new - AND is commutative★★
If P ∧ Q then Q ∧ P.
new - OR is commutative★★
If P ∨ Q then Q ∨ P.
new - Chaining implications★★
If P implies Q and Q implies R, then P implies R.
new - Arithmetic with omega★★
For all natural numbers a and b, a + b + 0 = b + a.
new - Use what you have★★
If P holds and P implies Q, then Q and P both hold.
new - Even plus two is even★★
If n is even, so is n + 2.
new - A proof is a function★★
If P is true then it is not false: P implies ¬¬P.
new - From nothing, anything★★
From a proof of False, any proposition follows.
new - A tactic of your own★★
From P, Q and R, prove P ∧ Q ∧ R, using the split_ands tactic defined by a macro.
new - Adding 3 is injective★★
If a + 3 = b + 3 then a = b: different inputs give different outputs.
new - Doubling is injective★★
The function twice n = 2 × n is injective.
new - Powers of two are positive★★
For every n, pow2 n > 0.
new - Passing a property along★★
If every P is a Q, and something is a P, then something is a Q.
new - Rewriting with lemmas★★
If a = b + c then a + 0 = c + b.
new - Using an equation about a function★★
If f(x) = 2x for every x, then f(3) + f(1) = 8.
new - Seven days later★★
Seven steps of next bring every weekday back to itself.
new - Sum of joined lists★★
The sum of xs ++ ys is the sum of xs plus the sum of ys.
new - map keeps the length★★
Applying a function to every element does not change the length of the list.
new - The specification of max★★
maxOf a b is at least a, at least b, and equal to one of them.
new - Even plus even is even★★
If m and n are even, then m + n is even (even means: twice some number).
new - max is one of its arguments★★
For all a and b, max a b equals a or equals b.
new - There is no largest number★★
There is no natural number that is at least as large as every natural number.
new - Write the move R yourself★★★
Define myR, the state after one clockwise turn of the right face, so that its 54 stickers are exactly those of a real R turn.
new - Proof by cases★★★
If P implies R and Q implies R, then P ∨ Q implies R.
new - Currying★★★
Assuming P and Q together is the same as assuming P and then Q.
new - Length of joined lists★★★
The length of xs ++ ys is the length of xs plus the length of ys.
new - Same remainder is an equivalence★★★
"a and b leave the same remainder when divided by 3" is an equivalence relation on the natural numbers.
new - ∃∀ implies ∀∃★★★
If one y works for every x, then for every x some y works.
new - Mirroring keeps the size★★★
Mirroring a binary tree does not change how many values it holds.
new - Doubling every element doubles the sum★★★
Mapping x ↦ 2x over a list doubles its sum.
new - A countdown has n steps★★★
countdown n lists n, n − 1, …, 1, so it has exactly n elements.
new - A search that is correct★★★
contains x xs returns true exactly when x is an element of xs.
new - Insertion adds one element★★★
Inserting into a list makes it exactly one element longer.
new - Proof by contradiction (classical)★★★
If not-Q implies not-P, then P implies Q.
new - The sum formula 0 + 1 + … + n★★★★
For every n, 2 × (0 + 1 + … + n) = n × (n + 1).
new