Graph Research Β· Neo4j

04 β€” Magnetic Laplacian construction

𝔄 ∈ β„‚^{6Γ—6} Hermitian at magnetic phase g=1/4. Per-relation rank-2 decomposition, Hermiticity sketch.

25 min read

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 / FOLDS as separate edges β€” the phase factor T^(g) = exp(i Β· 2Ο€ Β· g Β· D) at g = 1/4 generates 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:

kNameTail typeHead type
1IMPORTSNN
2OPENS_NAMESPACENN
3EXTENDSSS
4INSTANTIATESIS
5ASSUMESTA
6APPLIESTT
7UNFOLDSTD
8SPECIALIZESTT
9REWRITES_BYTT
10HAS_TYPED or TS
11CONSTRAINED_BYD or TS
12PARAMETRIZESD or TS
13REDUCES_TODD
14ELABORATES_ASD or TT
15SUGGESTED_BYTT

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.

ATDSIN
A000000
T151300
D011300
S000100
I000100
N000002

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

ColumnIn-degreeInterpretation
A1One inbound edge type (ASSUMES), from T only
T6Richest hub also as target
D2UNFOLDS from T; REDUCES_TO from D (self-loop)
S8Most-targeted: EXTENDS, INSTANTIATES, HAS_TYPE, CONSTRAINED_BY, PARAMETRIZES all aim here
I0Pure sink β€” no inbound edges (by SR_L3)
N2Only 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)

WXY(s)=BXY+BYX2W^{(s)}_{XY} = \frac{B_{XY} + B_{YX}}{2}

Using the B above:

ATDSIN
A00.50000
T0.5511.500
D0111.500
S01.51.510.50
I0000.500
N000002

Symmetric: βœ“ (W^(s))^T = W^(s).

2.2 Direction matrix D

DXY=sign(BXYβˆ’BYX)D_{XY} = \text{sign}(B_{XY} - B_{YX})

ATDSIN
A0βˆ’10000
T+10+1+100
D0βˆ’10+100
S0βˆ’1βˆ’10βˆ’10
I000+100
N000000

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

TXY(g)=eiβ‹…2Ο€gβ‹…DXY=eiβ‹…(Ο€/2)β‹…DXYT^{(g)}_{XY} = e^{i \cdot 2\pi g \cdot D_{XY}} = e^{i \cdot (\pi/2) \cdot D_{XY}}

So:

  • D_{XY} = +1 β†’ T_{XY} = e^{iΟ€/2} = +i
  • D_{XY} = βˆ’1 β†’ T_{XY} = e^{βˆ’iΟ€/2} = βˆ’i
  • D_{XY} = 0 β†’ T_{XY} = 1
ATDSIN
A1βˆ’i1111
T+i1+i+i11
D1βˆ’i1+i11
S1βˆ’iβˆ’i1βˆ’i1
I111+i11
N111111

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 Ξ”

Ξ”XX=βˆ‘YWXY(s)\Delta_{XX} = \sum_Y W^{(s)}_{XY}

  • Ξ”_{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 𝔄

A=Ξ”βˆ’T(g)βŠ™W(s)\mathfrak{A} = \Delta - T^{(g)} \odot W^{(s)}

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}.

𝔄ATDSIN
A0.5+0.5i0000
Tβˆ’0.5i3βˆ’iβˆ’1.5i00
D0+i2.5βˆ’1.5i00
S0+1.5i+1.5i3.5+0.5i0
I000βˆ’0.5i0.50
N000000

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}) and D_{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:

  1. Maximal phase distinction. At g = 1/4, unidirectional edges get +i or βˆ’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.

  2. 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.

  3. 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):

Ak[X,Y]=βˆ’e+iΟ€/2=βˆ’i\mathfrak{A}_k[X, Y] = -e^{+i\pi/2} = -i Ak[Y,X]=βˆ’eβˆ’iΟ€/2=+i\mathfrak{A}_k[Y, X] = -e^{-i\pi/2} = +i

with diagonal corrections:

Ak[X,X]+=1/2,Ak[Y,Y]+=1/2\mathfrak{A}_k[X, X] += 1/2, \quad \mathfrak{A}_k[Y, Y] += 1/2

Sum these over all 15 relationships and verify Ξ£_k 𝔄_k = 𝔄 block-by-block.

Example β€” the ASSUMES contribution 𝔄_5:

AT
A0.5+0.5i
Tβˆ’0.5i0.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
S1

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: APPLIES and UNFOLDS share the T tail but target different types (T and D respectively). Compose: APPLIES ∘ UNFOLDS: T β†’ T β†’ D lands 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 just APPLIES ∘ UNFOLDS with 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:

  1. SPECIALIZES shows 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}|.
  2. UNFOLDS shows the same empirical balance between forward (theorem unfolds a definition) and reverse (definition is elaborated back to the theorem’s form via show/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

  1. 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%).
  2. Compute π”„β€˜s spectrum empirically with measured weights. Report eigenvalues and eigenvectors.
  3. 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).
  4. Verify Hermiticity numerically. Compute ||𝔄 βˆ’ 𝔄^†||_F on the measured matrix β€” should be < 1e-10.
  5. 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:

ArrowSource typesTarget typeLive edge count
USES_TACTICTheorem, DefinitionTactic285,581
TAGGED_ASTheorem, Definition, Structure, Instance, AxiomAttribute12,872
MUTUALLY_IMPLIESTheoremTheorem (symmetric)2,082
DUAL_OFTheorem, Definitionsame type (symmetric)7,786
ADDITIVE_PAIRTheoremTheorem (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) give D = 0 because B_{XY} = B_{YX} β€” these contribute only to the real (non-phase) part of 𝔄.
  • Phase matrix T^(g) = exp(i Β· 2Ο€ Β· g Β· D) at g = 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 = 0 on 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):

  1. 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.
  2. 8Γ—8 𝔄 spectrum. Report all 8 eigenvalues with measured weights. Compare λ₁/Ξ»β‚‚ to the target [1.8, 3.2] range.
  3. Alt-A vs Alt-C bifurcation. Confirm which spectral signature emerges β€” a sharpened 𝔰𝔲(2) pair with Level C or a broadened mixture without sharpening.
  4. Hermiticity check on 8Γ—8. Compute ‖𝔄 βˆ’ 𝔄^†‖_F; should be < 1e-10 independent of dimension.
  5. 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.