MindFormal v1.0.0One Mind

MindFormal.Run.RationalContraction

02.20: the general builder's contraction certificate for a mind given as rational data. Each piece carries its polynomial path, a defect bound and the grid the piece checker uses on the path itself, and, in a weighted sup norm max_i w_i|z_i| whose weights the certificate names, the tube's width, a one-sided Lipschitz constant μ of the drift on the tube (possibly negative, certified by the one-sided checker), the start distance and the radius. The radius is carried across the pieces by Grönwall's bound at μ in place of a Lipschitz constant, its exponential bounded above by rational arithmetic. A certificate that checks puts the reference within each piece's radius in the weighted norm. The reference is the floor's reflected solution; its floor never acts, so the reflection is included.

02.20: one piece of a contraction certificate: the approximate path's polynomials in the time since the piece began; the tube's width r in the weighted norm; the defect bound ε in the sup norm and the Lipschitz constant K along the path, which the piece checker's grid uses; the one-sided Lipschitz constant μ on the tube; the distance δ at the piece's start and the radius ρ, both in the weighted norm; and the grid's number of cells M.

Instances For

    02.20: a contraction certificate: the input tolerance η, the weighted norm's weights, and one piece for each piece of the schedule.

    Instances For

      02.20: the contraction certificate's piece k (a zero piece past the end).

      Equations
      Instances For

        02.20: the grid view: a certificate of the earlier kind with the same paths, defect bounds, Lipschitz constants and grids and a tube of width zero, on which the piece checker bounds the defect along the path.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.RationalMind.ContractionCertificate.grid_at {N n : ℕ} {T Λ : Type} (C : ContractionCertificate N n T Λ) (k : ℕ) :
          C.grid.at k = { path := (C.at k).path, r := 0, ε := (C.at k).ε, K := (C.at k).K, ρ := (C.at k).ρ, δ := (C.at k).δ, M := (C.at k).M }
          def MindFormal.RationalMind.weightMax {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) (C : ContractionCertificate N n T Λ) :

          02.20: the largest weight.

          Equations
          Instances For
            def MindFormal.RationalMind.endBound {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) (C : ContractionCertificate N n T Λ) (k : ℕ) :

            02.20: the bound at piece k's end, δE + (w_max·ε)·h·max(1, E) with E = expUpper(μh) ≥ e^{μh}: Grönwall's bound at μ, the defect measured in the weighted norm.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def MindFormal.RationalMind.contractionPieceCheck {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [DecidableEq T] [DecidableEq Λ] (C : ContractionCertificate N n T Λ) (k : ℕ) :

              02.20: the checks on piece k: the piece checker on the path (tube width zero) for the defect; the one-sided checker for μ on the weighted tube of width r; |μh| ≤ 1; δ ≥ 0; δ and the end bound at most ρ, and ρ below the width; the path's activities and traces nonnegative over the piece; and, before the last piece, the end bound plus the weighted jump to the next piece's path at most the next δ.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def MindFormal.RationalMind.contractionCheck {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [DecidableEq T] [DecidableEq Λ] (C : ContractionCertificate N n T Λ) :

                02.20: THE CONTRACTION CERTIFICATE CHECKER, by rational arithmetic only: one certificate piece for each schedule piece, a nonnegative tolerance, the data's start within δ₀ of the first piece's path in the weighted norm, and every piece's checks.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem MindFormal.RationalMind.contractionPieceCheck_spec {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [DecidableEq T] [DecidableEq Λ] {C : ContractionCertificate N n T Λ} {k : ℕ} (h : D.contractionPieceCheck C k = true) :
                  (D.pieceData C.grid k).check D.stateVars paramVars D.driftE = true ∧ (D.pieceData C.grid k).oslCheck D.stateVars D.driftE C.weight (C.at k).r (C.at k).μ = true ∧ |(C.at k).μ * (D.pieceAt k).dur| ≤ 1 ∧ 0 ≤ (C.at k).δ ∧ (C.at k).δ ≤ (C.at k).ρ ∧ D.endBound C k ≤ (C.at k).ρ ∧ (C.at k).ρ < (C.at k).r ∧ (∀ v ∈ D.stateVars, floored v = true → pabs (pderiv ((C.at k).path v)) (D.pieceAt k).dur * (D.pieceAt k).dur ≤ qeval ((C.at k).path v) 0) ∧ (k + 1 < D.schedule.length → D.endBound C k ≤ (C.at (k + 1)).δ ∧ ∀ v ∈ D.stateVars, D.endBound C k + C.weight v * |qeval ((C.at k).path v) (D.pieceAt k).dur - qeval ((C.at (k + 1)).path v) 0| ≤ (C.at (k + 1)).δ)

                  02.20: what a passing piece check gives.

                  structure MindFormal.RationalMind.ContractionCertified {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [DecidableEq T] [DecidableEq Λ] [Fintype T] [Fintype Λ] (C : ContractionCertificate N n T Λ) {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) :

                  02.20: what a contraction certificate needs of a reference: admissible data representing its drift d, whose coefficients are physical C1; the certificate checks; the reference R of d on [0,H], H at least the schedule's length, starts at the data's start, has the schedule's focus on each piece and an input continuous on each piece and within the certificate's tolerance η of the schedule's.

                  Instances For
                    theorem MindFormal.RationalMind.contraction_certificate_enclosure {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [DecidableEq T] [DecidableEq Λ] [Fintype T] [Fintype Λ] {C : ContractionCertificate N n T Λ} {d : MindDriftData (Fin N) n T Λ} {H : NNReal} {R : LearningReference d H} (hR : D.ContractionCertified C R) (k : ℕ) :
                    k < D.schedule.length → ∀ t ∈ Set.Icc ↑(D.breaks k) ↑(D.breaks (k + 1)), ‖(weightMap C.weight) ((ContinuousMap.IccExtend ⋯ R.path) t - D.approx C.grid k t)‖ ≤ ↑(C.at k).ρ

                    02.20: THE THEOREM FROM A CHECKED CONTRACTION CERTIFICATE TO THE TUBE. If the certificate checks and the reference meets ContractionCertified, then on each piece k, at every time t of [τ_k, τ_{k+1}], the reference is within the certificate's radius ρ_k of the approximate path in the weighted norm: max_v w_v |R(t)_v − y_k(t)_v| ≤ ρ_k. The radius is carried by Grönwall's bound at the certified one-sided constant μ, so it need not grow with the horizon.

                    def MindFormal.RationalMind.wlowerAt {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) (C : ContractionCertificate N n T Λ) (k : ℕ) (v : CoordinateIndex (Fin N) n T Λ) :

                    02.20: the lowest value coordinate v reaches on piece k: the path's lowest less the radius over v's weight.

                    Equations
                    Instances For
                      def MindFormal.RationalMind.wupperAt {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) (C : ContractionCertificate N n T Λ) (k : ℕ) (v : CoordinateIndex (Fin N) n T Λ) :

                      02.20: the highest value coordinate v reaches on piece k: the path's highest plus the radius over v's weight.

                      Equations
                      Instances For
                        def MindFormal.RationalMind.wnormAt {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) (C : ContractionCertificate N n T Λ) (k : ℕ) :

                        02.20: a bound on the state's norm over piece k, from the lowest and highest values.

                        Equations
                        Instances For
                          theorem MindFormal.RationalMind.contraction_certificate_margins {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [DecidableEq T] [DecidableEq Λ] [Fintype T] [Fintype Λ] {C : ContractionCertificate N n T Λ} {d : MindDriftData (Fin N) n T Λ} {H : NNReal} {R : LearningReference d H} (hR : D.ContractionCertified C R) (k : ℕ) :
                          k < D.schedule.length → (∀ t ∈ Set.Icc ↑(D.breaks k) ↑(D.breaks (k + 1)), ∀ (v : CoordinateIndex (Fin N) n T Λ), ↑(D.wlowerAt C k v) ≤ (ContinuousMap.IccExtend ⋯ R.path) t v ∧ (ContinuousMap.IccExtend ⋯ R.path) t v ≤ ↑(D.wupperAt C k v)) ∧ (∀ t ∈ Set.Icc ↑(D.breaks k) ↑(D.breaks (k + 1)), ‖(ContinuousMap.IccExtend ⋯ R.path) t‖ ≤ ↑(D.wnormAt C k)) ∧ ∀ (v : CoordinateIndex (Fin N) n T Λ), |(ContinuousMap.IccExtend ⋯ R.path) (↑(D.breaks (k + 1))) v - ↑(qeval ((C.at k).path v) (D.pieceAt k).dur)| ≤ ↑(C.at k).ρ / ↑(C.weight v)

                          02.20: THE RANGE MARGINS of a contraction certificate. Under ContractionCertified, on each piece every coordinate v of the reference lies between the piece's lowest and highest values, which carry the radius over v's weight; the reference's norm is at most wnormAt; and at the piece's end each coordinate is within ρ_k/w_v of the path's end value.

                          theorem MindFormal.RationalMind.reference_contractionCertified {N n : ℕ} {T Λ J : Type} (D : RationalMind N n T Λ J) [Fintype T] [Fintype Λ] [DecidableEq T] [DecidableEq Λ] (hD : D.Admissible) (hW : D.WellPosed) {C : ContractionCertificate N n T Λ} (hC : D.contractionCheck C = true) :

                          02.20: admissible, well-posed data's own reference meets ContractionCertified for any contraction certificate that checks: its start, its schedule's input exactly (any η ≥ 0) and its focus.