Skip to content

Import analytic Hamiltonian KAM on compact action domains - #632

Merged
Vilin97 merged 2 commits into
mainfrom
codex/acquire-arnold-kam-20261010
Oct 10, 2026
Merged

Vilin97 merged 2 commits into
mainfrom
codex/acquire-arnold-kam-20261010

Conversation

@Vilin97

@Vilin97 Vilin97 commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

This imports a completed nondegenerate analytic Hamiltonian KAM theorem: a uniform positive perturbation threshold produces a compact positive-measure set partitioned into disjoint analytic invariant tori, with a strict relative measure-loss bound and trajectories of the original perturbed Hamiltonian for every real time.

Source, eligibility and scope

  • Upstream: ybq1415926-droid/arnold1963-kam, exact commit 69c10c07bcd0a65f8965bc58c37eea2700bafafb.
  • First public release: v0.1.0, 2026-10-07 02:48:05 UTC, within this acquisition run's [2026-10-03 09:15:19, 2026-10-10 09:15:19) UTC window. Eligibility uses the public release, not repository refresh metadata.
  • License: Apache-2.0, verified against the upstream LICENSE and archived v1.0.0. The archived release and selected commit have identical Lean source.
  • Author: Bingqi Yu, Jilin University. Provenance: AI; the researcher supplied mathematical direction, sources and semantic feedback, while AI produced and revised the Lean proofs, as disclosed in upstream docs/PROVENANCE.md.
  • Import: 146 upstream modules, plus the public entry module and generated Imports.lean wrapper. This is the dependency closure of the global theorem, its iteration interface and the substantive cubic/noninjective-frequency examples. Training modules, audit print commands and progress wrappers are excluded.

The global theorem's explicit hypotheses include a positive dimension, a compact conjugation-invariant complex action domain, and a nonempty open real action set whose closure is the real slice, whose boundary is null, and which complexifies into the domain's interior. The unperturbed Hamiltonian is analytic and real-compatible with nonzero Hessian determinant on that real open set. The threshold is chosen before the perturbation. Global frequency injectivity is not assumed. The final torus interface states nonresonance, an analytic lift, closed embedding, injective derivative, small displacement, angle invertibility and all-time Hamiltonian trajectories; it does not additionally claim a quantitative Diophantine bound or the Lagrangian property.

This is a substantial result in Hamiltonian dynamics suited to preservation as a coherent project. Its reusable infrastructure includes normalized torus Fourier analysis, contour shifts, Cauchy bounds, analytic generating transformations, frequency-chart inversion, resonance measure estimates, infinite iteration and cross-chart orbit-closure arguments. Public-source and repository-history searches found no corresponding KAM development already in Mathlib, TauCeti, Lean Pool, its PRs or issues; unrelated torus and Hamiltonian-perturbation hits were inspected.

Port and engineering changes

Ported Lean 4.33.1/mathlib 4.33.1 to the pool's Lean 4.35.0-rc3 and Mathlib c55e6e786f49471c72fbddbec5415808896aec1e. The port updates deprecated imports/lemmas, adopts public module imports, wraps private proof helpers appropriately, and repairs tactic focus and simp normal forms. Copyright and authorship are retained. English module documentation and 366 API/data-field docstrings describe the construction and its conventions.

Removed upstream option overrides and diagnostic commands. Removed two unnecessary typeclass assumptions, making the affected lemmas more general; retained every important theorem and the strength of the three advertised results. Added explicit derivative types, replaced broad nonlinear arithmetic with restricted linear/nonlinear calls, narrowed broad tactic imports and eliminated avoidable dependency fan-out. Greptile’s duplication finding is repaired by sharing actionFrequencyCLM and its derivative theorem from the definition module and making phaseBasis an alias of phaseDirection. The fixed LeanPool.lean, infrastructure, checks and configurations are unchanged.

Validation and measured performance

Controlled clean project build: remove only the imported project's .lake/build/lib/lean and IR artifacts, retain the exact pinned Mathlib/dependency artifacts, then run lake build LeanPool.ArnoldKAM.Imports with default Lake scheduling on this 16-logical-CPU Azure VM. The VM is shared, so timings include ordinary load variation.

Measurement Before optimization Final import
Clean project wall time 183.153 s 153.204 s
Lean files in project build 165 148
Build warnings 1 generated-card formatting warning 0

The controlled baseline was recorded after compatibility porting and before substantial optimization, with its source snapshot retained for reproduction. Optimizations reduced FundamentalParameters.remainder_budget synchronous profiler time from 12.316 s to 1.461 s. Explicit derivative types made iteratedDeriv_two_line_eq pass synchronous profiling in 0.931 s; its former inferred term timed out at the default 200,000-heartbeat limit. No heartbeat override is present.

