From Research Paper to Self-Consistent Proof & Interactive Notebook
Extract → Implement → Validate → Self-Consistency → Novel Results
This isn't about GPT-5 being "not smart enough." The failures are architectural — built into how Large Language Models work. No amount of prompting can fix them.
LLMs generate text that looks like math — they predict the next token. They don't have a Computer Algebra System (CAS). When GPT-5 writes "dα*/dP = ...", it's pattern-matching from training data, not computing a derivative.
GPT-5 cannot run FindRoot, NIntegrate, or Solve. It cannot plug values back in to check if the answer is correct. Each equation is generated once — with no way to verify it actually holds.
Each token is predicted from context — there's no internal state that tracks "I assumed α is fixed here, but α depends on γ." The model cannot detect when its own assumptions contradict its conclusions.
The critical error: GPT-5 computed γ_crit ≈ 5.9 while holding α fixed. But α₀ depends on γ through the FOC. An LLM has no mechanism to detect this circular dependency — it requires solving an implicit equation, which requires a CAS.
Incorrect implicit differentiation of the FOC. GPT-5 dropped terms, confused ∂/∂P with d/dP, and produced wrong Arrow-Pratt substitutions across multiple attempts.
Could never verify that its Eq.(17) actually satisfies the identity. No FindRoot to compute α*, no NIntegrate to check limit behavior at P→0 and P→1.
Held α fixed at 0.5 while computing γ_crit, unaware this contradicts the FOC which determines α₀(γ). Repeated the same error across 5+ attempts because it couldn't "remember" the dependency.
Concluded "Lemma 1(i) holds for CRRA when γ > 5.9." The correct answer: it almost NEVER holds — only for catastrophic harm (H/W > 88%). GPT-5 had no way to catch this.
💡 The bottom line: mathematical proof verification requires execution + feedback + self-consistency checking.
These are not features you can add to an LLM with better prompts — they require an infrastructure stack.
The entire task was accomplished with a single natural-language request:
No manual equation entry. No debugging.
Extracts all equations, definitions, lemma statement, and appendix proof steps
Queries Wolfram Language syntax from 60+ reference documents for correct Mathematica code
12 sections including 3 Manipulate panels with interactive sliders
Brackets, invalid characters, BoxData, notebook structure, string escaping, cell grouping
Catches the naive threshold error — α₀ depends on γ, so γ_crit(γ) must be solved implicitly
Human-readable step-by-step proof added for presentation to the lead author
Insurance Demand under Supra-Competitive Pricing
The consumer maximizes expected utility. The FOC equates marginal cost of insurance (premium in the good state) with marginal benefit (coverage in the bad state).
At P→0, the FOC simplifies. Solving for α₀ reveals coverage depends on risk aversion γ.
Coverage α₀ depends on γ — this creates the self-consistency issue later. You cannot compute γ_crit while holding α fixed, because α itself changes with γ.
Implicit differentiation of the FOC yields Eq. (17) — the derivative dα*/dP:
If N is strictly increasing in P (crosses zero once), demand is single-peaked → Lemma 1(i)
N stays positive for all P → demand falls monotonically → Lemma 1(ii)
⚠ Domain: P ∈ [0, 1/q), not [0, 1]. The constraint 1−qP > 0 requires P < 1/q. As P → 1/q, the term (q−1)/(1−qP) → +∞, making N > 0 and dα*/dP < 0 unambiguously.
Taylor expansion of q−1/γ as γ → ∞ reveals the limiting behavior of the numerator N₀.
N₀ is ALWAYS positive for typical parameters. Lemma 1(i) NEVER holds for CRRA when H/W = 0.4
For N₀ < 0 (single-peaked demand), we need the harm term to dominate:
| Loading q | Minimum H/W | Interpretation |
|---|---|---|
| q = 1.1 | 0.954 | Harm ≥ 95.4% of wealth |
| q = 1.3 | 0.880 | Harm ≥ 88.0% of wealth |
| q = 1.5 | 0.822 | Harm ≥ 82.2% of wealth |
Only catastrophic harm (88%+ of wealth for q = 1.3) produces single-peaked demand with CRRA utility.
γ ↑ → Risk aversion increases → Ra(W₁) − Ra(W₂) becomes more negative → pushes N₀ toward negative
γ ↑ → Coverage α₀ → 1 → Wealth gap shrinks → Ra(W₁) ≈ Ra(W₂) → difference vanishes
The two effects approximately cancel, leaving the (q−1) > 0 term dominant → N₀ > 0 → Lemma 1(ii)
Utility functions where Ra(A) decreases faster than 1/A (e.g., HARA with appropriate parameters, DRRA class) are needed for Lemma 1(i) to hold at typical harm levels.
Single-peakedness of each consumer's α*(P) does not automatically imply single-peakedness of aggregate demand. A sufficient condition: if dα*/dP is strictly decreasing in P for all consumer types (regardless of how types are distributed), then the sum of derivatives is also decreasing — aggregate demand inherits single-peakedness.
The "threshold depends on the equilibrium which depends on the threshold" trap appears everywhere.
| Field | Critical Parameter | Equilibrium Variable | Self-Consistency Eq. |
|---|---|---|---|
| Economics | γ_crit | α*(γ) | First-Order Condition (FOC) |
| Physics | T_c | m(T) | Mean-field equation |
| Engineering | P_crit | δ(P) | Equilibrium equation |
| Biology | μ_c | x*(μ) | Selection-mutation balance |
| Finance | σ_c | h*(σ) | Portfolio FOC |
| Epidemiology | R₀ | I*(R₀) | SIR steady-state |
The Wolfram-Mathematica skill now checks for this pattern in any field automatically.
AI orchestrator that reads papers, plans the approach, writes code, and validates output end-to-end
RAG-backed Wolfram Language reference — correct syntax for Manipulate, FindRoot, Plot, NIntegrate, and more
Phase 4B self-consistency verification + Phase 4C plain-English proof generation — custom skill with .nb format constraints
Invalid characters, BoxData check, bracket balance, notebook structure, string escaping, cell grouping — all automated
From Research Paper to Self-Consistent Proof
ESL • ⚡ Ampcode • ◆ Wolfram Mathematica