Embedding a small test into the fixed tampering slots #
The honest call is removed from the Cartesian product of the tested
coordinates with all candidates. At most 4 * C - 1 calls remain. An
embedding places these calls in the fixed slot type; a partial inverse
fills every unused slot with a caller-supplied padding value.
Change the first advice bit, preserving every remaining bit.
Equations
Instances For
theorem
Algebraic.Cutwidth.Extractor.Internal.affineTestDummyAdvice_ne
(advice : List Bool)
(positive : 0 < advice.length)
:
noncomputable def
Algebraic.Cutwidth.Extractor.Internal.affineTestPadded
{ι : Type u_1}
{α : Type u_2}
{τ : ℕ}
(embedding : ι ↪ Fin τ)
(real : ι → α)
(padding : α)
(i : Fin τ)
:
α
Extend the genuinely used slots by a fixed padding value.
Equations
- Algebraic.Cutwidth.Extractor.Internal.affineTestPadded embedding real padding i = (Function.partialInv (⇑embedding) i).elim padding real
Instances For
theorem
Algebraic.Cutwidth.Extractor.Internal.affineTestPadded_property
{ι : Type u_1}
{α : Type u_2}
{τ : ℕ}
(embedding : ι ↪ Fin τ)
(real : ι → α)
(padding : α)
(P : α → Prop)
(used : ∀ (i : ι), P (real i))
(unused : P padding)
(i : Fin τ)
:
P (affineTestPadded embedding real padding i)