Skip to content

Speed up MovingSofa certificate compilation - #1064

Merged
Vilin97 merged 1 commit into
mainfrom
vilin/optimize-moving-sofa-grid-replay-20261128
Nov 28, 2026
Merged

Vilin97 merged 1 commit into
mainfrom
vilin/optimize-moving-sofa-grid-replay-20261128

Conversation

@Vilin97

@Vilin97 Vilin97 commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Ready for review. MovingSofa’s peak concurrent compiler anonymous memory fell 12.61% in the matched Azure VM build, and all original declarations matched.

Changes

MovingSofa ranked first in the repository’s cold-build cost table. The baseline logged 1,018.4 summed Lake seconds across its Part E certificate bundles. CI cost table

  • Part E rejection replay. Compare signed magnitudes directly, round binary-grid products and dyadic scales with shifts, and reuse the exact one-unit Taylor radius below a proved cutoff. An equality theorem identifies the optimized Boolean with the existing binary-grid test. The certificate bundles select it through a local instance and reuse the finer evaluator on inconclusive cells.
  • Cap and niche areas. Select the two extremal products from the signs of the Taylor terms and combine successive outward divisions into one. The new evaluator is proved equal to the original contact arithmetic, so the existing rectangle and shoelace subtotal statements use the faster computation.
  • Part B product cells. Check each of the 64 rounded first cells against one rectangle containing all 64 second cells. A monotonicity lemma transports each box check to every covered second cell, replacing 4,096 individual pair checks with 64 box checks and the coverage proof.

Declaration audit

Base 51531356f36615cebb2c8937806132eb779b58d1 · head 911f1a0e38f536ade664a3b8a9de6ece418f03d9. The pre-edit base was c0a34d020d4d0523e8be1a2b5b7f01e1c7c0ffdb. The current parent’s clean build independently reproduced the compressed base manifest byte for byte.

A local Lean inspector read the exported, server, and private parts through Lean.readModuleDataParts for every project module. The structural records include ownership, name, visibility tier, universe parameters, full elaborated type, kind, safety, reducibility, inductive and recursor metadata, non-theorem values, and compiler-generated names. The comparison omits theorem proof bodies and kernel-inert expression metadata.

All 250,316 original records covering 106,984 declarations matched. The 440 added records belong to the new replay helpers and their generated declarations. The separately compiled benchmark checkout reproduced the final manifest with zero differences.

  • Base manifest SHA-256 51dfdc285f73694b00862a5cdc567abee349f706a655e0d4cce73892ecb068dd
  • Head manifest SHA-256 557f464629df6907b368dcb85dfbfb9f7bc031bd9f526420abb61f3e33e446ce

Measurements

Both sides rebuilt every owned module on the same Azure VM with Lean 4.36.0 and Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842. They started together on disjoint sets of four physical cores with SMT, using warm dependency, Isoperimetric, and linter-plugin artifacts. Only project outputs were cleared. The base built 65 modules and the head built 66.

export LEAN_NUM_THREADS=4 PYTHONPATH=python
/usr/bin/time -v taskset -c "$cpus" python3 -m lean_pool.build_time_limits watch \
  --base 51531356f36615cebb2c8937806132eb779b58d1 -- lake --no-ansi --wfail build +LeanPool.MovingSofa.Imports

The base used CPUs 8-15 and the head used 0-7.

Metric Base Head
Elapsed time 1,038.57 s 985.68 s (5.09% lower)
User + system CPU 3,023.97 s 2,860.48 s (5.41% lower)
Peak process RSS 2,779,628 KiB 2,762,372 KiB
Peak concurrent compiler anonymous memory 2,910,932 KiB 2,543,792 KiB (12.61% lower)
Peak single compiler anonymous memory 1,168,900 KiB 1,173,184 KiB
Cap area certificate 133.0 s 87.0 s
Niche area certificate 202.0 s 116.0 s
Core Bundle003 117.0 s 95.0 s
Part E Bundle005 85.0 s 72.0 s
Part E Bundle029 89.0 s 58.0 s

An earlier sequential clean comparison was 585.67 → 541.53 s elapsed and 2,714.50 → 2,514.01 s CPU. Host load and parallel scheduling affect elapsed time. Every 0.5 seconds, the sampler added RssAnon + VmSwap across the active MovingSofa Lean compiler processes in each worktree. The reported build peak is the maximum of those sums. The single-compiler peak comes from the same samples. The concurrent peak depends on how Lake schedules overlapping modules. This benchmark measured one matched pair for the final patch.

