Repository navigation
Conversation
|
Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict. [Low impact] The refactor appears mergeable; no actionable regression was found. SummaryMoves
Vilin97 explicitly disclosed the higher clean-build time and combined memory use. These are acknowledged tradeoffs: clean builds still compile the moved proof, and overlapping compiler processes affect combined memory. Reviewed the project card, headline type, imports, consumers, and preserved attribution. External source history and license provenance were not independently verified. Performance measurements and validation results are author-supplied; they were not rerun. Reviews (1) · Last reviewed commit: "Speed up closed-immersion vanishing rebu..." · Reviewed by Greptile |
Vilin97
left a comment
There was a problem hiding this comment.
Approve on source review of 3d18cd54e3ee50cdda883f7333e2c943fbd18499. Required CI and the configured review are pending.
PushforwardHIso and its supporting instance move unchanged. ClosedImmersionCohomology still publicly imports them, so existing imports continue to expose the declarations. The shared kernel-stalk lemma uses the unit's stalk isomorphism on the closed subset and ambient stalk vanishing off it. Both callers retain the same hypotheses, and the middle-cohomology argument transports subsingleton structure along the corresponding surjection and injection. The three modified theorem headers match the base.
The reported median warm assembly rebuild fell from 19.48 s to 4.39 s. Clean project time rose from 146.64 s to 151.10 s, and combined peak compiler memory rose by 9.27% while individual peak memory was essentially flat. The split pays off when the assembly changes and the compiled pushforward proof can be reused. I checked the source delta and the declaration audit reported in the PR. The performance figures are the author's measurements.
Proof profile (new / modified Lean files)
This build covers the changed modules and their dependency cones on top of the restored cache. The serial per-file sums below are useful for ranking slow files, not as a build budget. A base→head comparison was attempted but its measurements are unavailable (see the run log); modified files are omitted from the tables below. Statement changes✅ No statements changed — all 17 tracked declarations across 4 modified files kept their type; only proofs / definition bodies changed. Also: 1 declaration added, 2 removed. A reorganization moves declarations between files, which shows up here as an add in one file and a remove in another. ➕ Declarations added (1)
➖ Declarations removed (2)
Statements are compared textually against the merge base (comments and whitespace ignored; Total heartbeats: 263,052 maxHeartbeats units across 1 valid file (119 added LOC). Sum of Count-heartbeats wall-clock total: 27.01 s. Repeated import cost inside Heartbeat values sum disjoint root command traces with LOC counts added lines in the profiled Lean files from this PR diff.
Aggregate phase totals
Slowest changed modules (from
|
| Changed module | Lake time |
|---|---|
LeanPool.GrothendieckVanishing.ClosedImmersionPushforward |
21.00 s |
Per-file `lean --profile` output
LeanPool/GrothendieckVanishing/ClosedImmersionPushforward.lean
import took 908ms
type checking took 640ms
let-to-have transformation took 460ms
type checking took 672ms
type checking took 305ms
type checking took 293ms
type checking took 642ms
type checking took 1.41s
type checking took 986ms
type checking took 1.34s
type checking took 1.37s
type checking took 1.43s
type checking took 1.39s
type checking took 7.24s
cumulative profiling times:
attribute application 1.46ms
congr simp thm 0.383ms
declTypeLinter 2ms
elaboration 36.6ms
fix level params 1.16ms
import 908ms
initialization 30.1ms
instantiate metavars 1.94ms
interpretation 116ms
let-to-have transformation 460ms
linting 4.62ms
module linting 0.025ms
parsing 2.68ms
process pre-definitions 27.2ms
share common exprs 3.59ms
simp 9.74ms
tactic execution 182ms
tacticAnalysis 1.19ms
type checking 17.7s
typeclass inference 1.65s
real 20.54
user 20.43
sys 0.94
Advisory only — never blocks merge. Full log uploaded as the proof-profile artifact.
Ready for review. The warm closed-immersion assembly rebuild takes 77.48% less time.
Project and changes
GrothendieckVanishinghas 28 modules at base. The November 30 source profile at646bda5fb5e4463b9b20fe648998f9924d4d769areported 70.25 seconds forCohomologyCalculus, about 36% of its 194.2 seconds of summed module time. I investigated that concentration first. The declaration audit rejected the attempted calculus splits. The closed-immersion module had a separate opportunity to cache the pushforward isomorphism across assembly edits. Lean Pool source profilePushforwardHIsoand its supporting instance toClosedImmersionPushforward.lean.ClosedImmersionCohomology.leanpublicly re-exports the new module, so existing import paths still expose these declarations.Declaration audit
Base
6b508831f8e5ea6ded0883ba2b3198560d5b1335and head3d18cd54e3ee50cdda883f7333e2c943fbd18499. The compressed snapshots were produced withlake env lean --runand imported the project's modules at Lean's private and exported levels. All 496 existing declarations matched in name, universe parameters, kind, safety, visibility, and elaborated type. All 81 existing definition values matched. The only raw differences for existing declarations were 28 source-module records and nine generated binder hygiene tags inPushforwardHIsoand three of its proof auxiliaries. The comparison normalized only those tags. Lean's ownExpr.eqvindependently confirmed the types and definition values through the original import path. The one new declaration is the shared stalk lemma.Measurements
Lean v4.36.0 and Mathlib
fc4f59e577feb1a4956671bc04ac18aaaf8cd842on the same Azure VM. Each side used the same CPU affinity, four Lean threads, and prebuilt dependency outputs.Clean trials removed all of this project's Lake outputs. Warm trials removed only
ClosedImmersionCohomology.*from the project's Lake library and IR output directories before rebuilding the same target. The sampler readRssAnon + VmSwapabout every 100 ms. Combined memory sums the project compiler processes active at each sample.The 10% target is met for the warm assembly workload. A clean build still compiles the pushforward isomorphism. Combined memory depends on which Lean processes overlap on this VM.
Validation
python -m lean_pool.shard_validation --repo .. --units GrothendieckVanishing.lake exe lint-style LeanPool.GrothendieckVanishing.Imports,python -m lean_pool.quality --repo .. --static-onlyfrompython/, andgit diff --check.lake exe mk_all --module --checkandlake exe mk_all --check. Usedlake shake --force --keep-public LeanPool.GrothendieckVanishing.Importsfor import analysis.