cfahlgren1/math / lean /OAI /Combinatorics /Sensitivity /RecursiveJointZero.lean
cfahlgren1's picture
download
raw
4.83 kB
import OAI.Combinatorics.Sensitivity.RecursiveCandidates
namespace OAI
/-! The joint zero recurrence uses the fixed weaker-threshold failure lists. -/
noncomputable section
open scoped Classical
namespace Paper320
theorem recursive_joint_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 q' : Fin h) (hqq : q < q') (x : ((Fin k × Fin r) × I) → Bool)
(hx : recursiveFamily T A.label F q x = false)
(hx' : recursiveFamily T A.label F q' x = false) :
jointSensitivityAt (recursiveFamily T A.label F q) (recursiveFamily T A.label F q') x ≤
16 * sideSensitivity F false + 3 * jointSensitivity F true := by
let TC := targetCandidates T A.label F q x
let GC := gateCandidates T A.label F q x
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 := GC.biUnion fun i => childJointChanges F (gateIndex q') (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 ∧
recursiveFamily T A.label F q' (flip x {p}) ≠ recursiveFamily T A.label F q' x) ⊆ U ∪ V := 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.2 (hy.trans hx'.symm))
· rfl
obtain ⟨i, hi'⟩ := (recursiveFamily_eq_true_iff T A.label F q' _).mp hon'
have hi := rowClause_nested T A.label F hF hqq.le _ i hi'
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
have hgon' := hF.accepts_of_le (gateIndex_strictAnti hqq).le hgon
have hgoff' := ((rowClause_eq_true_iff T A.label F q' _ i).mp hi').2 j hij
rw [recursiveChild_flip_same] at hgoff'
apply Finset.mem_union_right
apply Finset.mem_biUnion.mpr
refine ⟨i, hig, ?_⟩
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 (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, hgon', hgoff']
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 ≤ GC.card * jointSensitivity F true :=
card_biUnion_le_mul GC _ _ (fun i hi => by
rw [childJointChanges_card]
have hg := (gateWitness_spec T A.label F q x i hi).2
exact jointSensitivityAt_le_jointSensitivity F true _ _ _
(gateIndex_strictAnti hqq) (hF.accepts_of_le (gateIndex_strictAnti hqq).le hg) hg)
_ ≤ 3 * jointSensitivity F true := Nat.mul_le_mul_right _ (gateCandidates_card T A.label F hF q x)
calc
jointSensitivityAt (recursiveFamily T A.label F q) (recursiveFamily T A.label F q') x ≤
(U ∪ V).card := Finset.card_le_card hsub
_ ≤ U.card + V.card := Finset.card_union_le _ _
_ ≤ _ := Nat.add_le_add hU hV
theorem recursive_joint_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) :
jointSensitivity (recursiveFamily T A.label F) false ≤
16 * sideSensitivity F false + 3 * jointSensitivity F true := by
apply jointSensitivity_le
exact fun q q' x hqq hx hx' => recursive_joint_zero_at T A F hF hr q q' hqq x hx hx'
end Paper320
end
end OAI

Xet Storage Details

Size:
4.83 kB
·
Xet hash:
78c98d6ca78eab27e0d1a5ae629f4fe15ad0f9605d6e94c76762ffe8ac08440b

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