Download lean/OAI/Probability/MatroidSecretary/Selection/SafeSpecification.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 947 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/MatroidSecretary/Selection/SafeSpecification.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Probability/MatroidSecretary/Selection/SafeSpecification.lean
-
curl -L -o SafeSpecification.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Probability/MatroidSecretary/Selection/SafeSpecification.lean
947 Bytes
| import OAI.Probability.MatroidProphet.Main | |
| namespace OAI | |
| namespace MatroidProphet | |
| open MainAlgorithm | |
| /-- The source safety guarantee, including the literal constants, all listed | |
| groups, global independent comparison set, and the harmless unlisted zero case. -/ | |
| def SafeSampleClaim : Prop := | |
| ∀ (n : ℕ) (M : Matroid (Fin n)) (hE : M.E = Set.univ) | |
| (d : MainMasks n) (s : Fin n → Option ℤ) (i : ℤ) | |
| (Y : Set (Fin n)), M.Indep Y → | |
| exitThreshold / 4 * | |
| ((d.D : Set (Fin n)) ∩ (Y ∩ (trueGroup M d s i : Set (Fin n)))).ncard - | |
| (d.D ∩ trueGroup M d s i).card / densityThreshold ≤ | |
| bitsExpectation (fun _ => thinningRate) Finset.univ (fun C => | |
| bitsExpectation (fun _ => thinningRate) Finset.univ (fun T => | |
| fairParityExpectation (fun p => | |
| (listedSafeStatistic M hE (2 ^ 100) (withMasks d d.D C T) s i Y | |
| (boolParity p) : ℝ)))) | |
| end MatroidProphet | |
| end OAI | |