🔢 Gaussian Theorem Prover
Enter a Prolog-like recursive program to discover and prove its closed-form formula
📝 Input Program
Stage 1
▶ sum(N)
▶ seq(N)
▶ square(N)
▶ factorial(N) — rejected
sum(0, 0). sum(N, S) :- N > 0, N1 is N - 1, sum(N1, S1), S is S1 + N.
▶ Run
Ready — click Run to analyse the program.
🔬 Parsed Structure
Stage 1 — Parser
📊 Generated Examples
Stage 2 — Example Generator
🔢 Gaussian Elimination Matrix
Stages 3–4
📐 Discovered Formula
Stage 4 — Polynomial Discovery
✅ Induction Proof
Stage 5 — Verification
💬 Plain-English Explanation
Stage 6 — Explanation