Refined sample
Lax457868.RefinedSample · concepts/Lax457868/RefinedSample.lean · lax-457868
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A refined sample of a set system on a finite ground set is a subset of the ground set of a prescribed maximum size such that any two members of the system with the same trace on the sample differ on at most a prescribed number of ground-set elements.
Concept map
Lean source view on GitHub
| 1 | import Lax195003.WelzlOrders |
| 2 | import Mathlib.Data.Set.Card |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Refined sample |
| 7 | type: definition |
| 8 | --- |
| 9 | A refined sample of a set system on a finite ground set is a subset of the |
| 10 | ground set of a prescribed maximum size such that any two members of the |
| 11 | system with the same trace on the sample differ on at most a prescribed |
| 12 | number of ground-set elements. |
| 13 | |
| 14 | # Formalization notes |
| 15 | |
| 16 | The size and disagreement thresholds are parameters. This separates the |
| 17 | mathematical output contract from the randomized procedure that produces a |
| 18 | sample; the procedure and its probability analysis remain in the proof |
| 19 | package. |
| 20 | -/ |
| 21 | |
| 22 | namespace Lax457868.RefinedSample |
| 23 | |
| 24 | open Lax195003.WelzlOrders |
| 25 | |
| 26 | /-- `W` is a refined sample of `𝓕` inside `A`, with size threshold `m` and |
| 27 | disagreement threshold `k`. -/ |
| 28 | def IsRefinedSample {α : Type*} (𝓕 : SetSystem α) (A W : Set α) |
| 29 | (m k : ℕ) : Prop := |
| 30 | A.Finite ∧ |
| 31 | (∀ X ∈ 𝓕, X ⊆ A) ∧ |
| 32 | W ⊆ A ∧ |
| 33 | W.ncard ≤ m ∧ |
| 34 | ∀ X ∈ 𝓕, ∀ Y ∈ 𝓕, X ∩ W = Y ∩ W → |
| 35 | ((X \ Y) ∪ (Y \ X)).ncard ≤ k |
| 36 | |
| 37 | end Lax457868.RefinedSample |
| 38 |
Formalization notes
The size and disagreement thresholds are parameters. This separates the mathematical output contract from the randomized procedure that produces a sample; the procedure and its probability analysis remain in the proof package.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments