Skip to content

C185: Formalize the fixed-pair whole-square Poisson comparison - #1200

Open
VanGogh7777 wants to merge 1 commit into
LeanPool:mainfrom
VanGogh7777:abph-c185-b146-source-bound
Open

VanGogh7777 wants to merge 1 commit into
LeanPool:mainfrom
VanGogh7777:abph-c185-b146-source-bound

Conversation

@VanGogh7777

Copy link
Copy Markdown
Contributor

This contribution formalizes Theorem 1, §3, Eqs. (12)–(15), of Mark Gladden’s C185 Pass B2 manuscript, Poisson experiments for complete turn surveys on random squares. It proves the fixed-pair whole-square comparison with its shared reverse kernel and exact collar-count pushforward for the fixed pair under the submatch hypothesis and a positive scale tending to zero with Ns² tending to B.

The public import is LeanPool.C185WholeSquare. The sole principal declaration is C185HeadlineReview.fixed_pair_whole_square. The code is Apache-2.0. Mark Gladden designed and directed the research. AI systems wrote and checked the Lean proof.

Pinned manuscript · Exact Lean source · Palomar registration

@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Project metadata advisory

This advisory summarizes source-project metadata for project entries added or changed by this PR.

Project Change Source License Last commit Lean
c185-whole-square added VanGogh7777/c185-lean Apache-2.0 2026-12-06 v4.36.0

License is read from GitHub SPDX metadata when available, and the last commit and Lean version are read from the source repository's default branch.

@greptile-apps

greptile-apps Bot commented Dec 6, 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.

[Low impact] The additions reach the Lean library’s whole-square probability results, not existing runtime workflows.

No blocking code defect was established; the copied helpers are a non-blocking cleanup.

RetriggerView in Greptile

Findings

  1. P2 Shared proofs are copied ▶

Summary

Adds the fixed-pair whole-square Poisson comparison:

  • The whole-square comparison is available as one public theorem for a fixed pair.
  • Collared-word counts from the square field converge to Poisson counts.
  • One reverse kernel reconstructs square fields from either count law.
  • New square-model modules define the observed fields and the math used to study them.

One non-blocking cleanup concerns copied probability helpers. The pinned manuscript and upstream license were unavailable, so exact source fidelity and upstream completeness remain unverified. Mathlib/Tau Ceti prior-art coverage and compile-cost measurements also remain unverified.

Reviews (1) · Last reviewed commit: "Formalize the registered C185 theorem" · Reviewed by Greptile

@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Proof profile (new / modified Lean files)

lake build wall time (changed modules): 125.42 s (= 2.09 min) — user 222.71 s, sys 38.16 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: 1,817,626 maxHeartbeats units across 137 valid files (13,259 added LOC).

Sum of lean --profile: 184614.1 ms (= 184.61 s) across 137 valid files. Import-excluded time: 92276.1 ms (= 92.28 s).

