Documentation

CslibFrontier.Foundations.Data.BitString.ParityInterpolation

Interpolating two table entries by a parity #

The values of a Boolean table f with f 0 = false at any two points of the cube agree with some parity. The zero point and repeated points impose the only consistency conditions on two answers. The parity can be chosen on finitely many coordinates even when the coordinate type is infinite. This elementary interpolation lemma is proved by choosing separating coordinates.

Main results #

References #

The interpolation argument in this module is elementary and original to this formalization.

theorem Cslib.BitString.exists_parityOn_agrees_pair {ι : Type u_1} {f : (ι → Bool) → Bool} (hf : f 0 = false) (x y : ι → Bool) :
∃ (S : Finset ι), parityOn S x = f x ∧ parityOn S y = f y

Any two answers of a table that is false at zero extend to a parity. The two points may coincide or be zero; no finiteness assumption on the coordinate type is needed.