theoremsuccess (A : Instance (Fin m) (Fin n)) (CKj : ℕ)
(hC : 0 < C) (hj : j ≤ rationalHeight AC) (hK : 1≤K)
(hW : 100*A.d*K≤A.W) (hB : (K:ℝ)=CompanionOracleDensity.binWidth AC)
(epsilon delta : ℚ) (he0 : 0 < epsilon) (he1 : epsilon < 1) (hd : 0 < delta)
(z : ViewA→ℕ) (hz : BalancedBox.InBox (bounds A) z)
(v : Grid (I:=Fin (RootedCatalogGrid.freeCount A)) K) (degree depth : ListBool)
(hdegree : degree.length=PowerOfTwoApproximation.rootDegree
(roundingTolerance (innerTolerance (epsilon/2) j)))
(hdepth : depth.length=PowerOfTwoApproximation.depth
(roundingTolerance (innerTolerance (epsilon/2) j)))
(hPL : PublishedInputs.FiniteBoxPrekopaLeindler (dimension A))
(hCheeger : PublishedInputs.FiniteCheeger (Grid (I:=Fin (dimension A)) K)) :
1-(delta:ℝ) ≤ uniformAverage
(funbits : Fin (repetitionCount delta*wordWidth (context ACK j epsilon z v)) →Bool=>if (1-(epsilon:ℝ))*RootedCountIdentification.h A (RootedCompletion.rowColumn A.T)
((j:ℝ)*C/height AC) z ≤ (value ACKj epsilon delta z v degree depth bits:ℝ) ∧
(value ACKj epsilon delta z v degree depth bits:ℝ) ≤
(1+(epsilon:ℝ))*RootedCountIdentification.h A (RootedCompletion.rowColumn A.T)
((j:ℝ)*C/height AC) z then (1:ℝ) else0) :=by
proof · 9
lines
let event :=funq : ℚ=>if
(1-(epsilon:ℝ))*RootedCountIdentification.h A (RootedCompletion.rowColumn A.T)
((j:ℝ)*C/height AC) z ≤ (q:ℝ) ∧
(q:ℝ) ≤ (1+(epsilon:ℝ))*RootedCountIdentification.h A (RootedCompletion.rowColumn A.T)
((j:ℝ)*C/height AC) z then (1:ℝ) else0have heq := sameLaw ACK j hC hj hK hW hB epsilon delta he0 z hz v degree depth hdegree hdepth event
exact (RootedOracleDensity.medianEstimate_success A (RootedCompletion.rowColumn A.T) C hC z hz
K hK hW hB j hj epsilon delta he0 he1 hd hPL hCheeger
(RootedCatalogGrid.gridEquiv AK v)).trans_eq heq.symm