Documentation

ReflectiveSubsystems.LocalHostCut

A host with local inputs, simulated across a cut by a two-party learner #

A host is a line of cells over an alphabet Q, updated in lockstep by a radius-one rule in which each cell also receives a local input: the bits of the candidates placed at the cell, and, at cell 0 from a latency on, the outcome of the step that many time steps back. The prediction for step t is a readout of cell 0 at time t + latency. Placing every candidate beyond a cut between cells d and d + 1, the far side's influence on the near side passes through cell d + 1 alone, and the light cones of cell 0 and of cell d + 1 bound how much of the stream each side needs.

Main results #

The method #

A light-cone lemma compares the run of the host with a second run that obeys the rule only left of a wall column: the two agree at a cell and a time when they agree at the start, when the rule's inputs of the second run are those of the first at every cell and time of the cone left of the wall, and when the wall column itself agrees where the cone reaches it. The outside party runs the host on the vectors it has and the outcomes it has, every unknown one read as false, and sends cell d + 1 at the current step: an outcome it does not have enters cell 0 too late to reach cell d + 1 by then, and a vector after the step enters after it. The inside party runs the cells with the wall at cell d + 1, which it overwrites by the symbols, and predicts from cell 0: no candidate stands at or left of cell d, so the cells left of the wall take only the outcomes before the step as inputs, and cell 0 at the prediction time reads cell d + 1 only up to the step plus the slack.

A host with local inputs. A line of cells over Q with a start configuration, a radius-one rule that also takes the cell's local input — the bits of the candidates at the cell and, at cell 0, an outcome when there is one — the cell at which each candidate stands, a latency, and a readout.

  • start : ℤ → Q

    The state of each cell at time 0.

  • rule : Q → Q → Q → (H → Bool) → Option Bool → Q

    The next state of a cell from the states of its left neighbour, itself and its right neighbour, the bits its candidates present, and the outcome it receives, if any.

  • pos : H → ℤ

    The cell at which each candidate stands.

  • latency : ℕ

    The number of time steps between the outcome of a step and its entering cell 0, and between a step and the readout of its prediction.

  • readout : Q → Bool

    The prediction a state makes.

Instances For
    def ReflectiveSubsystems.LocalHost.bits {H Q : Type} (A : LocalHost H Q) (v : ℕ → H → Bool) (τ : ℕ) (i : ℤ) :
    H → Bool

    The inputs of cell i at time τ: the bits of the candidates placed at i, the others read as false, and at cell 0 from time latency on the outcome of step τ - latency.

    Equations
    Instances For
      def ReflectiveSubsystems.LocalHost.outcomeIn {H Q : Type} (A : LocalHost H Q) (y : ℕ → Bool) (τ : ℕ) (i : ℤ) :

      The outcome cell i receives at time τ: at cell 0 from time latency on, the outcome of step τ - latency, and otherwise none.

      Equations
      Instances For
        def ReflectiveSubsystems.LocalHost.state {H Q : Type} (A : LocalHost H Q) (v : ℕ → H → Bool) (y : ℕ → Bool) :
        ℕ → ℤ → Q

        The run of the host. The state of every cell at each time, on the stream of vectors v and outcomes y: the start configuration at time 0, and each cell updated by the rule from its neighbourhood and its inputs.

        Equations
        Instances For
          def ReflectiveSubsystems.LocalHost.prediction {H Q : Type} (A : LocalHost H Q) (v : ℕ → H → Bool) (y : ℕ → Bool) (t : ℕ) :

          The prediction at a step. The readout of cell 0 at time t + latency.

          Equations
          Instances For
            def ReflectiveSubsystems.LocalHost.missCount {H Q : Type} (A : LocalHost H Q) (v : ℕ → H → Bool) (y : ℕ → Bool) (n : ℕ) :

            The count. The number of steps t < n at which the host's prediction differs from the outcome.

            Equations
            Instances For
              theorem ReflectiveSubsystems.LocalHost.exists_slackTwoParty {H Q : Type} (A : LocalHost H Q) (d : ℕ) (hpos : ∀ (c : H), ↑d < A.pos c) (hD : d + 1 ≤ A.latency) :
              ∃ (B : SlackTwoPartyLearner H Q (A.latency + d + 2) (A.latency - d - 1)), ∀ (v : ℕ → H → Bool) (y : ℕ → Bool) (t : ℕ), B.prediction v y t = A.prediction v y t

              A host with local inputs is simulated across a cut by a two-party learner with a slack. When every candidate stands right of cell d and the latency is at least d + 1, a two-party learner with lag latency + d + 2 and slack latency - d - 1 predicts, at every step, what the host predicts: the outside sends cell d + 1 of the host run on the streams it has, the inside overwrites that cell by the symbols and runs the cells left of it.

              theorem ReflectiveSubsystems.LocalHost.exists_slackTwoParty_missCount {H Q : Type} (A : LocalHost H Q) (d : ℕ) (hpos : ∀ (c : H), ↑d < A.pos c) (hD : d + 1 ≤ A.latency) :
              ∃ (B : SlackTwoPartyLearner H Q (A.latency + d + 2) (A.latency - d - 1)), ∀ (v : ℕ → H → Bool) (y : ℕ → Bool) (n : ℕ), B.missCount v y n = A.missCount v y n

              The miss counts agree. The simulation of exists_slackTwoParty misses at the same steps as the host.

              The hypotheses hold jointly. A host with its one candidate at cell 1 and latency 1 satisfies the hypotheses of exists_slackTwoParty at d = 0.