cfahlgren1's picture
download
raw
6.26 kB
import OAI.Combinatorics.Sensitivity.RecursiveCandidates
namespace OAI
/-! The zero-side recurrence separates the unique possible gate-list sink. -/
noncomputable section
open scoped Classical
namespace Paper320
theorem recursive_sensitivity_zero_at {k r h : ℕ} {I : Type} [Fintype I]
(T : Tournament k) (A : GoodLabeling T r)
(F : Fin (h + 1) → (I → Bool) → Bool) (hF : NestedFamily F) (hr : 0 < r)
(q : Fin h) (x : ((Fin k × Fin r) × I) → Bool)
(hx : recursiveFamily T A.label F q x = false) :
sensitivityAt (recursiveFamily T A.label F q) x ≤
16 * sideSensitivity F false + sideSensitivity F true + 3 * jointSensitivity F true := by
let TC := targetCandidates T A.label F q x
let GC := gateCandidates T A.label F q x
let SC := gateSinks T A.label F q x
let NC := GC \ SC
let w := gateWitness T A.label F q x
let U := TC.biUnion fun i => childChanges F (Fin.last h) x i (targetWitness F x hr i)
let V := NC.biUnion fun i => childJointChanges F (gateIndex q) (Fin.last h) x (w i) (A.label i (w i))
let W := SC.biUnion fun i => childChanges F (gateIndex q) x (w i) (A.label i (w i))
have hsub : (Finset.univ.filter fun p =>
recursiveFamily T A.label F q (flip x {p}) ≠ recursiveFamily T A.label F q x) ⊆ U ∪ (V ∪ W) := by
rintro ⟨⟨j, c⟩, a⟩ hp
have hchange := (Finset.mem_filter.mp hp).2
have hon : recursiveFamily T A.label F q (flip x {((j, c), a)}) = true := by
cases hy : recursiveFamily T A.label F q (flip x {((j, c), a)})
· exact False.elim (hchange (hy.trans hx.symm))
· rfl
obtain ⟨i, hi⟩ := (recursiveFamily_eq_true_iff T A.label F q _).mp hon
have hioff := (recursiveFamily_eq_false_iff T A.label F q x).mp hx i
rcases rowClause_repair_cases T A.label F q x i j c a hioff hi with
⟨hit, hji, htoff, hton⟩ | ⟨hig, hij, rfl, hgon, hgoff⟩
· subst j
have hc := targetWitness_unique T A.label F q x hr i hit c htoff
apply Finset.mem_union_left
apply Finset.mem_biUnion.mpr
refine ⟨i, hit, ?_⟩
have hn : F (Fin.last h) (flip (recursiveChild x i c) {a}) ≠
F (Fin.last h) (recursiveChild x i c) := by simp [hton, htoff]
simpa [childChanges, hc] using hn
· have hj := gateWitness_unique T A.label F q x i hig j hij hgon
apply Finset.mem_union_right
by_cases hs : i ∈ SC
· apply Finset.mem_union_right
apply Finset.mem_biUnion.mpr
refine ⟨i, hs, ?_⟩
have hn : F (gateIndex q) (flip (recursiveChild x j (A.label i j)) {a}) ≠
F (gateIndex q) (recursiveChild x j (A.label i j)) := by simp [hgon, hgoff]
simpa [childChanges, w, hj] using hn
· have hwg := nonsink_gateWitness_mem T A.label F hF q x i hig hs
have hjg : j ∈ gateCandidates T A.label F q x := by simpa [hj] using hwg
have hton := (targetFailures_empty_iff F x j).mp (Finset.mem_filter.mp hjg).2.1 (A.label i j)
have htoff := hF.rejects_of_le (gateIndex_lt_last q).le hgoff
apply Finset.mem_union_left
apply Finset.mem_biUnion.mpr
refine ⟨i, Finset.mem_sdiff.mpr ⟨hig, hs⟩, ?_⟩
have hn :
F (gateIndex q) (flip (recursiveChild x j (A.label i j)) {a}) ≠
F (gateIndex q) (recursiveChild x j (A.label i j)) ∧
F (Fin.last h) (flip (recursiveChild x j (A.label i j)) {a}) ≠
F (Fin.last h) (recursiveChild x j (A.label i j)) := by
simp [hgon, hgoff, hton, htoff]
simpa [childJointChanges, w, hj] using hn
have hU : U.card ≤ 16 * sideSensitivity F false := by
calc
U.card ≤ TC.card * sideSensitivity F false :=
card_biUnion_le_mul TC _ _ (fun i hi => by
rw [childChanges_card]
exact sensitivityAt_le_sideSensitivity F false _ _
(targetWitness_false T A.label F q x hr i hi))
_ ≤ 16 * sideSensitivity F false := Nat.mul_le_mul_right _
(Nat.le_of_lt (targetCandidates_card T A F hF q x hr))
have hV : V.card ≤ 3 * jointSensitivity F true := by
calc
V.card ≤ NC.card * jointSensitivity F true :=
card_biUnion_le_mul NC _ _ (fun i hi => by
have hg := Finset.mem_sdiff.mp hi
have hw := nonsink_gateWitness_mem T A.label F hF q x i hg.1 hg.2
have hgate := (gateWitness_spec T A.label F q x i hg.1).2
have htarget := (targetFailures_empty_iff F x _).mp (Finset.mem_filter.mp hw).2.1
(A.label i (w i))
rw [childJointChanges_card]
exact jointSensitivityAt_le_jointSensitivity F true _ _ _ (gateIndex_lt_last q) hgate htarget)
_ ≤ GC.card * jointSensitivity F true := Nat.mul_le_mul_right _ (Finset.card_le_card Finset.sdiff_subset)
_ ≤ 3 * jointSensitivity F true := Nat.mul_le_mul_right _ (gateCandidates_card T A.label F hF q x)
have hW : W.card ≤ sideSensitivity F true := by
calc
W.card ≤ SC.card * sideSensitivity F true :=
card_biUnion_le_mul SC _ _ (fun i hi => by
rw [childChanges_card]
exact sensitivityAt_le_sideSensitivity F true _ _
(gateWitness_spec T A.label F q x i (Finset.mem_filter.mp hi).1).2)
_ ≤ 1 * sideSensitivity F true := Nat.mul_le_mul_right _ (gateSinks_card T A.label F q x)
_ = _ := Nat.one_mul _
calc
sensitivityAt (recursiveFamily T A.label F q) x ≤ (U ∪ (V ∪ W)).card := Finset.card_le_card hsub
_ ≤ U.card + (V ∪ W).card := Finset.card_union_le _ _
_ ≤ U.card + (V.card + W.card) := Nat.add_le_add_left (Finset.card_union_le _ _) _
_ ≤ 16 * sideSensitivity F false + (3 * jointSensitivity F true + sideSensitivity F true) :=
Nat.add_le_add hU (Nat.add_le_add hV hW)
_ = _ := by omega
theorem recursive_side_zero {k r h : ℕ} {I : Type} [Fintype I]
(T : Tournament k) (A : GoodLabeling T r)
(F : Fin (h + 1) → (I → Bool) → Bool) (hF : NestedFamily F) (hr : 0 < r) :
sideSensitivity (recursiveFamily T A.label F) false ≤
16 * sideSensitivity F false + sideSensitivity F true + 3 * jointSensitivity F true := by
apply sideSensitivity_le
exact fun q x hx => recursive_sensitivity_zero_at T A F hF hr q x hx
end Paper320
end
end OAI

Xet Storage Details

Size:
6.26 kB
·
Xet hash:
0368497bed6e119a88e80d8d7ec36beba64d3391eab333fe2509485e39fdf882

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.