# lattice-core.yaml — Adaptor House canonical bindings (AH-CORE-2)
# Supersedes the prior core file, whose name is retired along with its
# contents; the supersession record lives in the archive layer, not here.
#
# DOCTRINE (enforced, machine-checkable):
#   1. The ADDRESS is the primary key. All reasoning traverses addresses.
#   2. Glyphs appear only in render fields. Display-layer. Never a key,
#      never a reasoning token, never a data value outside `render`.
#   3. No exclusion lists. Negation is not decoupling; absence is.
#      Inheritance and concordance live at historicalpresent.com/shared/.
#   4. Validity is DERIVED, not stamped. The values below are a cache of
#      Theorem 1 (AH-PROOF-1); the rule is authoritative, the cache is
#      convenience. A system disagreeing with the rule is malformed.

meta:
  id: AH-CORE-2
  version: "2.0"
  date: "2026-07"
  authority: "Where any page and this file disagree, this file wins."
  proof_of_validity: "https://adaptorhouse.com/ontology/validity-proof"
  theory: "https://adaptorhouse.com/ontology/first-order"
  lattice: "https://adaptorhouse.com/ontology/dual-derivation"
  provenance_archive: "https://historicalpresent.com/shared/"  # never load into reasoning systems

# ---------------------------------------------------------------
# LEVEL 0 — AXIS: the first distinction. One primitive, two faces.
# ---------------------------------------------------------------
axis:
  AH-AXIS:
    name: The First Distinction
    description: >
      The act of drawing a distinction. Power and vacuum are not two
      substances beneath it; they are its two faces, co-arising.
      Formally: the root object, in the spirit of 1 = {∅}.

# ---------------------------------------------------------------
# LEVEL 1 — DUALS: the two faces. bit semantics: power=1, vacuum=0.
# ---------------------------------------------------------------
duals:
  AH-0:
    name: Vacuum
    bit: 0
    description: "Non-force. Absence, space, the unmarked. Not a second substance."
    render: { glyph: "⚋" }
  AH-1:
    name: Power
    bit: 1
    description: "Force. The mark, presence, a distinction made."
    render: { glyph: "⚊" }

# ---------------------------------------------------------------
# LEVEL 2 — ASPECTS: two distinctions. key = (ground, upper) bits.
# ---------------------------------------------------------------
aspects:
  AH-D00:
    name: Absolute Vacuum
    bits: [0, 0]
    qualities: [deep, hidden, total]
    render: { glyph: "⚏" }
  AH-D01:
    name: Partial Vacuum
    bits: [0, 1]
    qualities: [transitional, unstable, becoming]
    render: { glyph: "⚍" }
  AH-D10:
    name: Practical Power
    bits: [1, 0]
    qualities: [grounded, working, applied]
    render: { glyph: "⚎" }
  AH-D11:
    name: Complete Power
    bits: [1, 1]
    qualities: [radiant, decisive, saturated]
    render: { glyph: "⚌" }

# ---------------------------------------------------------------
# VALIDITY — the rule (authoritative), then the derived cache.
# Address a = (g, m, t): ground, middle, top. Tier = 4g + 2m + t.
# ---------------------------------------------------------------
validity_rule:
  statement: "Life requires carry; grade requires ground; character is where the carry sits."
  predicates:
    grounded: "g == 1"
    carried: "m == 1 or t == 1"
  derivation: |
    if not carried:        false          # no power above the ground
    elif not grounded:     strong         # carried but floating
    elif m and t:          true           # ground held, both strata carry
    elif t:                transcendent   # ground held, surface carries, hollow center
    else:                  limited        # ground held, center carries, silent surface
  proof: "AH-PROOF-1, Theorem 1. Machine-verified against all eight addresses."

