E mul R div R sub 1 lt e add 1 real
e_mul_R_div_R_sub_1_lt_e_add_1_real
Project documentation
This lemma proves the final algebraic step in the DG25 Theorem 3.1 proof. It shows that if R > e + 1, then e * (R / (R - 1)) < e + 1. The intuition is that the fraction R / (R - 1) is always greater than 1, but as R gets larger, it gets closer to 1. The hypothesis R > e + 1 provides a strong enough bound to ensure the product e * (fraction) do...
Exact Lean statement
lemma e_mul_R_div_R_sub_1_lt_e_add_1_real {e R : ℕ} (hR_gt_e_add_1 : e + 1 < R) :
((e : ℝ) * (R : ℝ)) / ((R : ℝ) - 1) < (e : ℝ) + 1Formal artifact
Lean source
lemma e_mul_R_div_R_sub_1_lt_e_add_1_real {e R : ℕ} (hR_gt_e_add_1 : e + 1 < R) : ((e : ℝ) * (R : ℝ)) / ((R : ℝ) - 1) < (e : ℝ) + 1 := by have hR_gt_one : R > 1 := by omega have hR_Real_gt_one : (R : ℝ) > 1 := by exact Nat.cast_gt_Real_one R hR_gt_one have h_R_gt_e_add_1_real : ((e + 1) : ℝ) < (R : ℝ) := by rw [←Nat.cast_add_one (n := e)] apply Nat.cast_lt (α := ℝ) (m := e + 1) (n := R).mpr hR_gt_e_add_1 have h_denom_pos : (R : ℝ) - 1 > 0 := by -- `linarith` solves this from the hypothesis linarith [hR_Real_gt_one] -- 3. Use `div_lt_iff` to multiply the denominator across -- This is the `ℝ` lemma for `a / b < c ↔ a < c * b` (since `b > 0`) rw [div_lt_iff₀ (hc := h_denom_pos)] -- Goal: ⊢ ↑e * ↑R < (↑e + 1) * (↑R - 1) -- 4. THIS IS THE KEY STEP -- Don't use `rw`. `linarith` will: -- a) Expand the RHS to: `e*R - e + R - 1` -- b) See the goal: `e*R < e*R - e + R - 1` -- c) Cancel `e*R` from both sides: `0 < R - e - 1` -- d) Rearrange: `e + 1 < R` -- e) See this is exactly your hypothesis `h_R_gt_e_add_1_real` linarith [h_R_gt_e_add_1_real]- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/CodingTheory/ProximityGap/DG25/MainResults.lean:846-867
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Affine gaps lifted to interleaved codes
affine_gaps_lifted_to_interleaved_codes
Project documentation
This lemma proves the final algebraic step in the DG25 Theorem 3.1 proof. It shows that if R > e + 1, then e * (R / (R - 1)) < e + 1. The intuition is that the fraction R / (R - 1) is always greater than 1, but as R gets larger, it gets closer to 1. The hypothesis R > e + 1 provides a strong enough bound to ensure the product e * (fraction) do...
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose coeff
ArkLib.Lattices.Ajtai.gadgetDecompose_coeff
Plain-language statement
The k-th coefficient (k < deg φ) of a gadget-decomposition block is exactly the corresponding digit of the corresponding input coefficient.
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose lawful
ArkLib.Lattices.Ajtai.gadgetDecompose_lawful
Plain-language statement
The base-b gadget decomposition is a lawful gadget decomposition.
Source project: ArkLib
Person-level attribution pending.