# ChemGuard — AI Drug Discovery QSAR & Co-Folding Leakage Auditor > Machine-checked Lean 4.36 minimax bounds & 4-pillar SIPS∞ molecular leakage auditor for QSAR, ADMET, AlphaFold 3, and Boltz-2 benchmarks. > Author: Fabien Pierret (Independent Researcher, NYC · ORCID: 0009-0001-1223-2170) > Live Web App: https://chem.wallstreetdebug.com > GitHub (MIT): https://github.com/fabien-pierret/chemguard-qsar > Documentation / Pages: https://fabien-pierret.github.io/chemguard-qsar/ > Hub: https://wallstreetdebug.com ## Core Scientific Contribution (Nov. 2026) - **Layer 1 (Lean 4.36.0 Certified Core — 91/91 public theorems, 0 sorry, 0 external dependencies, standard axioms only):** - Exact Tanimoto–Jaccard metric axioms on non-empty finite fingerprints (`NonZeroFP n`) via a 5-term non-negative Venn-atom identity + 1-Lipschitzness of corpus nearest-neighbor distance (`dMinFP_lipschitz`). - Corpus-coupled upper extrapolation bound (`corpus_lipschitz_extrapolation_upper`), unconditional multi-point minimax lower bound (`minimax_off_scaffold_multicorpus_lower_bound`), and general McShane–Whitney optimal recovery (`mcshane_whitney_optimal_recovery`). - Heterogeneous list-mean soft-leakage optimism gap (`soft_leakage_optimism_gap_heterogeneous`). - Direct fingerprint SALI strict monotonicity (`sali_strict_monotone_in_tanimoto_sim`), quantitative activity-cliff Lipschitz impossibility (`activity_cliff_lipschitz_impossibility`), SALI-to-cliff bridge, and cumulative/peak cliff risk monotonicity (`cliffRiskSum`, `cliffRiskMax`). - Exact IFF characterization of 4-pillar `SIPS∞(v) = max(v1, v2, v3, v4)` + universal bounded `[0,1]^4` weighted finite-`L_p` blindness (`lp_weighted_blind_unit_cube` for all integer `p >= 1`, all positive weights, all budgets `B in (0,1)`, all 4 pillars) + 3-view co-folding target-mirroring dominance. - **Layer 3 (Real ChEMBL 37 / RDKit Benchmarks, N = 2,392 unique compounds across EGFR, BACE1, hERG, JAK2):** - Standard Bemis–Murcko scaffold splits still harbor 19%–49% hidden soft Tanimoto leakage (`T_max >= 0.70`). - Eliminating soft leakage on the structural frontier collapses Tanimoto-SVR R² from `[+0.40, +0.76]` (random) to `[-0.65, +0.12]` (+53% to +126% RMSE inflation). - On 1,000 single-pillar breached splits, L1/L2/L3 averages let 93.9%/33.8%/18.5% of contaminated splits escape; `SIPS∞` blocks 100.0% with 0.0% false vetoes. - On 121 EGFR-homolog co-folding complexes passing a 40% sequence-identity split, multi-view `cofoldLeak` catches 81.0% hidden ligand/pocket memorization. ## API & CLI Endpoints - Live Web Auditor: `https://chem.wallstreetdebug.com` - JSON API (QSAR Split Audit): `POST https://chem.wallstreetdebug.com/api/audit/qsar` - JSON API (ChEMBL Target Live Audit): `POST https://chem.wallstreetdebug.com/api/audit/chembl` - JSON API (Co-Folding Multi-View Audit): `POST https://chem.wallstreetdebug.com/api/audit/cofold` - Health Check: `GET https://chem.wallstreetdebug.com/api/health` - Python CLI (MIT): `chemguard audit-split`, `chemguard audit-cofold`, `chemguard compare-splits` ## Commercial & Research Access - Open-Source MIT Package & Lean 4 Proofs: Free at https://github.com/fabien-pierret/chemguard-qsar - WallStreetDebug Club Pro ($29/mo): https://buy.stripe.com/00w00j4Mu3hn2Gk5pk5c401 - Quant & Biotech Desk 5-Seat License ($199/mo): https://buy.stripe.com/6oUbJ192K4lrft67xs5c402