cfahlgren1/math / lean /OAI /Combinatorics /ContingencyTables /Counting /CompanionObservableApplication.lean
cfahlgren1's picture
download
raw
3.68 kB
import OAI.Combinatorics.ContingencyTables.Counting.CompanionFactorialApplication
import OAI.Combinatorics.ContingencyTables.Transport.PairedLabels
import OAI.Combinatorics.ContingencyTables.Transport.ComplementChain
namespace OAI
/-!
# Observable variance for the actual companion completion-count lifts
The original chain uses the literal factorial lift of h_j. Its proved
omission and dual addition properties, with q=W², supply the paper's
transversal and observable bounds on the actual disjoint covering slots.
-/
namespace ContingencyTables.CompanionObservableApplication
open scoped BigOperators Classical
open CommonBasesFPRAS CompanionFactorialApplication TwoLiftStates
open ComplementChain ObservableBounds
variable {I J : Type*} [Fintype I] [Fintype J]
theorem transversal_variance (A : Instance I J) (alpha : ℝ) (ha : 0≤alpha)
(H : Set (Labels A×Bool) → ℝ)
(w : ((Labels A×Bool)×(Labels A×Bool)) → ((Labels A×Bool)×(Labels A×Bool)) → ℝ)
(hw : ∀ p r, 0<w p r)
(hgood : ∀ p∈pairs, ∀ r∈pairs, p≠r →
slotTotal pairs (f A alpha) ∅/(4*slotDefect pairs (f A alpha) ∅ p r)≤w p r) :
slotVariance pairs (f A alpha) H ∅≤
(Fintype.card (Labels A):ℝ)*(1+8*(Fintype.card (Labels A):ℝ)*(A.W:ℝ)^4)*
restrictedEnergy (chainEdges pairs) (chainConductance pairs w (f A alpha)) H ∅ ∅ := by
have hf := first_properties A alpha ha
have hg := second_properties A alpha ha
have ht := omission_twoLift_transversal_variance pairs (f A alpha) (g A alpha) H w
((A.W:ℝ)^2) (sq_nonneg _)
(by simpa only [PairedLabels.length] using hf.1)
(by simpa only [PairedLabels.length] using hg.1)
(by simpa only [PairedLabels.length] using hf.2)
(by simpa only [PairedLabels.length] using hg.2)
PairedLabels.fresh PairedLabels.cover hw hgood
(by
intro S hS
exact (plain_lifts_agree (labelCell A) (h A alpha) S hS).symm)
(by
intro S hS
apply firstLift_le_square_secondLift (labelCell A) (h A alpha) S hS A.W
(by have hW := A.hW; omega)
· intro s
rw [label_width]
exact A.hsmall _ _ s.property
· exact (h_positive A alpha _).le)
simpa only [PairedLabels.length,← pow_mul] using ht
theorem observable_poincare (A : Instance I J) (alpha : ℝ) (ha : 0≤alpha)
(hp : 0<Fintype.card (Labels A)) (H : Set (Labels A×Bool) → ℝ)
(w : ((Labels A×Bool)×(Labels A×Bool)) → ((Labels A×Bool)×(Labels A×Bool)) → ℝ)
(hw : ∀ p r, 0<w p r)
(hlower : ∀ p∈pairs, ∀ r∈pairs, p≠r →
slotTotal pairs (f A alpha) ∅/(4*slotDefect pairs (f A alpha) ∅ p r)≤w p r)
(hupper : ∀ p∈pairs, ∀ r∈pairs, p≠r →
w p r≤4*slotTotal pairs (f A alpha) ∅/slotDefect pairs (f A alpha) ∅ p r) :
chainVariance pairs w (f A alpha) (observableProjection pairs (f A alpha) H)≤
observableConstant (Fintype.card (Labels A)) ((A.W:ℝ)^2)*
chainDirichlet pairs w (f A alpha) H := by
have hf := first_properties A alpha ha
have hq : (1:ℝ)≤(A.W:ℝ)^2 := by
have hW : (2:ℝ)≤A.W := by exact_mod_cast A.hW
nlinarith
have hne : (pairs : List ((Labels A×Bool)×(Labels A×Bool)))≠[] := by
apply List.ne_nil_of_length_pos
simpa only [PairedLabels.length] using hp
have ht := omission_observable_poincare pairs PairedLabels.fresh hne PairedLabels.cover w hw
(f A alpha) H (by simpa only [PairedLabels.length] using hf.1)
(by simpa only [PairedLabels.length] using hf.2) ((A.W:ℝ)^2) hq hlower hupper
simpa only [PairedLabels.length] using ht
end ContingencyTables.CompanionObservableApplication
end OAI

Xet Storage Details

Size:
3.68 kB
·
Xet hash:
c8114d8763d915ed3994dbc279028e97311c3335746a4b1c93988e47eb022cee

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