Ward Identity Checker
Verify GF(3) conservation as Ward identities across RG flow with Markov blanket separation.
741086072858456200
Ward identities express symmetry conservation: Ξ£ trit = 0 (mod 3) at every renormalization group (RG) level. Violations indicate "relevant operators" that break the symmetry.
markov_blanket:
internal_states: ["#3FF1A7", "#10B99D", "#DF9811"]
sensory_indices: [1, 2, 3]
active_inference:
prediction_error: 0.5692
free_energy: 0.6692
recommendation: perceptual_inference
reafference:
prediction: "#F7E182"
sensation: "#3FF1A7"
result: identity_mismatch
GF3Conserved(L) := Ξ£α΅’ trit(cα΅’) β‘ 0 (mod 3)
where cα΅’ β colors_at_level(L)
BlanketIntact(s) := β internal β s.internal_states,
β blanket β s.sensory_states βͺ s.active_states
such that internal β₯ external | blanket
NoLeakage(f) := GF3Conserved(f.source) β§ GF3Conserved(f.target)
β§ Ξ£ trit(f.source) = Ξ£ trit(f.target)
def check_ward_identity(colors: list[str], level: int) -> dict:
"""Verify Ξ£ trit = 0 at RG level."""
trits = [hex_to_trit(c) for c in colors]
total = sum(trits) % 3
return {
"level": level,
"trit_sum": total,
"conserved": total == 0,
"violation_type": None if total == 0 else "relevant_operator",
"correction_needed": (3 - total) % 3
}
def hex_to_trit(hex_color: str) -> int:
"""Map hex to GF(3) via hue angle."""
r, g, b = int(hex_color[1:3], 16), int(hex_color[3:5], 16), int(hex_color[5:7], 16)
hue = compute_hue(r, g, b)
return int(hue / 120) % 3 # 0-119 β 0, 120-239 β 1, 240-359 β 2
βββββββββββββββββββββββββββββββββββββββββββββββ
β EXTERNAL β
β (exafference: world-caused sensations) β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β BLANKET STATES β
β Sensory: idx [1,2,3] β colors observed β
β Active: predictions emitted β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β INTERNAL β
β #3FF1A7 (trit 1) ββ β
β #10B99D (trit 1) ββΌβ Ξ£ = 3 β‘ 0 (mod 3) β β
β #DF9811 (trit 1) ββ β
βββββββββββββββββββββββββββββββββββββββββββββββ
When reafference check shows identity mismatch (prediction β sensation):
| Condition | Diagnosis | Action |
|---|---|---|
GF3Conserved β§ Β¬BlanketIntact |
Boundary leak | Reseal blanket |
Β¬GF3Conserved β§ BlanketIntact |
Relevant operator | Add counterterm |
Β¬GF3Conserved β§ Β¬BlanketIntact |
Full symmetry break | RG flow unstable |
# Via Gay.jl MCP
gay_seed 741086072858456200
gay_markov_blanket --internal-seed 741086072858456200 --sensory-indices "1,2,3"
# Check conservation
just ward-check --level 0 --colors "#3FF1A7,#10B99D,#DF9811"