Verify math

From flonat/flonat-research · View interactive version

Verify math is an AI agent skill from the GitHub repository flonat/flonat-research. Verify a self-authored mathematical result end to end by routing claims across adversarial review, numerical falsification, symbolic or CAS checks, and Lean, then aggregating one report. Use when a theorem, proposition, conjecture, or paper-wide mathematical argument needs the appropriate combinatio

How to use this skill

Skill file

Verify Math: Route a Math Claim Through the Verification Spectrum

The front door for verifying self-authored mathematics. Classify each claim, dispatch it to the strongest applicable rung(s), and merge the sub-verdicts into one report. This skill does not verify anything itself — it routes and aggregates; the rungs do the work.

When to Use

When NOT to Use

The verification spectrum (the rungs it routes to)

| Rung | Method | Can it… | Tool |

|---|---|---|---|

| R0 | adversarial deductive read | catch conceptual/assumption gaps (no proof) | domain-reviewer (agent) |

| R1 | numerical falsification | falsify definitively; support (never prove) | numerical-check |

| R2 | symbolic / CAS | prove or falsify an algebra step | symbolic-check |

| R3 | formal Lean proof | prove (strongest) | lean-check |

Procedure

1. Decompose the result into atomic claims

A theorem is usually several obligations. List each separately: the algebra steps, the distributional/parameter-space claims, the load-bearing lemma, the conceptual assumptions. Verify each with the rung that fits — a single "verdict" on a compound theorem hides which part is shaky.

When the claim lives in LaTeX, extract a self-contained theorem/proof block before dispatch:

uv run python <skill-dir>/scripts/extract_block.py paper/sections/model.tex "prop:concavity"

The helper includes an immediately following proof and any displayed equations referenced by label. Inspect the output and add missing definitions or assumptions before giving it to a reviewer or computational rung.

2. Classify each claim → rung

| Claim shape | Rung | Route to |

|---|---|---|

| algebra / derivative / limit / closed-form identity | R2 | symbolic-check |

| monotonicity / threshold / comparative-static / inequality over a parameter space (distributional, probabilistic) | R1 | numerical-check |

| a critical, faithfully-formalizable lemma | R3 | lean-check |

| conceptual correctness, assumption completeness, code-theory alignment | R0 | domain-reviewer (Task/agent) |

3. Order: falsify cheap → prove expensive

4. Dispatch

For a hard proof strategy, existence/uniqueness question, or counterexample search that resists the standard rungs, use an adversarial reasoning pass as lead generation, never as a verdict. Make the prompt self-contained: state the exact claim, define every symbol and parameter domain, describe failed approaches, request multiple concrete strategies, and demand explicit algebra or numerical counterexamples. Route every proposed proof step or counterexample back through R1, R2, R3, or the fresh-context R0 reviewer before relying on it.

5. Aggregate → one verdict

| Condition | Aggregate verdict |

|---|---|

| Any rung returns FALSIFIED | FALSIFIED (name which claim + counterexample) |

| A proving rung (R2/R3) VERIFIES the core claim, nothing falsified | VERIFIED (note the guarantee level: CAS vs Lean) |

| Only R1 supports (no counterexample), no proving rung | INCONCLUSIVE (supported: no counterexample in N) |

| Rungs couldn't decide / not formalizable | INCONCLUSIVE |

| Setup/toolchain failure | ERROR |

Numerical alone is never VERIFIED. Only a proving rung (R2/R3) upgrades a claim from "unfalsified" to "verified".

Anti-Patterns

Output — Aggregate Verification Report

Write to reviews/<scope>/verify-math/<YYYY-MM-DD-HHMM>.md:

result:   <the theorem/proposition being verified>
claims:   (one row per atomic obligation)
  - <claim 1> | rung R? | verdict | evidence/report link
  - <claim 2> | rung R? | verdict | ...
verdict:  VERIFIED (Lean|CAS) | FALSIFIED (<which claim>) | INCONCLUSIVE(supported|undecided) | ERROR
guarantee: <the weakest link — the result is only as verified as its least-verified obligation>
next:     <what to escalate — e.g. "obligation 3 unfalsified by R1; Lean-prove it (R3)">

Verification (did this skill work?)

Worked example — 2026-07-04 (median-collapse paper), how it would route

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.