Skip to content

Add C145 single-port graph identification - #1040

Merged
Vilin97 merged 2 commits into
LeanPool:mainfrom
VanGogh7777:c145-v0.6
Nov 27, 2026
Merged

Vilin97 merged 2 commits into
LeanPool:mainfrom
VanGogh7777:c145-v0.6

Conversation

@VanGogh7777

Copy link
Copy Markdown
Contributor

This adds the C145 v0.6 formalization of single-port graph identification from first- and second-order response data. The port includes 71 proof modules, the public import files, and the project card. The Lean proofs were AI-written. Mark Gladden designed and directed the AbPh research workflow. The code and companion paper are released under Apache-2.0.

Theorem 1 (§2.1 and Appendix D) recovers the source graph Laplacian and signed port up to simultaneous vertex relabeling under the stated cyclicity, spectral separation and contraction assumptions. The library also includes the separately formalized identification of one explicit six-vertex source (§10). Its Palomar registration link above covers Theorem 1.

Local checks against Lean Pool main at 9decab6341e6 passed for the C145 entry and public imports, with warnings treated as errors. The generated index check, declaration lints, pinned text-style check, and static repository quality check also passed.

@greptile-apps

greptile-apps Bot commented Nov 27, 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 new blocking defect was found, but external source fidelity and upstream completeness remain unverified.RetriggerView in Greptile

[Medium impact] No new blocking defect was found, but external source fidelity and upstream completeness remain unverified.

Findings

  1. P2 Identification proofs repeat shared work ▶

Summary

Adds the C145 graph-identification formalization, its public imports, and project card.

  • Matching first and mixed response data identify a graph and signed port up to relabeling.
  • A fixed six-vertex graph can be identified against a matching competitor.
  • Lean Pool users can import C145 and find it in the project list.

Reviews (2) · Last reviewed commit: "Clarify C145 identification scope and ma..." · Reviewed by Greptile

Comment thread LeanPool/C145/C145ActualResponseC2.lean Resolved

@Vilin97 Vilin97 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved on source at faee203f. Required Lean CI is running.

  • Statement and proof. The general result constructs actual local C² graph responses and proves that equality of the first and half-mixed second terminal derivatives in every smooth temporal direction gives one vertex bijection for the Laplacian, generator, and signed port. It assumes common known decay, cyclicity, and a source spectral-band, separation, and contraction criterion. The proved three-vertex example meets that criterion. The separate result identifies one explicit six-vertex source, with full weight-matrix equality when the competitor has zero diagonal. Pinned manuscript · General Lean endpoint · Six-vertex Lean endpoint
  • Fit and provenance. I found no equivalent headline in the checked Lean Pool, Mathlib, or Tau Ceti sources. The contribution adds a global nonlinear inverse result for an exact response model. The release and card credit Mark Gladden and disclose AI-written proofs. The Palomar record covers Theorem 1. Palomar registration · Pinned release and license
  • Port repair. I stated the hypotheses in the card, removed outdated proof-status text from 14 module docs, and added change notices to all 72 adapted Lean files. I verified that the Lean code and generated import index are byte-identical to the submitted revision. The repeated alignment proofs can be factored separately. Documentation and notices · Advisory proof duplication

@github-actions

Copy link
Copy Markdown
Contributor

Proof profile (new / modified Lean files)

lake build wall time (changed modules): 175.50 s (= 2.92 min) — user 437.79 s, sys 41.65 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,104,139 maxHeartbeats units across 70 valid files (16,770 added LOC).

Sum of lean --profile: 416863.9 ms (= 416.86 s) across 73 valid files. Import-excluded time: 350023.9 ms (= 350.02 s).

