Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Inside the Lean 4 Axiom Sanctuary (Part I): From the Parallelogram Law to Finite Record Pinching

“Build an academic theory of a universal machine for proposition proofs: define, state, prove.”

In conventional mathematical physics monographs, a “proof” relies on an unwritten pact between author and reader: a phrase such as “it is easy to see”, an implicit assumption that an index set is nonempty, or a quiet slide from coordinate-line invariance to a single global phase can hide subtle gaps. From Chapter 1 onward, this book has operated under a stricter contract captured by our opening epigraph — define, state, prove: every formal theorem, lemma, proposition, and corollary carrying the green LEAN ✓ badge is anchored to a declaration in the-omega-institute/trureturing@dev (pinned at commit a93ac745c3afb58d6ec61d9a0a8ba002948f43b7) that has been type-checked by the Lean 4 kernel and frozen without a single sorry.

From the parallelogram law to finite-record pinching. The chapter at a glance. Panel I: the ink arrows and span a parallelogram, and the squares of its two cyan diagonals and add up to the squares of its four sides (Theorem Kernel.16). Panel II: four coordinates form a chain; each cyan arc is a test vector that is non-zero on two neighbouring coordinates, and, for a unitary preserving the coordinate rays and all these test rays, the violet phase arrows in all four diagonal entries point the same way, (Proposition Kernel.19). Panel III: pinching strips the magenta off-diagonal blocks from the block matrix and keeps the cyan diagonal ones; pinching again leaves the matrix in place (Corollary Kernel.20).

In this chapter and Inside the Lean 4 Axiom Sanctuary (Part II): From Rank-One Born Reduction to Unread Fixed Points and , we open the actual .lean source files of trureturing@dev and audit the formal proof scripts line by line (a sample audit: the two chapters read 8 representative proofs line by line and list 76 declarations in their two audit tables — sampling the foundational spine of Parts I–VI, far fewer than all frozen declarations cited across the book):

  1. In this chapter (Part I of our kernel audit), we dissect four foundational proofs underlying Parts I through III: the real inner-product parallelogram norm law, the three-part Born probability skeleton on positive trace-one matrices, unitary global phase rigidity under support-connected ray tests, and idempotence of finite complete orthogonal record pinching;
  2. We trace the exact Mathlib lemmas and tactic chains (parallelogram_law_with_norm, mul_mul_conjTranspose_same, Relation.ReflTransGen induction, Finset.sum_eq_single) used in the kernel proofs, and conclude with a comprehensive audit table of frozen declarations across Parts I–III.

Define, State, Prove: Inside the Lean 4 Kernel Audit