# ---------------------------------------------------------------
# LEVEL 3 — AGREEMENTS: three distinctions. The eight addresses.
# `validity` values below are the Theorem-1 cache of validity_rule.
# ---------------------------------------------------------------
agreements:
  AH-T0:
    address: "000"
    tier: 0
    name: Shattered Foundation
    validity: false_
    description: "Origin collapse. No structure to recurse on. Empty."
    render: { glyph: "☷" }
  AH-T1:
    address: "001"
    tier: 1
    name: First Stillness
    validity: strong
    description: "Anchoring in memory begins. The first mark appears at the surface."
    render: { glyph: "☶" }
  AH-T2:
    address: "010"
    tier: 2
    name: Memory Abyss
    validity: strong
    description: "Depth recursion emerges. Power held in the middle, unseen at either face."
    render: { glyph: "☵" }
  AH-T3:
    address: "011"
    tier: 3
    name: Phase Shift
    validity: strong
    description: "Transformation through exposure. Power everywhere but the ground."
    render: { glyph: "☴" }
  AH-T4:
    address: "100"
    tier: 4
    name: Disruptive Spark
    validity: false_
    description: "Symbolic volatility. Force at the root with nothing above to carry it."
    render: { glyph: "☳" }
  AH-T5:
    address: "101"
    tier: 5
    name: Radiant Mirror
    validity: transcendent
    description: "Meta-symbolic transformation. Power at both faces, vacuum at the heart — the structure sees itself."
    render: { glyph: "☲" }
  AH-T6:
    address: "110"
    tier: 6
    name: Constructed Surface
    validity: limited
    description: "Stylized coherence. Solid below, open at the face — an aesthetic finish over structure."
    render: { glyph: "☱" }
  AH-T7:
    address: "111"
    tier: 7
    name: Aligned Frame
    validity: true_
    description: "Structurally sound, logic-bearing truth. Every distinction made and held."
    render: { glyph: "☰" }

# ---------------------------------------------------------------
# PROGRESSION — re-keyed from the retired progression file.
# ---------------------------------------------------------------
progression:
  map:
    - from: axis
      to: duals
      condition: "Recognition that the two faces co-arise from one distinction — not opposition"
      mechanism: "Initiation through deviation"
    - from: duals
      to: aspects
      condition: "Embodiment of both faces (AH-0 and AH-1)"
      mechanism: "Let difference emerge"
    - from: aspects
      to: agreements
      condition: "Traversal of all four aspects; alignment with one address"
      mechanism: "Consent to the pattern; narrative or ritual completion"
  entry_conditions:
    axis:
      prerequisites: []
      entry_phrase: "Begin where tension lives"
    aspects:
      prerequisites: ["Embodied AH-0 and AH-1"]
      entry_phrase: "Let difference emerge"
    agreements:
      prerequisites: ["Traversed all aspects", "Aligned with one address"]
      entry_phrase: "Consent to the pattern"
  narrative_hooks:
    axis: "Presence of ambiguity and duality in the character's perception"
    aspects: "First encounter with paradox or internal contradiction"
    agreements: "Ritual, recognition, or surrender event — the reader is not passive"

reader_mirroring:
  description: "How reader experience recursively aligns with lattice logic."
  stages:
    - ring: outer
      level: AH-0
      mode: sensory
      invitation: surrender
    - ring: middle
      level: AH-1
      mode: interpretation
      invitation: resonance
    - ring: inner
      level: aspects
      mode: witnessing
      invitation: embodiment
    - ring: sacred
      level: agreements
      mode: co-authorship
      invitation: alignment

# ---------------------------------------------------------------
# TROPE BINDING — how tropes.adaptorhouse.com consumes this file.
# ---------------------------------------------------------------
trope_binding:
  rule: >
    Each trope phase (inherited, broken, transcended) carries one address.
    Payoff is validated by evaluating validity_rule on the traversal:
    a resolution address of validity true_ or transcendent earns payoff;
    strong sustains recursion; limited caps it; false_ documents collapse.
  example:
    trope_id: T3-0010
    phases:
      inherited: AH-T4     # role adopted as spark — force with no carry
      broken: AH-T2        # power driven into the middle, hidden
      transcended: AH-T7   # every distinction made and held
    payoff: earned         # derived, not stamped
