Documentation

CslibFrontier.Computability.Circuit.Fusion.CertificateCircuit

Shared circuits for semi-ultrafilter certificates #

Two auxiliary bits describe the components of each cover pair. A bank of one AND gate per pair computes their intersection labels once, sharing them across every consistency test. Negative intersection labels are free disjunctions of the negative component literals. Only rejected component sets require their own consistency groups: a rejected intersection can be charged to a rejected component containing it. Thus two further AND gates per pair suffice, and the circuit has exactly three AND gates per pair.

Constants and OR gates are free. The primary source values and both auxiliary polarities are supplied by zero-cost formulas. The construction includes an empty pair list.

Main results #

References #

theorem Cslib.Circuits.Fusion.PairCertificate.exists_circuit {U : Type u_1} {X : Type u_2} {n k : ℕ} (pairs : List (Set U × Set U)) (sources : Fin n → Set U) (input : X → Fin k → Bool) (x : X → Fin n → Bool) (y : X → Fin (compactSize pairs) → Bool) (hx : ∀ (l : Fin n), ∃ (F : Formula Monotone.signature k), (∀ (z : X), F.eval Monotone.interpretation (input z) = true ↔ x z l = true) ∧ Formula.cost Monotone.andCost F = 0) (hy : ∀ (i : Fin (compactSize pairs)) (b : Bool), ∃ (F : Formula Monotone.signature k), (∀ (z : X), F.eval Monotone.interpretation (input z) = true ↔ y z i = b) ∧ Formula.cost Monotone.andCost F = 0) :
∃ (c : Circuit Monotone.signature k 1), (∀ (z : X), c.eval Monotone.interpretation (input z) 0 = true ↔ compactInvalid pairs sources (x z) (y z)) ∧ c.program.cost Monotone.andCost = 3 * pairs.length

Compile the compact consistency test with exactly three AND gates per pair. The intersection of the two labels of each pair is computed once and shared; its negative polarity is a free OR. Primary source values and both auxiliary polarities have zero-cost formulas.