Download data/lean/OAI/Combinatorics/IndependentSets/Reduction/IntegerEdgeTest.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/IndependentSets/Reduction/IntegerEdgeTest.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Combinatorics/IndependentSets/Reduction/IntegerEdgeTest.lean
-
curl -L -o IntegerEdgeTest.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/IndependentSets/Reduction/IntegerEdgeTest.lean
1.05 kB
| import Mathlib | |
| namespace OAI | |
| namespace LargeIndependentSets.ShortestPaths | |
| open scoped ENNReal | |
| lemma integer_edge_test {D : β} [NeZero D] (c : ββ) : | |
| (c:ββ₯0β)/(D:ββ₯0β) β€ ENNReal.ofReal (1/8) β 8*c β€ (D:ββ) := by | |
| induction c using ENat.recTopCoe with | |
| | top => simp [ENNReal.top_div_of_ne_top (ENNReal.natCast_ne_top D)] | |
| | coe c => | |
| have hd : 0 < (D:β) := by exact_mod_cast (NeZero.pos D) | |
| have hD : (D:ββ₯0β) β 0 := by exact_mod_cast (NeZero.ne D) | |
| rw [β ENNReal.toReal_le_toReal (ENNReal.div_ne_top (by simp) hD) (by simp)] | |
| simp only [ENat.toENNReal_coe,ENNReal.toReal_div,ENNReal.toReal_natCast, | |
| ENNReal.toReal_ofReal (by norm_num : (0:β) β€ 1/8)] | |
| rw [div_le_iffβ hd] | |
| have hr : (c:β) β€ 1/8*(D:β) β 8*(c:β) β€ (D:β) := by constructor <;> intro h <;> linarith | |
| rw [hr] | |
| have he : (8:ββ)*(c:ββ) = ((8*c:β):ββ) := by norm_cast | |
| rw [he,ENat.natCast_le_natCast] | |
| exact_mod_cast Iff.rfl | |
| end LargeIndependentSets.ShortestPaths | |
| end OAI | |