Documentation

CslibFrontier.Algorithms.WordRAM.TrimmedYates.Instance

Sparse set-function entries and problem instances for trimmed Yates #

Word-level encoding, weight envelopes, and input admissibility for sparse weighted set-function instances over Fin d ([CIMY26], Problem 2.1 / Theorem 2.2).

Main definitions #

Main results #

References #

Set function represented by a list of sparse (set, weight) entries, summing duplicate keys.

theorem Cslib.Algorithms.WordRAM.TrimmedYates.evalEntries_ranked {d t : ℕ} {es : List (Finset (Fin d) × ℤ)} (hes : ∀ p ∈ es, p.2 ≠ 0 → p.1.card = t) (S : Finset (Fin d)) (hS : evalEntries es S ≠ 0) :
S.card = t

Sum of |v| across sparse (set, v) entries.

Word encoding of a sparse (set, weight) list: [setMask S₀, Signed.encode v₀, ...].

Sparse weighted set-function instance over Fin d with threshold s and query sets queries. In the ranked setting of [CIMY26], Problem 2.1 / Theorem 2.2, leftEntries are supported on sets of size t₁, rightEntries on sets of size t₂, and queries have size t₁ + t₂ (t₁ = t₂ = t in Theorem 2.2).

  • d : ℕ

    Universe dimension d (ground set Fin d).

  • s : ℕ

    Trimming threshold s.

  • leftEntries : List (Finset (Fin self.d) × ℤ)

    Sparse (set, weight) pairs summing to the left input function f.

  • rightEntries : List (Finset (Fin self.d) × ℤ)

    Sparse (set, weight) pairs summing to the right input function g.

  • queries : List (Finset (Fin self.d))

    Query subsets Cs at which to evaluate the covering product / subset convolution.

Left input set function f : Finset (Fin inst.d) → ℤ.

Right input set function g : Finset (Fin inst.d) → ℤ.

Total number of sparse input entries n = |leftEntries| + |rightEntries|.

Sum of |v| over all sparse input entries.

Flat word encoding [d, s, |leftEntries|, |rightEntries|, |queries|, leftEntries..., rightEntries..., queryMasks...].

Peak address bound for executing program on inst.

Running-time bound for executing program on inst (including the final halt).

Word-width admissibility predicate for inst.

Any word width satisfying inst.FitsWidth w also fits every word of inst.encode.