Documentation

CslibFrontier.Computability.Circuit.Fusion.Certificate

Finite certificates for semi-ultrafilter covers #

A certificate labels both components and the intersection of each cover pair. A fixed additional empty set is rejected. Invalid labels are detected by a rejected superset of an accepted or required set, or two rejected sets covering the carrier. All pairs, including equal pairs and the fixed empty set, participate in these tests. A valid certificate extends to a semi-ultrafilter; if it also preserves every listed pair it contradicts a cover above a target point.

Only the two component labels need to be guessed. Defining an intersection's label to be the conjunction of its component labels preserves that pair automatically. A rejected intersection's consistency violation is also a violation at a rejected component, since each kind of conflict persists when its set is enlarged. Thus the compressed test checks just the two components per pair and the fixed empty set. This compression is an original refinement of the construction.

Main definitions #

Main results #

References #

@[reducible, inline]

Three certificate bits per pair: its first set, second set and intersection.

def Cslib.Circuits.Fusion.PairCertificate.left {U : Type u_1} (pairs : List (Set U × Set U)) (i : Fin pairs.length) :
Fin (size pairs)

The first-component certificate index.

def Cslib.Circuits.Fusion.PairCertificate.right {U : Type u_1} (pairs : List (Set U × Set U)) (i : Fin pairs.length) :
Fin (size pairs)

The second-component certificate index.

def Cslib.Circuits.Fusion.PairCertificate.inter {U : Type u_1} (pairs : List (Set U × Set U)) (i : Fin pairs.length) :
Fin (size pairs)

The intersection certificate index.

def Cslib.Circuits.Fusion.PairCertificate.sets {U : Type u_1} (pairs : List (Set U × Set U)) :
Option (Fin (size pairs)) → Set U

A fixed empty set supplements the three sets for each pair.

def Cslib.Circuits.Fusion.PairCertificate.label {U : Type u_1} (pairs : List (Set U × Set U)) (y : Fin (size pairs) → Bool) :
Option (Fin (size pairs)) → Bool

The fixed empty set has label false.

@[simp]
theorem Cslib.Circuits.Fusion.PairCertificate.sets_left {U : Type u_1} (pairs : List (Set U × Set U)) (i : Fin pairs.length) :
sets pairs (some (left pairs i)) = (pairs.get i).1

The set at left pairs i is the first component of the i-th pair.

@[simp]
theorem Cslib.Circuits.Fusion.PairCertificate.sets_right {U : Type u_1} (pairs : List (Set U × Set U)) (i : Fin pairs.length) :
sets pairs (some (right pairs i)) = (pairs.get i).2

The set at right pairs i is the second component of the i-th pair.

@[simp]
theorem Cslib.Circuits.Fusion.PairCertificate.sets_inter {U : Type u_1} (pairs : List (Set U × Set U)) (i : Fin pairs.length) :
sets pairs (some (inter pairs i)) = (pairs.get i).1 ∩ (pairs.get i).2

The set at inter pairs i is the intersection of the two components of the i-th pair.

def Cslib.Circuits.Fusion.PairCertificate.conflicts {U : Type u_1} (pairs : List (Set U × Set U)) {n : ℕ} (sources : Fin n → Set U) (x : Fin n → Bool) (y : Fin (size pairs) → Bool) (s : Set U) :

Accepting a subset, rejecting a covering partner, or requiring a source contained in s prevents a consistent semi-ultrafilter certificate from rejecting s.

def Cslib.Circuits.Fusion.PairCertificate.Invalid {U : Type u_1} (pairs : List (Set U × Set U)) {n : ℕ} (sources : Fin n → Set U) (x : Fin n → Bool) (y : Fin (size pairs) → Bool) :

Consistency violations, grouped by a rejected set. The sources marked true must be accepted.

def Cslib.Circuits.Fusion.PairCertificate.BreaksPair {U : Type u_1} (pairs : List (Set U × Set U)) (y : Fin (size pairs) → Bool) :

An accepted pair with rejected intersection.

@[reducible, inline]

Two certificate bits per pair, ordered as all first components then all second components.

def Cslib.Circuits.Fusion.PairCertificate.expandLabels {U : Type u_1} (pairs : List (Set U × Set U)) (y : Fin (compactSize pairs) → Bool) :
Fin (size pairs) → Bool

Extend component labels by assigning each intersection the conjunction of its two labels.

@[simp]
theorem Cslib.Circuits.Fusion.PairCertificate.expandLabels_left {U : Type u_1} (pairs : List (Set U × Set U)) (y : Fin (compactSize pairs) → Bool) (i : Fin pairs.length) :
expandLabels pairs y (left pairs i) = y (Fin.castAdd pairs.length i)

