Download data/lean/OAI/Computability/VertexCover/Reduction/DecodingUpperThreeHalves.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.92 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/VertexCover/Reduction/DecodingUpperThreeHalves.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Computability/VertexCover/Reduction/DecodingUpperThreeHalves.lean
-
curl -L -o DecodingUpperThreeHalves.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/VertexCover/Reduction/DecodingUpperThreeHalves.lean
2.92 kB
| import Mathlib | |
| import OAI.Computability.VertexCover.Reduction.HighVectorsSeparated | |
| import OAI.Computability.VertexCover.Reduction.GridBudget | |
| namespace OAI | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| namespace VertexCover.Parameters | |
| theorem pair_budget (m : β) (hm : 4 β€ m) : | |
| (((h m).choose 2 : β) : β)*(ell m : β)^2*Ο m = ((h m : β)-1)/(2*(h m : β)) := by | |
| have hpos := positive m (by omega : 0 < m) | |
| have hh : (h m : β) β 0 := by exact_mod_cast (ne_of_gt hpos.2.2.2.1) | |
| have hl : (ell m : β) β 0 := by exact_mod_cast (ne_of_gt hpos.2.2.1) | |
| rw [Nat.cast_choose_two, Ο_eq] | |
| field_simp | |
| theorem pair_budget_lt (m : β) (hm : 4 β€ m) : | |
| (((h m).choose 2 : β) : β)*(ell m : β)^2*Ο m < (1:β)/2 := by | |
| rw [pair_budget m hm] | |
| have hh : (0:β) < h m := by exact_mod_cast (lt_of_lt_of_le (by decide : 0<2) (dimensions m hm).2.1) | |
| apply (div_lt_iffβ (by positivity : (0:β) < 2*(h m : β))).mpr | |
| linarith | |
| theorem Ο_between (m : β) (hm : 4 β€ m) : 0 < Ο m β§ Ο m < 1 := by | |
| refine β¨(positive m (by omega)).2.2.2.2.2, ?_β© | |
| have hm1 : (1:β) β€ m := by exact_mod_cast (show 1 β€ m by omega) | |
| have hp : (1:β) β€ (m:β)^12 := one_le_powβ hm1 | |
| unfold Ο | |
| apply (div_lt_one (by positivity)).mpr | |
| norm_num only [Nat.reducePow] | |
| nlinarith | |
| theorem sqrt_d_gt (m : β) (hm : 4 β€ m) : 4*(m:β) < Real.sqrt (d m) := by | |
| rw [sqrt_d] | |
| have hm1 : (1:β) β€ m := by exact_mod_cast (show 1 β€ m by omega) | |
| have hp : (m:β)^1 β€ (m:β)^5 := pow_le_pow_rightβ hm1 (by decide) | |
| simp only [pow_one] at hp | |
| norm_num only [Nat.reducePow] | |
| nlinarith | |
| theorem gap_ratio (m : β) (hm : 0 < m) : | |
| (1-1/(m:β))/(1/2+1/(m:β)) = 2-6/((m:β)+2) := by | |
| have hp : (m:β) β 0 := by positivity | |
| have hm2 : (m:β)+2 β 0 := by positivity | |
| have hh : (1:β)/2+1/(m:β) β 0 := by positivity | |
| field_simp | |
| ring | |
| end VertexCover.Parameters | |
| namespace VertexCover.LabelCover | |
| theorem decoding_upper_lt_three_halves (Ξ¦ : LabelCover) (m : β) (hm : 4 β€ m) | |
| (hval : Ξ¦.value β€ Parameters.Ο m) (L : Ξ¦.PrivateLists (Parameters.d m)) | |
| (hlen : β i, (L i).length β€ Parameters.ell m) | |
| (J : Finset (Fin (Parameters.d m))) (hJ : J.card = Parameters.h m) | |
| (frozen : Ξ¦.Seeds (Parameters.d m)) : | |
| finiteMean (fun hidden : Ξ¦.HiddenSeeds J => | |
| (Ξ¦.listHitMaximum L (Ξ¦.spliceSeeds J frozen hidden) J : β)) < 3/2 := by | |
| have hu := Ξ¦.decoding_upper_bound hval L hlen J frozen | |
| rw [hJ] at hu | |
| have hp := Parameters.pair_budget_lt m hm | |
| linarith | |
| end VertexCover.LabelCover | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end OAI | |