NLAlib.Ops.Examples.Strided.Swapped.step
Library · theorem
One exchange: the three copies of round i exchange entry i and keep the others.
NLAlib.Ops.Examples.Strided.Swapped.step {K : Type} {st : Ops.Store K} {r s : ℕ × ℕ} {n lda : ℕ}
{rs ss : List K} {i L : ℕ} (h : Ops.Examples.Strided.Swapped st r s n lda rs ss i) (hi : i < n)
(hlda : 0 < lda) {a b : K} (ha : st.get r.1 (r.2 + lda * i) = some a)
(hb : st.get s.1 (s.2 + lda * i) = some b) (hra : rs[i]? = some a) (hsb : ss[i]? = some b)
(hrL : r.1 ≠ L) (hsL : s.1 ≠ L)
(hd : ∀ k < n, ∀ j < n, r.1 ≠ s.1 ∨ r.2 + lda * k ≠ s.2 + lda * j) :
Ops.Examples.Strided.Swapped
(((st.upd L 0 a).upd r.1 (r.2 + lda * i) b).upd s.1 (s.2 + lda * i) a) r s n lda rs ss (i + 1)Import NLAlib.Ops.Examples.Strided.