MAX5 AND MAX6: LEAN PROOF COMPENDIUM
8 November 2026

Complete project proof sources, organized for reading and sharing.

The rational PM2 optima are W*(5,2)=6 and W*(6,2)=33. The identities hold on
every real input. This compendium contains the complete mathematical proof
sources and finite source data; no proof case, hypothesis or certificate data
has been removed to reduce the size.

START HERE

  sources/READING_GUIDE.txt
    A route from the model through the finite reductions to both final proofs.

  sources/max5/entry/Definitions.lean
  sources/max5/entry/Max5Optimality.lean
    The five-input model and the two closed results WStar_eq_six and
    width_six_optimal.

  sources/max6/entry/Definitions.lean
  sources/max6/entry/ContinuationMax6Optimality20261029.lean
    The six-input model and the closed result rational_PM2_MAX6_optimality.

  scope/ContinuationMax6OriginalScopeAudit20261029.lean
    Explicit all-real witness and lower-bound projections of the MAX6 result.

The fifteen chapter files under sources/max5/chapters/ and
sources/max6/chapters/ organize the analytic development. The entry files
expose the key interfaces. Large finite tables and repeated check families
are retained in compressed source records and shared templates. Each chapter
record preserves its original Lean module boundary; a chapter is not one
large compilable Lean module. FAMILY_INDEX.txt identifies the check families.

CHECK AND EXPAND

From this directory, using Python 3.10 or newer and its standard library:

  python3 -I -B tools/compendium.py audit

  python3 -I -B tools/compendium.py expand ../MAX5-MAX6-expanded

The expansion destination must not exist. Expansion restores all 10,143 MAX5
and 16,057 MAX6 compilation units, plus the separate MAX6 scope-projection
module. It also restores each project's lean-toolchain pin. Keep the max5 and
max6 projects separate: they use different definitions in the PM2 namespace.

To display a complete individual source module without expansion:

  python3 -B sources/tools/compact.py show max6 ContinuationFullTransfer

The audit checks hashes, complete reconstruction, module coverage, imports
and the additional scope source. It does not execute Lean. The preserved
source-decoder corruption tests can be run with:

  python3 -B sources/tools/test_compact.py

VERIFICATION STATUS

The accepted MAX6 checkpoint is 31 October 2026: all 16,057 project dependency
modules rebuilt from source, followed by independent kernel replay and final
scope/completion audits. MAX5 has its separate accepted kernel verification.
Only propext, Classical.choice and Quot.sound occur as axioms of the final
results. The mathematical scope and accepted checkpoint are unchanged here.

On 8 November, the separate offline distribution passed fresh-directory
tests with the original home directory and network blocked. Five theorem and
scope statements passed replay from both preserved objects and freshly
compiled roots. Ten source-compilation checks and corruption controls passed.
Selected records of that execution are included in verification/offline/.
Those are records of the offline distribution's execution, not a claim that
this source-only ZIP contains its compiled objects or has rerun Lean itself.

The sources/ directory preserves the complete earlier compact source edition
unchanged, including its manifests and verification records. Its cleaned
sources differ from the accepted originals only in documented comments.
No module graph merge or mathematical shortening is claimed. Historical
preparation comments and earlier status entries do not supersede the accepted
completion checkpoint or the later successful execution records.

DEPENDENCIES AND REPRODUCTION

This source-only edition leaves out the compiler binaries, external libraries,
compiled .olean files and build caches. These account for almost all the size
of the offline distribution. Lean 4.32.2 and the recorded external dependencies
must be installed separately to compile the expanded sources. DEPENDENCIES.json
records the repository URLs and exact revisions; provenance/ preserves the
original host lockfile. The toolchain pin is also supplied at the top level.

This compendium is a complete source companion, not a zero-download replay
environment. For the tested offline build/replay commands and all executable
inputs, retain MAX5-MAX6-Lean-Verification-2026-11-08.zip separately. Its SHA-256
and verification scope are recorded in verification/OFFLINE-ARCHIVE.json.
Historical absolute paths in copied logs are evidence locators only.

SCOPE

Coefficients are rational; inputs range over all reals. Features are all
pairwise maxima, including the coordinates. Directions compare two size-two
multisets of features, with repetitions allowed. Counted directions are
nonzero and pairwise nonparallel, their coefficients are nonzero, and the
feature-linear term is free. This is PM2 directional optimality, not
unrestricted neural-network optimality. The paper's real-coefficient extension
is a separate written rationalization argument, outside these Lean roots.

The short private25 argument retains R<=29, and the source-array/physical-Z
distinctions remain intact. Both the large offline bundle and all accepted
research snapshots are retained separately.
