Documentation

CslibFrontier.Logics.BooleanClone.Affine

Affine Boolean clones and the four-ary even-parity invariant #

This module defines the four-ary even-parity relation {(x₀, x₁, x₂, x₃) ∈ Bool⁴ | x₀ ⊕ x₁ ⊕ x₂ ⊕ x₃ = false} (evenParity4), proves that preserving evenParity4 is equivalent to Cslib.BitString.IsAffine (isPolymorphism_evenParity4_iff_isAffine), and proves that every operation in a positive-arity Boolean clone containing ternary parity (Cslib.parity 3) and omitting both binary disjunction (Cslib.Logic.BooleanClone.orOp) and ternary majority (Cslib.majority 3) preserves evenParity4. Together with the four-generator Boolean clone classification, this isolates the affine branch of Post's lattice for relational-clone and polymorphism-based constraint satisfaction arguments.

Main definitions #

Main results #

The four-ary even-parity relation on Bool: tuples (x₀, x₁, x₂, x₃) with x₀ ⊕ x₁ ⊕ x₂ ⊕ x₃ = false.

The four-ary even-parity relation is nonempty (inhabited by the all-false tuple).

theorem Cslib.Logic.BooleanClone.evenParity4_selfDual {a : Fin 4 → Bool} (ha : a ∈ evenParity4) :
(fun (i : Fin 4) => !a i) ∈ evenParity4

The four-ary even-parity relation is closed under coordinatewise Boolean negation.

theorem Cslib.Logic.BooleanClone.evenParity4_separatesCoordinates {i j : Fin 4} (hij : i ≠ j) :
∃ a ∈ evenParity4, a i ≠ a j

Distinct coordinates of evenParity4 are separated by tuples in the relation.

Every positive-arity operation in a Boolean clone containing Cslib.parity 3 and omitting Cslib.Logic.BooleanClone.orOp and Cslib.majority 3 preserves the four-ary even-parity relation evenParity4.