Local checks passed:

  • Generated import indexes: lake exe mk_all --check.
  • Imported project build, warning freedom and lake exe lint-style LeanPool.ArnoldKAM.Imports.
  • Unmodified slow declaration linter driver: 148 modules, 2,736 declarations, all 15 linters passed.
  • Repository-wide static quality checker and generated-card consistency.
  • Registered headline declaration checks; unmodified axiom audit over 1,365 parsed public declarations, with only the permitted standard axioms; unmodified option/backdoor environment audit across every imported module, including compiler auxiliaries.
  • Content-only scope and whitespace checks. No Python or infrastructure files are affected.

All retained upstream files were reviewed in bounded source packets covering imports, declarations, structure interfaces and implementation slices, with deeper inspection of the endpoint definitions and the construction/dependency chain. The port's code-body diff was separately inspected in full. CI and the configured Greptile/GPT reviews remain the final external checks; a separate thorough review will record its exact reviewed head on this PR. Enqueueing will use the validated native queue only after the required checks and reviews pass.

Exact locally validated head: 7ddd4edd90f5197964623fe39ffea9045c6e037f. The earlier head 02229606abfc2fc873681c56279d75cb07bed3b0 passed Lean Action CI before this cleanup; CI and configured reviews must validate the current head.

@greptile-apps

greptile-apps Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

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

Retrigger

[Low impact] No remaining code finding blocks the latest cleanup; this is not a full merge approval because external source checks and dependency-wide novelty remain unverified.

Summary

Imports the analytic Hamiltonian KAM development, including the global theorem, infinite iteration, and noninjective-frequency examples.

  • Analytic Fourier estimates and canonical maps keep each KAM correction controlled.
  • Nondegenerate action domains produce local frequency charts with bounded measure loss.
  • A fixed perturbation threshold yields disjoint invariant tori across the action domain.

Reviews (2) · Last reviewed commit: "Reuse shared frequency derivatives and p..." · Reviewed by Greptile

Comment thread LeanPool/ArnoldKAM/Arnold1963/Geometry/HamiltonianLocalization.lean Outdated
@github-actions

Copy link
Copy Markdown
Contributor

Proof profile (new / modified Lean files)

lake build wall time (changed modules): 137.41 s (= 2.29 min) — user 284.38 s, sys 68.66 s.

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.

Total heartbeats: 2,664,472 maxHeartbeats units across 148 valid files (17,238 added LOC).

Sum of lean --profile: 279401.9 ms (= 279.40 s) across 148 valid files. Import-excluded time: 115081.9 ms (= 115.08 s).

