Spaces:
Running
Running
ship: SZLHOLDINGS/lean-kernel — live Lean v4.13.0 + Mathlib kernel, 7 API endpoints, honest build status
Browse files- Dockerfile +6 -4
- README.md +1 -1
Dockerfile
CHANGED
|
@@ -26,11 +26,13 @@ RUN git clone --depth 1 https://github.com/szl-holdings/lutar-lean.git ${LUTAR_R
|
|
| 26 |
&& cat lean-toolchain \
|
| 27 |
&& lake --version
|
| 28 |
|
| 29 |
-
# ---
|
| 30 |
-
#
|
| 31 |
-
#
|
|
|
|
|
|
|
|
|
|
| 32 |
RUN cd ${LUTAR_REPO} \
|
| 33 |
-
&& lake update -R \
|
| 34 |
&& (lake exe cache get || echo "WARN: mathlib cache fetch incomplete; build will compile from source on demand")
|
| 35 |
|
| 36 |
# --- python service deps ---
|
|
|
|
| 26 |
&& cat lean-toolchain \
|
| 27 |
&& lake --version
|
| 28 |
|
| 29 |
+
# --- warm Mathlib cache (best-effort; build still works without) ---
|
| 30 |
+
# The repo ships a pinned lake-manifest.json, so we DO NOT run `lake update`
|
| 31 |
+
# (which could move deps off the pinned revs). `lake exe cache get` pulls the
|
| 32 |
+
# prebuilt Mathlib oleans for the pinned revs so the on-demand `lake build` is
|
| 33 |
+
# fast. If the cache is unavailable the kernel still serves; the build endpoint
|
| 34 |
+
# reports the honest failure rather than faking green.
|
| 35 |
RUN cd ${LUTAR_REPO} \
|
|
|
|
| 36 |
&& (lake exe cache get || echo "WARN: mathlib cache fetch incomplete; build will compile from source on demand")
|
| 37 |
|
| 38 |
# --- python service deps ---
|
README.md
CHANGED
|
@@ -34,4 +34,4 @@ This Space pins **Lean v4.13.0 + Mathlib v4.13.0** (from the repo's `lean-toolch
|
|
| 34 |
|
| 35 |
Numbers are **never hardcoded** — every figure is recomputed live from the deployed commit. If `lake build` fails (e.g. Mathlib cache or disk is unavailable on the box), `healthz` and the UI report **BUILD FAIL** with the verbatim error tail. Nothing is faked green.
|
| 36 |
|
| 37 |
-
Doctrine v10. Author: Stephen P. Lutar Jr. (ORCID 0009-0001-0110-4173), SZL Holdings.
|
|
|
|
| 34 |
|
| 35 |
Numbers are **never hardcoded** — every figure is recomputed live from the deployed commit. If `lake build` fails (e.g. Mathlib cache or disk is unavailable on the box), `healthz` and the UI report **BUILD FAIL** with the verbatim error tail. Nothing is faked green.
|
| 36 |
|
| 37 |
+
Doctrine v10/v11. Author: Stephen P. Lutar Jr. (ORCID 0009-0001-0110-4173), SZL Holdings.
|