← Back to Pull requests

Migrate the blueprint to Verso Blueprint #509

Open
unknown opened this pull request with 329 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 11, 2026 10:39 UTC
Author

Migrates the blueprint from leanblueprint (LaTeX/plasTeX) to Verso Blueprint, following the setup of cohn-elkies-refactor.

#437 and #547 needs to be merged first.

Layout


  • New library SpherePackingBlueprint with one chapter module per section of the old content.tex (Chapters/{SpherePackings,PackingsDensity,E8,FourierAnalysis,CohnElkies,ModularForms,FourierEigenfunctions,ProofOfG,References}.lean).

  • SpherePackingBlueprint/Macros.lean holds the macros from common.tex as a tex_prelude.

  • SpherePackingBlueprintMain.lean is the generator. Build with lake exe vbp build (or make blueprint); serve locally with make serve.
  • Conversion


  • The content is converted as-is: the maths and wording are unchanged.

  • Labels keep their original LaTeX names.

  • \lean{} → (lean := …). These names are checked when the blueprint builds, which replaces checkdecls.

  • \uses{} → (uses := …), and \ref → {bpref …}[]. An unknown label now fails the site build.

  • \leanok is dropped: Verso computes the status from Lean.

  • Equation references become fixed \tags, e.g. (7.12).

  • - KaTeX allows one tag per display, so a multi-row align with several labelled rows is split into one display per row.
  • Verso has no remark or example blocks.

  • - Remarks become prose, or a definition when they link to a Lean declaration.
    - Optional theorem titles become an italic first line inside the block.
  • Citations are plain [Key] text, with a References chapter.

  • The two % AUDIT NOTE comments (the sign of g, and the factor on J₆') are now visible TODOs.

  • The \lean{} renames from main (Derivative.serreDerivative etc.) are ported, and ψS_eq' became ψS_eq.
  • Build / CI


  • CI builds the site and copies it to home_page/blueprint. docgen-action now only builds the API docs and the homepage (blueprint: false). Verso package builds are cached.

  • The PDF blueprint is dropped. vbp build --pdf exists but needs lualatex in CI.

  • VersoBlueprint and mathlib are pinned to v4.35.0. The lakefile still said v4.35.0-rc4 even though the manifest was already on v4.35.0.

  • linter.flexible → weak.linter.flexible, because it is only defined by Mathlib and the blueprint modules don't import Mathlib.

  • mk_all --check is restricted to --lib SpherePacking.

  • blueprint/, requirements.txt and the leanblueprint Makefile targets are removed. README and homepage links now point to the new dependency graph page.
  • 🤖 Generated with Claude Code

    Diff: 329 lines (+246 / -83) across 4 files Reviewer: seewoo5 Review duration: 33850m
    All Vouch review confidence checks passed
    Residual risk 0.35 = Change Risk (0.65) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 329 lines diff across 4 files
    0.65
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.347
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.065
    Real PR Conversation Timeline
    1 comments
    "Review active on #509"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 65.3% (HIGH) · Higher = larger blast radius
    65.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 34.8% · Safe to merge
    34.8%