File size: 3,220 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | import OAI.Combinatorics.BalancedRyser.Probability.DistinctRoleLaw
import OAI.Combinatorics.BalancedRyser.Selection.LineOccupancyConcentration
namespace OAI
noncomputable section
open Filter Topology
open scoped Classical
namespace Balanced.DistinctRole
variable {F : Type*} [Field F] [Fintype F] [DecidableEq F]
theorem map_initial_data :
((offsetLaw F).filter {M | DistinctConstituents M} distinct_support).map
(fun M => (initialDeletedLines M, initiallyRetained M)) =
(offsetLaw F).map (fun M => (initialDeletedLines M, initiallyRetained M)) := by
let f : (Direction F β F) β Finset (Line F) Γ Finset (Point F) :=
fun r => (initialDeletedLines (fun d _ => r d), initiallyRetained (fun d _ => r d))
exact map_role_one_observable f
theorem initial_event_probability (E : Set (Finset (Line F) Γ Finset (Point F))) :
(((offsetLaw F).filter {M | DistinctConstituents M} distinct_support).toOuterMeasure
{M | (initialDeletedLines M, initiallyRetained M) β E}).toReal =
offsetEventProbability (F := F)
{M | (initialDeletedLines M, initiallyRetained M) β E} := by
have h := congrArg (fun p : PMF (Finset (Line F) Γ Finset (Point F)) =>
(p.toOuterMeasure E).toReal) (map_initial_data (F := F))
simp only [PMF.toOuterMeasure_map_apply] at h
convert h using 1 <;> congr 2
theorem initial_failure_probability_eq :
(((offsetLaw F).filter {M | DistinctConstituents M} distinct_support).toOuterMeasure
{M | β l, l β initialDeletedLines M β§
((linePoints l β© initiallyRetained M).card : β) < (Fintype.card F : β) / 5}).toReal =
offsetEventProbability (F := F)
{M | β l, l β initialDeletedLines M β§
((linePoints l β© initiallyRetained M).card : β) < (Fintype.card F : β) / 5} := by
exact initial_event_probability
{z | β l, l β z.1 β§ ((linePoints l β© z.2).card : β) < (Fintype.card F : β) / 5}
theorem initial_failure_probability_le
(hgap : (Fintype.card F : β) / 20 β€
(Fintype.card F : β) * (1 - 1 / (Fintype.card F : β)) ^ Fintype.card F -
(Fintype.card F : β) / 5) :
(((offsetLaw F).filter {M | DistinctConstituents M} distinct_support).toOuterMeasure
{M | β l, l β initialDeletedLines M β§
((linePoints l β© initiallyRetained M).card : β) < (Fintype.card F : β) / 5}).toReal β€
(Fintype.card F : β) * ((Fintype.card F : β) + 1) *
(2 * Real.exp (-(Fintype.card F : β) / 3200)) := by
rw [initial_failure_probability_eq]
exact LineOccupancy.initial_failure_probability_le hgap
theorem tendsto_initial_failure (F : β β Type*)
[β n, Field (F n)] [β n, Fintype (F n)] [β n, DecidableEq (F n)]
(hq : Tendsto (fun n => Fintype.card (F n)) atTop atTop) :
Tendsto (fun n =>
(((offsetLaw (F n)).filter {M | DistinctConstituents M} distinct_support).toOuterMeasure
{M | β l, l β initialDeletedLines M β§
((linePoints l β© initiallyRetained M).card : β) < (Fintype.card (F n) : β) / 5}).toReal)
atTop (π 0) := by
simpa only [initial_failure_probability_eq] using LineOccupancy.tendsto_initial_failure F hq
end Balanced.DistinctRole
end
end OAI
|