The value of an actual decoded producer query block #
The actual occurrence list is exactly the existing finite chunkOf, without repetitions,
and its i-th pair has class rank k*queryCap+i. Consumers can use original ET pairs directly
through this packaged readback; no alternative query notion or supplied routing table is added.
theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordProduct.decodedQueries_chunkOf {n D g p : ℕ} (values : ℕ → ℤ) (wAB : Fin n → Fin n → ℤ) (hn : 0 < n) (hp : p ≠ 0) (hAB : ∀ (a b : Fin n), values (Matrix.pairIndex (a, b)) = wAB a b) (hD : 1 ≤ D) (hDn : D ≤ n) {initial y : WordRAM.Data 64} (h : Instances.Output n D g p values initial y) (rho : Fin p) (k : ℕ) (hk : k < Matrix.numChunks (ExactTriangle.residueClass wAB p rho) (ExactTriangle.queryCap n D)) :
have q := 5 + 6 * (n * n) + p + 2 * ↑rho * (n * n) + 2 * (k * ExactTriangle.queryCap n D);
have Q :=
min (ExactTriangle.queryCap n D) ((ExactTriangle.residueClass wAB p rho).card - k * ExactTriangle.queryCap n D);
have qs := decodedQueries hn y.mem q Q;
(∀ (i : Fin qs.length),
qs.get i ∈ ExactTriangle.chunkOf wAB D p rho k ∧ Matrix.rankIn (ExactTriangle.residueClass wAB p rho) (qs.get i) = k * ExactTriangle.queryCap n D + ↑i) ∧ qs.Nodup ∧ qs.toFinset = ExactTriangle.chunkOf wAB D p rho k
The actual decoded list consists of all pairs of the existing chunk, once each, in increasing class rank. The indexed equation specifies the order as well as set membership.