Count-heartbeats wall-clock total: 686.75 s. Repeated import cost inside lean --profile: 164320.0 ms (= 164.32 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/ArnoldKAM/Arnold1963/Analysis/FourierKernel.lean 93 157,734 19.47 3.32 2.49 0.84 11 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/FourierParameter.lean 127 114,446 13.26 2.96 1.92 1.04 23 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/ParameterIntegral.lean 139 100,083 15.39 3.21 2.23 0.98 11 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/SecondCauchy.lean 126 70,323 9.46 2.96 1.83 1.13 16 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingMaps.lean 156 58,432 9.77 3.28 2.12 1.16 18 0
LeanPool/ArnoldKAM/Arnold1963/Step/NumericalBudget.lean 181 54,026 9.26 3.70 2.44 1.26 25 0
LeanPool/ArnoldKAM/Arnold1963/Basic/Hamiltonian.lean 185 51,174 7.49 2.58 1.55 1.03 67 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GradientBounds.lean 108 43,788 8.12 2.80 1.69 1.11 19 0
LeanPool/ArnoldKAM/Arnold1963/Tori/Embedding.lean 277 43,115 8.19 3.57 2.29 1.28 37 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/AnalyticLift.lean 118 42,694 8.09 2.30 1.27 1.03 25 0
LeanPool/ArnoldKAM/Arnold1963/Basic/SymplecticMatrix.lean 57 41,229 4.97 1.94 0.99 0.95 16 0
LeanPool/ArnoldKAM/Arnold1963/Audit/FundamentalExample.lean 218 38,300 7.66 2.99 1.85 1.14 29 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/Taylor.lean 95 37,070 6.56 2.05 1.01 1.04 9 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/Cauchy.lean 99 36,319 7.10 2.00 0.89 1.11 21 0
LeanPool/ArnoldKAM/Arnold1963/Arithmetic/ResonanceLoss.lean 107 36,110 5.13 2.10 0.94 1.16 22 0
LeanPool/ArnoldKAM/Arnold1963/Arithmetic/Lattice.lean 261 35,776 6.83 2.34 1.51 0.83 29 0
LeanPool/ArnoldKAM/Arnold1963/Tori/AngleBounds.lean 148 35,166 5.74 2.85 1.63 1.22 40 0
LeanPool/ArnoldKAM/Arnold1963/Main/FiniteLocalization.lean 128 33,441 5.30 1.91 0.74 1.17 22 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingInjective.lean 104 33,370 5.71 1.99 0.93 1.06 11 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/Localization.lean 156 33,305 5.51 1.90 0.80 1.10 15 0
LeanPool/ArnoldKAM/Arnold1963/Arithmetic/ResonanceMeasure.lean 169 31,865 4.98 2.05 0.90 1.15 37 0
LeanPool/ArnoldKAM/Arnold1963/Measure/RealSymplectic.lean 142 30,453 4.77 2.44 1.26 1.18 18 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/DomainBuffer.lean 117 28,600 4.92 1.93 0.80 1.13 25 0
LeanPool/ArnoldKAM/Arnold1963/Audit/W9Example.lean 176 27,891 5.82 2.39 1.24 1.15 28 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/FourierDecay.lean 174 27,746 6.05 2.15 1.09 1.06 24 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingLocal.lean 175 26,342 6.22 2.21 1.16 1.05 22 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/RealJacobian.lean 99 25,207 5.97 1.92 0.93 1.00 19 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/SlabMeasure.lean 182 24,698 6.05 2.10 1.15 0.95 12 0
LeanPool/ArnoldKAM/Arnold1963/Main/GlobalCover.lean 186 24,074 5.75 2.15 0.99 1.16 30 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/UniformBounds.lean 134 23,290 5.46 2.01 1.15 0.86 21 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingGlobal.lean 241 22,642 6.09 2.42 1.28 1.14 37 0
LeanPool/ArnoldKAM/Arnold1963/Basic/Symplectic.lean 168 22,137 5.81 1.97 1.02 0.95 50 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/FrequencyDomain.lean 215 21,886 4.76 2.36 1.23 1.13 41 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/Nonresonance.lean 87 21,874 3.59 1.70 0.53 1.17 29 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/FrequencyChange.lean 110 21,870 4.99 1.94 0.82 1.12 15 0
LeanPool/ArnoldKAM/Arnold1963/Step/FourierDifferential.lean 80 21,626 5.06 2.16 0.88 1.28 14 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/TotalBudget.lean 133 21,476 4.87 2.11 0.98 1.13 23 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/TubeLayer.lean 87 21,291 3.36 1.57 0.60 0.97 24 0
LeanPool/ArnoldKAM/Arnold1963/Step/Inductive.lean 169 20,689 4.89 2.66 1.35 1.31 29 0
LeanPool/ArnoldKAM/Arnold1963/Measure/LimitTorusVolume.lean 115 20,160 5.14 2.06 0.89 1.17 23 0
LeanPool/ArnoldKAM/Arnold1963/Step/IterationParameters.lean 100 20,083 4.43 2.26 1.00 1.26 18 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingSymmetry.lean 105 19,745 4.76 1.96 0.84 1.12 17 0
LeanPool/ArnoldKAM/Arnold1963/Step/Remainder.lean 143 19,574 4.26 2.30 1.05 1.25 20 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/AnalyticUniformLimit.lean 157 19,528 5.05 2.02 0.97 1.05 12 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/NearIdentity.lean 87 19,381 4.60 1.48 0.53 0.95 23 0
LeanPool/ArnoldKAM/Arnold1963/Measure/PeriodicProjection.lean 185 19,289 4.38 2.02 0.99 1.03 28 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/Parameters.lean 157 18,483 4.83 1.93 1.07 0.87 31 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingImplicit.lean 100 18,454 4.77 1.77 0.68 1.09 13 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/NumericalConditions.lean 108 18,323 4.43 2.15 1.03 1.12 18 0
LeanPool/ArnoldKAM/Arnold1963/Dynamics/VectorFields.lean 95 18,088 5.32 1.90 0.81 1.09 16 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/CutoffBudget.lean 105 17,777 4.43 1.85 0.77 1.08 15 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/HamiltonianLocalization.lean 164 17,740 4.16 2.04 0.93 1.11 21 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/FrequencyInverse.lean 162 17,691 5.29 2.13 1.01 1.12 28 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/TailConstant.lean 57 17,054 4.67 1.76 0.72 1.04 9 0
LeanPool/ArnoldKAM/Arnold1963/Dynamics/TorusDensity.lean 162 16,886 4.75 1.82 0.79 1.03 18 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/CovectorTube.lean 114 16,319 4.66 1.80 0.79 1.01 15 0
LeanPool/ArnoldKAM/Arnold1963/Tori/FrequencyInjectivity.lean 129 16,277 4.73 2.26 1.00 1.26 21 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/PhaseCauchy.lean 88 16,243 4.56 2.01 0.79 1.22 16 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/Budgets.lean 95 16,115 4.17 2.11 0.98 1.13 20 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/RealDerivative.lean 92 16,109 4.10 1.84 0.71 1.13 23 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/PolydiscBoundary.lean 138 15,910 3.90 1.90 0.91 0.99 15 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/FiniteTubes.lean 123 15,754 3.47 1.43 0.50 0.93 17 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/MeanValue.lean 73 15,457 4.44 1.39 0.49 0.91 13 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/PolydiscCauchy.lean 126 15,216 4.28 1.67 0.65 1.02 14 0
LeanPool/ArnoldKAM/Arnold1963/Step/Integrable.lean 65 14,983 4.77 2.14 0.92 1.22 14 0
LeanPool/ArnoldKAM/Arnold1963/Tori/Parameterization.lean 142 14,954 3.72 2.14 0.87 1.27 29 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GlobalInverse.lean 70 14,835 5.10 1.75 0.56 1.19 13 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/ComplexLines.lean 82 14,695 4.75 1.87 0.74 1.13 17 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/ContourShift.lean 112 14,486 3.92 1.78 0.72 1.06 11 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/ShiftedFourier.lean 191 14,209 5.28 1.94 0.87 1.07 27 0
LeanPool/ArnoldKAM/Arnold1963/Step/AveragingConstruction.lean 118 13,944 4.59 2.01 0.73 1.28 19 0
LeanPool/ArnoldKAM/Arnold1963/Step/HomologicalBound.lean 119 12,610 3.92 2.04 0.78 1.26 16 0
LeanPool/ArnoldKAM/Arnold1963/Step/InductiveDomains.lean 87 12,541 4.01 1.86 0.63 1.23 22 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/FourierCoefficients.lean 218 12,406 4.65 1.94 0.87 1.07 38 0
LeanPool/ArnoldKAM/Arnold1963/Step/IntegrableBounds.lean 49 12,368 4.37 1.82 0.51 1.31 14 0
LeanPool/ArnoldKAM/Arnold1963/Tori/Disjointness.lean 140 11,945 3.56 1.99 0.69 1.30 17 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/Polydisc.lean 113 11,924 4.30 1.72 0.76 0.96 16 0
LeanPool/ArnoldKAM/Arnold1963/Main/TorusResult.lean 137 11,919 4.35 1.90 0.73 1.17 13 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/MultiContourShift.lean 166 11,880 3.81 1.71 0.64 1.07 18 0
LeanPool/ArnoldKAM/Arnold1963/Arithmetic/Parameters.lean 162 11,850 4.04 1.56 0.70 0.87 37 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/Estimates.lean 102 11,795 4.39 1.81 0.64 1.17 25 0
LeanPool/ArnoldKAM/Arnold1963/Step/Averaging.lean 96 11,699 4.39 1.85 0.67 1.18 20 0
LeanPool/ArnoldKAM/Arnold1963/Step/Homological.lean 104 11,691 3.77 2.07 0.80 1.27 18 0
LeanPool/ArnoldKAM/Arnold1963/Audit/W10Branches.lean 138 11,622 4.75 1.82 0.68 1.14 19 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/InitialParameters.lean 117 11,527 4.07 1.90 0.72 1.18 34 0
LeanPool/ArnoldKAM/Arnold1963/Main/LocalKAM.lean 176 11,524 4.41 2.02 0.81 1.21 28 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/Composition.lean 128 11,473 4.43 1.74 0.64 1.10 23 0
LeanPool/ArnoldKAM/Arnold1963/Audit/Steps123.lean 97 11,435 3.53 1.66 0.60 1.06 24 0
LeanPool/ArnoldKAM/Arnold1963/Step/Nonresonance.lean 72 11,336 4.12 1.86 0.62 1.24 25 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingEquivariance.lean 137 11,197 4.05 1.78 0.66 1.12 36 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/BoxIntegral.lean 121 11,196 3.96 1.73 0.62 1.11 23 0
LeanPool/ArnoldKAM/Arnold1963/Arithmetic/Estimates.lean 84 11,093 3.81 1.50 0.65 0.85 11 0
LeanPool/ArnoldKAM/Arnold1963/Basic/Functions.lean 174 11,017 3.65 1.52 0.62 0.90 65 0
LeanPool/ArnoldKAM/Arnold1963/Basic/Domains.lean 150 10,838 3.48 1.43 0.59 0.84 37 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingTransformation.lean 173 10,582 3.72 1.76 0.67 1.09 30 0
LeanPool/ArnoldKAM/Arnold1963/Arithmetic/ResonanceDomain.lean 172 10,570 4.64 1.85 0.72 1.13 29 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/FrequencyChart.lean 136 10,517 4.31 1.75 0.59 1.16 27 0
LeanPool/ArnoldKAM/Arnold1963/Dynamics/LimitConjugacy.lean 87 10,204 4.30 1.74 0.57 1.17 15 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/Cutoff.lean 94 10,122 4.28 1.75 0.65 1.10 21 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/FourierReconstruction.lean 106 9,753 3.26 1.72 0.66 1.06 18 0
LeanPool/ArnoldKAM/Arnold1963/Step/Fundamental.lean 138 9,575 3.78 1.82 0.56 1.26 26 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/FourierPolynomial.lean 92 9,320 3.00 1.34 0.49 0.84 13 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/DomainCover.lean 75 9,316 2.98 1.31 0.42 0.89 10 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/JointAnalyticity.lean 77 9,273 4.21 1.65 0.50 1.15 16 0
LeanPool/ArnoldKAM/Arnold1963/Main/Theorem1.lean 134 8,778 3.47 1.81 0.61 1.20 17 0
LeanPool/ArnoldKAM/Arnold1963/Step/DomainGeometry.lean 99 8,500 3.15 2.01 0.76 1.25 21 0
LeanPool/ArnoldKAM/Arnold1963/Step/FrequencyPreparation.lean 143 8,333 3.28 1.95 0.68 1.27 28 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/DerivativeBudget.lean 74 8,044 3.91 1.61 0.52 1.09 13 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/FrequencyMeasure.lean 106 7,500 3.88 1.60 0.49 1.11 18 0
LeanPool/ArnoldKAM/Arnold1963/Basic/FunctionOperations.lean 129 7,110 3.39 1.32 0.43 0.89 37 0
LeanPool/ArnoldKAM/Arnold1963/Step/Construction.lean 106 6,990 3.84 1.72 0.51 1.21 24 0
LeanPool/ArnoldKAM/Arnold1963/Step/InductiveIteration.lean 97 6,828 3.62 1.72 0.49 1.23 21 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/Erosion.lean 62 6,647 3.30 1.14 0.33 0.81 13 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/Limit.lean 87 6,410 3.69 1.71 0.48 1.23 18 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/Construction.lean 137 6,341 3.26 1.76 0.60 1.16 31 0
LeanPool/ArnoldKAM/Arnold1963/Step/MeasureBudget.lean 97 5,619 3.25 1.74 0.47 1.27 18 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/FourierTail.lean 59 5,500 3.56 1.40 0.34 1.06 8 0
LeanPool/ArnoldKAM/Arnold1963/Main/Theorem2.lean 85 5,469 3.16 1.58 0.42 1.16 11 0
LeanPool/ArnoldKAM/Arnold1963/Basic/Spaces.lean 125 5,356 2.77 1.29 0.44 0.85 34 0
LeanPool/ArnoldKAM/Arnold1963/Analysis/FourierSeries.lean 88 5,332 3.72 1.49 0.42 1.07 17 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/RealCover.lean 111 4,957 3.15 1.29 0.43 0.86 22 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/CorrectedChart.lean 91 4,922 3.42 1.39 0.34 1.05 9 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/LocalizationCover.lean 85 4,852 3.51 1.60 0.44 1.16 18 0
LeanPool/ArnoldKAM/Arnold1963/Step/GeneratingFunction.lean 70 4,792 3.14 1.64 0.38 1.26 10 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/LimitDomain.lean 101 4,526 3.30 1.62 0.45 1.17 20 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/State.lean 104 4,353 2.80 1.54 0.39 1.15 25 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/SequenceLimit.lean 57 4,078 2.96 1.04 0.28 0.76 13 0
LeanPool/ArnoldKAM/Arnold1963/Convergence/Frequency.lean 68 4,054 2.87 1.58 0.39 1.19 16 0
LeanPool/ArnoldKAM/Arnold1963/Tori/CrossChart.lean 93 3,969 3.44 1.64 0.39 1.25 13 0
LeanPool/ArnoldKAM/Arnold1963/Measure/CumulativeVolume.lean 91 3,806 2.81 1.57 0.41 1.16 19 0
LeanPool/ArnoldKAM/Arnold1963/Basic/Measure.lean 75 3,802 3.03 1.34 0.31 1.03 18 0
LeanPool/ArnoldKAM/Arnold1963/Main/LocalThreshold.lean 107 3,579 2.63 1.53 0.37 1.16 21 0
LeanPool/ArnoldKAM/Arnold1963/Measure/FiniteCover.lean 57 3,125 2.43 1.06 0.25 0.82 9 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/GeneratingTorus.lean 125 3,050 3.47 1.53 0.40 1.13 23 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/Measure.lean 73 3,022 3.45 1.49 0.32 1.17 11 0
LeanPool/ArnoldKAM/Arnold1963/Dynamics/OrbitUniqueness.lean 62 2,844 3.01 1.42 0.29 1.13 13 0
LeanPool/ArnoldKAM/Arnold1963/Dynamics/RealOrbits.lean 94 2,716 3.16 1.52 0.35 1.17 18 0
LeanPool/ArnoldKAM/Arnold1963/Tori/OrbitClosure.lean 50 2,478 3.34 1.57 0.30 1.27 11 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/FrequencyChartCongr.lean 43 2,437 3.23 1.38 0.23 1.15 13 0
LeanPool/ArnoldKAM/Arnold1963/Measure/LimitImage.lean 64 2,255 2.48 1.08 0.26 0.82 12 0
LeanPool/ArnoldKAM/Arnold1963/Audit/W10Example.lean 50 2,083 3.57 1.41 0.28 1.13 17 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/ShellSum.lean 56 2,083 3.24 1.40 0.29 1.11 11 0
LeanPool/ArnoldKAM/Arnold1963/Iteration/StepInterface.lean 46 1,645 2.94 1.39 0.24 1.15 10 0
LeanPool/ArnoldKAM/Arnold1963/Geometry/TypeD.lean 52 1,169 2.79 1.23 0.24 0.99 13 0
LeanPool/ArnoldKAM/Arnold1963/Measure/PhaseVolume.lean 33 930 2.74 1.38 0.24 1.14 10 0
LeanPool/ArnoldKAM/Arnold1963/Basic/Periodic.lean 50 752 2.68 1.05 0.21 0.85 13 0
LeanPool/ArnoldKAM.lean 23 0 3.08 2.92 0.17 2.75 2 0
LeanPool/ArnoldKAM/Imports.lean 155 0 2.40 1.50 0.20 1.30 1 0
Total 17,238 2,664,472 686.75 279.40 115.08 164.32 3062 0

Aggregate phase totals

Phase Time
import 164320.0 ms (= 164.32 s)
interpretation 36168.0 ms (= 36.17 s)
typeclass inference 26019.2 ms (= 26.02 s)
tactic execution 17517.1 ms (= 17.52 s)
type checking 8178.8 ms (= 8.18 s)
elaboration 6400.7 ms (= 6.40 s)
simp 6170.1 ms (= 6.17 s)
initialization 3979.2 ms (= 3.98 s)
tacticAnalysis 2517.4 ms (= 2.52 s)
linting 1698.9 ms (= 1.70 s)
norm_num 1222.2 ms (= 1.22 s)
ring 1056.3 ms (= 1.06 s)

Slowest changed modules (from lake build)

Changed module Lake time
LeanPool.ArnoldKAM.Arnold1963.Analysis.ParameterIntegral 5.50 s
LeanPool.ArnoldKAM.Arnold1963.Analysis.FourierKernel 5.30 s
LeanPool.ArnoldKAM.Arnold1963.Analysis.FourierParameter 4.40 s
LeanPool.ArnoldKAM.Arnold1963.Basic.Spaces 3.60 s
LeanPool.ArnoldKAM.Arnold1963.Analysis.AnalyticLift 3.50 s
LeanPool.ArnoldKAM.Arnold1963.Analysis.SecondCauchy 3.50 s
LeanPool.ArnoldKAM.Arnold1963.Analysis.Taylor 3.40 s
LeanPool.ArnoldKAM.Arnold1963.Audit.FundamentalExample 3.40 s
LeanPool.ArnoldKAM.Arnold1963.Analysis.Cauchy 3.30 s
LeanPool.ArnoldKAM.Arnold1963.Geometry.GradientBounds 3.30 s
LeanPool.ArnoldKAM.Arnold1963.Basic.SymplecticMatrix 3.20 s
LeanPool.ArnoldKAM.Arnold1963.Geometry.SlabMeasure 3.20 s

Comment truncated to fit GitHub's 64 KB limit. This PR profiles 148 files; the per-file table shows only the 148 hottest by heartbeats. The full table and raw lean --profile output for every file are in the run's step summary and proof-profile artifact.

Advisory only — never blocks merge.

@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.

{
"review_kind": "Separate thorough agentic review under .github/REVIEW_RULES.md and the acquisition selection/engineering requirements",
"reviewed_commit": "7ddd4edd90f5197964623fe39ffea9045c6e037f",
"conclusion": "approve",
"coverage": {
"upstream_commit": "69c10c07bcd0a65f8965bc58c37eea2700bafafb",
"source_files": 148,
"method": "Bounded packets covered every retained file, its imports, declarations, data fields and representative implementation slices; the principal interfaces and construction chain were also read in full. The entire semantic port diff and subsequent four-file cleanup diff were inspected. No elided file was accepted as reviewed.",
"closure": "All 148 Lean modules are reachable from the generated public wrapper; retained upstream proof modules number 146. The two-branch examples and reusable Fourier, resonance, analytic transformation and iteration infrastructure remain."
},
"faithfulness": {
"verdict": "pass",
"bottom_line": "The card accurately describes the restricted compact-domain KAM theorem proved by the Lean endpoint.",
"proves_the_claim": "proves_it",
"claim_note": "theorem1 chooses a positive threshold before quantifying over analytic perturbations and constructs a compact positive-volume good set, strict relative exceptional-measure bound, pairwise disjoint analytic nonresonant invariant tori, and all-real-time trajectories of the original perturbed Hamiltonian.",
"assumed_inputs": "Positive dimension, compact conjugation-stable complex action domain, analytic real-compatible unperturbed Hamiltonian, a nonempty real open interior whose closure is the real slice and whose boundary is null, interior complexification, nonzero Hessian determinant, and positive width/tolerance. The card discloses the domain and nondegeneracy restrictions. Quantitative Diophantine and Lagrangian conclusions are explicitly excluded from its claims.",
"findings": []
},
"novelty": {
"verdict": "pass",
"bottom_line": "No duplicate headline was found in Mathlib, TauCeti or the pool.",
"already_formalized": "",
"novelty_note": "Searches of pinned Mathlib, live Mathlib code-search hits, pinned/current public TauCeti sources, pool project cards, 1,000 PR records, targeted issues and source history found no corresponding KAM endpoint; the SU(2) torus and three-body perturbation hits were inspected and concern different statements. This is a preservation/duplicate assessment, not a worldwide priority claim.",
"findings": []
},
"significance": {
"verdict": "pass",
"bottom_line": "This is a substantial completed dynamical-systems formalization with reusable analytic infrastructure.",
"fit": "good_fit",
"level": "research",
"branch": "Hamiltonian dynamics",
"mode": "mixed",
"significance_one_sentence": "The coherent proof development constructs invariant tori and global measure estimates for small perturbations of nondegenerate analytic Hamiltonians, including localization without global frequency injectivity.",
"findings": []
},
"sources": {
"verdict": "pass",
"bottom_line": "The pinned source and archived software support the explicitly restricted theorem and its attribution.",
"source_match": "matches",
"findings": []
},
"quality": {
"verdict": "pass",
"bottom_line": "The modular dependency closure passes the required local gates and the measured optimizations improve its elaboration cost without weakening results.",
"code_quality": 4,
"findings": []
},
"source_and_license_evidence": {
"repository": "https://github.com/ybq1415926-droid/arnold1963-kam",
"public_release": "v0.1.0, 2026-10-07T02:48:05Z",
"archive": "https://doi.org/10.5281/zenodo.23232025",
"archive_check": "The Lean source at the pinned commit is identical to the v1.0.0 tag; the retrieved Zenodo API record identifies the software, author and Apache-2.0 license. The actual repository LICENSE was inspected.",
"historical_source": "Arnold 1963, DOI 10.1070/RM1963v018n05ABEH004130; the original theorem section was read through MathNet. The card does not claim every conclusion or scope of the historical theorem.",
"attribution": "Bingqi Yu; upstream AI proof-production disclosure is recorded as provenance AI, with human mathematical direction distinguished from generated/revised Lean."
},
"semantic_checks": {
"inputs": "GlobalHamiltonianData contains genuine analytic/domain/nondegeneracy hypotheses, with no field postulating the KAM conclusion or a global inverse frequency map.",
"objects": "KAMTorus stores actual analytic maps and closed embeddings into the real phase space, tied to the original vector field; no surrogate invariant relation replaces the Hamiltonian equation.",
"nonvacuity": "The cubic unperturbed Hamiltonian on the two disjoint real neighborhoods has nonzero Hessian and equal frequencies at distinct centers; a nonconstant cosine perturbation is instantiated, and the examples produce tori in both branches.",
"construction": "Inspected the Fourier/homological estimates, generating transformations, local step and infinite iteration, finite localization and global measure assembly. Cross-chart disjointness uses original-ODE uniqueness and dense orbit closures."
},
"engineering_and_validation": {
"trust": "The unmodified axiom audit found no prohibited dependencies among 1,365 parsed public declarations; the imported-environment/backdoor audit found none. No sorry, admit, native_decide, unsafe, partial, diagnostic command, option override, waiver or changed gate is present.",
"local_gates": "Clean build at this exact commit: exit 0, no warnings. Generated-index check, style, whole-repository static quality, declaration/card audits, and all 15 slow Mathlib linters on 148 modules / 2,736 declarations passed. Content-only and whitespace checks passed; Python source was unaffected.",
"controlled_performance": "With pinned cached dependencies and only this project compiled/IR artifacts removed, lake build LeanPool.ArnoldKAM.Imports measured 183.153 s at the compatibility baseline and 153.204 s at this head (16.35% observed improvement on the shared VM). Source hashes before/after the final build were identical.",
"profile": "remainder_budget synchronous declaration time fell from 12.316 s to 1.461 s; the derivative proof that previously timed out under synchronous profiling now passes in 0.931 s at default heartbeats. No material safe additional optimization was identified in the inspected remaining modules.",
"repairs": "Mathlib API/public-module port; removed diagnostic/training wrappers; narrowed tactic imports; restricted arithmetic tactics; explicit derivative types; documentation and naming repairs; removed redundant simp attributes/unused class assumptions; consolidated action-frequency derivative and phase-direction infrastructure in response to Greptile. Important APIs and theorem strength are preserved.",
"ci": "Lean Action CI run 38045618762 completed successfully for this exact head: https://github.com/LeanPool/lean-pool/actions/runs/38045618762. Build, warning, index, Mathlib linter, style, repository quality/trust and required compatibility gate passed. Documentation preflight, scope/content separation and workflow checks also passed; unrelated Python/minimal-verifier paths were skipped by their normal path filters."
},
"review_separation": "This source/diff review is separate from the configured GPT five-rubric worker and Greptile. It does not stand in for either automated review. The normal merge queue remains conditional on current-head CI and all reviews completing without unresolved material findings."
}

@Vilin97

Vilin97 commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@Vilin97

Vilin97 commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator Author

🤖 LLM review (gpt-6.1-sol, 5 rubrics)

Reviewed head: 7ddd4edd90f5197964623fe39ffea9045c6e037f

Verdict: ✅ approve — computed from the rubric verdicts below, not chosen by a model.

Rubric Verdict Bottom line
Faithfulness ✅ pass All three card headlines match the Lean statements and construction.
Novelty ✅ pass No inspected Mathlib, Tau Ceti, or pooled declaration subsumes the three headlines; broader Tau Ceti semantic coverage remains unverifiable.
Significance ✅ pass The analytic Hamiltonian KAM theorem and its supporting analytic and dynamical theory are a good fit for the pool.
Sources ✅ pass The cited archive supports the stated KAM variant, and the upstream Lean formalization is explicitly credited.
Code quality (advisory) ✅ pass The code is competently modularized, with shared derivative helpers and no material maintenance issue identified.
Aspect Value
Proves the claim ✅ proves_it
Assumed, not proved GlobalHamiltonianData supplies positive dimension, compact conjugation-invariant geometry, a nonempty open real action set with null boundary whose closure is the real slice and whose complexification lies in the domain interior, analyticity, reality and Hessian nondegeneracy. Perturbations are bounded, periodic, real-compatible analytic functions. These specify the card’s domain and Hamiltonian scope; charts, iteration and tori are constructed. canonical_pullback assumes differentiable symplecticity and mapping into the phase domain.
Matches cited source ✅ matches
Fit ✅ good_fit
Level research
Branch Hamiltonian dynamics
Mode theory_building
Code quality 3 / 5

Statement check: The global theorems choose a positive threshold before the perturbation and construct the claimed disjoint torus partition, strict relative measure bound and all-time trajectories of the original Hamiltonian; canonical_pullback proves the derivative pushforward identity.

The project proves persistence of a large-measure family of analytic invariant tori under small Hamiltonian perturbations, developing Fourier estimates, canonical transformations, infinite iteration, measure control, and all-time trajectories.


Tokens: 16,622,064 in / 47,317 out across 5 model calls · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $67.1980 (Standard API equivalent; uncached input)
Each rubric is an independent review against .github/review-rubrics/ on top of .github/REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.

@Vilin97
Vilin97 added this pull request to the merge queue Oct 10, 2026
Merged via the queue into main with commit c01f93c Oct 10, 2026
25 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