Documentation

CslibFrontier.Algorithms.ExactTriangle.PieceBounds

Numeric coordinates of ExactTriangle pieces #

These bounds connect the existing finite pieces with the truncated original-vertex intervals used by both native matrix preparation and witness recovery. They expose the same coordinate facts previously private to the prepared-adjacency consumer, without changing the finite pieces.

theorem Cslib.Algorithms.ExactTriangle.piece_start_lt {n D g k : ℕ} (hD : 16 ≤ D) (hg : 1 ≤ g) (hk : k < numPieces n D g) :
k * pieceSize D g < n

Every enumerated piece begins at an original vertex, before the truncation endpoint.

The active piece/label rectangle fits in the source middle dimension.

theorem Cslib.Algorithms.ExactTriangle.piece_coordinate {n D g k : ℕ} (hD : 16 ≤ D) (hg : 1 ≤ g) (c : Fin n) (hc : c ∈ piece n D g k) :
k * pieceSize D g + ↑c % pieceSize D g = ↑c ∧ ↑c % pieceSize D g < min (pieceSize D g) (n - k * pieceSize D g)

An original piece vertex has its computed local coordinate in the actual truncated interval.

theorem Cslib.Algorithms.ExactTriangle.mem_piece_iff_interval {n D g k : ℕ} (hD : 16 ≤ D) (hg : 1 ≤ g) (c : Fin n) :
c ∈ piece n D g k ↔ k * pieceSize D g ≤ ↑c ∧ ↑c < k * pieceSize D g + min (pieceSize D g) (n - k * pieceSize D g)

The finite piece is precisely its original-coordinate truncated interval.