Expansion preserves first-component labels.

@[simp]
theorem Cslib.Circuits.Fusion.PairCertificate.expandLabels_right {U : Type u_1} (pairs : List (Set U × Set U)) (y : Fin (compactSize pairs) → Bool) (i : Fin pairs.length) :
expandLabels pairs y (right pairs i) = y (Fin.natAdd pairs.length i)

Expansion preserves second-component labels.

@[simp]
theorem Cslib.Circuits.Fusion.PairCertificate.expandLabels_inter {U : Type u_1} (pairs : List (Set U × Set U)) (y : Fin (compactSize pairs) → Bool) (i : Fin pairs.length) :
expandLabels pairs y (inter pairs i) = (y (Fin.castAdd pairs.length i) && y (Fin.natAdd pairs.length i))

An expanded intersection label is the conjunction of its component labels.

Component labels expanded by conjunction never violate pair preservation.

def Cslib.Circuits.Fusion.PairCertificate.compactInvalid {U : Type u_1} (pairs : List (Set U × Set U)) {n : ℕ} (sources : Fin n → Set U) (x : Fin n → Bool) (y : Fin (compactSize pairs) → Bool) :

Compressed consistency checks the fixed empty set and each rejected component, with intersection labels supplied by expandLabels.

theorem Cslib.Circuits.Fusion.PairCertificate.invalid_expandLabels_iff {U : Type u_1} (pairs : List (Set U × Set U)) {n : ℕ} (sources : Fin n → Set U) (x : Fin n → Bool) (y : Fin (compactSize pairs) → Bool) :
Invalid pairs sources x (expandLabels pairs y) ↔ compactInvalid pairs sources x y

Checking rejected intersections adds no constraint: a rejected factor has the same conflict. No nonemptiness or distinctness assumption is imposed on the carrier or the cover pairs.

theorem Cslib.Circuits.Fusion.PairCertificate.exists_filter_of_not_invalid {U : Type u_1} (pairs : List (Set U × Set U)) {n : ℕ} (sources : Fin n → Set U) (x : Fin n → Bool) (y : Fin (size pairs) → Bool) (h : ¬Invalid pairs sources x y) :
∃ (F : Semifilter U), F.IsUltra ∧ (∀ (i : Option (Fin (size pairs))), F (sets pairs i) ↔ label pairs y i = true) ∧ ∀ (l : Fin n), x l = true → F (sources l)

Every valid labeling is realized by a semi-ultrafilter accepting all required sources.

noncomputable def Cslib.Circuits.Fusion.PairCertificate.pointLabels {U : Type u_1} (pairs : List (Set U × Set U)) (u : U) (i : Fin (size pairs)) :

A point supplies a consistent certificate, including when the pair list is empty.

noncomputable def Cslib.Circuits.Fusion.PairCertificate.compactPointLabels {U : Type u_1} (pairs : List (Set U × Set U)) (u : U) :
Fin (compactSize pairs) → Bool

A point's two component-membership labels per pair.

@[simp]

Conjunction expansion reconstructs the full point-membership certificate.

@[simp]
theorem Cslib.Circuits.Fusion.PairCertificate.label_pointLabels {U : Type u_1} (pairs : List (Set U × Set U)) (u : U) (i : Option (Fin (size pairs))) :
label pairs (pointLabels pairs u) i = true ↔ u ∈ sets pairs i

The extended point certificate labels i by true if and only if u ∈ sets pairs i.

theorem Cslib.Circuits.Fusion.PairCertificate.not_invalid_pointLabels {U : Type u_1} (pairs : List (Set U × Set U)) {n : ℕ} (sources : Fin n → Set U) (x : Fin n → Bool) (u : U) (hx : ∀ (l : Fin n), x l = true → u ∈ sources l) :
¬Invalid pairs sources x (pointLabels pairs u)

Point membership has no consistency violation whenever all required sources contain it.

Point membership preserves every intersection pair.

theorem Cslib.Circuits.Fusion.PairCover.invalid_or_breaksPair {X : Type u_1} {n : ℕ} {target : Set X} {input : Fin n → Set X} (c : PairCover target input Semifilter.IsUltra) (x : ↑target) (y : Fin (PairCertificate.size c.pairs) → Bool) :
PairCertificate.Invalid c.pairs (fun (i : Fin n) => Subtype.val ⁻¹' input i) (fun (i : Fin n) => decide (↑x ∈ input i)) y ∨ PairCertificate.BreaksPair c.pairs y

Above a target point, every certificate either is inconsistent or breaks a cover pair.