Count-heartbeats wall-clock total: 537.43 s. Repeated import cost inside lean --profile: 66840.0 ms (= 66.84 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/C145/C145N6PositiveGraph.lean 135 294,766 60.72 16.13 15.02 1.11 29 0
LeanPool/C145/C145ActualResponseC2.lean 1,312 233,826 39.80 15.31 14.38 0.93 100 0
LeanPool/C145/C145DRE8PhysicalStability.lean 398 210,281 38.70 9.92 8.95 0.98 37 0
LeanPool/C145/C145ActualTimeConvolution.lean 643 96,206 17.14 6.35 5.42 0.93 31 0
LeanPool/C145/C145N6HelmertFrame.lean 88 75,050 14.15 5.78 4.71 1.07 27 0
LeanPool/C145/C145PaperPositiveWitness.lean 193 62,439 13.75 5.82 4.84 0.98 31 0
LeanPool/C145/C145DRE8HilbertStability.lean 192 58,918 10.72 3.27 2.41 0.86 28 0
LeanPool/C145/C145N6TraceLine.lean 118 52,716 11.73 5.23 4.17 1.06 22 0
LeanPool/C145/C145H2NumeratorData.lean 501 49,510 10.22 4.34 3.64 0.70 68 0
LeanPool/C145/C145ThreePlaneFactor.lean 358 49,044 11.04 4.54 3.88 0.67 69 0
LeanPool/C145/C145DRE8JointSignatureInverse.lean 427 45,750 10.87 4.45 3.46 0.99 36 0
LeanPool/C145/C145H2PositiveGrid.lean 180 42,422 9.14 3.02 2.30 0.72 22 0
LeanPool/C145/C145DelayKernelTransfer.lean 738 42,330 11.40 4.40 3.47 0.93 33 0
LeanPool/C145/C145N6Squarefree.lean 99 40,384 10.70 3.40 2.33 1.07 18 0
LeanPool/C145/C145DRE8SpectralContraction.lean 213 39,075 8.96 3.63 2.94 0.69 23 0
LeanPool/C145/C145PhysicalTraceResidue.lean 507 38,817 8.38 3.56 2.84 0.72 42 0
LeanPool/C145/C145PaperStability.lean 159 38,596 8.23 2.50 1.52 0.98 20 0
LeanPool/C145/C145SixFixedProducts.lean 397 34,010 6.40 3.12 2.41 0.72 43 0
LeanPool/C145/C145N6LiteralRows.lean 170 31,120 9.04 3.15 2.12 1.03 22 0
LeanPool/C145/C145N6CalibratedTransport.lean 64 28,519 8.52 2.58 1.51 1.07 12 0
LeanPool/C145/C145SignedGroundPulseCalibration.lean 652 28,101 8.66 3.38 2.46 0.92 34 0
LeanPool/C145/C145DRE8CommonUnit.lean 162 23,498 5.40 1.93 1.39 0.54 17 0
LeanPool/C145/C145DRE8WeightedKernel.lean 176 22,506 5.24 2.33 1.60 0.73 21 0
LeanPool/C145/C145DRE8PositiveGridKernel.lean 112 22,202 5.74 2.01 1.16 0.85 18 0
LeanPool/C145/C145DRE8KrylovSlices.lean 195 20,522 5.29 2.80 1.80 1.00 25 0
LeanPool/C145/C145DRE8ActualFrame.lean 214 19,999 5.23 2.45 1.44 1.01 24 0
LeanPool/C145/C145TimeKernelContinuation.lean 257 18,477 4.56 2.51 1.57 0.94 25 0
LeanPool/C145/C145DRE8OrthogonalTransport.lean 167 18,092 5.25 1.91 1.20 0.71 45 0
LeanPool/C145/C145DRE8CalibratedUniqueness.lean 196 18,006 5.31 1.96 1.25 0.72 20 0
LeanPool/C145/C145PhysicalFrame.lean 289 17,249 5.49 1.92 1.39 0.53 27 0
LeanPool/C145/C145ObservedKernelRecovery.lean 296 16,801 6.05 2.49 1.52 0.96 23 0
LeanPool/C145/C145DRE8CubicCancellation.lean 143 15,930 4.93 1.90 1.19 0.71 18 0
LeanPool/C145/C145ReceivingLagrangeMoments.lean 266 15,552 5.17 1.99 1.28 0.70 24 0
LeanPool/C145/C145DRE8SliceRigidity.lean 129 15,346 5.16 1.70 1.01 0.69 23 0
LeanPool/C145/C145GraphSpectralRealization.lean 262 15,187 5.56 2.17 1.17 0.99 34 0
LeanPool/C145/C145DRE8ProjectionResiduals.lean 126 15,152 4.92 2.18 1.32 0.86 26 0
LeanPool/C145/C145CompleteOrdinaryH2Kernel.lean 272 14,945 4.78 1.90 1.18 0.72 35 0
LeanPool/C145/C145CoordinatePermutation.lean 473 14,648 5.51 2.05 1.33 0.72 30 0
LeanPool/C145/C145H2GridResidueInverse.lean 313 14,299 5.23 1.96 1.23 0.72 29 0
LeanPool/C145/C145DRE8PhysicalTensor.lean 172 13,697 3.76 1.73 1.04 0.69 54 0
LeanPool/C145/C145DRE8Frobenius.lean 165 13,298 4.81 1.84 1.13 0.71 41 0
LeanPool/C145/C145PaperRealizationInvariance.lean 216 12,342 5.48 2.10 1.11 0.99 19 0
LeanPool/C145/C145N6Uncalibrated.lean 190 10,428 4.39 2.16 1.00 1.16 14 0
LeanPool/C145/C145DRE8OptimalContraction.lean 131 10,337 4.76 1.83 0.96 0.88 18 0
LeanPool/C145/C145DRE8JointOriginalGraph.lean 298 10,130 4.46 1.80 0.80 1.00 18 0
LeanPool/C145/C145DRE8OriginalGraphInverse.lean 276 9,712 4.10 1.80 0.80 1.00 18 0
LeanPool/C145/C145CyclicSpectral.lean 103 9,644 4.45 1.72 0.85 0.88 15 0
LeanPool/C145/C145H1ModalCalibration.lean 315 8,642 3.45 1.60 0.88 0.71 23 0
LeanPool/C145/C145DRE8SignedGroundResidue.lean 97 8,120 3.38 1.60 0.63 0.97 11 0
LeanPool/C145/C145PaperResidualInvariance.lean 145 7,969 4.67 1.70 0.71 1.00 20 0
LeanPool/C145/C145PaperActualResponse.lean 184 7,931 4.10 1.69 0.70 0.99 28 0
LeanPool/C145/C145SmallPhysicalTraceSeparation.lean 181 7,164 3.39 1.42 0.70 0.72 17 0
LeanPool/C145/C145WeightedGraph.lean 102 7,148 3.72 1.66 0.77 0.90 18 0
LeanPool/C145/C145PaperDomainChecks.lean 94 7,075 4.11 1.71 0.73 0.98 17 0
LeanPool/C145/C145DRE8JointTransferInverse.lean 217 6,824 3.48 1.59 0.60 0.99 11 0
LeanPool/C145/C145UncalibratedSmallH2.lean 267 6,237 3.74 1.57 0.64 0.93 16 0
LeanPool/C145/C145DRE8ActualCalibratedInverse.lean 139 4,925 3.26 0.52 0.52 0.00 14 0
LeanPool/C145/C145DRE8TransferInverse.lean 190 4,840 2.87 1.48 0.49 0.99 10 0
LeanPool/C145/C145OrientedEigenframe.lean 78 3,337 3.33 1.42 0.46 0.96 14 0
LeanPool/C145/C145PaperTheoremC.lean 141 3,204 2.71 1.45 0.48 0.98 15 0
LeanPool/C145/C145N6GraphResponse.lean 65 3,158 3.43 1.60 0.45 1.15 15 0
LeanPool/C145/C145N6TimeKernels.lean 101 3,156 3.06 1.62 0.44 1.18 10 0
LeanPool/C145/C145N6LineExclusion.lean 59 2,825 3.54 1.50 0.45 1.05 13 0
LeanPool/C145/C145N6OrdinaryJets.lean 85 2,770 3.64 1.59 0.42 1.17 12 0
LeanPool/C145/C145N6OriginalGraph.lean 92 2,506 3.67 1.59 0.43 1.16 12 0
LeanPool/C145/C145DRE8TensorSpace.lean 67 2,499 2.55 1.24 0.38 0.86 21 0
LeanPool/C145/C145FixedHorizonSmallInverse.lean 95 2,468 3.28 1.32 0.36 0.95 12 0
LeanPool/C145/C145PaperApplication.lean 54 1,461 3.08 1.31 0.33 0.97 11 0
LeanPool/C145.lean 93 0 3.20 2.93 0.24 2.69 2 0
LeanPool/C145/Imports.lean 80 0 2.47 1.42 0.24 1.18 1 0
LeanPool/C145/C145EightAffineFamilies.lean 484 — — 23.70 22.99 0.72 53 1
LeanPool/C145/C145N6PhysicalWitness.lean 91 — — 173.20 172.14 1.06 17 1
LeanPool/C145/C145N6ResponseLine.lean 111 — — 17.40 16.35 1.05 16 1
Total 16,770 2,104,139 537.43 416.86 350.02 66.84 1817 3

Aggregate phase totals

Phase Time
interpretation 191435.0 ms (= 191.44 s)
import 66840.0 ms (= 66.84 s)
typeclass inference 38094.9 ms (= 38.09 s)
simp 34005.2 ms (= 34.01 s)
norm_num 33184.0 ms (= 33.18 s)
tactic execution 17517.5 ms (= 17.52 s)
type checking 10233.6 ms (= 10.23 s)
elaboration 8845.6 ms (= 8.85 s)
share common exprs 3381.5 ms (= 3.38 s)
ring 2659.6 ms (= 2.66 s)
initialization 2421.1 ms (= 2.42 s)
process pre-definitions 2328.3 ms (= 2.33 s)

Slowest changed modules (from lake build)

Changed module Lake time
LeanPool.C145.C145N6PhysicalWitness 61.00 s
LeanPool.C145.C145EightAffineFamilies 20.00 s
LeanPool.C145.C145N6ResponseLine 20.00 s
LeanPool.C145.C145DRE8PhysicalStability 19.00 s
LeanPool.C145.C145ActualResponseC2 8.90 s
LeanPool.C145.C145DRE8JointSignatureInverse 8.90 s
LeanPool.C145.C145PaperPositiveWitness 8.60 s
LeanPool.C145.C145N6PositiveGraph 8.60 s
LeanPool.C145.C145DRE8JointOriginalGraph 7.20 s
LeanPool.C145.C145PaperStability 6.80 s
LeanPool.C145.C145N6Squarefree 6.70 s
LeanPool.C145.C145DRE8SignedGroundResidue 6.40 s

Comment truncated to fit GitHub's 64 KB limit. This PR profiles 73 files; the per-file table shows only the 73 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.

@VanGogh7777
VanGogh7777 requested a review from Vilin97 November 27, 2026 00:43
@Vilin97
Vilin97 added this pull request to the merge queue Nov 27, 2026
Merged via the queue into LeanPool:main with commit 0af09b5 Nov 27, 2026
26 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.

2 participants