NLAlib.Ops.intervalScan_writes
Library · theorem
The scan returns its actual machine literal for the all-words interval predicate. Inputs are spatially disjoint from the output flag; they may share its buffer at other offsets. The output cell needs capacity, and no output initialization or scalar literal exactness is assumed. Every other cell and the tape position are preserved. A fragment of the tree NLAlib.Ops.Hermitian.boxTest.
NLAlib.Ops.intervalScan_writes {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.CmpTst Tst]
{M : Ops.Machine K} {dec : K → ℝ} {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I)
(hC : Ops.IsCmp dec I) {md : Ops.Mode} {τ : Ops.Tape K} {m : Ops.Mem K} {n : ℕ}
{x lo hi z : ℕ × ℕ} {a b : K} (v : ℕ → K) (hx : m.store.HoldsVec x.1 x.2 n v)
(hlo : m.store.get lo.1 lo.2 = some a) (hhi : m.store.get hi.1 hi.2 = some b)
(hz : z.2 < m.store.len z.1)
(hXz : Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 n) (Ops.Store.inBlock z.1 z.2 1))
(hloz : Ops.Fp.Disj (Ops.Store.inBlock lo.1 lo.2 1) (Ops.Store.inBlock z.1 z.2 1))
(hhiz : Ops.Fp.Disj (Ops.Store.inBlock hi.1 hi.2 1) (Ops.Store.inBlock z.1 z.2 1)) :
Ops.Writes md I τ Ops.intervalScan (Ops.Env.frame [n] [x, lo, hi, z])
(Ops.Store.inBlock z.1 z.2 1)
(fun m' ↦
m'.pos = m.pos ∧
m'.store.get z.1 z.2 = some (M.lit (if Ops.InInterval dec a b v n then 0 else 1)))
mImport NLAlib.Ops.Blas.Interval.