Research-Stack/docs/rrc_logogram_projection_formalism.md
2026-05-08 14:50:03 -05:00

6.2 KiB

RRC Logogram Projection Formalism

Date: 2026-05-08

Status: formal scaffold with Lean-checked routing theorems.

Lean module:

0-Core-Formalism/lean/Semantics/Semantics/RRCLogogramProjection.lean

Upstream executable bridge receipt:

4-Infrastructure/shim/rrc_logogram_projection_bridge_receipt.json

Bridge receipt hash:

83f44e8341788f6cbb2013704af2622f95f140b5a98402d69cd4ddde5ea88826

Claim

The proven claim is deliberately narrow:

A torn logogram can be projection-admissible after repair/quarantine while
remaining not merge-admissible.

This proves the control structure, not the truth of the represented equation.

Objects

Let a compiled logogram receipt be:

L =
  (shape,
   status,
   regime,
   payloadBound,
   contradictionWitness,
   tearBoundary,
   detachedMass,
   residualLane)

The Lean structure is:

structure LogogramReceipt where
  shape : RRCShape
  status : WitnessStatus
  regime : SemanticRegime
  payloadBound : Bool
  contradictionWitness : Bool
  tearBoundary : Bool
  detachedMass : Bool
  residualLane : Bool

Axioms

Axiom 1: Shape Admission

A logogram is type-admissible only when it has the declared RRC shape, candidate witness status, and bounded payload:

TypeAdmissible(L) :=
  L.shape = LogogramProjection
  and L.status = Candidate
  and L.payloadBound

Lean:

def typeAdmissible (r : LogogramReceipt) : Bool :=
  r.shape == RRCShape.logogramProjection &&
  r.status == WitnessStatus.candidate &&
  r.payloadBound

Axiom 2: Tear Repair

A torn logogram has repair evidence only if it carries all four quarantine witnesses:

HasTearRepair(L) :=
  contradictionWitness
  and tearBoundary
  and detachedMass
  and residualLane

Lean:

def hasTearRepair (r : LogogramReceipt) : Bool :=
  r.contradictionWitness && r.tearBoundary && r.detachedMass && r.residualLane

Axiom 3: Merge Admission Is Stricter Than Type Admission

A logogram may merge into ordinary route/tokenbook space only when it is type-admissible and not a tearing regime:

MergeAdmissible(L) :=
  TypeAdmissible(L)
  and L.regime != HorribleManifoldTearing

Lean:

def mergeAdmissible (r : LogogramReceipt) : Bool :=
  typeAdmissible r &&
  r.regime != SemanticRegime.horribleManifoldTearing

Axiom 4: Projection Admission Allows Quarantine

A logogram may enter projection space if it is type-admissible and either not torn, or torn with repair evidence:

ProjectionAdmissible(L) :=
  TypeAdmissible(L)
  and (
    L.regime != HorribleManifoldTearing
    or HasTearRepair(L)
  )

Lean:

def projectionAdmissible (r : LogogramReceipt) : Bool :=
  typeAdmissible r &&
  (r.regime != SemanticRegime.horribleManifoldTearing || hasTearRepair r)

Axiom 5: Torn Projections Use Quarantine Lane

The projection lane is normal for non-torn regimes and quarantine for torn regimes:

ProjectionLane(L) =
  quarantine_projection if L.regime = HorribleManifoldTearing
  normal_projection otherwise

Lean:

def projectionLane (r : LogogramReceipt) : ProjectionLane :=
  if r.regime == SemanticRegime.horribleManifoldTearing then
    ProjectionLane.quarantineProjection
  else
    ProjectionLane.normalProjection

Theorems

Theorem 1: Repaired Tear Projects

ProjectionAdmissible(semanticTearReceipt) = true

Lean:

theorem semantic_tear_projects_after_repair :
    projectionAdmissible semanticTearReceipt = true := by
  native_decide

Theorem 2: Repaired Tear Does Not Merge

MergeAdmissible(semanticTearReceipt) = false

Lean:

theorem semantic_tear_does_not_merge :
    mergeAdmissible semanticTearReceipt = false := by
  native_decide

Theorem 3: Repaired Tear Routes To Quarantine

ProjectionLane(semanticTearReceipt) = quarantine_projection

Lean:

theorem semantic_tear_uses_quarantine_lane :
    projectionLane semanticTearReceipt = ProjectionLane.quarantineProjection := by
  native_decide

Theorem 4: Unrepaired Tear Does Not Project

ProjectionAdmissible(unrepairedTearReceipt) = false

Lean:

theorem unrepaired_tear_does_not_project :
    projectionAdmissible unrepairedTearReceipt = false := by
  native_decide

Theorem 5: Merge Implies Projection

MergeAdmissible(L) -> ProjectionAdmissible(L)

Lean:

theorem merge_implies_projection (r : LogogramReceipt) :
    mergeAdmissible r = true -> projectionAdmissible r = true

Theorem 6: Repaired Tears Separate Projection From Merge

For any logogram receipt:

TypeAdmissible(L)
and L.regime = HorribleManifoldTearing
and HasTearRepair(L)
implies
  ProjectionAdmissible(L)
  and not MergeAdmissible(L)

Lean:

theorem repaired_tear_separates_projection_from_merge
    (r : LogogramReceipt)
    (hType : typeAdmissible r = true)
    (hTear : r.regime = SemanticRegime.horribleManifoldTearing)
    (hRepair : hasTearRepair r = true) :
    projectionAdmissible r = true ∧ mergeAdmissible r = false

Executable Witnesses

The module includes these #eval witnesses:

projectionAdmissible semanticTearReceipt      -> true
mergeAdmissible semanticTearReceipt           -> false
projectionLane semanticTearReceipt            -> quarantineProjection
projectionAdmissible unrepairedTearReceipt    -> false
mergeAdmissible ordinaryLogogramReceipt       -> true

Observed build output:

true
false
Semantics.RRCLogogramProjection.ProjectionLane.quarantineProjection
false
true

What This Proves

The RRC/logogram layer now proves a routing invariant:

type admission != projection admission != merge admission

The important preserved fact is:

semantic tearing is not erased.

It is transformed into a quarantine projection with a residual/contradiction witness, detached mass id, and explicit non-merge status.

What This Does Not Prove

This formalism does not prove:

the semantic meaning of the source logogram
the truth of the mathematical expression
compression gain on held-out corpora
physical reality of the manifold metaphor

Those require separate receipts and theorem surfaces.