From Research Paper to Working Mathematica Notebook
Extract → Implement → Execute → Novel Results
Professor Gilo's paper on insurance collusion contains Lemma 1 — a nuanced mathematical proof involving implicit differentiation, Arrow-Pratt risk aversion, and limit arguments. GPT-5 kept making algebraic errors when trying to verify it and apply it to CRRA utility.
The entire task was accomplished with a single natural-language request:
That's it. No manual equation entry. No debugging. No iteration.
AI reads the full PDF and extracts every equation
CandleKeep library provides Wolfram Language syntax reference
Skill generates validated .nb with 12 sections
Syntax validation: brackets, characters, structure
Insurance Collusion and Imperfect Competition when Insurers Increase Risk
All 6 equations (14–19) from the Appendix verified computationally in the notebook.
| Finding | Detail |
|---|---|
| ✅ Lemma 1 Proof Correct | All algebraic steps (Eq. 14→19) verified computationally |
| ✅ CRRA Satisfies 1(i) | For γ > γ_crit, insurance demand is single-peaked in P |
| 📊 Critical γ ≈ 1–3 | For typical parameters (W=100, H=40, q=1.3) |
| 🎯 Empirically Relevant | Standard CRRA estimates γ=2–5 consistently satisfy Lemma 1(i) |
| 📈 Phase Diagram | Complete (γ, q) map showing Lemma 1(i) vs 1(ii) regions |
| ✅ P→1 Limit | dα*/dP proven negative — concavity argument confirmed |
AI orchestrator that reads papers, plans the approach, writes code, and validates output
RAG-backed Wolfram Language reference — correct syntax for Manipulate, FindRoot, Plot, etc.
Custom skill with notebook generation rules, .nb format constraints, and validation checklist
Invalid characters, BoxData check, bracket balance, notebook structure, string escaping — all automated
From Research Paper to Working Mathematica Notebook
ESL • ⚡ Ampcode • ◆ Wolfram Mathematica