04 β Magnetic Laplacian construction
π β β^{6Γ6} Hermitian at magnetic phase g=1/4. Per-relation rank-2 decomposition, Hermiticity sketch.
04 β The Magnetic Laplacian π for Lean
TL;DR. We construct the 6Γ6 complex Hermitian Magnetic Laplacian π for the Lean algebra on the 6 entity types, following V3βs recipe (HypatiaBasis Β§7) verbatim: symmetrized weight W^(s), direction sign matrix D, phase matrix T^(g) at charge g = 1/4, degree matrix Ξ, and π = Ξ β T^(g) β W^(s). Hermiticity follows because D is antisymmetric and W^(s) is symmetric, so the off-diagonal entries are complex conjugates pairwise. Each of the 15 Lean relationships contributes a rank-2 Hermitian sub-matrix π_k, and π = Ξ£_{k=1..15} π_k. Empirically we expect a similar eigenvalue pattern to V3βs CheckItOut (Β±31.04i dominant, Β±5.39i governance, Β±1.78i Event-Process π°π²(2), Β±0.73i Rule-Context π°π²(2)) β but with Lean-specific values to be measured by Team Merak. The 90Β° phase choice (g = 1/4) is optimal for directedness per MagNet (arXiv 2102.11391).
1. The block adjacency matrix B
Vertex ordering β canonical vs exposition.
- Canonical index order (alphabetical, A/D/I/N/S/T) is used by all live Python consumers (Zaurak, Izarβs verification scripts,
measure_non_commutativity.py, numpy indexing, downstream scripts). Index it this way whenever a script, Cypher parameter, or serialized matrix is written to disk. - Mnemonic exposition order (A/T/D/S/I/N) is used below in Β§2 only, chosen so that related-height types sit adjacent (Theorem + Definition + Structure bundle, then Instance + Namespace as sinks). This is pedagogical; when you compute eigenvalues or write tests, re-index to alphabetical.
Cross-ref: we do not emit
GENERALIZES/FOLDSas separate edges β the phase factorT^(g) = exp(i Β· 2Ο Β· g Β· D)atg = 1/4generates the reverse traversal automatically as the complex conjugate off-diagonal entry. See memo 05 Β§5.4 and Β§5.4 of this memo for the spectral interpretation.
For exposition in Β§2βΒ§6, order the 6 types:
index type ordering mode
1 Axiom (A) both canonical and mnemonic
2 Theorem/Lemma (T) mnemonic
3 Definition/Abbrev(D) mnemonic
4 Structure/Class (S) mnemonic
5 Instance (I) mnemonic
6 Namespace (N) mnemonic
Canonical (for scripts):
[Axiom, Definition, Instance, Namespace, Structure, Theorem]
For each ordered pair (X, Y) and each of the 15 relationships r_k, count whether r_k legally runs X β Y (from files 02 and 03). The block entry B[X,Y] = number of relationship types flowing X β Y.
Legal flows by relationship:
| k | Name | Tail type | Head type |
|---|---|---|---|
| 1 | IMPORTS | N | N |
| 2 | OPENS_NAMESPACE | N | N |
| 3 | EXTENDS | S | S |
| 4 | INSTANTIATES | I | S |
| 5 | ASSUMES | T | A |
| 6 | APPLIES | T | T |
| 7 | UNFOLDS | T | D |
| 8 | SPECIALIZES | T | T |
| 9 | REWRITES_BY | T | T |
| 10 | HAS_TYPE | D or T | S |
| 11 | CONSTRAINED_BY | D or T | S |
| 12 | PARAMETRIZES | D or T | S |
| 13 | REDUCES_TO | D | D |
| 14 | ELABORATES_AS | D or T | T |
| 15 | SUGGESTED_BY | T | T |
Counting per block (merging D/T source where a relationship allows either β we keep T-source and D-source as separate entries since each is a distinct occurrence):
1.1 Raw block matrix B (out-counts)
Rows = source, columns = target; ordering A, T, D, S, I, N.
| A | T | D | S | I | N | |
|---|---|---|---|---|---|---|
| A | 0 | 0 | 0 | 0 | 0 | 0 |
| T | 1 | 5 | 1 | 3 | 0 | 0 |
| D | 0 | 1 | 1 | 3 | 0 | 0 |
| S | 0 | 0 | 0 | 1 | 0 | 0 |
| I | 0 | 0 | 0 | 1 | 0 | 0 |
| N | 0 | 0 | 0 | 0 | 0 | 2 |
Row totals:
- A: 0 (pure source β as specified by SR_L1)
- T: 10 (richest active hub β ASSUMES, APPLIESΓ2 (APPLIES + SPECIALIZES + REWRITES_BY + SUGGESTED_BY = 4, but merged as βto Tβ = 5), UNFOLDS to D, HAS_TYPE/CONSTRAINED_BY/PARAMETRIZES to S)
- D: 5 (ELABORATES_AS to T, REDUCES_TO to D, three type-connecting edges to S)
- S: 1 (only EXTENDS to S)
- I: 1 (only INSTANTIATES to S)
- N: 2 (IMPORTS, OPENS_NAMESPACE, both to N)
1.2 Column totals β in-degree pattern
| Column | In-degree | Interpretation |
|---|---|---|
| A | 1 | One inbound edge type (ASSUMES), from T only |
| T | 6 | Richest hub also as target |
| D | 2 | UNFOLDS from T; REDUCES_TO from D (self-loop) |
| S | 8 | Most-targeted: EXTENDS, INSTANTIATES, HAS_TYPE, CONSTRAINED_BY, PARAMETRIZES all aim here |
| I | 0 | Pure sink β no inbound edges (by SR_L3) |
| N | 2 | Only structural IMPORTS / OPENS_NAMESPACE |
Structural properties (analogue of HypatiaBasis Proposition 2.1):
(i) A is a pure behavioral source. Row sum A = 0. No typed arrow originates from an Axiom (outbound). Column A = 1, with the single incoming relationship being ASSUMES.
(ii) I is a pure sink. Column I = 0, row I = 1 (only outbound INSTANTIATES). Nothing depends on an Instance; it is the terminal node of its INSTANTIATES edge only.
(iii) T is the algebraic hub. Highest out-degree (10) and highest in-degree sharing (via APPLIES, SPECIALIZES, REWRITES_BY, SUGGESTED_BY, ELABORATES_AS) β 6 inbound relationship types vs T.
(iv) Block density. Non-zero blocks: 9 of 36. Density = 9/36 = 25%. Lower than V3βs 38.9%. This is expected: Leanβs type discipline strictly prunes combinations that software architecture allows informally.
(v) Self-loops at 4 types. TβT (APPLIES, SPECIALIZES, REWRITES_BY, SUGGESTED_BY), DβD (REDUCES_TO), SβS (EXTENDS), NβN (IMPORTS, OPENS_NAMESPACE). Four diagonal entries non-zero. Compare V3βs PβP self-loop via CALLS.
(vi) Candidate bidirectional cycles (to verify empirically in file 05):
- Within TβT βͺ TβT via different relationships β e.g., SPECIALIZES β GENERALIZES (if GENERALIZES is introduced as the inverse, which Sarin-Beta can decide). Currently GENERALIZES is not in our 15; if it is added as a 16th, it completes a π°π²(2) candidate.
- Within DβD: UNFOLDS β FOLDS (same comment; FOLDS currently not in the 15).
- (DβT ELABORATES_AS) β (TβD UNFOLDS): D produces a T (via elaboration); T unfolds back to D. Candidate π°π²(2)_{T,D}.
2. Construction of π
Following HypatiaBasis Definition 7.1 verbatim.
2.1 Symmetrized weight W^(s)
Using the B above:
| A | T | D | S | I | N | |
|---|---|---|---|---|---|---|
| A | 0 | 0.5 | 0 | 0 | 0 | 0 |
| T | 0.5 | 5 | 1 | 1.5 | 0 | 0 |
| D | 0 | 1 | 1 | 1.5 | 0 | 0 |
| S | 0 | 1.5 | 1.5 | 1 | 0.5 | 0 |
| I | 0 | 0 | 0 | 0.5 | 0 | 0 |
| N | 0 | 0 | 0 | 0 | 0 | 2 |
Symmetric: β (W^(s))^T = W^(s).
2.2 Direction matrix D
| A | T | D | S | I | N | |
|---|---|---|---|---|---|---|
| A | 0 | β1 | 0 | 0 | 0 | 0 |
| T | +1 | 0 | +1 | +1 | 0 | 0 |
| D | 0 | β1 | 0 | +1 | 0 | 0 |
| S | 0 | β1 | β1 | 0 | β1 | 0 |
| I | 0 | 0 | 0 | +1 | 0 | 0 |
| N | 0 | 0 | 0 | 0 | 0 | 0 |
Antisymmetric: D^T = βD β (diagonals = 0; off-diagonals flip sign). NβN IMPORTS is bidirectional in counting so contributes 0 to direction (both rows equal).
2.3 Phase matrix T^(g) at g = 1/4
So:
D_{XY} = +1β T_{XY} = e^{iΟ/2} = +iD_{XY} = β1β T_{XY} = e^{βiΟ/2} = βiD_{XY} = 0β T_{XY} = 1
| A | T | D | S | I | N | |
|---|---|---|---|---|---|---|
| A | 1 | βi | 1 | 1 | 1 | 1 |
| T | +i | 1 | +i | +i | 1 | 1 |
| D | 1 | βi | 1 | +i | 1 | 1 |
| S | 1 | βi | βi | 1 | βi | 1 |
| I | 1 | 1 | 1 | +i | 1 | 1 |
| N | 1 | 1 | 1 | 1 | 1 | 1 |
Check: T^β = T ? No β T has complex conjugate symmetry: T_{YX} = conj(T_{XY}). That means T is Hermitian (what we want).
2.4 Degree matrix Ξ
- Ξ_{AA} = 0.5
- Ξ_{TT} = 0.5 + 5 + 1 + 1.5 + 0 + 0 = 8
- Ξ_{DD} = 0 + 1 + 1 + 1.5 + 0 + 0 = 3.5
- Ξ_{SS} = 0 + 1.5 + 1.5 + 1 + 0.5 + 0 = 4.5
- Ξ_{II} = 0 + 0 + 0 + 0.5 + 0 + 0 = 0.5
- Ξ_{NN} = 0 + 0 + 0 + 0 + 0 + 2 = 2
Ξ = diag(0.5, 8, 3.5, 4.5, 0.5, 2).
2.5 The Algebra Matrix π
Off-diagonal entries π_{XY} = βT^{(g)}_{XY} Β· W^{(s)}_{XY}. Diagonal entries π_{XX} = Ξ_{XX} β 1 Β· W^{(s)}_{XX} (the T^{(g)}_{XX} = 1 factor cancels on diagonal). Since W^{(s)}_{XX} already counts self-loops, one careful reading of HypatiaBasis makes the diagonal just Ξ_{XX} β W^{(s)}_{XX}.
| π | A | T | D | S | I | N |
|---|---|---|---|---|---|---|
| A | 0.5 | +0.5i | 0 | 0 | 0 | 0 |
| T | β0.5i | 3 | βi | β1.5i | 0 | 0 |
| D | 0 | +i | 2.5 | β1.5i | 0 | 0 |
| S | 0 | +1.5i | +1.5i | 3.5 | +0.5i | 0 |
| I | 0 | 0 | 0 | β0.5i | 0.5 | 0 |
| N | 0 | 0 | 0 | 0 | 0 | 0 |
Diagonal: π_{XX} = Ξ_{XX} β W^{(s)}_{XX}:
- π_{AA} = 0.5 β 0 = 0.5
- π_{TT} = 8 β 5 = 3
- π_{DD} = 3.5 β 1 = 2.5
- π_{SS} = 4.5 β 1 = 3.5
- π_{II} = 0.5 β 0 = 0.5
- π_{NN} = 2 β 2 = 0
Off-diagonal A,T: π_{AT} = βT_{AT} Β· W^(s){AT} = β(βi)(0.5) = +0.5i; π{TA} = βT_{TA} Β· W^(s)_{TA} = β(+i)(0.5) = β0.5i. Conjugate pair β.
Off-diagonal T,D: π_{TD} = β(+i)(1) = βi; π_{DT} = β(βi)(1) = +i. Conjugate β.
Off-diagonal T,S: π_{TS} = β(+i)(1.5) = β1.5i; π_{ST} = β(βi)(1.5) = +1.5i. β.
Off-diagonal D,S: π_{DS} = β(+i)(1.5) = β1.5i; π_{SD} = β(βi)(1.5) = +1.5i. β.
Off-diagonal S,I: π_{SI} = β(βi)(0.5) = +0.5i; π_{IS} = β(+i)(0.5) = β0.5i. β.
The N row/column is all zero β Namespace is decoupled from the behavioral algebra (which is exactly SR_L2βs spirit). In the Hermitian spectrum, this gives one guaranteed zero eigenvalue with eigenvector e_N = (0,0,0,0,0,1)^T.
2.6 Hermiticity proof
Claim. π^β = π.
Proof.
Off-diagonal. Fix X β Y. By construction,
D_{XY} = sign(B_{XY} β B_{YX})andD_{YX} = sign(B_{YX} β B_{XY}) = βD_{XY}(antisymmetry of sign-of-difference).- Therefore
T^{(g)}_{YX} = e^{i Β· 2Ο g Β· D_{YX}} = e^{βi Β· 2Ο g Β· D_{XY}} = \overline{T^{(g)}_{XY}}(complex conjugation). W^{(s)}_{YX} = W^{(s)}_{XY}(symmetric by definition).- Hence
π_{YX} = βT^{(g)}_{YX} W^{(s)}_{YX} = β\overline{T^{(g)}_{XY}} Β· W^{(s)}_{XY} = \overline{βT^{(g)}_{XY} W^{(s)}_{XY}} = \overline{π_{XY}}.
Diagonal. π_{XX} = Ξ_{XX} β W^{(s)}_{XX} is real (all weights are real, degrees are real).
Therefore π^β _{XY} = \overline{π_{YX}} = \overline{\overline{π_{XY}}} = π_{XY}, so π^β = π. β‘
Corollary. All eigenvalues of π are real. The eigenvectors form an orthonormal basis of β^6.
3. Why g = 1/4
V3 (HypatiaBasis Β§7) uses g = 1/4 and justifies it by citing MagNet (Zhang et al., arXiv 2102.11391). The choice is optimal for three reasons:
-
Maximal phase distinction. At g = 1/4, unidirectional edges get
+iorβi, which are the two points on the unit circle maximally distant from the real axis. No real-valued relationship is confused with a directional one. Smaller g (say 1/8, phase 45Β°) mixes directionality with magnitude; larger g (say 1/2, phase 180Β°) makes forward and backward edges both real (opposite signs), losing the directional signature. -
Rotational π°π²(2)-compatibility. The π°π²(2) lifting is cleanest at g = 1/4 because the corresponding Pauli-like rotation is 90Β°, yielding the standard
Ο_y-style antisymmetric generator. V3βs empirical decomposition (HypatiaBasis Theorem 6.1) depends on this. We inherit it. -
Numerical stability. At g = 1/4, the phases are Β±i, exactly representable in floating point. g = 1/3 would involve Ο = e^{iΟ/3} = 0.5 + iΒ·β3/2, introducing rounding.
Alternative considered and rejected. g = 1/2 (180Β° phase). This gives forward = β1, backward = +1, real-valued. It would let us keep the matrix real, simplifying eigendecomposition. But it collapses directionality to sign, losing the phase-based holonomy signal V3 needs for Berry phase computation (GrothendieckAlgebraicTopologies Β§7.4). For the Lean adaptation, Berry phase is how we detect subsystem boundaries in file 09, so we need g = 1/4.
4. Per-relation decomposition π = Ξ£_k π_k
Following HypatiaBasis Β§7.2, each relationship r_k contributes a rank-2 Hermitian sub-matrix π_k concentrated on the rows/columns of its tail and head entity types.
For a unidirectional relationship r_k: X β Y with weight w_k = 1 (we use unit weights):
with diagonal corrections:
Sum these over all 15 relationships and verify Ξ£_k π_k = π block-by-block.
Example β the ASSUMES contribution π_5:
| A | T | |
|---|---|---|
| A | 0.5 | +0.5i |
| T | β0.5i | 0.5 |
(all other entries 0). This accounts for the (A, T) block of the full π matrix β indeed ASSUMES is the only relationship running T β A. Matches.
Example β the EXTENDS contribution π_3:
| S | |
|---|---|
| S | 1 |
with diagonal correction π_3[S, S] = 1 (from both endpoints of the same self-loop). For self-loops on the S β S block, the direction matrix gives D_{SS} = 0 (since count is 1 β 1 = 0 or the self-loop contributes 1 to each side of the symmetric difference β ambiguity resolved by convention of treating self-loops as bidirectional with phase 1).
The remaining self-loops (APPLIES, SPECIALIZES, REWRITES_BY, SUGGESTED_BY on T β T; REDUCES_TO on D β D; IMPORTS + OPENS_NAMESPACE on N β N) contribute similarly to the diagonals. This is why π_{TT} = 3 (T has multiple self-loops contributing).
4.1 Weight inheritance
When we extend this construction to empirical data (Team Merakβs scripts running on actual OmegaTheory+Mathlib), each π_k carries a measured weight w_k = (count of edges of type k in the graph) / (total edges). This turns π into a data-driven observable. The per-relation Ξ±_k coefficients from FastRP (file 06, Grothendieck Β§3.5) will give an independent measure; the ratio Ξ±_k / w_k is the signal-to-noise ratio of the k-th relationshipβs sub-topology.
5. Spectrum β expected pattern
5.1 V3 baseline (CheckItOut)
From HypatiaBasis Β§6.2:
- Β±31.04i β dominant asymmetric flow (PERFORMS/CALLS/USES chains)
- Β±5.39i β governance flow (CONSTRAINS/GOVERNS chains)
- Β±1.78i β π°π²(2)_{EP} (TRIGGERS/INITIATES cycle)
- Β±0.73i β π°π²(2)_{RuC} (APPLIES_IN/SCOPES cycle)
Wait β these are commutator eigenvalues of [Ο_i, Ο_j] on 4096-dim embedding commutators, not eigenvalues of π itself. The Laplacian π is 6Γ6 Hermitian so its eigenvalues are real. The commutator eigenvalues Β±31.04i are empirically measured on the FastRP-projected space, not on the algebra matrix.
5.2 Prediction for πβs own spectrum on OmegaTheory
Computing eigenvalues of the π matrix above symbolically (or numerically via numpy.linalg.eigh after substitution):
The N row/column is decoupled (zero), so one eigenvalue is 0. The remaining 5Γ5 block acts on {A, T, D, S, I}. For a first estimate, tracing gives tr(π) β π_{NN} = 0.5 + 3 + 2.5 + 3.5 + 0.5 = 10, so the sum of 5 eigenvalues = 10 and mean β 2. Determinant bound: the block is not diagonal-dominant due to the β1.5i entries, so expect some spread. Rough estimate (to be verified empirically): eigenvalues approximately (0, 0.3, 1.5, 2.5, 3.0, 4.7) β with one zero from the N decoupling, one near-zero from Instance near-sink behavior, and three intermediate, one largest near the T row sum.
5.3 Commutator-eigenvalue prediction (file 08)
For the Lean algebra to be genuinely non-abelian (analogue of Theorem 5.1 in HypatiaBasis, which gives 93% non-commuting pairs for V3), we expect [Ο_i, Ο_j] β 0 for most pairs of relationships. Hypotheses:
- Dominant asymmetric pair:
APPLIESandUNFOLDSshare the T tail but target different types (T and D respectively). Compose:APPLIES β UNFOLDS: T β T β Dlands in D-space;UNFOLDS β APPLIESβ reverse composition βUNFOLDS β APPLIES: D β T β T? That does not compose (UNFOLDS head is D, APPLIES tail is T). So the pair is asymmetric (Class II of Theorem 5.1): the commutator is justAPPLIES β UNFOLDSwith no reverse. Non-zero by asymmetry. - Symmetric non-commuting pair (like TRIGGERS/INITIATES): None materialize as duplicate edges in our 15-relationship set. Every arrow has a single forward direction; we do NOT introduce GENERALIZES or FOLDS as separate edges. However, the π°π²(2) structure does not require duplicate edges in the graph β it emerges from the Magnetic Laplacianβs phase factor itself (see Β§5.4 below).
5.4 How π°π²(2) emerges without duplicate edges (design clarification, 2026-04-18 per team-lead)
The phase construction T^(g) = exp(i Β· 2Ο Β· g Β· D) at g = 1/4 automatically generates the +i / βi conjugate pair from a single directed edge:
D_{X,Y} = +1(forward edge XβY) givesπ_{X,Y} = βe^{+iΟ/2} Β· w = βi Β· w.D_{Y,X} = β1(reverse traversal) givesπ_{Y,X} = βe^{βiΟ/2} Β· w = +i Β· w.
The off-diagonal pair (π_{X,Y}, π_{Y,X}) is already the complex conjugate pair required by an π°π²(2) raising/lowering generator β the phase factor does the work of a second edge without requiring one in the ontology. For a single directed edge like Tβ SPECIALIZES Tβ, the matrix entries are already βi Β· w forward and +i Β· w reverse. No GENERALIZES edge is needed in the graph: the reverse traversal lives in πβs off-diagonal conjugate, not in a duplicated relationship type.
Revised Theorem 6.1 analogue for Lean (spectral form). The commutator spectrum of π decomposes as π°π²(2) Γ π°π²(2) Γ π© iff:
SPECIALIZESshows balanced empirical traffic in the live Lean graph β equal counts of forward (general β specialized use) and reverse (specialized invocation β general statement) proof-time traversals. Measured over real proofs as|{proofs that cite Tβ as a SPECIALIZES of Tβ}| β |{proofs that apply Tβ by specializing to Tβ inline}|.UNFOLDSshows the same empirical balance between forward (theorem unfolds a definition) and reverse (definition is elaborated back to the theoremβs form viashow/rfl).
If condition (1) holds (say, 45β55% forward), the SPECIALIZES sub-matrix of π has two non-zero eigenvalues of opposite sign and equal magnitude β an π°π²(2) raising/lowering pair. If empirically SPECIALIZES is 95% forward and 5% reverse, the Δ΄_+ generator has 20Γ the amplitude of Δ΄_-, and the [Δ΄_+, Δ΄_-] commutator is small relative to Δ΄_+^2 β the algebra collapses toward nilpotent-dominated for that relation. Same logic for UNFOLDS and the second π°π²(2) factor.
This is the first measurable empirical question for Team Merak (restated as Q1 in file 05):
- Q1a. Forward/reverse traversal ratio for SPECIALIZES on live OmegaTheory + Mathlib.
- Q1b. Same ratio for UNFOLDS.
- Q1c. If either ratio is outside [0.3, 0.7], the corresponding π°π²(2) degenerates; we fall back to pure-nilpotent analysis for that relation. Ontology does NOT change in either case β only the interpretation of the spectrum shifts.
Net: the 15-relationship set is final. Merakβs job is to measure, not to propose new edges. Sarin-Betaβs 05_cycle_hypotheses.md correctly frames SPECIALIZES and UNFOLDS as π°π²(2) candidates; the raising/lowering interpretation lives in πβs eigendecomposition, not in the edge ontology.
6. Matrix sketch for reference
Final π (symbolic, unit weights):
A T D S I N
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
A β 0.5 +0.5i 0 0 0 0 β
T β β0.5i 3 βi β1.5i 0 0 β
D β 0 +i 2.5 β1.5i 0 0 β
S β 0 +1.5i +1.5i 3.5 +0.5i 0 β
I β 0 0 0 β0.5i 0.5 0 β
N β 0 0 0 0 0 0 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Hermitian: β (verified above) Rank: 5 (N row/column zero contributes a zero eigenvalue) Trace: 10 Block density: 9 / 36 = 25% (matches file 03βs prediction of 30% Β± 5%)
7. Open items for Merak
- Measure weights from real data. Replace unit weights with actual edge counts from the ingested OmegaTheory + Mathlib graph (~243K nodes, millions of edges). Expect Ax row-column to stay small (< 1% of total); T row to dominate (> 40%).
- Compute πβs spectrum empirically with measured weights. Report eigenvalues and eigenvectors.
- Compute commutator spectrum
[Ο_i, Ο_j]for all 15 Γ 14 / 2 = 105 relationship pairs. Look for the two expected anti-correlated bundles (file 05 Sarin-Beta hypothesis). - Verify Hermiticity numerically. Compute
||π β π^β ||_Fon the measured matrix β should be < 1e-10. - Measure block density. Report real occupancy; confirm it stays in the 20β40% range.
Amended 2026-04-18 evening β 6Γ6 β 8Γ8 for Level B + C
Memo 01 Β§9 adds 2 Level B entity types (Tactic, Attribute); memo 02 Β§11βΒ§12 adds 5 Level B + C arrows (USES_TACTIC, TAGGED_AS, MUTUALLY_IMPLIES, DUAL_OF, ADDITIVE_PAIR). The Magnetic Laplacian accordingly extends from 6Γ6 to 8Γ8.
8. Revised vertex ordering β 8 types
Canonical (alphabetical, 8 entries):
canonical index type extension
0 Attribute B
1 Axiom core
2 Definition core
3 Instance core
4 Namespace core
5 Structure core
6 Tactic B
7 Theorem core
Flat 64-element row-major encoding: cell (i, j) at index 8*i + j in both real_part and imag_part. Parallel to the 6Γ6 alphabetical convention (memo 04 Β§1), Attribute and Tactic slot into alphabetical position 0 and 6 respectively.
Mnemonic order (for exposition in this Β§8βΒ§12 only): [Axiom, Theorem, Definition, Structure, Instance, Namespace, Tactic, Attribute] β core 6 first, then Level B meta-types. Do NOT use mnemonic order for numpy indexing or Cypher parameters.
9. Revised block matrix B β 8Γ8
Core 6Γ6 block (Β§1.1) stays as-is on the 8-type canonical ordering, re-positioned at rows/columns [Axiom, Definition, Instance, Namespace, Structure, Theorem] = canonical indices 1, 2, 3, 4, 5, 7 (note: Structure slots at 5, Theorem at 7, skipping 6 for Tactic).
Level B + C additions:
| Arrow | Source types | Target type | Live edge count |
|---|---|---|---|
| USES_TACTIC | Theorem, Definition | Tactic | 285,581 |
| TAGGED_AS | Theorem, Definition, Structure, Instance, Axiom | Attribute | 12,872 |
| MUTUALLY_IMPLIES | Theorem | Theorem (symmetric) | 2,082 |
| DUAL_OF | Theorem, Definition | same type (symmetric) | 7,786 |
| ADDITIVE_PAIR | Theorem | Theorem (symmetric) | 3,788 |
Level C (MUTUALLY_IMPLIES, DUAL_OF, ADDITIVE_PAIR) contributes to the TheoremβTheorem self-loop block and DefinitionβDefinition self-loop block only, but with symmetric weight (SR_L16βSR_L18): both directions of the edge are emitted, so B_{T,T} gains 2Β·(MUTUALLY_IMPLIES + ADDITIVE_PAIR + DUAL_OF_on_T) contributions, and B_{D,D} gains 2Β·DUAL_OF_on_D.
10. Revised construction of π β 8Γ8
Following HypatiaBasis Def. 7.1, same machinery as Β§2 lifted to 8 dimensions:
- Symmetrized weight
W^(s)_{XY} = (B_{XY} + B_{YX})/2. Now 8Γ8. - Direction matrix
D_{XY} = sign(B_{XY} β B_{YX}). Symmetric-pair edges (Level C) giveD = 0becauseB_{XY} = B_{YX}β these contribute only to the real (non-phase) part of π. - Phase matrix
T^(g) = exp(i Β· 2Ο Β· g Β· D)atg = 1/4. Unchanged from Β§2.3. - Degree matrix
Ξnow 8Γ8 diagonal. - **π = Ξ β T^(g) β W^(s)` in β^{8Γ8}.
10.1 Attribute row/column
Attribute is a pure target (SR_L15, memo 03 amended). Row 0 is all zero except for self-loop possibilities (none, by SR_L15). The column accumulates 12,872 TAGGED_AS inbound edges distributed across 5 source types (Theorem, Definition, Structure, Instance, Axiom) in empirical proportion.
Expected: Attribute contributes one eigenvalue β βmean TAGGED_AS off-diagonal magnitude and one balancing eigenvalue on the dual side. Direction signal: all TAGGED_AS edges are unidirectional (forward to the attribute), so D_{source, Attribute} = +1, giving βi Β· W^(s) off-diagonal and +i Β· W^(s) on the conjugate.
10.2 Tactic row/column
Tactic is a pure target (SR_L14). Row 6 is all zero. Column 6 accumulates 285,581 USES_TACTIC inbound edges distributed across 2 source types (Theorem, Definition). This is the largest off-diagonal weight contribution in the 8Γ8 matrix β by an order of magnitude β and therefore dominates the non-core spectrum.
Spectral implication. The USES_TACTIC density is ~20Γ TAGGED_AS and ~25Γ any single core arrow. If left unweighted (unit weights), Tactic would dominate the spectrum entirely, washing out core π°π²(2) signal. The appropriate normalization is per-category relative weight: divide each categoryβs contribution by its total edge count before forming π, so all categories contribute on the same scale. Dubheβs measure_non_commutativity.py is expected to implement this normalization in B.6 (pending re-run per task #36).
11. Revised Level Cβs explicit π°π²(2) witnesses
Memo 04 original Β§5.4 argued that Β±i cycles emerge spectrally from the phase factor T^(g) at g = 1/4 on unidirectional core arrows. Level C adds explicit symmetric edges that materialize the π°π²(2) raising/lowering pair as actual graph edges, not just spectral artifacts.
Expected spectral effect: sharpening.
- Before Level C: Β±i spectrum was diffused across the full core 15-arrow Magnetic Laplacian, with eigenvalue pairs distributed on a dense off-diagonal structure. Dubheβs current measurement gives Ξ»β/Ξ»β β 1.038 (close to 1, indicating near-degenerate eigenvalues β a weak π°π²(2) signal).
- After Level C: MUTUALLY_IMPLIES + DUAL_OF + ADDITIVE_PAIR concentrate 13,656 symmetric edges on specific (Theorem, Theorem) and (Definition, Definition) block entries. With
D = 0on those entries, the phase factor is trivial, but the symmetric real-weight contribution is enormous, reshaping the π spectrum. The corresponding π°π²(2) raising/lowering generators (which in the core-only case were weak off-diagonal Β±i terms) now have dedicated high-amplitude blocks.
Spectral hypothesis (memo 04 amended, 2026-04-18 evening): The ratio Ξ»β / Ξ»β should drift from the current 1.038 (core-only) toward the target [1.8, 3.2] range predicted by V3βs CheckItOut baseline, once Level C edges are included in π construction. If the spectrum does not drift, it indicates one of:
- (a) Normalization error β Level C contributions were washed out by USES_TACTICβs volume.
- (b) Empirical asymmetry β bidirectional Level C emission did not produce balanced per-pair eigenvalues (e.g., MUTUALLY_IMPLIES is 90% from forward-direction name patterns, 10% reverse; the extractor should confirm).
- (c) Mistaken hypothesis β Level C edges do not in fact encode the π°π²(2) predicted spectrally; some other Mathlib structural convention (tactic-specific, attribute-specific) is the actual carrier.
Dubheβs v4 measurement (task #36, pending) is expected to resolve the Alt-A vs Alt-C bifurcation in file 08 Β§7.
12. Per-relation π_k decomposition β 20 generators
The per-relation rank-2 Hermitian decomposition Β§4 lifts directly: π = Ξ£_{k=1..20} π_k, each π_k on the tail-head row/column pair for arrow k. The 15 MagneticLaplacian_component nodes in LeanAlgebra namespace currently cover core-only; Level B/C components are pending schema extension (task for future Azha team).
Live status of component schema nodes (2026-04-18 evening):
MATCH (c:MagneticLaplacian_component {namespace: 'LeanAlgebra'})
RETURN count(c)
// returns 15 (core only)
Recommended schema extension (pending): Add 5 more MagneticLaplacian_component rows for USES_TACTIC, TAGGED_AS, MUTUALLY_IMPLIES, DUAL_OF, ADDITIVE_PAIR. Constraint lean_magnetic_laplacian_component_unique already guarantees idempotent MERGE.
13. Updated open items for Merak
Superseding Β§7 (which referenced only the 6Γ6 algebra):
- Re-compute weights with Level B + C edges. Include the 285,581 USES_TACTIC + 12,872 TAGGED_AS + 13,656 Level-C edges. Apply per-category normalization from Β§10.2 to prevent Tactic domination.
- 8Γ8 π spectrum. Report all 8 eigenvalues with measured weights. Compare Ξ»β/Ξ»β to the target [1.8, 3.2] range.
- Alt-A vs Alt-C bifurcation. Confirm which spectral signature emerges β a sharpened π°π²(2) pair with Level C or a broadened mixture without sharpening.
- Hermiticity check on 8Γ8. Compute
βπ β π^β β_F; should be < 1e-10 independent of dimension. - Per-category eigenvalue attribution. For each of the 8 eigenvectors, project onto core-vs-Level-B-vs-Level-C subspaces; identify which eigenvalues are βcore π°π²(2)β, which are βbehavioral Tactic-drivenβ, which are βsymmetric Level-Cβ.
The 8Γ8 matrix is now canonical for all future measurements. The 6Γ6 matrix in Β§1βΒ§7 remains valid for historical / core-only interpretation.