Conjecture vs Counterexample

Built for Harmonic

Conjectures about an integer sequence, attacked with small cases.

Demo by Armaan Kazi
← Back to Demos

Claude proposes conjectures about a sequence. A Web Worker in your browser tries each one on up to 5,000 values of n and stops at the first counterexample. Surviving is evidence, not proof. Nothing here runs Lean.

a(0..) 41, 43, 47, 53, 61, 71, 83, 97, 113, 131

Prewritten sample conjectures

  • Every term is prime.

    isPrime(a(n))

    searching

  • No term is a perfect square.

    !isSquare(a(n))

    searching

  • No term is divisible by 3.

    a(n) % 3 != 0

    searching

  • Consecutive terms differ by 2(n + 1).

    a(n+1) - a(n) == 2*(n+1)

    searching

syntax

n, a(expr), + - * / % ^, == != < <= > >=, && || ! and -> (implies). isPrime, isSquare, gcd, divides(d, x), abs, digitSum, min, max. Integers are exact up to 2^256.