Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8324106
Add a content-addressed replay cache keyed by ADR-015 DigestSets (#338)
Oct 29, 2026
4ace134
Notes for #338: Mathlib export versus leanchecker timings
Oct 29, 2026
c851054
feat(deps): pin Mathlib as a Lean library, lock rows, and explicit de…
claude Oct 29, 2026
3d1a561
Mathlib import: specialisation wrappers and the signature probe (GL-1…
Oct 29, 2026
1e96ad4
mathlib speed: import and replay measurements, closure replay prototy…
Oct 29, 2026
382b743
Generate a kind-lean glossary from Lean declarations (#335)
claude Oct 29, 2026
54d04ab
Merge #335 glossary into #334 pin
Oct 29, 2026
3c6fcb8
Renumber the specialisation row GL-19 to GL-21 (collides with the glo…
Oct 29, 2026
b76cb49
Renumber the specialisation section 13.12 to 13.13 (collides with the…
Oct 29, 2026
72e4523
Merge #336 specialisation wrappers
Oct 29, 2026
c154c3c
Merge remote-tracking branch 'b337/feat/mathlib-speed' into feat/math…
Oct 29, 2026
3b14e43
Renumber the replay-cache codes LLV7019/LLV7020 to LLV7021/LLV7022 (c…
Oct 29, 2026
cb23a33
Merge #338 replay cache
Oct 29, 2026
9d2af0f
Regenerate CONFORMANCE.md and ERRORS.md from the merged model
Oct 29, 2026
da068fc
Mathlib import: design document (#341), draft with #339 and #340 pending
Oct 29, 2026
886e656
Mathlib import design: fold in the #339 axiom-audit notes
Oct 29, 2026
e0a955f
Mathlib import: axiom audit and status wording for imported declarati…
Oct 29, 2026
2b2fadb
Merge remote-tracking branch 'b341/tip' into feat/mathlib-import-inte…
Oct 29, 2026
80ab192
Fix three defects the BLAKE3 demo found in the merged Mathlib import
claude Oct 29, 2026
32c579a
xtask: recreate symbolic links when linking an example Lake workspace
claude Oct 29, 2026
8225f44
Renumber the probe-binders row VR-25 to VR-27 (collides with #339)
claude Oct 29, 2026
9b507fc
Merge feat/mathlib-import-integration into feat/mathlib-demo
claude Oct 29, 2026
8badf2b
Add the BLAKE3 G acceptance demo for the Mathlib import (#340)
claude Oct 29, 2026
502f9f8
README: restore the capability table the README refresh removed (RP-11)
Oct 29, 2026
d4cc705
Mathlib import design: fill in the #340 acceptance demo
Oct 29, 2026
42ae3a7
Mathlib import design: verify time range is 40 to 74 s
Oct 29, 2026
f1ea14f
Merge remote-tracking branch 'b341/tip' into feat/mathlib-import-inte…
Oct 29, 2026
31379d3
Move the Mathlib demo out of the default example sweeps (EX-10)
claude Oct 29, 2026
7c6467d
xtask: drop two needless borrows (clippy)
claude Oct 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/mathlib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# The Mathlib demos (SPEC.md §28.6), in a workflow of their own.
#
# A demo is a project that needs a Lean library fetched with `lexlean deps
# fetch` (§10.4). Fetching is the one operation that reaches the network, so no
# default gate runs a demo: the acceptance gate of ci.yml (§9.4) is a clean
# checkout with only Rust and the pinned Lean toolchain, and its sweeps of
# `examples/` discover nothing that needs a library (EX-10). This workflow is
# where a demo is verified, and it is not part of that gate: the gate's
# evidence says nothing about it, and this run's says nothing about the gate.
#
# Like the gate it starts from a clean checkout with no build cache (§9.4): the
# library is fetched on every run (about five minutes and seven gigabytes, of
# the fourteen the runner has free), so a stale cache cannot stand in for the
# pinned revision.
name: mathlib

on:
push: { branches: [main, "release/**"] }
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: mathlib-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
CARGO_TERM_COLOR: always

jobs:
mathlib:
name: mathlib demos
runs-on: ubuntu-24.04
timeout-minutes: 120
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install the pinned Rust toolchain
run: rustup toolchain install
- name: Install elan and the pinned Lean toolchain
run: |
set -euo pipefail
curl https://elan.lean-lang.org/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
"$HOME/.elan/bin/elan" toolchain install "$(cat lean-toolchain)"
- name: Build the executable
run: cargo build --locked -p lexlean --bin lexlean
# The only step that reaches the network (I15): `lexlean deps fetch` runs
# `lake exe cache get` in each demo's Lake workspace, which clones the
# library at the revision pinned in `lexlean.toml` and downloads its
# built `.olean` files. Nothing is rebuilt. The host library of the demo
# is built after it, because `verify` never builds one (§13.13).
- name: Fetch the pinned Mathlib and build the host library
shell: bash
run: |
set -euo pipefail
df -h "$GITHUB_WORKSPACE"
for demo in demos/*/; do
(cd "$demo" && "$GITHUB_WORKSPACE/target/debug/lexlean" deps fetch)
(cd "$demo" && lake build)
done
df -h "$GITHUB_WORKSPACE"
- name: Verify the demos
shell: bash
run: |
set -euo pipefail
mkdir -p ci-evidence
cargo xtask verify-demos 2>&1 | tee ci-evidence/verify-demos.txt
grep -F "verify-examples: mathlib-blake3-g verified (attestation " ci-evidence/verify-demos.txt
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() }}
with:
name: mathlib-demos-evidence
path: ci-evidence
if-no-files-found: error
retention-days: 14
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# LexLean build roots inside examples and fixture projects. The committed
# artifacts are the expected/ oracles, never a live build directory.
examples/**/.lexlean/
# Fetched Lean libraries and Lake build products of an example (SPEC.md §10.4).
examples/**/.lake/
demos/**/.lake/
demos/**/.lexlean/
tests/**/.lexlean/
compiler/.lexlean/

Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ versions. `v0.1.0` is tagged, and `v0.4.0` is tagged at the commit that carries
this changelog; the sections for `0.1.1`, `0.2.0`, and `0.3.0` record what the
workspace carried at those versions without a tag.

## Unreleased

- Specialisation wrappers (`GL-21`, SPEC.md §13.13). A class-polymorphic Lean
declaration is written at a concrete type as one `public` declaration of the host
library, `LexLeanSpec.<tag>.<declaration>`, whose type is `type_of%` the
application `@declaration arguments` and whose value is that application: a term,
with every name qualified from the root. `lexlean::wrappers::{parse_request, emit}`
and `cargo xtask emit-wrappers` take a `lexlean/wrappers/1` request and write the
host module; a request outside the closed term grammar is `LLT4018`.
- The external-interface probe (`VR-24`, §18.8) holds an entry that denotes a
wrapper to `example : (<signature>) = (type_of% @<wrapper>) := rfl`, so that its
signature is definitionally the type of the wrapper. A signature that differs is
`LLT4017`; a wrapper that is absent stays `LLT4003`. Every other entry's probe line
is unchanged. The register is 459 IDs.

## 0.4.0

Release `0.4.0` is cut at the downstream boundary (#92, 2026-10-25): what the
Expand Down
Loading
Loading