Skip to the challenge
MathCase

Ramsey’s triangle puzzle

Can six dots avoid a one-color triangle?

Every pair of dots is connected. Can you color the lines so that every triangle uses both red and blue?

Tap a line to switch its color, then check your work. You can also edit each line by number.

Color the 15 lines or load a sample to begin.

Edit lines by number
Why is a triangle unavoidable?

Pick any dot. At least three of its five lines share a color. Suppose that color is red.

Look at the three dots on the other ends of those red lines. If any two are joined by red, they make a red triangle with your first dot. Otherwise all three lines between them are blue, so those three dots make a blue triangle.

The same argument works with the colors reversed.

Try another question

Saved Lean proof

If a prime divides a square, must it divide the root?

Lean, a program that checks mathematical proofs, rejected the first AI attempt. See the mistake and the correction it accepted.

Open the saved proof

Hands-on arithmetic

Can three unit fractions add up to 4/21?

Each fraction has a 1 on top. Choose three different denominators and check their sum exactly.

Try the fraction puzzle

From the research notebook · November 24, 2026

When does a Collatz sequence drop?

Halve an even number. Triple an odd number and add 1. On odd numbers, a shortcut combines that step and the next halving. A proved rule guarantees a drop within 37 ordinary steps for starts of at least 3 whose first 23 shortcuts include at most 14 odd starts.

Browse all results and dated updates · See the worked example and the theorem · Explore how two parity windows shape a first drop

Explore MathCase

Hackathon judge’s guide

MathCase pairs an AI proof attempt with Lean’s response. For a three-minute walkthrough, use the saved prime-divisibility case.

  1. Read the claim and the rejected attempt. The candidate supplied divisibility where Lean expected primality.
  2. Inspect the repaired proof in the same record. It uses the known Lean theorem Nat.Prime.dvd_of_dvd_pow.
  3. Remove the prime assumption. The saved arithmetic example shows what fails when the divisor is 4.

MathCase on Devpost · Official judging schedule