Download lean/OAI/Dynamics/ConditionalShuffle/PhysicalMix.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.11 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Dynamics/ConditionalShuffle/PhysicalMix.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Dynamics/ConditionalShuffle/PhysicalMix.lean
-
curl -L -o PhysicalMix.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Dynamics/ConditionalShuffle/PhysicalMix.lean
4.11 kB
| import OAI.Dynamics.ConditionalShuffle.InstrumentChunks | |
| namespace OAI | |
| noncomputable section | |
| open Filter Topology | |
| namespace Revealed.Physical | |
| open scoped Classical | |
| open Thorp Thorp.Conditional Thorp.Specht Revealed.Split Revealed.Instrument | |
| lemma eight_block_coset_ratio (d : ℕ) : | |
| 2 * ((Fintype.card (State d) : ℝ) / Fintype.card (State (d+1+2))) < 1 := by | |
| have hm : 1 ≤ 2^d := Nat.one_le_pow d 2 (by omega) | |
| have hf : 2 * (2^d).factorial < (2^(d+1+2)).factorial := by | |
| have h : 2 * (2^d).factorial < (2^d+2).factorial := by | |
| calc | |
| _ < (2^d+2) * (2^d).factorial := Nat.mul_lt_mul_of_pos_right (by omega) (Nat.factorial_pos _) | |
| _ ≤ (2^d+2) * (2^d+1).factorial := Nat.mul_le_mul_left _ (Nat.factorial_le (by omega)) | |
| _ = (2^d+2).factorial := (Nat.factorial_succ _).symm | |
| apply h.trans_le (Nat.factorial_le _) | |
| simp only | |
| norm_num | |
| omega | |
| have hc : (0 : ℝ) < Fintype.card (State (d+1+2)) := by exact_mod_cast Fintype.card_pos | |
| rw | |
| exact_mod_cast (by simpa only | |
| calc | |
| 16 = 2^4 := by norm_num | |
| _ ≤ 2^(d+1+2) := Nat.pow_le_pow_right (by norm_num) (by omega) | |
| let : Nontrivial (Position (d+1+2)) := Fintype.one_lt_card_iff_nontrivial.mp (by omega) | |
| let : Fintype (Outside ι (Position (d+1+2)) (Position (d+2+2))) := inferInstance | |
| let I := instrument (ι:=ι) (α:=Position (d+1+2)) (d+2+2) | |
| have hh := distance_eight_le (block I (400*(d+2+2))) hn | |
| (Block.embedding (Block.eightEquiv d)) (eight_block_coset_ratio d) | |
| (fun e p => block_kernel_dichotomy I | |
| (physical_kernel_dichotomy (d+2+1)) e (400*(d+2+2)) p) | |
| (16*conditionalRate d) (block_discarded_le d) e | |
| rw | |
| have hs := Real.sqrt_le_sqrt (mul_le_mul_of_nonneg_right hp he) | |
| rw | |
| exact add_le_add le_rfl (mul_le_mul_of_nonneg_left hs (by norm_num : (0 : ℝ) ≤ 1/2)) | |
| lemma physical_distance_eventually {ι : ℕ → Type} | |