Count-heartbeats wall-clock total: 420.33 s. Repeated import cost inside lean --profile: 92338.0 ms (= 92.34 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/C185WholeSquare/C185Grade/Matching.lean 92 91,227 10.24 3.21 2.51 0.70 11 0
LeanPool/C185WholeSquare/C185Fine/Fill.lean 148 79,449 6.34 2.61 1.95 0.66 46 0
LeanPool/C185WholeSquare/C185General/Inventory.lean 42 65,610 9.18 4.41 3.72 0.69 17 0
LeanPool/C185WholeSquare/C185Screen/Reverse.lean 91 45,197 3.76 1.47 0.80 0.67 42 0
LeanPool/C185WholeSquare/C185Scan/GridLaw.lean 127 41,531 6.64 1.80 1.12 0.68 18 0
LeanPool/C185WholeSquare/C185Mix/Cascade.lean 114 38,171 5.31 1.83 1.16 0.67 20 0
LeanPool/C185WholeSquare/C185Fine/Tensor.lean 99 36,039 5.74 2.14 1.48 0.66 19 0
LeanPool/C185WholeSquare/C185Fine/Experiment.lean 157 35,066 4.40 1.66 0.97 0.69 31 0
LeanPool/C185WholeSquare/C185Square/Marks.lean 109 34,594 5.13 2.35 1.66 0.68 22 0
LeanPool/C185WholeSquare/C185Multi/Transport.lean 79 33,687 3.91 1.41 0.75 0.66 54 0
LeanPool/C185WholeSquare/C185Screen/Barrier.lean 88 31,413 3.79 1.59 0.92 0.67 25 0
LeanPool/C185WholeSquare/C185Poisson/Shuffle.lean 121 29,314 5.45 1.88 1.23 0.65 25 0
LeanPool/C185WholeSquare/C185Refill/Measured.lean 131 28,663 3.97 1.54 0.87 0.66 36 0
LeanPool/C185WholeSquare/C185Interior/Dictionary.lean 258 27,939 5.03 2.20 1.53 0.67 39 0
LeanPool/C185WholeSquare/C185Poisson/Limit.lean 114 27,190 5.07 1.95 1.29 0.66 12 0
LeanPool/C185WholeSquare/C185Interior/Pooling.lean 258 26,821 3.84 2.14 1.47 0.68 65 0
LeanPool/C185WholeSquare/C185CutScan/Overlap.lean 132 26,246 4.89 1.60 0.89 0.71 23 0
LeanPool/C185WholeSquare/C185Scan/Geometry.lean 103 25,424 3.90 1.61 0.94 0.67 18 0
LeanPool/C185WholeSquare/C185Mix/Seams.lean 94 25,179 4.46 1.80 1.14 0.66 18 0
LeanPool/C185WholeSquare/C185Scan/Boundary.lean 72 23,285 4.05 1.56 0.89 0.67 8 0
LeanPool/C185WholeSquare/C185Multi/History.lean 58 22,775 3.77 1.37 0.70 0.66 16 0
LeanPool/C185WholeSquare/C185Changed/Boundary.lean 106 21,967 4.14 1.54 0.82 0.72 18 0
LeanPool/C185WholeSquare/C185Mix/Replacement.lean 93 21,363 3.98 1.55 0.88 0.67 16 0
LeanPool/C185WholeSquare/C185CutScan/Chart.lean 99 20,423 3.97 1.78 1.08 0.70 18 0
LeanPool/C185WholeSquare/C185Grade/Signs.lean 98 19,938 4.18 1.57 0.88 0.69 16 0
LeanPool/C185WholeSquare/C185Scan/Critical.lean 112 19,248 3.88 1.54 0.86 0.68 11 0
LeanPool/C185WholeSquare/C185CutScan/Forward.lean 181 18,530 4.17 1.79 1.09 0.70 19 0
LeanPool/C185WholeSquare/C185Complete/Exposure.lean 58 18,354 3.61 1.56 0.86 0.70 10 0
LeanPool/C185WholeSquare/C185Scan/Bank.lean 118 17,525 3.49 1.47 0.79 0.68 13 0
LeanPool/C185WholeSquare/C185Grade/Rank.lean 89 17,401 2.46 1.27 0.55 0.71 22 0
LeanPool/C185WholeSquare/C185Poisson/Trials.lean 109 17,362 3.30 1.42 0.76 0.65 24 0
LeanPool/C185WholeSquare/C185Changed/Bound.lean 122 16,671 3.31 1.59 0.86 0.72 22 0
LeanPool/C185WholeSquare/C185CutScan/Critical.lean 107 16,083 3.20 1.55 0.83 0.72 11 0
LeanPool/C185WholeSquare/C185Physical/Peak.lean 137 15,722 3.51 1.49 0.84 0.65 21 0
LeanPool/C185WholeSquare/C185General/LeadingCell.lean 101 15,338 3.44 1.55 0.86 0.69 14 0
LeanPool/C185WholeSquare/C185Scan/Screen.lean 130 15,096 3.53 1.60 0.92 0.67 11 0
LeanPool/C185WholeSquare/C185Changed/Run.lean 166 13,970 3.71 1.67 0.97 0.70 20 0
LeanPool/C185WholeSquare/C185Mix/Periodic.lean 92 13,774 3.06 1.49 0.82 0.68 15 0
LeanPool/C185WholeSquare/C185Collar/Stencil.lean 155 13,454 3.24 1.54 0.84 0.69 24 0
LeanPool/C185WholeSquare/C185Interior/Uniform.lean 127 13,448 3.24 1.34 0.67 0.68 25 0
LeanPool/C185WholeSquare/C185Native/NativeCell.lean 152 13,216 2.94 1.41 0.75 0.67 17 0
LeanPool/C185WholeSquare/C185CutScan/Readout.lean 123 13,193 3.45 1.46 0.73 0.73 21 0
LeanPool/C185WholeSquare/C185Square/Exposure.lean 74 13,077 2.71 1.07 0.61 0.45 9 0
LeanPool/C185WholeSquare/C185Scan/FiniteBound.lean 92 12,868 3.30 1.37 0.71 0.66 10 0
LeanPool/C185WholeSquare/C185Scan/Orders.lean 153 12,632 2.59 1.54 0.87 0.68 20 0
LeanPool/C185WholeSquare/C185Poisson/Block.lean 102 12,539 3.31 1.27 0.63 0.64 18 0
LeanPool/C185WholeSquare/C185End/Geometry.lean 117 12,200 2.74 1.52 0.80 0.73 27 0
LeanPool/C185WholeSquare/C185Fine/Orders.lean 78 12,180 3.28 1.33 0.66 0.66 12 0
LeanPool/C185WholeSquare/C185Complete/Inventory.lean 57 12,106 2.72 1.32 0.61 0.71 10 0
LeanPool/C185WholeSquare/C185Headline/Sequence.lean 160 12,099 2.89 1.31 0.64 0.67 17 0
LeanPool/C185WholeSquare/C185Screen/Window.lean 130 12,092 2.70 1.39 0.72 0.67 24 0
LeanPool/C185WholeSquare/C185Screen/Exchange.lean 82 11,925 3.01 1.25 0.57 0.68 16 0
LeanPool/C185WholeSquare/C185Complete/Coordinates.lean 77 11,869 3.30 1.53 0.84 0.69 16 0
LeanPool/C185WholeSquare/C185Square/Histogram.lean 100 11,643 3.02 1.30 0.64 0.66 21 0
LeanPool/C185WholeSquare/C185Physical/Words.lean 107 11,079 3.12 1.18 0.56 0.63 15 0
LeanPool/C185WholeSquare/C185Multi/Lattice.lean 68 10,521 2.88 1.17 0.51 0.66 15 0
LeanPool/C185WholeSquare/C185Physical/Observable.lean 128 10,441 3.05 1.23 0.58 0.64 14 0
LeanPool/C185WholeSquare/C185Grade/Path.lean 84 10,101 2.90 1.30 0.61 0.69 11 0
LeanPool/C185WholeSquare/C185General/Words.lean 108 9,966 3.25 1.47 0.77 0.70 24 0
LeanPool/C185WholeSquare/C185General/Physical.lean 122 9,758 3.18 1.40 0.71 0.69 18 0
LeanPool/C185WholeSquare/C185End/Reverse.lean 99 9,588 2.72 1.18 0.50 0.68 22 0
LeanPool/C185WholeSquare/C185Reverse/Physical.lean 118 9,516 2.90 1.26 0.60 0.67 13 0
LeanPool/C185WholeSquare/C185Screen/Reference.lean 91 9,372 3.02 1.29 0.62 0.67 12 0
LeanPool/C185WholeSquare/C185Grade/Rails.lean 71 9,228 2.71 1.22 0.53 0.69 11 0
LeanPool/C185WholeSquare/C185Grade/Runs.lean 108 9,199 2.74 1.37 0.66 0.71 15 0
LeanPool/C185WholeSquare/C185Reverse/Marked.lean 102 9,113 2.38 1.08 0.42 0.66 37 0
LeanPool/C185WholeSquare/C185Screen/Geometry.lean 73 9,073 2.51 1.29 0.62 0.67 16 0
LeanPool/C185WholeSquare/C185Fine/Channels.lean 79 9,020 2.74 1.20 0.53 0.67 28 0
LeanPool/C185WholeSquare/C185Changed/Span.lean 175 8,910 2.47 1.50 0.80 0.69 16 0
LeanPool/C185WholeSquare/C185Grade/Terminals.lean 87 8,893 2.81 1.28 0.61 0.67 15 0
LeanPool/C185WholeSquare/C185Complete/Decode.lean 80 8,888 3.24 1.23 0.53 0.71 15 0
LeanPool/C185WholeSquare/C185Complete/Chart.lean 101 8,867 2.68 1.43 0.74 0.69 14 0
LeanPool/C185WholeSquare/C185Grade/Error.lean 104 8,708 2.78 1.22 0.55 0.67 24 0
LeanPool/C185WholeSquare/C185Grade/Scaling.lean 82 8,573 2.77 1.24 0.53 0.71 20 0
LeanPool/C185WholeSquare/C185Complete/Limit.lean 73 8,553 2.96 1.32 0.60 0.72 12 0
LeanPool/C185WholeSquare/C185Collar/Translates.lean 61 8,449 2.87 1.15 0.43 0.72 14 0
LeanPool/C185WholeSquare/C185Mix/Ends.lean 106 8,432 2.97 1.17 0.49 0.68 22 0
LeanPool/C185WholeSquare/C185Mix/Blocks.lean 124 8,349 2.86 1.28 0.61 0.67 22 0
LeanPool/C185WholeSquare/C185Screen/Square.lean 90 8,326 2.81 1.31 0.64 0.67 17 0
LeanPool/C185WholeSquare/C185Square/Field.lean 98 8,092 2.75 1.16 0.48 0.68 19 0
LeanPool/C185WholeSquare/C185Complete/Sampling.lean 81 8,034 2.55 1.19 0.48 0.71 20 0
LeanPool/C185WholeSquare/C185Refill/Product.lean 154 7,959 2.30 1.26 0.61 0.65 30 0
LeanPool/C185WholeSquare/C185Interior/Collar.lean 105 7,824 2.88 1.20 0.53 0.68 11 0
LeanPool/C185WholeSquare/C185General/Buckets.lean 120 7,790 2.84 1.25 0.57 0.69 22 0
LeanPool/C185WholeSquare/C185End/Information.lean 98 7,672 2.35 1.21 0.50 0.71 11 0
LeanPool/C185WholeSquare/C185Reverse/Experiment.lean 117 7,554 2.42 1.22 0.55 0.67 13 0
LeanPool/C185WholeSquare/C185Complete/Reverse.lean 92 7,485 2.92 1.24 0.53 0.71 16 0
LeanPool/C185WholeSquare/C185Square/Alternating.lean 122 7,416 2.76 1.20 0.56 0.64 23 0
LeanPool/C185WholeSquare/C185Grade/Fibers.lean 101 7,381 2.52 1.26 0.57 0.69 11 0
LeanPool/C185WholeSquare/C185Screen/Information.lean 103 7,352 2.64 1.13 0.47 0.66 12 0
LeanPool/C185WholeSquare/C185Fine/Reconstruction.lean 87 7,332 2.31 1.19 0.54 0.65 13 0
LeanPool/C185WholeSquare/C185General/Cells.lean 86 7,330 2.58 1.23 0.55 0.68 14 0
LeanPool/C185WholeSquare/C185Grade/Cylinder.lean 88 7,229 2.01 1.11 0.45 0.67 26 0
LeanPool/C185WholeSquare/C185Physical/Slices.lean 82 7,090 2.32 1.14 0.48 0.66 12 0
LeanPool/C185WholeSquare/C185Mix/Stubs.lean 87 7,028 2.79 1.16 0.50 0.66 16 0
LeanPool/C185WholeSquare/C185Changed/Cell.lean 119 6,926 2.48 1.25 0.53 0.73 21 0
LeanPool/C185WholeSquare/C185Scan/LocalLaw.lean 83 6,725 2.62 1.15 0.48 0.66 12 0
LeanPool/C185WholeSquare/C185End/Physical.lean 87 6,569 2.14 1.09 0.40 0.69 19 0
LeanPool/C185WholeSquare/C185General/RunJet.lean 61 6,566 2.84 1.13 0.45 0.68 11 0
LeanPool/C185WholeSquare/C185Screen/Splice.lean 46 6,554 1.88 1.02 0.35 0.67 17 0
LeanPool/C185WholeSquare/C185Refill/Redraw.lean 81 6,362 2.27 0.95 0.31 0.64 35 0
LeanPool/C185WholeSquare/C185End/Square.lean 78 6,218 2.46 1.23 0.53 0.70 17 0
LeanPool/C185WholeSquare/C185Screen/Screening.lean 83 5,876 2.60 1.07 0.39 0.68 10 0
LeanPool/C185WholeSquare/C185Multi/Step.lean 94 5,874 2.39 1.07 0.40 0.67 14 0
LeanPool/C185WholeSquare/C185Collar/Coupling.lean 53 5,838 2.55 1.09 0.43 0.66 9 0
LeanPool/C185WholeSquare/C185Physical/Tail.lean 67 5,669 2.29 1.03 0.40 0.64 24 0
LeanPool/C185WholeSquare/C185Screen/Replica.lean 78 5,502 1.98 1.14 0.47 0.67 28 0
LeanPool/C185WholeSquare/C185Scan/Words.lean 120 5,473 2.11 1.20 0.54 0.66 20 0
LeanPool/C185WholeSquare/C185Complete/Interval.lean 84 5,353 2.18 1.16 0.46 0.70 13 0
LeanPool/C185WholeSquare/C185End/Mirror.lean 98 5,304 2.60 1.17 0.49 0.68 17 0
LeanPool/C185WholeSquare/C185Multi/Limit.lean 44 5,300 2.37 1.03 0.36 0.67 9 0
LeanPool/C185WholeSquare/C185Multi/Cascade.lean 81 5,154 2.52 1.11 0.43 0.68 12 0
LeanPool/C185WholeSquare/C185General/Collision.lean 77 4,970 2.28 1.16 0.48 0.68 15 0
LeanPool/C185WholeSquare/C185End/Marginal.lean 68 4,895 2.35 1.10 0.40 0.69 15 0
LeanPool/C185WholeSquare/C185Mix/Mask.lean 68 4,850 2.10 1.04 0.36 0.68 14 0
LeanPool/C185WholeSquare/C185Complete/Poisson.lean 59 4,716 2.50 1.04 0.34 0.70 10 0
LeanPool/C185WholeSquare/C185Collar/SmallSites.lean 67 4,350 2.03 1.02 0.34 0.68 12 0
LeanPool/C185WholeSquare/C185Scan/Readout.lean 108 4,298 2.38 1.12 0.46 0.66 17 0
LeanPool/C185WholeSquare/C185Screen/Physical.lean 88 4,214 2.05 1.07 0.39 0.68 14 0
LeanPool/C185WholeSquare/C185Poisson/Testing.lean 79 4,145 1.86 1.03 0.39 0.65 11 0
LeanPool/C185WholeSquare/C185General/Experiment.lean 71 3,733 2.28 1.04 0.34 0.69 15 0
LeanPool/C185WholeSquare/C185Mix/Reflection.lean 75 3,715 2.36 1.03 0.36 0.68 16 0
LeanPool/C185WholeSquare/C185Mix/Interior.lean 56 3,692 2.33 0.95 0.29 0.66 9 0
LeanPool/C185WholeSquare/C185Refill/Countable.lean 62 3,646 1.82 1.00 0.36 0.64 11 0
LeanPool/C185WholeSquare/C185Multi/Alphabet.lean 89 3,311 2.01 1.09 0.42 0.67 23 0
LeanPool/C185WholeSquare/C185Poisson/Distance.lean 64 3,237 1.75 0.97 0.33 0.64 11 0
LeanPool/C185WholeSquare/C185Complete/Information.lean 52 3,165 2.39 1.04 0.33 0.70 10 0
LeanPool/C185WholeSquare/C185Reverse/Rows.lean 68 2,569 2.06 0.99 0.32 0.67 13 0
LeanPool/C185WholeSquare/C185Square/Packing.lean 76 2,499 1.53 0.56 0.27 0.29 16 0
LeanPool/C185WholeSquare/C185Multi/Stationary.lean 45 1,871 2.03 0.91 0.24 0.67 9 0
LeanPool/C185WholeSquare/C185Square/Sampling.lean 59 1,082 1.68 0.87 0.24 0.63 12 0
LeanPool/C185WholeSquare/C185Interface/Ternary.lean 60 796 1.17 0.47 0.19 0.28 22 0
LeanPool/C185WholeSquare/Paper.lean 44 608 1.73 0.88 0.21 0.67 9 0
LeanPool/C185WholeSquare/C185CutScan/Law.lean 30 307 1.59 0.92 0.20 0.71 10 0
LeanPool/C185WholeSquare/C185Square/Testing.lean 28 80 1.62 0.87 0.19 0.68 9 0
LeanPool/C185WholeSquare.lean 19 0 1.84 1.30 0.17 1.13 2 0
LeanPool/C185WholeSquare/Imports.lean 144 0 1.80 0.83 0.16 0.67 1 0
Total 13,259 1,817,626 420.33 184.61 92.28 92.34 2438 0

Aggregate phase totals

Phase Time
import 92338.0 ms (= 92.34 s)
interpretation 31239.7 ms (= 31.24 s)
typeclass inference 16531.1 ms (= 16.53 s)
tactic execution 12944.6 ms (= 12.94 s)
type checking 8497.8 ms (= 8.50 s)
simp 8115.4 ms (= 8.12 s)
elaboration 3935.5 ms (= 3.94 s)
initialization 3925.1 ms (= 3.93 s)
linting 1516.9 ms (= 1.52 s)
ring 835.3 ms (= 0.84 s)
parsing 717.2 ms (= 0.72 s)
declTypeLinter 581.5 ms (= 0.58 s)

Slowest changed modules (from lake build)

Changed module Lake time
LeanPool.C185WholeSquare.C185Grade.Matching 5.00 s
LeanPool.C185WholeSquare.C185General.Inventory 4.50 s
LeanPool.C185WholeSquare.C185Scan.Boundary 2.90 s
LeanPool.C185WholeSquare.C185Grade.Signs 2.90 s
LeanPool.C185WholeSquare.C185Fine.Tensor 2.80 s
LeanPool.C185WholeSquare.C185Square.Marks 2.60 s
LeanPool.C185WholeSquare.C185Scan.Orders 2.60 s
LeanPool.C185WholeSquare.C185Scan.Critical 2.60 s
LeanPool.C185WholeSquare.C185Poisson.Block 2.50 s
LeanPool.C185WholeSquare.C185Scan.Screen 2.50 s
LeanPool.C185WholeSquare.C185Physical.Observable 2.40 s
LeanPool.C185WholeSquare.C185Screen.Barrier 2.40 s

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

Choose a reason for hiding this comment

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

Approved at c86e3ff4, pending the configured review.

  • The exact collar-count pushforward and the forward, reverse, and total-variation limits match Theorem 1, equations (12)–(15). One reverse kernel handles both laws for the fixed pair and works from either the Poisson experiment or the actual collar counts. The rate parameter allows zero exposure.
  • I checked the pinned manuscript, Apache-2.0 source, and author attribution. The closest Mathlib, Tau Ceti, and Lean Pool results supply Poisson and total-variation tools for related settings. The whole-square comparison and common reverse kernel are new to the pool.
  • The duplicate probability and preservation helpers are suitable for a later cleanup. They do not affect the fixed-pair result.

@Vilin97

Vilin97 commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

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

Reviewed head: c86e3ff419970a50ca7edd00435fdecf7321c677

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

Rubric Verdict Bottom line
Faithfulness 🛑 block The Lean matches the pinned theorem, and the card omits the admissibility assumptions on the two site laws. Pinned manuscript, §3, Theorem 1
Novelty ✅ pass I found no duplicate of C185HeadlineReview.fixed_pair_whole_square in the pool or in targeted searches of the pinned Mathlib and Tau Ceti sources, and comprehensive coverage of those two libraries remains unverifiable.
Significance ✅ pass The project develops fourth-order cylinder expansions, overlap bounds, and a common reconstruction kernel to prove a research-level comparison of statistical experiments.
Sources ✅ pass The pinned manuscript supports the Lean hypotheses, exact collar-count readout, and all four limits in Theorem 1, including one reverse kernel for both alternatives and both input laws, and the card credits the upstream formalization. Pass B2, §§2–3
Code quality (advisory) ⚠️ flag The interior and terminal proofs duplicate shared probability arguments, and the public import brings in several modules whose results have no callers in the project.
Aspect Value
Proves the claim 🟡 weaker_than_claimed
Assumed, not proved The card discloses submatch and the scale hypotheses. The Lean also requires both site laws to be atomless probability measures concentrated on (0, 1], each with an exactly linear lower tail of positive slope on an interval of positive length.
Matches cited source ✅ matches
Fit ✅ good_fit
Level research
Branch asymptotic statistics
Mode theory_building
Code quality 2 / 5

Statement check: For a fixed admissible pair satisfying submatch, the theorem proves the exact collar-count pushforward at every size, convergence to the product-Poisson laws, one reverse kernel per size shared by both alternatives and both input laws, and convergence of whole-field total variation to Poisson total variation, including at zero exposure.

For a fixed pair of height laws whose run coefficients match through order three, the overlapping collared-word counts are asymptotically sufficient for the complete ternary square, and their independent Poisson limit determines the limiting total-variation distance between the two full-field laws.

Faithfulness findings (1)

  • undisclosed-hypothesis — LeanPool/projects/c185-whole-square.yaml:30
    The informal statement lists submatch and the scale hypotheses but leaves the domain of the fixed pair implicit. State that the pair consists of atomless probability laws concentrated on (0, 1] with exactly linear lower tails of positive slope near zero, and that their oriented-word coefficients agree through cost three.
    Evidence: In Paper.lean, the headline starts with theorem fixed_pair_whole_square (P : Pair) (M : submatch P). In C185General/Buckets.lean, abbrev Pair := Bool→Material bundles prob : IsProbabilityMeasure μ, atomless : NullSingletonClass μ, and tail : LinearTail μ slope radius. In C185Physical/Tail.lean, LinearTail requires supported : ∀ᵐ x ∂μ, x ∈ Ioc (0 : ℝ) 1, slope : 0 < c, radius : 0 < r, and cdf : ∀ {x : ℝ}, 0 ≤ x → x ≤ r → μ (Iic x) = ENNReal.ofReal (c*x).

Code quality findings (6)

  • duplicate-proof — LeanPool/C185WholeSquare/C185End/Reverse.lean:60
    The interior and terminal screening proofs repeat the observed and resampled fiber calculations and the joint-measure exchange argument. The physical reverse proofs also copy law_ae, kernel_ae, and the local pack proof. The two information modules copy retain_tv and tv_inj, with the terminal version of tv_inj already showing that [Finite Y] is unnecessary. Factor the common arguments into lemmas beside joint, law, and kernel so changes to their definitions require one repair per argument.
    Evidence: Both terminal_screen in C185End/Reverse.lean and local_screening in C185Screen/Screening.lean use have db : C185Collar.law M (fresh f v g) = _ := funext (fresh_law P f v g hf hv hg 0). Both copies of kernel_ae conclude simp only [kernel,e,e']. Both information modules declare private theorem retain_tv {W V C : Type*} [Finite W] [Finite V] [Fintype C]. The interior tv_inj adds [Finite Y], while the terminal proof uses let S := Finset.univ.image d.
  • duplicate-proof — LeanPool/C185WholeSquare/C185Square/Field.lean:33
    The same two measurability branches are proved repeatedly by unfolding code. Whole-field measurability is proved twice in C185End/Mirror.lean and again in C185Multi/Step.lean and C185Mix/Mask.lean. Block-word measurability is repeated in C185Mix/Blocks.lean, C185Mix/Replacement.lean, C185Mix/Stubs.lean, and C185Grade/Fibers.lean. Prove measurability of the ternary comparison at its definition and expose the whole-field and block-word lemmas alongside their definitions. A change to either comparison branch would then have a single proof to update.
    Evidence: C185Square/Field.lean defines def code (s a b : ℝ) : Fin 3 := if a < s*b then C185Ternary.first else if b < s*a then. field_measurable, field_meas, and the local mm proof use apply Measurable.of_eval; intro e; unfold squareField C185Square.code. word_meas, seam_product, group_norm, and the groupMass calculation in C185Grade/Fibers.lean use apply Measurable.of_eval; intro e; unfold groupWord C185Square.code.
  • duplicate-proof — LeanPool/C185WholeSquare/C185Reverse/Physical.lean:21
    Symmetry of the same total variation definition is proved in count_tv_symm, tv_swap, swap_tv, and reverse_tv, and inline in both information proofs for individual cuts, both cascade information proofs, and transfer_recovery. The triangle inequality is also reproved in tv_triangle, count_tv_triangle, and finite_triangle. Put symmetry and the summable triangle inequality beside C185Poisson.tv and derive the finite form there. This gives callers one set of lemmas to update if the distance representation changes.
    Evidence: theorem count_tv_symm {X : Type*} (a b : X → ℝ) : tv a b=tv b a := by uses exact tsum_congr fun _=>abs_sub_comm ... C185Fine/Experiment.lean declares private theorem swap_tv {I : Type*} (u v : I → ℝ) : C185Poisson.tv u v = C185Poisson.tv v u := by. The triangle proofs in C185Poisson/Testing.lean and C185CutScan/Forward.lean both use abs_add_le, tsum_le_tsum, and Summable.tsum_add.
  • unused-import — LeanPool/C185WholeSquare/C185Square/Testing.lean:9
    The module defining fullMass pulls in three separate histogram and testing developments whose declarations have no callers outside their own files. The same dependency pattern occurs in C185General/Buckets.lean through C185Complete/Information.lean, in C185End/Square.lean through C185Multi/Limit.lean, and in C185Native/NativeCell.lean through C185Scan/Bank.lean. Import the lower-level modules that provide the symbols each caller uses. That keeps changes to standalone results from invalidating the whole-square proof’s import chain.
    Evidence: C185Square/Testing.lean declares only fullMass, with body (grid N μ).real (squareField N s ⁻¹' {w}), and imports public import LeanPool.C185WholeSquare.C185Square.Histogram, public import LeanPool.C185WholeSquare.C185Physical.Observable, and public import LeanPool.C185WholeSquare.C185Poisson.Testing. The other edges are public import LeanPool.C185WholeSquare.C185Complete.Information, public import LeanPool.C185WholeSquare.C185Multi.Limit, and public import LeanPool.C185WholeSquare.C185Scan.Bank.
  • duplicate-definition — LeanPool/C185WholeSquare/C185CutScan/Forward.lean:23
    The deterministic mass pushforward has two definitions and separate law and TV contraction lemmas. actual_pool_law already has to cross between the APIs. Move the shared operation into the channel layer and expose its fiber-sum and point-mass-kernel formulas as lemmas so finite-output and countable-output arguments can use the same operation.
    Evidence: fiberPush is defined by ∑' x : g ⁻¹' {y}, u x.val. C185Multi/Transport.lean defines def push (d : X → Y) (u : X → ℝ) := runK u (delta d). In actual_pool_law, the proof uses change push k (push g (law (grid N (P v).μ) f)) = _ at A and then rewrites using fiber_push_law.
  • duplicate-statement — LeanPool/C185WholeSquare/Paper.lean:22
    The public theorem repeats the entire statement of whole_square_experiment and forwards directly to it. The duplicated conjunction makes any change to the public experiment statement a synchronized edit across two files. Give the proof the public theorem name, or use a declaration alias if both names are needed.
    Evidence: C185Headline/Sequence.lean declares theorem whole_square_experiment (P : Pair) (M : submatch P). Paper.lean declares theorem fixed_pair_whole_square (P : Pair) (M : submatch P) with the same statement and proves it with exact C185Headline.whole_square_experiment P M hs h0 hB.

Tokens: 6,435,904 in / 43,068 out across 5 model calls · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $26.3896 (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.
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.

Comment on lines +30 to +33
informal: C185 Pass B2, Theorem 1, §3 Eqs. (12)–(15). The indexed survey and Poisson
experiment share an asymptotic reverse kernel under the submatch hypothesis for the
fixed pair, positive scale tending to zero and Ns² tending to B, with exact
collar-count pushforward and the limiting total-variation distance.

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.

Please include the site-law assumptions exposed by the configured review. Pair bundles them, and the current card lists only matching and scaling. This wording keeps the Lean theorem and its source intact.

Suggested change
informal: C185 Pass B2, Theorem 1, §3 Eqs. (12)–(15). The indexed survey and Poisson
experiment share an asymptotic reverse kernel under the submatch hypothesis for the
fixed pair, positive scale tending to zero and Ns² tending to B, with exact
collar-count pushforward and the limiting total-variation distance.
informal: >-
C185 Pass B2, Theorem 1, §3 Eqs. (12)–(15). The fixed pair consists of atomless
probability laws concentrated on (0, 1], each with an exactly linear lower tail
of positive slope near zero. Their oriented-word coefficients match through cost
three. At positive scales s tending to zero with Ns² tending to B, the indexed
survey and Poisson experiment share an asymptotic reverse kernel, with exact
collar-count pushforward and convergence of the full-field total-variation distance.

This branch has not been deployed

No deployments
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