Validation

  • Clean warning-free project build, CI build-time and memory watchdog, and lake --wfail --no-build build +LeanPool.MovingSofa.Imports. The per-file time check covered all 37 changed files. The slowest was 116 s with a 600 s limit.
  • python -m lean_pool.shard_validation --repo . --units MovingSofa passed the repository’s Mathlib/Batteries declaration linters, declaration resolution, permitted-axiom, environment trust and option, and compiler-message audits.
  • lake --wfail exe lint-style LeanPool.MovingSofa.Imports and python -m lean_pool.quality --repo . --static-only.
  • lake exe mk_all --module --check, lake exe mk_all --check, python -m lean_pool.rebase_fastpath check-index, documentation toolchain and Mathlib pin parity, and git diff --check.
  • lake shake --force --keep-public --keep-implied --explain LeanPool.MovingSofa.Imports reviewed the existing import graph and the new replay module’s imports. The explicit omega tactic import is marked for preservation.

Local compiled validation covers MovingSofa. GitHub CI covers the full pool.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict.

No blocking issue was found in the certificate changes.RetriggerView in Greptile

[Medium impact] No blocking issue was found in the certificate changes.

Summary

This PR speeds up MovingSofa certificate checks without changing their original statements.

  • Part E certificate bundles use a faster exact check to reject cells.
  • Cap and niche certificates replay area calculations with faster interval arithmetic.
  • Part B checks each first cell against one box covering the second cells.

The supplied measurements report lower build time and peak concurrent compiler memory. Builds and benchmarks were not rerun during this review. External upstream sources were not independently rechecked.

Reviews (1) · Last reviewed commit: "Speed up MovingSofa certificate compilat..." · Reviewed by Greptile

@Vilin97 Vilin97 left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source review passed for 911f1a0e38f536ade664a3b8a9de6ece418f03d9.

  • Part E proves that the shift-based evaluator returns the original rejection Boolean and retains the finer fallback. All 30 bundle changes are confined to switching the local evaluator and updating its comment. I verified all 32 files at the historical reproduction pin against the recipe digests.
  • The cap and niche evaluators prove equality to the original interval endpoints before checking the same subtotals. Part B checks a covering rectangle for each of the 64 first cells, then proves the original checks for all 4,096 pairs by containment and monotonicity.
  • The reported matched build pair measured 5.41% lower CPU time and 12.61% lower peak combined anonymous compiler memory. The single-compiler anonymous peak was 0.37% higher. The combined peak depends on which modules overlap. Benchmark and declaration audit

The hosted Proof Profile measured higher elaboration cost in the two comparable helper modules. Heartbeats rose 13.6% in FixedPointResiduals and 31.1% in ProductCellBounds. The merge-base profiling environment lacked the new evaluator and helper declarations, so it could not compare the affected certificates. The full-project build pair captures the certificate savings and helper overhead together. Proof Profile

The required Lean build passed at this head. Lean Action CI

@Vilin97

Vilin97 commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

🤖 LLM review — refactor (gpt-6.2-sol)

Reviewed head: 911f1a0e38f536ade664a3b8a9de6ece418f03d9

Verdict: 🛑 request_changes

The PR speeds up MovingSofa certificate replay with shift-based arithmetic for Part E, cheaper Taylor steps for the cap and niche, and one covering rectangle for the Part B product checks. Targeted Lean compilation passed for both area certificates, Part B’s core bundle, the Part E evaluator, and Part E Bundle029. The full-project timing and memory figures come from the contributor’s benchmark.

Aspect Value
Scope certificate replay optimization
Introduces tech debt 🛑 yes
Maintainability 🛑 regressed
Brittleness 🛑 more_brittle
Risk 🟡 medium

Keep the faster arithmetic and the reusable Part B box proof, and give the area contact formulas a single implementation before merging.

Findings (1)

  • duplicated-logic — LeanPool/MovingSofa/Development/Geometry/Foundations/AreaCertificateReplay.lean:161
    evalFromTrig duplicates all five phase branches and the contact offsets from evalZ. The equality proof catches divergence at compile time, so a geometry correction requires matching edits in both files. Move evalFromTrig into AreaCertificateInputs and have both evaluators call it with their respective sine and cosine intervals. That extraction passed both area certificate builds and the four definitional equality checks used by the contact soundness proof in a scratch experiment.

Tokens: 3,958,014 in / 16,976 out · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $16.0867 (Standard API equivalent; uncached input) (long-context rate)
Automated review against .github/REFACTOR_REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.
request_changes is an ask, not a close: of the reviewer's past request_changes verdicts, 39% were merged after a human looked. Read the findings before acting on the verdict.

@Vilin97
Vilin97 added this pull request to the merge queue Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Proof profile (new / modified Lean files)

lake build wall time (changed modules): 28.31 s (= 0.47 min) — user 5.66 s, sys 3.64 s.

This build covers the added modules and their dependency cones on top of the measurement environment; modified files are measured without rebuilding the pool.

Statement changes

