NLA-lib Explorer

NLAlib.Ops.PairMatrix.conjTranspose_writes_packed

Library · theorem

Conjugate transpose writes exactly the mathematical machine's packed finite output. Readable input and disjoint writable output blocks suffice, including distinct regions of one buffer. No numerical accuracy or successful-execution premise is assumed. A fragment of the tree NLAlib.SpectralBisection.compress.

NLAlib.Ops.PairMatrix.conjTranspose_writes_packed {K Su Sg Op Tst : Type} [Inhabited K]
  [Ops.Has Ops.ScalarOp Op] {M : Ops.Machine K} {dec : K → ℝ} {mm : MatMulMap (K × K)}
  {qr : QRMap (K × K)} {unif : K → Su → K} {normal : Sg → K × K} {I : Ops.Interp Op Tst K}
  (hI : Ops.IsScalar M I) {τ : Ops.Tape K} {k r : ℕ} (Q : Matrix (Fin k) (Fin r) (K × K))
  {x y : ℕ × ℕ} {μ : Ops.Mem K}
  (hxy :
    Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 (2 * (k * r))) (Ops.Store.inBlock y.1 y.2 (2 * (k * r))))
  (hQ : μ.store.readBlock x.1 x.2 (2 * (k * r)) = some ((Ops.EntryCodec.pair K).packFinMatrix Q))
  (hY : y.2 + 2 * (k * r) ≤ μ.store.len y.1) (hl : μ.Live [x, y]) :
  Ops.Writes Ops.Mode.total I τ Ops.PairMatrix.conjTranspose (Ops.Env.frame [k, r] [x, y])
    (Ops.Store.inBlock y.1 y.2 (2 * (k * r)))
    (fun μ' ↦
      μ'.pos = μ.pos ∧
        μ'.store.readBlock y.1 y.2 (2 * (k * r)) =
          some
            ((Ops.EntryCodec.pair K).packFinMatrix
              ((M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif
                    normal).conjTransposeMat
                Q)))
    μ

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.OpsMatrix.