Documentation

LeanPool.ParameterFreeGradient.V7.FiniteProgram

Finite query programs shared by the geometry-specific trial machines #

inductive V7.CausalProgram.Program (d : ℕ) :
ℕ → Type

A finite oracle-query program indexed by an upper bound on its remaining queries.

Instances For
    @[reducible, inline]

    A finite query program paired with its query bound.

    Equations
    Instances For

      The next local-trial action exposed by a packed finite program.

      Equations
      Instances For
        noncomputable def V7.CausalProgram.Program.eval {d : ℕ} (oracle : PairOracle d) (fuel : ℕ) :
        Program d fuel → List (Observation d) → TrialReport d

        The report obtained by evaluating the finite program against an oracle.

        Equations
        Instances For
          noncomputable def V7.CausalProgram.programTrial {d : ℕ} (initial : ℝ → ℝ → CachedPair d → PackedProgram d) :

          The local trial induced by a family of initial finite query programs.

          Equations
          Instances For
            theorem V7.CausalProgram.Program.runFuel_eq_eval {d : ℕ} (oracle : PairOracle d) (initial : ℝ → ℝ → CachedPair d → PackedProgram d) (fuel : ℕ) (program : Program d fuel) (history : List (Observation d)) :
            (programTrial initial).runFuel oracle (fuel + 1) ⟨fuel, program⟩ history = some (eval oracle fuel program history)
            theorem V7.CausalProgram.programTrial_executes {d : ℕ} (oracle : PairOracle d) (initial : ℝ → ℝ → CachedPair d → PackedProgram d) (M D : ℝ) (cached : CachedPair d) :
            (programTrial initial).Executes M D cached oracle (Program.eval oracle (initial M D cached).fst (initial M D cached).snd [])