✅ No statements changed — all 49,917 tracked declarations across 36 modified files kept their type; only proofs / definition bodies changed.

Also: 47 declarations added, 0 removed. A reorganization moves declarations between files, which shows up here as an add in one file and a remove in another.

➕ Declarations added (47)
  • MovingSofa.GerverAreaCert.decideBlock — LeanPool/MovingSofa/Development/Geometry/Foundations/CapAreaCertificate.lean
  • MovingSofa.GerverAreaCert.replayLower — LeanPool/MovingSofa/Development/Geometry/Foundations/CapAreaCertificate.lean
  • MovingSofa.GerverAreaCert.replayLower_eq — LeanPool/MovingSofa/Development/Geometry/Foundations/CapAreaCertificate.lean
  • MovingSofa.GerverAreaCert.decideRectangleBlock — LeanPool/MovingSofa/Development/Geometry/Foundations/NicheAreaCertificate.lean
  • MovingSofa.GerverAreaCert.rectangleBlockReplay — LeanPool/MovingSofa/Development/Geometry/Foundations/NicheAreaCertificate.lean
  • MovingSofa.GerverAreaCert.rectangleBlockReplay_eq — LeanPool/MovingSofa/Development/Geometry/Foundations/NicheAreaCertificate.lean
  • GerverSofa.PartB.roundedBlock_from_box — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/Bundle003.lean
  • GerverSofa.PartB.roundedPathBox — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/Bundle003.lean
  • GerverSofa.PartB.roundedPathBox_covers — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/Bundle003.lean
  • GerverSofa.PartB.roundedPathBox_passes — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/Bundle003.lean
  • GerverSofa.PartB.ProductCellBounds.GridInterval.Covers — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/ProductCellBounds.lean
  • GerverSofa.PartB.ProductCellBounds.GridInterval.productLower_mono — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/ProductCellBounds.lean
  • GerverSofa.PartB.ProductCellBounds.GridInterval.sub_covers_second — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/ProductCellBounds.lean
  • GerverSofa.PartB.ProductCellBounds.imageLower_mono — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/ProductCellBounds.lean
  • GerverSofa.PartB.ProductCellBounds.minProduct_le — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/ProductCellBounds.lean
  • GerverSofa.PartB.ProductCellBounds.passes_of_second_covered — LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/ProductCellBounds.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.decidableRejected — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.endpointLE — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.endpointLE_spec — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.horner — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.horner_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.lowerEndpoint — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.lowerEndpoint_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.mul — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.mulRight — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.mulRight_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.mulRight_eq_mul — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.mulRight_lower_nonnegative — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.mul_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.nonnegative — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.nonnegative_spec — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.positive — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.positive_spec — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.radius — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.radius_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.rejects — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.rejects_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.round — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.scale — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.scale_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.separated — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.separated_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.shift_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.trig — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.trig_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.upperEndpoint — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean
  • GerverSofa.PartE.FixedPointResiduals.BinaryGrid.ShiftedGrid.upperEndpoint_eq — LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean

Statements are compared textually against the merge base (comments and whitespace ignored; by proof terms embedded in a type are treated as proof-irrelevant), the same method as physlib's /check-golf. Anonymous instances and examples are not tracked.

Compile cost of modified files — base → head

Heartbeats: 60,614 → 70,301 (+9,686, +16.0%). Commands: 255 → 307.

Per-file wall sum: 12.2 s → 15.6 s (+27.9%). Wall clock is measured under parallel load and is noisy; heartbeats are deterministic and are the regression signal.

Files: 2 compared — 0 cheaper, 2 costlier, 0 within noise (threshold: |Δ heartbeats| ≥ 1,000 and ≥ 1%).

Both sides are elaborated against the merge-base build of the pool — sound when only proofs and definition bodies change; a file whose statements changed may fail there and is flagged ⚠. Heartbeats come from disjoint root command traces with trace.profiler.useHeartbeats and synchronous elaboration, converted to maxHeartbeats units. Failed measurements are not classified as cheaper or costlier. Δ lines counts added/deleted lines from this PR diff.

File Δ lines HB base HB head Δ HB Δ HB % Wall base (s) Wall head (s)
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/FixedPointResiduals.lean +206/-0 52,471 59,623 +7,152 +13.6% 9.75 10.03
LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/ProductCellBounds.lean +55/-0 8,144 10,678 +2,534 +31.1% 2.48 5.61
Total +261/-0 60,614 70,301 +9,686 +16.0% 12.2 15.6

New files — absolute profile

Total heartbeats: 7,586 maxHeartbeats units across 1 valid file (411 added LOC).

Sum of lean --profile: 1576.3 ms (= 1.58 s) across 1 valid file. Import-excluded time: 698.3 ms (= 0.70 s).

