NLA-lib Explorer

NLAlib.SpectralBisection.matrixShapes_of_allOps

Library · theorem

A statement using only scalar, index and sample primitives has no matrix shape obligations.

NLAlib.SpectralBisection.matrixShapes_of_allOps (n : ℕ)
  (s : Ops.Stmt Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst))
  (hs :
    Ops.Stmt.allOps
        (fun o ↦
          match o with
          | Ops.DenseOp.matrix op => false
          | x => true)
        s =
      true)
  (idx : List ℕ) : (Ops.stmtCost s idx).CallsSatisfy (SpectralBisection.MatrixShape n)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.MatrixShapes.