OAI/Combinatorics/BinaryEdit/SegmentMatchingCount.lean
6 declarations, 0 contain sorry, 0 declared as axioms
- abbrev
OAI.TreeEdit.BinaryLower.RandomMatching.IncreasingPositionsline 8Source documentation
A choice of positions for a subsequence, in their original order.
abbrev IncreasingPositions (a s : ℕ) := {f : Fin s → Fin a // StrictMono f} - def
OAI.TreeEdit.BinaryLower.RandomMatching.increasingPositionsEquivline 10 - theorem
OAI.TreeEdit.BinaryLower.RandomMatching.card_increasingPositionsline 29 - def
OAI.TreeEdit.BinaryLower.RandomMatching.segmentMatchingEventline 36Source documentation
The event that two fixed windows admit a matching of size
s.noncomputable def segmentMatchingEvent {K P a : ℕ} (s : ℕ) (i j : Fin K) (u v : Fin a → Fin P) : Finset (Fin K → Fin P → Bool) := by … - theorem
OAI.TreeEdit.BinaryLower.RandomMatching.card_segmentMatchingEvent_leline 44Source documentation
Finite union estimate for one pair of unequal-label windows.
theorem card_segmentMatchingEvent_le {K P a s : ℕ} (i j : Fin K) (hne : i ≠ j) (u v : Fin a → Fin P) (hv : Function.Injective v) : (segmentMatchingEvent s i j u v).card ≤ (a.choose s) ^ 2 * 2 ^ (K * P - s) := by …Mentions: OAI.TreeEdit.BinaryLower.RandomMatching.segmentMatchingEvent
- theorem
OAI.TreeEdit.BinaryLower.RandomMatching.segmentMatchingEvent_fraction_leline 76Source documentation
The fixed-window union bound in normalized counting-measure form.
theorem segmentMatchingEvent_fraction_le {K P a s : ℕ} (i j : Fin K) (hne : i ≠ j) (u v : Fin a → Fin P) (hv : Function.Injective v) (hs : s ≤ a) : ((segmentMatchingEvent s i j u v).card : ℝ) / (2 : ℝ) ^ (K * P) ≤ ((a.choose s : ℝ) ^ 2) / (2 : ℝ) ^ s := by …Mentions: OAI.TreeEdit.BinaryLower.RandomMatching.segmentMatchingEvent