Documentation

LeanPool.ParameterFreeGradient.V7.TrialInterfaces

Causal local trial actions, observable reports, guard ledgers, and correctness certificates.

An observable guard kind together with the exact pairs used to evaluate it.

Instances For

    The point-based failure witness associated with an observation-based guard check.

    Equations
    Instances For
      inductive V7.TrialOutcome (d : ℕ) :

      A trial terminates with gradient success, a failed scale guard, or an insufficient radius.

      Instances For
        structure V7.TrialReport (d : ℕ) :

        Observable data only: no M<L or D<R conclusion is stored here.

        • trace : List (Observation d)

          The chronological new observations made by the trial.

        • checkedGuards : List (ObservableGuardCheck d)

          The chronological observable guards checked by the trial.

        • outcome : TrialOutcome d

          The terminal trial outcome and its observable witness.

        Instances For
          def V7.TrialReport.calls {d : ℕ} (report : TrialReport d) :

          The number of new oracle observations recorded by the trial.

          Equations
          Instances For
            structure V7.CachedPair (d : ℕ) :

            An observation retained for reuse without another oracle call.

            • observation : Observation d

              The previously obtained exact value-gradient observation.

            Instances For
              inductive V7.LocalTrialAction (d : ℕ) (State : Type) :

              A local trial either requests an observation or finishes with guards and an outcome.

              Instances For
                structure V7.LocalTrial (d : ℕ) :

                A causal local trial: cached data enters the initial state, and all later objective information enters only through query continuations.

                • State : Type

                  The internal state type of the causal local trial.

                • initial : ℝ → ℝ → CachedPair d → self.State

                  The initial state determined by the trial estimates and cached observation.

                • action : self.State → LocalTrialAction d self.State

                  The next observable action determined by the current internal state.

                Instances For
                  def V7.LocalTrial.runFuel {d : ℕ} (trial : LocalTrial d) (oracle : PairOracle d) :
                  ℕ → trial.State → List (Observation d) → Option (TrialReport d)

                  The finite-fuel local execution, returning no report if its action budget is exhausted.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  • trial.runFuel oracle 0 x✝¹ x✝ = none
                  Instances For
                    def V7.LocalTrial.Executes {d : ℕ} (trial : LocalTrial d) (M D : ℝ) (cached : CachedPair d) (oracle : PairOracle d) (report : TrialReport d) :

                    Some finite-fuel execution from the prescribed initial state returns this report.

                    Equations
                    Instances For
                      def V7.SuccessCorrect {d : ℕ} (eps p M : ℝ) (oracle : PairOracle d) (report : TrialReport d) :

                      A success report returns an exact queried point meeting the gradient target after accepted guards.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def V7.ScaleCorrect {d : ℕ} (p M L : ℝ) (oracle : PairOracle d) (report : TrialReport d) :

                        A scale report identifies the first failed guard and certifies that the smoothness estimate is too small.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def V7.RadiusCorrect {d : ℕ} (eps p M D R : ℝ) (oracle : PairOracle d) (report : TrialReport d) :

                          A radius report has accepted guards and certifies that its radius estimate is too small.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            The report belongs to one of the three possible terminal outcome cases.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              The numbers of consecutive guard checks and calls agree with the terminal outcome.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                def V7.ObservationAvailable {d : ℕ} (cached : CachedPair d) (report : TrialReport d) (obs : Observation d) :

                                The observation is either cached or present in the trial's new query trace.

                                Equations
                                Instances For
                                  def V7.ConsecutiveAvailable {d : ℕ} (cached : CachedPair d) (report : TrialReport d) (check : ObservableGuardCheck d) :

                                  The guard's observations are consecutive in the cached observation followed by the trial trace.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    Every recorded guard has a kind in the allowed list.

                                    Equations
                                    Instances For
                                      def V7.GuardRecorded {d : ℕ} (report : TrialReport d) (kind : ObservableGuardKind) (x y : Point d) :

                                      A guard of the specified kind and ordered pair of points occurs in the checked list.

                                      Equations
                                      Instances For
                                        def V7.ConsecutiveGuardLedger {d : ℕ} (cached : CachedPair d) (report : TrialReport d) :

                                        Each guard uses the corresponding consecutive pair in the cached observation and query trace.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          def V7.GuardDataExact {d : ℕ} (cached : CachedPair d) (oracle : PairOracle d) (report : TrialReport d) :

                                          Every predicate reported by the routine is evaluated on exact pairs that the routine actually possesses: the cached pair or a chronological query.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            def V7.TrialCertificate {d : ℕ} (eps p M D L R : ℝ) (cached : CachedPair d) (oracle : PairOracle d) (report : TrialReport d) :

                                            Correctness proposition kept separate from observable trial data.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For