pith. machine review for the scientific record. sign in
structure

AlignmentProtocol

definition
show as:
view math explainer →
module
IndisputableMonolith.Measurement.RSNative.Alignment
domain
Measurement
line
19 · github
papers citing
none yet

open explainer

Read the cached plain-language explainer.

open lean source

IndisputableMonolith.Measurement.RSNative.Alignment on GitHub at line 19.

browse module

All declarations in this module, on Recognition.

explainer page

A cached Ask Recognition explainer exists for this declaration.

open explainer

depends on

used by

formal source

  16-/
  17
  18/-- An alignment protocol extends `Protocol` with explicit invariants for cross-agent comparability. -/
  19structure AlignmentProtocol where
  20  protocol : Protocol
  21  /-- Invariants that must be preserved under alignment (e.g., dominant mode, total Z, etc.). -/
  22  invariants : List String := []
  23
  24namespace AlignmentProtocol
  25
  26@[simp] def name (A : AlignmentProtocol) : String := A.protocol.name
  27@[simp] def status (A : AlignmentProtocol) : Status := A.protocol.status
  28
  29end AlignmentProtocol
  30
  31/-- An alignment map from one agent’s coordinate system to another’s. -/
  32abbrev AlignmentMap (α β : Type) : Type := α → β
  33
  34/-- A packaged alignment: map + protocol hygiene. -/
  35structure Alignment (α β : Type) where
  36  map : AlignmentMap α β
  37  protocol : AlignmentProtocol
  38
  39namespace Alignment
  40
  41/-- Apply an alignment map to a measurement value, keeping window/uncertainty, and appending an audit note. -/
  42noncomputable def apply {α β : Type} (A : Alignment α β) (m : Measurement α) : Measurement β :=
  43  { value := A.map m.value
  44    window := m.window
  45    protocol := A.protocol.protocol
  46    uncertainty := m.uncertainty
  47    notes := m.notes ++ [s!"Aligned via {A.protocol.name}"]
  48  }
  49