# TradeTruth — Bullshit Detector for Trading Strategies & Polymarket/Kalshi Co-Pilot (`llms.txt`) > Author: Fabien Pierret (Independent Researcher · ORCID: https://orcid.org/0009-0001-1223-2170) > Live Web App: https://poly.wallstreetdebug.com > GitHub Repository (MIT): https://github.com/fabien-pierret/tradetruth-polymarket > GitHub Pages Showcase & Preprint: https://fabien-pierret.github.io/tradetruth-polymarket/ > WallStreetDebug Ecosystem: https://wallstreetdebug.com | https://audit.wallstreetdebug.com | https://evolve.wallstreetdebug.com | https://proof.wallstreetdebug.com ## Product Overview (Law of the Mathematical Iceberg) TradeTruth packages formally verified financial mathematics into a 5-second zero-jargon consumer web app with two core workflows: 1. **Audit a Trading Strategy / Guru:** Upload a CSV (TradingView, MyFxBook, return series) or enter reported track-record stats to get a 1-sentence Red/Amber/Green verdict ("% chance of pure luck / cherry-picking") powered by Heavy-Tail Student-t Q-DSR_nu and 4-pillar Minimax SIPS_infinity. 2. **Polymarket & Kalshi Co-Pilot:** Read live public Polymarket (Gamma/CLOB API) and Kalshi (Trade API v2) markets, check whether cross-venue spreads are real locked arbitrage or Fee-Trap Mirages, flag whale-dominated L2 orderbooks, and compute anti-ruin Ambiguity-Averse Robust Kelly bet sizes. ## Machine-Checked Lean 4.36.0 Certificate (`lean/TradeTruthCore.lean`) - 36 public theorems & 100% direct non-vacuity witness instantiations - 0 `sorry`, 0 compiler warnings, 0 external dependencies - Standard Lean kernel axioms exclusively: `[propext, Classical.choice, Quot.sound]` - Audited independently by two referees (Statement Auditor + Math Fidelity Referee; 100% of findings resolved) - SHA-256 of `lean/TradeTruthCore.lean`: `aac6875aec11e3b0de9aef3033fe63433b9d3a914b271be7285b426b209dd689` ## Four Certified Theorems & Verified Empirical Results (November 27, 2026) 1. **Theorem 1 (Ambiguity-Averse Interval Robust Kelly & Fractional-Kelly Duality):** Under calibration uncertainty `p in [p_low, p_high]` (`p_low = p_hat - eps`) and all-in execution cost `c_eff`, the unique minimax stake is `f*_rob = max(0, (p_low - c_eff)/(1 - c_eff))`, satisfying the exact Cover-Thomas martingale identity `E_{p_low}[W(f)/W(f*_rob)] = 1`, finite-horizon non-ruin, and exact fractional-Kelly duality `f*_rob = (1 - eps/(p_hat - c_eff)) * f*_nom`. On favorites (`c = 80c, p_hat = 90%`), Naive Full Kelly crosses into asymptotic ruin at `eps* = 4.52%` (`45.2%` of perceived edge); at `eps = 8%`, Full Kelly suffers `80.1%` wipeout (`>= 90%` loss) vs. `0.15%` for TradeTruth (`363x` higher median wealth across 2,000 paths). 2. **Theorem 2 (Cross-Platform Net-of-Friction Arbitrage Boundary):** Exact state-dependent two-leg IFF (`C_min < 1`), Fee-Trap Mirage Zone, exact Kalshi quadratic taker fee peak `gamma/4 = 1.75c` at `50c`, and adverse oracle-mismatch ruin bound `eta_settle < 1 - C_min`. Across 5,000 headline cross-venue alerts, `82.96%` fail (`73.90%` Fee-Trap Mirages + `9.06%` Oracle-Risk Vetoed). 3. **Theorem 3 (Minimax SIPS_infinity + Heavy-Tail Q-DSR_nu Trading BS Detector):** Across 1,000 strategies (4 adversarial scam cohorts + clean controls), equal-weight linear ratings catch `0.0%`, Gaussian DSR catches `14.5%`, `L_2` catches `92.0%`, and TradeTruth catches `100.0%` of scams with `0.0%` false rejections. 4. **Theorem 4 (Live L2 Whale-Wall Concentration & General L-Tier Book-Walk Kelly):** Verified across 18 live Nov 27, 2026 Polymarket CLOB & Kalshi v2 orderbooks (`18/18` satisfy `1/L <= HHI <= W_1 <= 1`, `W_1^2 <= HHI`, `L_eff <= 1/W_1^2`; median `W_1 = 62.2%`, median `L_eff = 2.35`). Under empirical favorite-longshot bias (1,000 seeds x 150 bets), TradeTruth lifts median terminal wealth to `1.29x` (`0.0%` ruin) vs. `0.16x` (Full Kelly) and `0.66x` (Half-Kelly). ## Live API Endpoints on `poly.wallstreetdebug.com` - `GET /api/health` — Worker status, Lean 4 certificate hash & version - `POST /api/audit/guru` — JSON or CSV strategy/guru bullshit detector (`Q-DSR_nu + SIPS_infinity`) - `POST /api/poly/safe-bet` — Ambiguity-Averse Robust Kelly anti-ruin bet sizer - `POST /api/poly/check-arb` — Cross-venue Polymarket vs. Kalshi net-of-friction & oracle-risk arbitrage checker - `GET /api/live/markets` — Live synchronized Polymarket Gamma/CLOB & Kalshi v2 market quotes + L2 whale-wall audit ## Published Prior CERN Zenodo DOIs & HAL - Software Suite v1.0.0: https://doi.org/10.5281/zenodo.24591062 - Paper 1 (Heavy-Tail Q-DSR_nu): https://doi.org/10.5281/zenodo.24591340 - Paper 2 (LLM Contextuality-Signaling): https://doi.org/10.5281/zenodo.24591378 - Paper 3 (Minimax SIPS_inf & Welch-MIA): https://doi.org/10.5281/zenodo.24591422 - Paper 4 (EvolveGuard): https://doi.org/10.5281/zenodo.24608677 (HAL: hal-05886204v1) - Paper 5 (Proof-CI): https://doi.org/10.5281/zenodo.24614087 (HAL: hal-05886244v1)