In the trureturing verification pipeline, every green theorem in this book passes three machine-enforced stages:

  1. Define: Every mathematical object — such as a real inner-product space InnerProductSpace ℝ E, a square complex matrix Matrix n n ℂ, the positive-semidefinite predicate Matrix.PosSemidef, or a projective record measurement IsRecordMeasurement P — is defined unambiguously in dependent type theory;
  2. State: The theorem header specifies all typeclass instances and explicit hypotheses; the source module produces a module-level SHA-256 statement_id, recorded in Golden/Frozen/state/<module>.lean.json, which may be shared by several declarations in that module;
  3. Prove: The proof term is checked by the Lean 4 kernel with zero sorry placeholders and only standard foundational axioms (propext, Classical.choice, Quot.sound, verified in source files via #print axioms).

We begin by auditing two cornerstone declarations from Part I: the parallelogram norm identity and the finite-dimensional Born probability skeleton (Panel I of the chapter overview figure).

Theorem Kernel.16 (Parallelogram Norm Identity in Real Inner-Product Spaces (Kernel Audit))LEAN ✓

Let be a normed additive commutative group equipped with a real inner product ([NormedAddCommGroup E] [InnerProductSpace ℝ E]). For any two vectors ,

Proof

In D5/S3/QuantumContext/ParallelogramNormLaw.lean:22, the frozen declaration is proved by a single exact term application:

theorem inner_product_norm_parallelogram_law {E : Type*} [NormedAddCommGroup E]
    [InnerProductSpace ℝ E] (x y : E) :
    ‖x + y‖ ^ 2 + ‖x - y‖ ^ 2 = 2 * (‖x‖ ^ 2 + ‖y‖ ^ 2) := by
  exact parallelogram_law_with_norm ℝ x y

In the pinned Mathlib’s Mathlib.Analysis.InnerProductSpace.Basic, parallelogram_law_with_norm rewrites squares as products with sq and calls parallelogram_law_with_norm_mul; the latter rewrites norm products as real parts of self-inner products and applies the inner-product identity parallelogram_law. For a manual derivation, one can instead expand and via norm_add_sq_real and norm_sub_sq_real into and cancel the opposite inner-product cross terms . Line 26 of the source file runs #print axioms inner_product_norm_parallelogram_law to confirm that no unverified axioms enter. The full proof is checked by the Lean kernel.

Why must parallelogram_law_with_norm and norm_add_sq_real square 1D vectors into a 2D quadratic form before orthogonal cross terms disappear? Here lies the geometric synthesis formulated in the author’s design notes:

Author’s original words: “Pythagoras — all things are number — the Pythagorean theorem.”

From non-additive 1D lengths to grade-0 area scalars and canceling grade-2 bivector orientations: In a positive-definite Euclidean inner-product space, let two orthogonal vectors have scalar norms . When both vectors are non-zero, their 1D lengths cannot add linearly () because they point along perpendicular axes; if one vector is zero, that strict inequality degenerates to equality. In positive-definite Euclidean Clifford geometric algebra, squaring the resultant yields

Here , , and are grade-0 scalars carrying squared-length (area) measure, whereas and are grade-2 oriented-area bivectors. Since and the oppositely oriented bivectors anticommute (), the grade-2 oriented areas cancel identically (), leaving the grade-0 Pythagorean identity ! In the author’s reading, this is the exact geometric meaning behind the vanishing cross term in norm_add_sq_real and the cancellation between and in Theorem Kernel.16 (Mathlib’s proofs have no wedge product; only the grade-0 inner-product cross term does any work). The classical number-theoretic consequences and conceptual progression triggered when this quadratic identity is evaluated on the unit integer lattice are recorded in the following literature note:

Remark Kernel.17 (Hippasus's √2 Parity Contradiction, Pell Continued-Fraction Convergents, and the Four-Stage Progression of Number (Literature Result, Not Formalized in This Book))

Literature result, not formalized in this book. The 2-adic valuation parity proof of the irrationality of , the canonical Pell continued-fraction best rational approximants, and the transcendence of and the cosine fixed point below (see also Remark Kernel.22, Chapter 24 Remark 24.12, and Chapter 23 §23.1 Remark 23.6) belong to the classical number-theory literature together with this book’s conceptual synthesis (MODEL), and are not part of the frozen theorems audited line by line in this chapter. The unit remainder of the Pell convergents, however, is no longer only a literature result: writing and (the companion Pell and Pell numbers of Definition 23.1 in Chapter 23 §23.1), the identities and below follow by a manual derivation from the Lean-verified Theorem 23.3, and Theorem 23.4 adds the best-approximation lower bound; what remains literature is the identification of these fractions with the continued-fraction convergents of and the general theory of best approximation.

Setting on the unit integer lattice forces , so . For any positive integers (), a putative rational solution () shatters against 2-adic valuation parity: is always even, whereas is always odd (). While arbitrary rational sequences (such as decimal truncations ) can converge to , the canonical best continued-fraction approximants are the Pell convergents defined by (),

which satisfy the alternating unit-gap Pell equation:

For every , an indestructible unit arithmetic crack separates from . In this book’s conceptual and philosophical synthesis (MODEL), that unit crack propels the classical Chinese concept of number (shù / shǔ) from the discrete counting verb operator (shǔ, ) to the continuous geometric noun coordinate (shù), tracing a four-stage conceptual progression (note that this is a conceptual hierarchy rather than a chain of field inclusions ; the algebraic golden ratio satisfying belongs to Stage 2, whereas Stage 4’s denotes the transcendental self-referential cosine fixed point ):

Next we inspect born_probability_skeleton in D5/S3/Quantum/FiniteDimensional.lean:78. For any finite index type n ([Fintype n]) and matrices , the trace pairing is defined as

When is positive semidefinite (hRho : rho.PosSemidef) and has unit trace (hTrace : Matrix.trace rho = 1), the following frozen lemma establishes normalization on the identity, additivity over matrix addition, and nonnegativity on self-adjoint idempotent projections (in the complex partial order 0 ≤ z from ComplexOrder, meaning and ).

Lemma Kernel.18 (Born Probability Three-Part Skeleton on Positive Trace-One Matrices (Kernel Audit))LEAN ✓

Let be a finite index type with decidable equality ([Fintype n] [DecidableEq n]), and let satisfy hRho : rho.PosSemidef and hTrace : Matrix.trace rho = 1. Then all three properties hold:

  1. Identity normalization: ;

  2. Additivity: For all ,

  3. Nonnegativity on self-adjoint idempotent projections: For every , if and , then

Proof

In D5/S3/Quantum/FiniteDimensional.lean:78:

  • Conjunct 1 is discharged by simpa [bornProbability] using hTrace since ;

  • Conjunct 2 is discharged for arbitrary by simp [bornProbability, Matrix.mul_add], using distributivity and trace linearity;

  • Conjunct 3 uses a sandwich-compression trick to avoid spectral decomposition of the non-Hermitian product : given hSelfAdjoint : star P = P (rewritten as hConjTranspose : Pᴴ = P) and hIdempotent : P * P = P, the proof applies hRho.mul_mul_conjTranspose_same P to certify that the sandwiched matrix is positive semidefinite (hCompressed : (P * rho * Pᴴ).PosSemidef). A four-step calc block using Matrix.trace_mul_cycle and Matrix.trace_mul_comm then equates their traces:

    Rewriting bornProbability via ← hTraceCompressed and applying exact hCompressed.trace_nonneg completes the proof.

The full proof is checked by the Lean kernel.

Tr ρ = 1 ρ ⪰ 0 PρP∗ ⪰ 0 mul_mul_conjTranspose_same Tr(PρP∗) = Tr(ρP) trace_mul_cycle ③ 0 ≤ Tr(ρP) trace_nonneg P∗ = P, P2 = P ① unit simpa … hTrace ② additive Matrix.mul_add LEAN ✓ born_probability_skeleton

The Born skeleton is proved along three branches, and only the third takes a detour. Dashed ovals are hypotheses; boxes are the steps the proof names, each with the lemma that does it. Branches ① and ② take one step each; branch ③ first turns into the sandwich , then uses and with the cyclic trace to bring its trace back to , and finally takes a nonnegative trace. All three meet in the green Lemma Kernel.18.

Support-Chain Ray Phase Rigidity and Finite Record Pinching Idempotence

We now audit two structural theorems from Part I that showcase graph induction and block-diagonal projection algebra in Lean 4 (Panels II and III of the chapter overview figure).

In D5/S3/Quantum/Foundation/RayPhaseRigidity.lean:97, a matrix preserves the ray of a vector when

If preserves every coordinate basis ray , then must be diagonal. If also preserves every test ray, then to force all diagonal entries to equal a single common phase , no single full-support test vector is required; instead, RaySupportConnected tests requires only that every pair of indices is connected by the reflexive-transitive closure Relation.ReflTransGen of pairwise support overlaps .

Proposition Kernel.19 (Unitary Global Phase Rigidity Under Connected Ray Tests (Kernel Audit))LEAN ✓

Let be a finite index type with decidable equality ([Fintype ι] [DecidableEq ι]), let belong to the unitary group (hA : A ∈ Matrix.unitaryGroup ι ℂ), and let be a set of test vectors. Suppose:

  1. Coordinate ray invariance (hcoord): For every , ;
  2. Test ray invariance (htests): For every , ;
  3. Connected test supports (hconnect): .

Then there exists a complex scalar such that

Proof

In D5/S3/Quantum/Foundation/RayPhaseRigidity.lean:97, the proof proceeds in two stages:

  1. Private lemma coordinate_shape_of_connected_ray_tests:
    • First, hoff proves for all : unpacking hcoord j gives for some , whose -th component () reduces to .
    • Second, hstep proves that whenever some satisfies and , we have : unpacking htests x hx gives , and because is diagonal (Finset.sum_eq_single k with hoff), each component obeys . Canceling via mul_right_cancel₀ gives .
    • Third, hchain inducts over Relation.ReflTransGen (| refl => rfl and | @tail j k _ hjk ih => exact ih.trans (hstep j k hjk)), establishing for all .
  2. Main theorem and empty-type guard: Splitting on isEmpty_or_nonempty ι:
    • If is empty (inl hempty), satisfies norm_one and Subsingleton.elim _ _.
    • If is nonempty (inr hnonempty), setting base := Classical.choice hnonempty and yields hscalar : A = c • 1. Substituting hscalar into (Matrix.mem_unitaryGroup_iff'.mp hA) at entry (base, base) gives , and taking norms with nlinarith [norm_nonneg c] proves .

The full proof is checked by the Lean kernel.

coordinate_shape_of_connected_ray_tests off-diagonal Aij = 0 hoff xi, xj ≠ 0 ⇒ Aii = Ajj​ sum_eq_single · mul_right_cancel₀ all Aii equal ReflTransGen induction coordinate rays test rays supports connected ι empty: c = 1 Subsingleton.elim ι non-empty: c = Abb, |c| = 1 nlinarith A unitary isEmpty_or_nonempty ι LEAN ✓ unitary_phase_of_connected_ray_tests

Phase rigidity: first force diagonal, then pass one phase along the support chain. The large dashed frame holds the three steps of the private lemma coordinate_shape_of_connected_ray_tests, each fed by one dashed hypothesis on the left; below the frame the proof splits on whether is empty, and the non-empty branch uses “ unitary” to get . Both branches meet in the green Proposition Kernel.19.

Our fourth audited declaration in this chapter is finite_record_pinching_idempotent in D5/S3/Observer/Conditioning/FiniteRecordPinchingIdempotence.lean:30, which proves functional idempotence of the unread Lüders pinching map

for any finite complete orthogonal projection family IsRecordMeasurement P.

Corollary Kernel.20 (Functional Idempotence of Finite Complete Record Pinching (Kernel Audit))LEAN ✓

Let be a finite index type with decidable equality ([Fintype n] [DecidableEq n]), let be a finite outcome type ([Fintype kappa]), and let satisfy hP : IsRecordMeasurement P. Then

Proof

In FiniteRecordPinchingIdempotence.lean:30, funext rho reduces functional equality to the pointwise theorem unreadState_idempotent hP rho in D5/S3/Observer/Conditioning.lean:98. There, the helper lemma left_project_unread first computes

by collapsing the sum over to the single index via Finset.sum_eq_single k and pairwise orthogonality hP.orthogonal k l, then applying hP.idempotent k. Multiplying on the right by inside the outer sum and applying hP.idempotent k a second time yields . The full proof is checked by the Lean kernel.

orthogonal PkPl = 0 (k ≠ l) idempotent PkPk = Pk​ Pk · U(ρ) = PkρPk​ left_project_unread · sum_eq_single Σk Pk U(ρ) Pk = U(ρ) unreadState_idempotent U ∘ U = U funext ρ LEAN ✓ finite_record_pinching_idempotent U(ρ) = Σk PkρPk​

The idempotence of pinching is proved in one straight chain. The dashed hypotheses, orthogonality and idempotence, first let the left projection absorb the whole sum, ; multiplying by on the right absorbs once more and gives pointwise idempotence; function extensionality then carries it to every , ending in the green Corollary Kernel.20. In the figure, stands for .

Line-by-Line Source Anatomy: From Mathlib Lemmas to Graph Induction and Block Elimination

Across the four proofs above, four recurring Lean 4 proof engineering patterns stand out:

  1. Finite-index extensionality (ext i j; fin_cases i <;> fin_cases j): Concrete low-dimensional matrix identities are reduced to scalar ring equations over or and closed deterministically by simp and ring;
  2. Positive-semidefinite cone preservation under conjugate compression (hRho.mul_mul_conjTranspose_same P): Rather than diagonalizing , the proof rewrites using self-adjointness, idempotence, and trace cyclicity so that PosSemidef.trace_nonneg applies directly;
  3. Single-index sum collapse (Finset.sum_eq_single k): Orthogonality relations ( or for ) prune finite sums down to the diagonal term ;
  4. Reflexive-transitive closure induction (Relation.ReflTransGen): Local two-coordinate overlap steps (hstep) are lifted to global constancy across arbitrary connected support graphs by two-line structural induction (refl and tail).

Comprehensive Audit Table of Frozen Declarations Across Parts I–III

The table below audits representative frozen declarations cited across Parts I through III at commit a93ac745c3afb58d6ec61d9a0a8ba002948f43b7. As required by our verification contract, prose labels such as “parallelogram law”, “probability skeleton”, or “pinching idempotence” are descriptive titles only and carry no formal claim beyond the exact Lean signature.

ChapterFrozen GIDSource File & Linestatement_id PrefixExact Formal Scope & Contract
Ch 1 / Forge and Sanctuary · Inside the Lean 4 Axiom Sanctuary (Part I)D5/S3/QuantumContext/ParallelogramNormLaw.inner_product_norm_parallelogram_lawD5/S3/QuantumContext/ParallelogramNormLaw.lean:22sha256:b5f8dcc9 in real inner-product spaces
Ch 1 / Ch 18 / Forge and Sanctuary · Reducing Matrices to XORD5/S3/Quantum/FiniteDimensional.qubit_weyl_starD5/S3/Quantum/FiniteDimensional.lean:24sha256:8448b695qubitX and qubitZ anticommute, are self-adjoint, and square to
Ch 1 / Forge and Sanctuary · Reducing Matrices to XORD5/S3/Quantum/FiniteDimensional.qubit_matrix_algebra_has_no_characterD5/S3/Quantum/FiniteDimensional.lean:46sha256:8448b695
Ch 1 / Forge and Sanctuary · Inside the Lean 4 Axiom Sanctuary (Part I)D5/S3/Quantum/Foundation/RayPhaseRigidity.unitary_phase_of_connected_ray_testsD5/S3/Quantum/Foundation/RayPhaseRigidity.lean:97sha256:33a591cbInvariance of coordinate rays and all test rays, with connected test supports, forces unitary ()
Ch 2 / Forge and Sanctuary · Inside the Lean 4 Axiom Sanctuary (Part I)D5/S3/Quantum/FiniteDimensional.born_probability_skeletonD5/S3/Quantum/FiniteDimensional.lean:78sha256:8448b695Normalization, additivity, and projection nonnegativity of
Ch 3 / Forge and Sanctuary · Inside the Lean 4 Axiom Sanctuary (Part I)D5/S3/Observer/Conditioning/FiniteRecordPinchingIdempotence.finite_record_pinching_idempotentD5/S3/Observer/Conditioning/FiniteRecordPinchingIdempotence.lean:30sha256:aa98f3d9
Ch 3D5/S3/Quantum/Tomography/ComplementaryContextProbabilityPythagoras.complementary_context_probability_pythagorasD5/S3/Quantum/Tomography/ComplementaryContextProbabilityPythagoras.lean:33sha256:6cae4dbcFor rho : Matrix d d ℂ, state : E in a complete real inner-product space E ([NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E], preserving the distinction between the complex matrix rho : Matrix d d ℂ and the abstract Hilbert-space vector state : E), probability : L → d → ℝ ([Fintype d] [Nonempty d] [Fintype L]), and a closed real submodule visible : Submodule ℝ E ([IsClosed (visible : Set E)]), under calibration hypotheses hpurity : (Matrix.trace (rho * rho)).re - (Fintype.card d : ℝ)⁻¹ = ‖state‖ ^ 2 and hcoordinates : ‖visible.starProjection state‖ ^ 2 = ∑ l, ∑ j, (probability l j - (Fintype.card d : ℝ)⁻¹) ^ 2, proves (Matrix.trace (rho * rho)).re - (Fintype.card d : ℝ)⁻¹ = (∑ l, ∑ j, (probability l j - (Fintype.card d : ℝ)⁻¹) ^ 2) + residualMass visible state
Ch 3D5/S3/Quantum/Measurements/FiniteMemoryHistoryCapacity.finite_memory_history_capacityD5/S3/Quantum/Measurements/FiniteMemoryHistoryCapacity.lean:62sha256:b941b8f9 density matrices perfectly distinguished by an -outcome POVM () force
Ch 3D5/S3/QuantumBounds/CollisionEntropyUncertainty.collision_entropy_uncertaintyD5/S3/QuantumBounds/CollisionEntropyUncertainty.lean:31sha256:0855b96aFor distributions on outcomes with collision sum :
Ch 4D5/S3/Quantum/Decoherence/NonselectiveMarginalization.nonselective_recording_marginalD5/S3/Quantum/Decoherence/NonselectiveMarginalization.lean:32sha256:645a742cNonselective recording marginal equals the dephased diagonal mixture
Ch 4D5/S3/HilbertOperators/Stinespring.stinespring_dilationD5/S3/HilbertOperators/Stinespring.lean:725sha256:8b1f001fA completely positive φ : A →CP (H →L[ℂ] H) admits a Hilbert space , a unital *-homomorphism and a bounded with
Ch 4D5/S3/Quantum/Foundation/FiniteTraceDistance.traceDistanceD5/S3/Quantum/Foundation/FiniteTraceDistance.lean:463sha256:89528cf6Definition:
Ch 4D5/S3/Quantum/Foundation/FiniteTraceDistance.traceDistance_nonnegD5/S3/Quantum/Foundation/FiniteTraceDistance.lean:466sha256:89528cf6
Ch 4D5/S3/Quantum/Foundation/FiniteTraceDistance.traceDistance_symmD5/S3/Quantum/Foundation/FiniteTraceDistance.lean:469sha256:89528cf6
Ch 4D5/S3/Quantum/Foundation/FiniteTraceDistance.traceDistance_triangleD5/S3/Quantum/Foundation/FiniteTraceDistance.lean:476sha256:89528cf6Triangle inequality for the trace distance
Ch 4D5/S3/Quantum/Foundation/FiniteTraceDistance.traceDistance_le_oneD5/S3/Quantum/Foundation/FiniteTraceDistance.lean:485sha256:89528cf6
Ch 4D5/S3/Quantum/Foundation/FiniteTraceDistance.traceDistance_contractD5/S3/Quantum/Foundation/FiniteTraceDistance.lean:505sha256:89528cf6Trace distance does not increase under any QuantumChannel ι ι
Ch 5D5/S3/ConceptDynamics/Topology/CircleDoubleCoverHistoryLift.circle_double_cover_history_liftD5/S3/ConceptDynamics/Topology/CircleDoubleCoverHistoryLift.lean:36sha256:ccc9572bSquaring map of the circle: unique path lifts, no continuous global section, and the lift of the full-turn loop runs from to
Ch 5D5/S3/ConceptDynamics/Topology/CircleDoubleCoverNoSection.no_continuous_global_sectionD5/S3/ConceptDynamics/Topology/CircleDoubleCoverNoSection.lean:28sha256:f5e0857aNo continuous with
Ch 6D5/S3/QuantumBounds/LagrangeGramIdentity.lagrange_gram_identityD5/S3/QuantumBounds/LagrangeGramIdentity.lean:17sha256:ce9562e5Two-vector Lagrange–Gram area-squared identity
Ch 6D5/S3/Quantum/PureState/RecordCoherenceComplementarity.pure_record_distinguishability_coherence_complementarityD5/S3/Quantum/PureState/RecordCoherenceComplementarity.lean:29sha256:b1bcaba2Pure-state record distinguishability + squared coherence norm identity
Ch 6D5/S3/QuantumBounds/Designs/MixedStateRobertson.mixed_state_robertson_uncertaintyD5/S3/QuantumBounds/Designs/MixedStateRobertson.lean:68sha256:a2d45f27Density state , Hermitian , Hilbert–Schmidt (Frobenius) norms on the two centered matrix factors:
Ch 4 / Ch 6D5/S3/QuantumChannels/PinchingProjection.pinching_hilbert_schmidt_pythagoreanD5/S3/QuantumChannels/PinchingProjection.lean:68sha256:89589cffHilbert–Schmidt Pythagorean decomposition under pinching (only for qubit matrices, standard-basis pinching)
Ch 8D5/S3/Quantum/Dynamics/EntropyProductionCoherenceDeletionIdentity.entropy_production_coherence_deletion_identityD5/S3/Quantum/Dynamics/EntropyProductionCoherenceDeletionIdentity.lean:383sha256:5c5eb2ecExact identity between entropy production and coherence deletion
Ch 7D5/S3/QuantumChannels/ProjectionDiagnostics/MonitoredReturnConservation.monitored_return_conservationD5/S3/QuantumChannels/ProjectionDiagnostics/MonitoredReturnConservation.lean:71sha256:ae75c01fMonitored return protocol: , ,
Ch 8D5/S3/DivergenceSupport/LandauerIdentity.landauer_identity_from_balancesD5/S3/DivergenceSupport/LandauerIdentity.lean:23sha256:e5cd8297Real-number level: reservoir and unitary balances give
Ch 8D5/S3/DivergenceSupport/LandauerSaturation.landauer_saturation_iffD5/S3/DivergenceSupport/LandauerSaturation.lean:60sha256:21cfbcefUnder the balance and :
Ch 9 / Ch 16D5/S3/Geometry/TwoAxisFiniteRotation.two_axis_finite_wordD5/S3/Geometry/TwoAxisFiniteRotation.lean:327sha256:d9ac7833Finite-word generation of from two noncollinear axis circles
Ch 9D5/S3/Geometry/Orthogonality/RationalSixAxisCover.rational_six_axis_open_coverD5/S3/Geometry/Orthogonality/RationalSixAxisCover.lean:127sha256:eeeafc5dExplicit rational six-axis orthogonality-free open cover of
Ch 10D5/S3/Quantum/Algebra/GramUnitaryExtension.exists_unitary_mul_eq_of_conjTranspose_mul_eqD5/S3/Quantum/Algebra/GramUnitaryExtension.lean:43sha256:70b7fbd2
Ch 7 / Ch 11D5/S3/Quantum/Dynamics/EnergyEigenstateStationarity.energy_eigenstate_stationaryD5/S3/Quantum/Dynamics/EnergyEigenstateStationarity.lean:54sha256:d5563afeUnitarity of and stationarity of energy eigenstates
Ch 12D5/S3/Geometry/Riemannian/GradientDissipation.S2_dissipationD5/S3/Geometry/Riemannian/GradientDissipation.lean:157sha256:d2d84f9aSpeed integrability and exact potential dissipation along negative Riesz gradient flow

Let us trace a concrete hypothesis-mutation check on Proposition Kernel.19.

Example Kernel.21 (Hypothesis Mutation Audit: Where Disconnected Test Supports Break Phase Rigidity)

Consider in Proposition Kernel.19:

  1. Connected test support: Take with , so and . For any preserving the coordinate rays and and the test ray , hoff forces , and hstep 0 1 cancels from via mul_right_cancel₀ to lock , yielding ().
  2. Disconnected test support (counterexample blocked by hconnect): If we drop hconnect : RaySupportConnected tests and take , no vector in is simultaneously nonzero at both and . Then the unitary phase gate satisfies both hcoord and htests, yet is not a scalar multiple of ! In the Lean proof, the induction call hchain (hconnect i j) is the exact line that blocks disconnected phase sectors.

Cut the support graph and the two phases go their own ways. In both panels the two circles are the two coordinates of , and the violet arrow in each circle is the phase of the diagonal entry or . On the left the only test vector is , and a cyan arc joins the two cells; the unitary preserves both coordinate rays and this test ray, so both arrows point the same way: (Proposition Kernel.19). On the right the test vectors and each cover one cell only, and the dashed arc between the cells is struck out; keeps both coordinate rays, yet its two arrows are apart, so it is not . The right panel is a counterexample once the connectivity hypothesis is dropped, not a conclusion of the theorem.

Remark Kernel.22 (Dependent Type Theory, the de Bruijn Criterion, and the Modeling Boundary (Literature Result, Not Formalized in This Book))

Literature result, not formalized in this book. Two foundational principles govern the formal verification architecture audited in this chapter:

  1. The Calculus of Inductive Constructions and the de Bruijn criterion (L. de Moura & S. Ullrich, The Lean 4 Theorem Prover and Programming Language, CADE-28, LNAI 12699, 625–635, 2021, DOI 10.1007/978-3-030-79876-5_37; M. Carneiro, The Type Theory of Lean, MS thesis, Carnegie Mellon University, 2019): Lean 4 satisfies the de Bruijn criterion: elaborate tactics (simp, ring, linarith, nlinarith) construct explicit proof terms that are independently verified by a small, trusted type-checking kernel.
  2. Formal deduction versus physical modeling assumptions: The Lean 4 kernel certifies that each conclusion follows with mathematical certainty from its stated definitions and hypotheses; whether a physical laboratory apparatus satisfies the idealizations of a given hypothesis belongs to empirical physics and prose commentary rather than the formal theorem itself.
  3. Classical number-theoretic results versus the book’s philosophical synthesis:
    • Classical theorems: The Pythagorean theorem and incommensurability of appear in Euclid, Elements, Book I Prop. 47 & Book X; the 2-adic parity contradiction for () and the best continued-fraction Pell convergents are treated in G. H. Hardy & E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford University Press, 2008, Ch. 4 & Ch. 10; transcendence of and of the cosine fixed point () follows from the Lindemann–Weierstrass theorem (F. Lindemann, Math. Ann. 20, 213–225, 1882; see also T. Y. Chow, Amer. Math. Monthly 106(5), 440–448, 1999).
    • Conceptual synthesis: The reading of the classical Chinese term for number (shù / shǔ) from the counting verb operator (shǔ) to the continuous geometric noun coordinate (shù) and the four-stage conceptual progression represent the author’s philosophical synthesis around Theorem Kernel.16 rather than a chain of field inclusions or part of the four frozen Lean declarations of this chapter.

Having audited the formal spine of Parts I–III, let us now enter Inside the Lean 4 Axiom Sanctuary (Part II): From Rank-One Born Reduction to Unread Fixed Points and to audit the rank-one Born reduction, the three-part Born pairing bridge, Lüders conditional state validity, and the fixed-point equivalence that closes the book’s self-referential loop .