NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.Integrator.run_exact

Library · theorem

With exact operations the integrator leaves exactly (I + h \mathbf{A})^N \mathbf{x}_0: at zero allowances the error bound of its certificate is zero.

NLAlib.Ops.Examples.WorkedInstances.Integrator.run_exact (A : (n : ℕ) → Matrix (Fin n) (Fin n) ℝ)
  (d : Fin 2 → ℕ) (h : ℝ) (x₀ : Fin (d 0) → ℝ)
  (I : Ops.Interp Ops.Examples.Integrator.MyOperation Empty ℝ)
  (hI :
    (Ops.Examples.Integrator.myModel A 0 0 ⋯ ⋯).contracts d
      (Ops.Examples.Integrator.myDomain.input d (h, x₀) trivial) I)
  (τ : Ops.Tape ℝ) :
  ∃ st,
    Ops.Reference.Execution Ops.Examples.Integrator.myProgram I Ops.Examples.Integrator.myResources
        Ops.Examples.Integrator.myProblem.formats τ d
        (Ops.Examples.Integrator.myProblem.initial d
          (Ops.Examples.Integrator.myDomain.input d (h, x₀) trivial))
        st ∧
      st.mem.store.readBlock 1 0 (d 0) = some (List.ofFn ((1 + h • A (d 0)) ^ d 1 *ᵥ x₀))

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.Integrator.