Documentation

LeanPool.ParameterFreeGradient.O3.Oracle

Exact pair-oracle observations and guarded trial reports #

This module contains data only: exact oracle observations, finite traces, observable scalar guard checks, and the three possible trial outcomes. In particular, a TrialReport does not contain a proof of a target gradient bound, a radius classification, or successful controller termination. Those properties live in the separate proposition TrialValid and must be proved by the regime-specific trial modules.

@[reducible, inline]
abbrev O3.OracleTrace (d : ℕ) :

A finite, chronological list of counted pair-oracle observations.

Equations
Instances For
    def O3.oracleCallCount {d : ℕ} (trace : OracleTrace d) :

    Each observation in the trace is one counted pair-oracle call.

    Equations
    Instances For
      def O3.TraceExact {d : ℕ} (oracle : PairOracle d) (trace : OracleTrace d) :

      Every recorded observation is the exact answer returned at its point.

      Equations
      Instances For
        def O3.WasQueried {d : ℕ} (trace : OracleTrace d) (x : Vec d) :

        A point was actually queried in the given trace.

        Equations
        Instances For
          theorem O3.traceExact_nil {d : ℕ} (oracle : PairOracle d) :
          TraceExact oracle []
          theorem O3.traceExact_append {d : ℕ} {oracle : PairOracle d} {s t : OracleTrace d} (hs : TraceExact oracle s) (ht : TraceExact oracle t) :
          TraceExact oracle (s ++ t)
          inductive O3.GuardKind :

          The three oracle-checkable guard classes in the frozen TeX source.

          Instances For
            @[instance_reducible]
            Equations
            structure O3.GuardCheck :

            An observable guard is stored through its scalar margin. The convention is that the checked inequality passes exactly when 0 ≤ margin.

            • kind : GuardKind

              The analytic condition tested by this observable guard.

            • margin : ℝ

              The signed slack of the tested inequality, with nonnegative values denoting success.

            Instances For

              The guard's inequality holds exactly when its signed margin is nonnegative.

              Equations
              Instances For
                noncomputable def O3.upperModelGuard (fx fy linear stepSq M : ℝ) :

                Margin for f(y) ≤ f(x) + linear + (M/2) * stepSq.

                Equations
                Instances For
                  def O3.gradientGuard (gradDiff stepNorm M : ℝ) :

                  Margin for gradDiff ≤ M * stepNorm.

                  Equations
                  Instances For
                    noncomputable def O3.interpolationGuard (fi fj pairing gradDiffSq M : ℝ) :

                    Margin for the ordered Euclidean finite-data interpolation guard f_i-f_j-pairing-(2M)^{-1} gradDiffSq ≥ 0.

                    Equations
                    Instances For
                      theorem O3.upperModelGuard_holds_iff (fx fy linear stepSq M : ℝ) :
                      (upperModelGuard fx fy linear stepSq M).Holds ↔ fy ≤ fx + linear + M / 2 * stepSq
                      theorem O3.gradientGuard_holds_iff (gradDiff stepNorm M : ℝ) :
                      (gradientGuard gradDiff stepNorm M).Holds ↔ gradDiff ≤ M * stepNorm
                      theorem O3.interpolationGuard_holds_iff (fi fj pairing gradDiffSq M : ℝ) :
                      (interpolationGuard fi fj pairing gradDiffSq M).Holds ↔ 0 ≤ fi - fj - pairing - gradDiffSq / (2 * M)

                      Every guard recorded in the list has a nonnegative margin.

                      Equations
                      Instances For

                        The list contains a failed guard of the specified kind.

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

                          Data-level outcome of a deterministic guarded local trial.

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

                            Finite data emitted by a local trial. calls is deliberately not a free field: it is the length of the exact observation trace.

                            • observations : OracleTrace d

                              The chronological oracle responses obtained during the local trial.

                            • guards : List GuardCheck

                              The observable inequality checks performed by the local trial.

                            • outcome : TrialOutcome d

                              The trial's success or rejection outcome.

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

                              The number of counted pair-oracle calls in the trial report.

                              Equations
                              Instances For

                                Purely data-level consistency of the recorded outcome.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  def O3.TrialValid {d : ℕ} (oracle : PairOracle d) (gradientSize : Vec d → ℝ) (eps L R M D : ℝ) (report : TrialReport d) :

                                  Semantic obligations proved by a regime-specific local trial. This is a proposition, not a certificate field. The scale and radius conclusions are exactly the directional implications used by the frozen outer-controller lemma.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    theorem O3.TrialValid.traceExact {d : ℕ} {oracle : PairOracle d} {gradientSize : Vec d → ℝ} {eps L R M D : ℝ} {report : TrialReport d} (h : TrialValid oracle gradientSize eps L R M D report) :
                                    TraceExact oracle report.observations
                                    theorem O3.TrialValid.outcomeRecorded {d : ℕ} {oracle : PairOracle d} {gradientSize : Vec d → ℝ} {eps L R M D : ℝ} {report : TrialReport d} (h : TrialValid oracle gradientSize eps L R M D report) :