NLA-lib Explorer

NLAlib.SpectralBisection.measureReal_not_accepts_le_of_wordSpecification

Library · theorem

Reference numerical failure bounds complete actual solver failure: none, any resource bound violation, loss of the functional word specification, or incorrect numerical output. All facts refer to the same canonical counted execution, with no success premise.

NLAlib.SpectralBisection.measureReal_not_accepts_le_of_wordSpecification {K : Type} [Inhabited K]
  (M : Ops.Machine K) (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K))
  {domain : (Fin 3 → ℕ) → Prop} {admitted : ∃ d, domain d}
  (budget : (Fin 3 → ℕ) → Ops.Count (Ops.DenseOp ⊕ Ops.Bookkeeping) (Ops.CmpTst ⊕ Ops.IdxTst))
  (scratch work span memory : (Fin 3 → ℕ) → ℕ)
  {model :
    Ops.AccessModel Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst)
      (SpectralBisection.problem domain admitted)}
  (algorithm :
    Ops.Algorithm model
      (SpectralBisection.wordSpecification M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) domain admitted
        budget scratch work span memory))
  {d : Fin 3 → ℕ} (hd : domain d) (x : (SpectralBisection.problem domain admitted).Input d)
  (I : Ops.Interp Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K) (hI : model.contracts d x I)
  {Omega : Type} [MeasurableSpace Omega] (P : Measure Omega) [IsFiniteMeasure P]
  (tape : Omega → Ops.Tape K) {theta : ℝ}
  (hReference :
    P.real
        {omega |
          ¬IsApproxDiagonalization (decodeMatrix dec (SpectralBisection.inputMatrix d x))
              (decodeMatrix dec
                (SpectralBisection.inputResult M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) d x
                    (tape omega)).1)
              (fun i ↦
                dec
                  ((SpectralBisection.inputResult M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) d x
                        (tape omega)).2
                    i))
              (2 * dec ((↑x).1.2 1) * dec ((↑x).1.2 0)) (dec ((↑x).1.2 1) / 3)} ≤
      theta) :
  P.real
      {omega |
        ¬(SpectralBisection.wordSpecification M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) domain
                admitted budget scratch work span memory).Accepts
            algorithm.program I model.resources (tape omega) d x fun c m ↦
            (SpectralBisection.wordSpecification M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) domain
                    admitted budget scratch work span memory).good
                d x (tape omega) c m ∧
              SpectralBisection.StoresApproxDiagonalization dec (SpectralBisection.inputMatrix d x)
                (2 * dec ((↑x).1.2 1) * dec ((↑x).1.2 0)) (dec ((↑x).1.2 1) / 3) (2, 0) (3, 0) m} ≤
    theta

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.ProbabilityTransfer.