Count-heartbeats wall-clock total: 2.05 s. Repeated import cost inside lean --profile: 878.0 ms (= 0.88 s).

Heartbeat values sum disjoint root command traces with trace.profiler.useHeartbeats and synchronous elaboration, converted from raw allocations to maxHeartbeats units by dividing by 1000. They include command elaboration and kernel checking, exclude imports, and include profiler overhead; they are not comparable to the deprecated linter's totals. Per-file wall clocks are measured under parallel load and are noisier than heartbeats.

LOC counts added lines in the profiled Lean files from this PR diff.

File LOC Heartbeats (maxHB) Count wall (s) lean --profile (s) Without import (s) Import (s) Commands Errors
LeanPool/MovingSofa/Development/Geometry/Foundations/AreaCertificateReplay.lean 256 7,586 2.05 1.58 0.70 0.88 34 0
LeanPool/MovingSofa/Development/Geometry/Foundations/CapAreaCertificate.lean 13 — — — — — 0 1
LeanPool/MovingSofa/Development/Geometry/Foundations/NicheAreaCertificate.lean 17 — — — — — 0 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/Core/Bundle003.lean 34 — — — — — 812 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle001.lean 3 — — — — — 5326 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle002.lean 3 — — — — — 3926 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle003.lean 3 — — — — — 3973 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle004.lean 3 — — — — — 1062 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle005.lean 3 — — — — — 1281 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle006.lean 3 — — — — — 1031 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle007.lean 3 — — — — — 1429 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle008.lean 3 — — — — — 1060 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle009.lean 3 — — — — — 1192 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle010.lean 3 — — — — — 1921 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle011.lean 3 — — — — — 955 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle012.lean 3 — — — — — 1368 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle013.lean 3 — — — — — 1984 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle014.lean 3 — — — — — 878 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle015.lean 3 — — — — — 385 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle016.lean 3 — — — — — 1124 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle017.lean 3 — — — — — 942 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle018.lean 3 — — — — — 433 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle019.lean 3 — — — — — 1193 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle020.lean 3 — — — — — 3777 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle021.lean 3 — — — — — 1498 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle022.lean 3 — — — — — 2471 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle023.lean 3 — — — — — 3314 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle024.lean 3 — — — — — 3069 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle025.lean 3 — — — — — 3315 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle026.lean 3 — — — — — 3186 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle027.lean 3 — — — — — 3191 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle028.lean 3 — — — — — 3074 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle029.lean 3 — — — — — 3280 1
LeanPool/MovingSofa/GerverSofa/KernelOnly/PartE/Certificates/Bundle030.lean 3 — — — — — 3171 1
LeanPool/MovingSofa/Imports.lean 1 — — — — — 0 1
Total 411 7,586 2.05 1.58 0.70 0.88 65655 34

Aggregate phase totals

Phase Time
import 878.0 ms (= 0.88 s)
interpretation 180.0 ms (= 0.18 s)
tactic execution 127.0 ms (= 0.13 s)
typeclass inference 89.9 ms (= 0.09 s)
elaboration 79.2 ms (= 0.08 s)
type checking 54.1 ms (= 0.05 s)
simp 43.3 ms (= 0.04 s)
initialization 26.8 ms (= 0.03 s)
linting 20.9 ms (= 0.02 s)
parsing 17.1 ms (= 0.02 s)
compilation (LCNF base) 12.0 ms (= 0.01 s)
compilation (LCNF mono) 11.3 ms (= 0.01 s)

Slowest changed modules (from lake build)

Changed module Lake time
LeanPool.MovingSofa.Development.Geometry.Foundations.AreaCertificateReplay 2.70 s
Per-file `lean --profile` output

LeanPool/MovingSofa/Development/Geometry/Foundations/AreaCertificateReplay.lean

import took 878ms
cumulative profiling times:
	attribute application 0.443ms
	compilation (IR) 1.11ms
	compilation (LCNF base) 12ms
	compilation (LCNF impure) 5.41ms
	compilation (LCNF mono) 11.3ms
	congr simp thm 2.2ms
	declTypeLinter 6.36ms
	elaboration 79.2ms
	fix level params 0.451ms
	import 878ms
	initialization 26.8ms
	instantiate metavars 0.641ms
	interpretation 180ms
	let-to-have transformation 2.65ms
	linting 20.9ms
	module linting 0.0243ms
	parsing 17.1ms
	process pre-definitions 9.39ms
	share common exprs 2.6ms
	simp 43.3ms
	tactic execution 127ms
	tacticAnalysis 5.47ms
	type checking 54.1ms
	typeclass inference 89.9ms
real 1.83
user 1.22
sys 0.68

Advisory only — never blocks merge. Full log uploaded as the proof-profile artifact.

Merged via the queue into main with commit bc51a6d Nov 28, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant