feat: LeanFlow Phase 12 Enterprise v1.0 — README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- fluid-dynamics
|
| 7 |
+
- navier-stokes
|
| 8 |
+
- pde-solver
|
| 9 |
+
- karpathy-ratchet
|
| 10 |
+
- dual-scale
|
| 11 |
+
- lean4
|
| 12 |
+
- mhd
|
| 13 |
+
- cfd
|
| 14 |
+
- scientific-computing
|
| 15 |
+
- industrial-ai
|
| 16 |
+
pretty_name: "LeanFlow Phase 12 Benchmark --- 5 Industrial PDE Problems"
|
| 17 |
+
size_categories:
|
| 18 |
+
- n<1K
|
| 19 |
+
task_categories:
|
| 20 |
+
- other
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# LeanFlow Phase 12 Benchmark Dataset
|
| 24 |
+
|
| 25 |
+
**Enterprise Edition v1.0 | Certificate: `CERT-P12-AUTORESEARCH-D9A32D92F82E44B5`**
|
| 26 |
+
|
| 27 |
+
This dataset contains the full experimental results, certification JSON, compiled PDF report,
|
| 28 |
+
and reproducible code snapshot for the **LeanFlow Dual-Scale Navier--Stokes Solver**
|
| 29 |
+
applied to 5 industrial PDE problems via the **Karpathy Ratchet Auto-Research Loop**.
|
| 30 |
+
|
| 31 |
+
## Overview
|
| 32 |
+
|
| 33 |
+
The LeanFlow solver applies a spectral biharmonic regularisation parameter α' satisfying
|
| 34 |
+
R_eff ≥ 2√α', guaranteeing unconditional enstrophy boundedness regardless of parameter values.
|
| 35 |
+
This mathematical shield enables an LLM-driven Karpathy Ratchet to explore extreme parameter
|
| 36 |
+
regimes safely — impossible with standard CFD solvers that produce NaN blowups.
|
| 37 |
+
|
| 38 |
+
## 3 HuggingFace Datasets Used for Ground Truth Calibration
|
| 39 |
+
|
| 40 |
+
| Dataset | Problem | Calibration Use |
|
| 41 |
+
|---------|---------|-----------------|
|
| 42 |
+
| [`angioinsight/single-vessel-flow`](https://huggingface.co/datasets/angioinsight/single-vessel-flow) | H67 — Medical VAD Rotor | Blood viscosity ν = 3.5×10⁻³ Pa·s |
|
| 43 |
+
| [`polymathic-ai/MHD_64`](https://huggingface.co/datasets/polymathic-ai/MHD_64) | H70 — Tokamak Disruption | Plasma β, Mach=0.7, Ms=0.5 turbulence |
|
| 44 |
+
| [`pdebench/PDEBench`](https://huggingface.co/datasets/pdebench/PDEBench) | H66 — Scramjet SBLI | Compressible Euler Mach=2.0 (fallback: synthetic) |
|
| 45 |
+
|
| 46 |
+
## Results Summary
|
| 47 |
+
|
| 48 |
+
### 4 Certified Performance Gains
|
| 49 |
+
|
| 50 |
+
| Gain | Baseline | LeanFlow | Factor |
|
| 51 |
+
|------|----------|----------|--------|
|
| 52 |
+
| **G1: Compute Speed** (Scramjet) | 12.0 ms | 0.8 ms | **15×** |
|
| 53 |
+
| **G2: MHD Stability** (Tokamak) | 0.8 ms horizon | 16.0 ms | **20×** |
|
| 54 |
+
| **G3: Energy Yield** (Wind+BTMS) | +3.5% | +17.8% | **5.1×** |
|
| 55 |
+
| **G4: Biomedical Safety** (VAD) | 260 Pa | 137.9 Pa | **47% reduction** |
|
| 56 |
+
|
| 57 |
+
### Karpathy Ratchet Convergence (All 5 Loops)
|
| 58 |
+
|
| 59 |
+
| Loop | Iterations | Final Fitness | Status |
|
| 60 |
+
|------|-----------|---------------|--------|
|
| 61 |
+
| Aerospace Scramjet SBLI (H66) | 2/15 | 6.98 | ✅ CERTIFIED |
|
| 62 |
+
| Medical VAD Rotor (H67) | 1/15 | 46.97 | ✅ CERTIFIED |
|
| 63 |
+
| Wind Farm Steering (H68) | 2/15 | 17.85 | ✅ CERTIFIED |
|
| 64 |
+
| BTMS Micro-Channel Cooling (H69) | 3/15 | 32.12 | ✅ CERTIFIED |
|
| 65 |
+
| Nuclear Tokamak Disruption (H70) | 1/15 | 16.00 | ✅ CERTIFIED |
|
| 66 |
+
|
| 67 |
+
## Dataset Contents
|
| 68 |
+
|
| 69 |
+
```
|
| 70 |
+
leanflow-phase12-benchmark/
|
| 71 |
+
├── cert_phase12_workflow.json # Full SHA-256-sealed certificate + ratchet history
|
| 72 |
+
├── leanflow_phase12_report.pdf # 4-page technical report (LaTeX compiled)
|
| 73 |
+
├── leanflow_phase12_report.tex # LaTeX source
|
| 74 |
+
├── loop.py # Karpathy Ratchet entry point
|
| 75 |
+
└── src/ # Full solver source code snapshot
|
| 76 |
+
└── dualscale_solver/
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
## Reproduction Protocol
|
| 80 |
+
|
| 81 |
+
```bash
|
| 82 |
+
# 1. Clone and install
|
| 83 |
+
git clone https://github.com/xaviercallens/SocrateAI-Numeric-DualScale-Solver
|
| 84 |
+
cd SocrateAI-Numeric-DualScale-Solver
|
| 85 |
+
pip install -e ".[dev]"
|
| 86 |
+
|
| 87 |
+
# 2. Run the Karpathy Ratchet loop
|
| 88 |
+
python loop.py
|
| 89 |
+
# Expected: 5/5 CERTIFIED, exit code 0
|
| 90 |
+
# Output: data/output/cert_phase12_workflow.json
|
| 91 |
+
|
| 92 |
+
# 3. Verify with test suite
|
| 93 |
+
pytest tests/test_phase12_autoresearch.py -v
|
| 94 |
+
# Expected: 25/25 passed in ~2s
|
| 95 |
+
|
| 96 |
+
# 4. Lean 4 build check
|
| 97 |
+
cd lean4 && lake build
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
## Certificate
|
| 101 |
+
|
| 102 |
+
```json
|
| 103 |
+
{
|
| 104 |
+
"certificate_id": "CERT-P12-AUTORESEARCH-D9A32D92F82E44B5",
|
| 105 |
+
"overall_status": "CERTIFIED",
|
| 106 |
+
"sha256_hash": "d9a32d92f82e44b5e0ddb2061129ac8733fa84589bb676e7c5f2e495ddc132a7",
|
| 107 |
+
"schema_version": "P12-v2",
|
| 108 |
+
"solver_commit": "6467643f689ba0de",
|
| 109 |
+
"all_4_gains_certified": true
|
| 110 |
+
}
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
## Citation
|
| 114 |
+
|
| 115 |
+
```bibtex
|
| 116 |
+
@techreport{callens2026leanflow,
|
| 117 |
+
title = {LeanFlow: Dual-Scale Navier--Stokes Regularisation with Lean 4 Formal
|
| 118 |
+
Verification and Karpathy Ratchet Auto-Research},
|
| 119 |
+
author = {Xavier Callens},
|
| 120 |
+
year = {2026},
|
| 121 |
+
month = {September},
|
| 122 |
+
note = {Enterprise Edition v1.0, Phase 12},
|
| 123 |
+
url = {https://github.com/xaviercallens/SocrateAI-Numeric-DualScale-Solver}
|
| 124 |
+
}
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
## License
|
| 128 |
+
|
| 129 |
+
Apache 2.0 — see [LICENSE](https://github.com/xaviercallens/SocrateAI-Numeric-DualScale-Solver/blob/main/LICENSE)
|