Proof Checker: Rigorous Mathematical Verification & Fixing
Before each reviewer slot, follow Selectable Reviewers:
resolve invocation →
.aris/reviewer.json→ Codex default (fresh native reviewer)
with
reviewer_route.pythrough the canonical helper resolver, preserving this
slot's tier, fresh contexts, source/image inputs and deterministic gates.
Codex examples/pins below apply only to
backend=codex; other routes use their
own first-call/reply contract. Save the route and actual returned identity;
unavailable selections are
REVIEW_UNAVAILABLE. Classify acceptance from actual
families/completion/scope. Forward invocation reviewer/model/effort overrides
to reviewer-bearing children. Generation workers are unchanged.
Codex assurance: base Codex proof judgments are
review_independence: same-familyandacceptance_status: provisional.
Deterministic compilation/algebra checks may be accepted; a semantic proof
acceptance requires a completed positive review with known different model families. Reviewer failure emits BLOCKED.
Systematically verify a mathematical proof via fresh-agent adversarial review, fix identified gaps, re-review until convergence, and generate a detailed audit report with proof-obligation accounting.
Context: $ARGUMENTS
Constants
- MAX_REVIEW_ROUNDS = 3
- REVIEWER_MODEL =
gpt-6-astravia Codex reviewer agent, reasoning effort
ultra for this deep-audit skill (capability fallback never below xhigh)
- REVIEWER_BACKEND =
codex— Default: Codex reviewer agent (spawn_agent, ultra — deep-audit tier). Override with— reviewer: oracle-profor GPT-5.5 Pro via Oracle MCP. Seeshared-references/reviewer-routing.md. - AUDIT_DOC:
PROOF_AUDIT.mdat the paper directory root, alongsidemain.tex(cumulative log; when invoked via/paper-writing, this ispaper/PROOF_AUDIT.md) - REPORT_TEX:
proof_audit_report.tex(formal before/after PDF) - STATE_FILE:
PROOF_CHECK_STATE.json(for recovery) - SKELETON_DOC:
PROOF_SKELETON.md(micro-claim inventory) - RENDER_HTML = true — When
true(default), auto-renderPROOF_AUDIT.mdto HTML at workflow end via/render-html. Uses full review gate (audit-class, math-heavy — render-fidelity check protects against MathJax breakage). Setfalseto skip, or pass— render html: false. Non-blocking: failures don't invalidate the proof audit.
Acceptance Gate (objective, replaces subjective scoring)
The proof passes when ALL of the following hold:
- Zero open FATAL or CRITICAL issues
- Every theorem/lemma has: (i) explicit hypotheses, (ii) proof with all interchanges justified, (iii) every application discharges hypotheses in the ledger
- All big-O/Θ/o statements have declared parameter dependence and uniformity scope
- Counterexample pass executed on all key lemmas (log candidates even if none found)
Issue Taxonomy (20 categories, 4 groups)
Group A: Logic & Proof Structure
| Category | Description | Example |
|----------|-------------|---------|
| UNJUSTIFIED_ASSERTION | Claim stated without proof or reference | "The Hessian splits into Gram blocks" |
| UNPROVEN_SUBCLAIM | "Clearly" / "it follows" hides a nontrivial lemma | "By symmetry, the cross-terms vanish" without checking |
| QUANTIFIER_ERROR | Wrong order ∀/∃, missing "for sufficiently small κ" | "For all π, there exists ε" vs "there exists ε for all π" |
| IMPLICATION_REVERSAL | Uses (A⇒B) as (B⇒A), or claims equivalence with only one direction | |
| CASE_INCOMPLETE | Misses boundary/degenerate cases | Singular covariance, zero weight, non-unique argmin |
| CIRCULAR_DEPENDENCY | Lemma uses theorem that depends on it | |
| LOGICAL_GAP | A step is not justified by what precedes it | B=Θ(1) → β_K=0 without analyzing W |
Group B: Analysis & Measure Theory
| Category | Description | Example |
|----------|-------------|---------|
| ILLEGAL_INTERCHANGE | Swaps limit/expectation/derivative/integral without DCT/MCT/Fubini | Differentiating under E without domination |
| NONUNIFORM_CONVERGENCE | Pointwise convergence used as uniform | sup and limit swapped |
| MISSING_DOMINATION | DCT cited but no dominating function given | |
| INTEGRABILITY_GAP | Uses E|X|^p without proving/assuming finite moments | |
| REGULARITY_GAP | Differentiability/Lipschitz/convexity used but not established | |
| STOCHASTIC_MODE_CONFUSION | Mixes a.s./in prob./in L²/in expectation | |
Group C: Model & Parameter Tracking
| Category | Description | Example |
|----------|-------------|---------|
| MISSING_DERIVATION | A quantity is used but never derived from the model | Risk functional with undefined B, W |
| HIDDEN_ASSUMPTION | Proof silently uses a condition not in the theorem | Gaussianity assumed but not stated |
| INSUFFICIENT_ASSUMPTION | Hypotheses too weak for proof (counterexample exists) | Moment conditions admitting 2-point distributions |
| DIMENSION_TRACKING | Parameter dependence (d, n, K, ...) not explicit | d enters only through κ |
| NORMALIZATION_MISMATCH | Coordinate/scaling conventions inconsistent | Rescaled vs raw coordinates |
| CONSTANT_DEPENDENCE_HIDDEN | "C" depends on d,n,K but treated as universal | |
Group D: Scope & Claims
| Category | Description | Example |
|----------|-------------|---------|
| SCOPE_OVERCLAIM | Conclusion stated more broadly than proof supports | "β_K=0" with only generic overlap |
| REFERENCE_MISMATCH | Cited theorem's hypotheses not verified at point of use | |
Two-Axis Severity System
Axis A — Proof Status (what is wrong)
| Status | Meaning |
|--------|---------|
| INVALID | Statement false as written (counterexample exists or contradiction) |
| UNJUSTIFIED | Could be true, but current proof does not establish it |
| UNDERSTATED | True only after strengthening assumptions |
| OVERSTATED | True only after weakening conclusion / adding qualifiers |
| UNCLEAR | Ambiguous notation / definition drift (not wrong per se) |
Axis B — Impact (how much breaks)
| Impact | Meaning |
|--------|---------|
| GLOBAL | Breaks main theorem or core dependency chain |
| LOCAL | Affects a side result but not the main theorem |
| COSMETIC | Exposition only |
Severity Labels (derived)
| Label | Definition |
|-------|------------|
| FATAL | INVALID + GLOBAL |
| CRITICAL | (INVALID + LOCAL) or (UNJUSTIFIED + GLOBAL) |
| MAJOR | (UNJUSTIFIED + LOCAL) or (UNDERSTATED/OVERSTATED + GLOBAL) |
| MINOR | Clarity / notation / dimension bookkeeping that doesn't change claims |
Side-Condition Checklists for Common Theorems
When the proof invokes any of the following, require explicit verification of ALL listed conditions:
| Theorem | Required Conditions |
|---------|-------------------|
| DCT (Dominated Convergence) | Pointwise a.e. convergence + integrable dominating function |
| MCT (Monotone Convergence) | Monotone increasing + non-negative |
| Fubini/Tonelli | Product measurability + integrability (Fubini) or non-negative (Tonelli) |
| Leibniz integral rule | Continuity of integrand + dominating function for derivative |
| Implicit Function Theorem | Continuous differentiability + non-singular Jacobian |
| Taylor with remainder | Sufficient differentiability + remainder form (Lagrange/integral) |
| Jensen's inequality | Convexity of function + integrability |
| Cauchy-Schwarz | Correct inner product space + integrability of both factors |
| Weyl/Davis-Kahan | Symmetry/Hermiticity + perturbation bound conditions |
| Analytic continuation | Domain connectivity + identity theorem conditions |
| WLOG reduction | Invariance under claimed symmetry + reduction is reversible |
Workflow
Proof-obligation fan-out
Freeze mechanically enumerable source-unit IDs before extraction: stable
file spans, sections, theorem/lemma/proposition blocks, or proof environments.
Partition the source-ordered units into max_shards: 8 or fewer groups. The
executor may use at most max_concurrency: 4 active shards and requests
max_turns: 8, read-only behavior, and recursion: false in every
leaf-equivalent prompt.
Stock Codex enforcement: prompt-only. Standard Codex spawn_agent exposes
no per-child tool allowlist, recursion flag, or child turn-cap parameter. These
worker restrictions are prompt conventions unless the active host supplies
structural enforcement, so stock Codex does not provide the same hard tool,
non-recursion, and turn boundary as the Claude leaf. The executor still enforces
fixed shard and concurrency limits, no replacement workers, and the coverage
receipt. A failed, malformed, or timed-out shard gets at most one executor-side
sequential fallback and no replacement agent.
Each shard returns
{shard_id, assigned_unit_ids, covered_unit_ids, status, entries, errors}.
Assigned and covered IDs are source-unit IDs. Obligations are discovered from
those units and receive deterministic IDs only after extraction, derived
from the source-unit ID plus a stable ordinal or anchor.
Before building the global dependency DAG, emit a coverage receipt and
require 100% declared source-unit coverage. The receipt proves **source-unit
execution coverage only**; it does not prove that every relevant obligation was
discovered or that the extracted ledger is mathematically complete. Any
uncovered source unit makes the proof check INCOMPLETE/BLOCKED; no complete
validity verdict may be emitted. Only after complete source-unit coverage does
the parent mechanically merge the extracted ledger. The fresh Codex review
that evaluates it records review_independence: same-family and
acceptance_status: provisional. See