{
  "map_id": "tel.operator_roles",
  "version": "5.0-draft",
  "book": "book5_tel",
  "series": "AI Edition",
  "description": "Defines the five Book 5 (TEL) operators, their roles, invariant bindings, phase assignments, and sequence within the TEL evaluation cycle.",
  "operators": [
    {
      "id": "TEL-Σ",
      "name": "SyntaxCheck",
      "symbol": "TEL-Σ",
      "role": "Validates a TEL expression against the canonical grammar defined in tel.syntax_map. Returns PASS or FAIL with a structured parse report.",
      "input": "Raw TEL expression string E",
      "output": "parse_result ∈ {pass, fail}; if pass: parse_tree; if fail: error_report with grammar rule violated",
      "invariant_binding": "INV-TEL-001",
      "phase_assignment": ["parse"],
      "drift_cost": 0.03,
      "map_reference": "tel.syntax_map",
      "preconditions": ["Raw expression E is provided as a string or token stream"],
      "postconditions": ["If PASS: parse_tree is available for TEL-Ε. If FAIL: evaluation halts; expression must be corrected."],
      "must_not": [
        "Infer meaning from an ill-formed expression",
        "Attempt partial evaluation of a failed parse",
        "Accept an expression that violates WF-001 through WF-006"
      ],
      "notes": "First operator in every TEL evaluation session. No other operator may execute before TEL-Σ returns PASS. A failed TEL-Σ is not a semantic judgment — it is a grammar rejection.",
      "qmroot_binding": "0D only — no 6D or negative rungs"
    },
    {
      "id": "TEL-Ε",
      "name": "Evaluate",
      "symbol": "TEL-Ε",
      "role": "Applies canonical evaluation rules (tel.semantics_map) to the parse_tree produced by TEL-Σ. Produces a structural denotation for the input expression.",
      "input": "parse_tree from TEL-Σ (PASS), active module registry, current evaluation scope",
      "output": "structural_denotation S or evaluation_fault ∈ {EF-001, EF-002, EF-003, EF-004, EF-005}",
      "invariant_binding": "INV-TEL-002",
      "phase_assignment": ["evaluate"],
      "drift_cost": 0.05,
      "map_reference": "tel.semantics_map",
      "preconditions": [
        "TEL-Σ has returned PASS",
        "Active module registry is loaded",
        "Evaluation scope is initialized"
      ],
      "postconditions": [
        "Each sub-expression has a recorded structural denotation",
        "All faults are recorded in the session fault log",
        "Scope is updated with any T[…] or C[…] declarations"
      ],
      "must_not": [
        "Proceed on a FAIL parse_tree from TEL-Σ",
        "Assign multiple interpretations to a single expression",
        "Substitute a default value for an UnresolvedIdentifier (EF-001)",
        "Suppress fault records"
      ],
      "notes": "Core semantic engine of TEL. INV-TEL-002 (Semantic Stability) is the governing invariant: one expression, one denotation. Any session that produces ambiguous denotations has an implementation bug, not a valid semantic result.",
      "book4_binding": "OR operator denotations are resolved via Book 4 module when active",
      "qmroot_binding": "0D only"
    },
    {
      "id": "TEL-Κ",
      "name": "Compose",
      "symbol": "TEL-Κ",
      "role": "Assembles compound TEL expressions from evaluated sub-expressions according to composition rules in tel.composition_map. Ensures INV-TEL-003 (Compositionality) is satisfied at every composition site.",
      "input": "Two or more structural denotations from TEL-Ε, applicable compose_op, composition context",
      "output": "compound_denotation or CompositionFault",
      "invariant_binding": "INV-TEL-003",
      "phase_assignment": ["compose"],
      "drift_cost": 0.04,
      "map_reference": "tel.composition_map",
      "preconditions": [
        "All sub-expressions to be composed have been evaluated by TEL-Ε",
        "No unresolved EF-001 or EF-002 faults in sub-expression results"
      ],
      "postconditions": [
        "compound_denotation is recorded",
        "Composition ordering rules (COR-001 through COR-004) have been verified",
        "No holistic meaning has been introduced beyond sub-expression contributions"
      ],
      "must_not": [
        "Introduce implicit context not encoded in sub-expressions or composition rules",
        "Apply operator precedence not grounded in parenthetical grouping",
        "Compose across books without verifying active module registry contains all required books"
      ],
      "notes": "TEL-Κ is not a standalone operator in the sense that composition is always driven by TEL-Ε at the compound expression nodes of the parse_tree. TEL-Κ is the designated auditor that verifies INV-TEL-003 compliance at each composition step.",
      "qmroot_binding": "0D only"
    },
    {
      "id": "TEL-Τ",
      "name": "Transform",
      "symbol": "TEL-Τ",
      "role": "Encodes and applies named structural transformations declared in TEL expressions (T[ID] blocks). Verifies INV-TEL-004 (Transformation Fidelity) at each application site.",
      "input": "Transformation declaration T[ID] with input expression e_in and output expression e_out; target structure S to transform",
      "output": "transformed_structure S' or TransformationFidelityFault (EF-005)",
      "invariant_binding": "INV-TEL-004",
      "phase_assignment": ["transform"],
      "drift_cost": 0.06,
      "map_reference": "tel.semantics_map (SEM-009)",
      "preconditions": [
        "T[ID] has been declared and evaluated in current scope",
        "Target structure S is structurally valid (validated against Book 1 kernel constraints)",
        "T[ID] is applicable to S — its input type matches S's structural type"
      ],
      "postconditions": [
        "If S' is structurally valid: transformation recorded as PASS",
        "If S' is structurally invalid: EF-005 recorded; T[ID] declaration flagged for revision"
      ],
      "gate_logic": {
        "fidelity_check": "valid(S) ∧ applicable(T, S) → assert valid(S')",
        "fidelity_fail": "valid(S) ∧ applicable(T, S) ∧ ¬valid(S') → record EF-005, halt T[ID] application"
      },
      "must_not": [
        "Apply a transformation to a structurally invalid input and report the output as valid",
        "Suppress EF-005 and deliver S' without the fault record",
        "Modify ω(S) as a side-effect of transformation without an explicit OR-Ω re-evaluation in the active session"
      ],
      "downstream_bindings": {
        "book6_governance": "Regime constraint enforcement transformations use TEL-Τ to encode constraint-change operators",
        "book7_sarg": "SARG argument structure transformations (warrant addition, claim substitution) are encoded as TEL-Τ expressions",
        "book8_nos": "Identity-through-change analysis (INV-NOS-003) uses TEL-Τ to express structure-preserving and identity-breaking transformations",
        "book9_pattern_dynamics": "Pattern mutation and bifurcation events are modelled as TEL-Τ sequences"
      },
      "notes": "TEL-Τ is the primary mechanism by which the AI Edition represents structural change in a machine-readable form. All transformation claims in downstream books must have a corresponding TEL-Τ encoding to be formally valid.",
      "qmroot_binding": "0D only"
    },
    {
      "id": "TEL-Α",
      "name": "Assert",
      "symbol": "TEL-Α",
      "role": "Evaluates invariant assertion expressions (INV[ID]: assert e) and constraint assertion sites (e1 ⊢ e2). Records PASS or InvariantViolation / ConstraintViolation (EF-003, EF-004).",
      "input": "Invariant ID from active book's invariants file, structural denotation of asserted expression e",
      "output": "assertion_result ∈ {pass, invariant_violation, constraint_violation}",
      "invariant_binding": "INV-TEL-001, INV-TEL-002, INV-TEL-003, INV-TEL-004",
      "phase_assignment": ["assert"],
      "drift_cost": 0.04,
      "preconditions": [
        "Referenced invariant ID exists in the active book's invariants file",
        "Asserted expression e has been evaluated by TEL-Ε without EF-001 or EF-002 faults"
      ],
      "postconditions": [
        "Assertion result recorded in session audit log",
        "All InvariantViolation results are propagated to downstream session consumers",
        "Session is not silently clean if any assertion fails"
      ],
      "must_not": [
        "Accept a forward reference to an undeclared invariant ID",
        "Suppress an InvariantViolation and report PASS",
        "Evaluate nested INV[…] inside T[…] or C[…] blocks — this is a grammar violation"
      ],
      "notes": "TEL-Α is the final gatekeeper of the evaluation cycle. It ensures that completed TEL encodings respect the declared invariants of the active books. It is the only operator that directly surfaces InvariantViolation results to the session consumer.",
      "qmroot_binding": "0D only"
    }
  ]
}
