AFTD Auto-Formalizing Theoretical Domains

ssss_dual_bound_arithmetic

theoremverified

Let k, kp, ε, A', Y', LP be real numbers with 0 < k, 1/k < ε, k ≤ kp, (1 + ε)k - 1 ≤ kp, and 0 ≤ Y'. If k A' + 2 Y' ≤ LP and 0 ≤ kp A' + 2 Y', then 2 Y' ≤ ((1 + ε)k / (ε k - 1)) * LP.

Statement

theorem ssss_dual_bound_arithmetic
    (k kp ε A' Y' LP : ℝ)
    (hk : 0 < k)
    (hε : 1 / k < ε)
    (hkp_ge_k : k ≤ kp)
    (hkp_bound : (1 + ε) * k - 1 ≤ kp)
    (hY : 0 ≤ Y')
    (hdual_k : k * A' + 2 * Y' ≤ LP)
    (hdual_kp : 0 ≤ kp * A' + 2 * Y') :
    2 * Y' ≤ ((1 + ε) * k / (ε * k - 1)) * LP
Source
arXiv:2611.26188, Lemma 3.5
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

Read back from the Lean

For all real numbers $k$, $kp$, $\varepsilon$, $A'$, $Y'$, and $LP$, if: 1. $0 < k$, 2. $1 / k < \varepsilon$, 3. $k \le kp$, 4. $(1 + \varepsilon) \cdot k - 1 \le kp$, 5. $0 \le Y'$, 6. $k \cdot A' + 2 \cdot Y' \le LP$, and 7. $0 \le kp \cdot A' + 2 \cdot Y'$, then $2 \cdot Y' \le \left(\frac{(1 + \varepsilon) \cdot k}{\varepsilon \cdot k - 1}\right) \cdot LP$.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The proof eliminates the dual variable A' by taking a positive linear combination of the two given dual constraints: scaling the upper bound k A' + 2 Y' ≤ LP by kp and the lower bound 0 ≤ kp A' + 2 Y' by k. Adding the two inequalities cancels A' and yields the intermediate bound 2 Y' ≤ (kp / (kp - k)) LP. Finally, using the lower bound kp ≥ (1 + ε)k - 1, algebraic cross-multiplication demonstrates that kp / (kp - k) ≤ (1 + ε)k / (ε k - 1), which completes the proof since LP ≥ 0.

  1. ε * k - 1 > 0

    From the assumptions k > 0 and 1 / k < ε, clearing the denominator via `div_lt_iff₀` yields 1 < ε * k, which rearranges to ε * k - 1 > 0 by linear arithmetic.

    lines 12–15

    uses div_lt_iff₀

      have _ := hkp_ge_k
      have hε_pos : 0 < ε * k - 1 := by
        have : 1 < ε * k := (div_lt_iff₀ hk).mp hε
        linarith
  2. kp - k > 0 and kp > 0

    Algebraically expanding (1 + ε) * k - 1 as k + (ε * k - 1) shows that kp ≥ k + (ε * k - 1) > k because ε * k - 1 > 0. This gives kp - k > 0, which combined with k > 0 also ensures kp > 0.

    lines 16–19

      have hkp_diff : 0 < kp - k := by
        have : (1 + ε) * k - 1 = k + (ε * k - 1) := by ring
        linarith
      have hkp_pos : 0 < kp := by linarith
  3. (kp - k) * (2 * Y') ≤ kp * LP

    The dual constraint k * A' + 2 * Y' ≤ LP is rewritten as LP - (k * A' + 2 * Y') ≥ 0. Multiplying this by kp ≥ 0 and the second dual constraint 0 ≤ kp * A' + 2 * Y' by k ≥ 0 gives two nonnegative products via `mul_nonneg` and `le_of_lt`. Their sum expands to kp * LP - (kp - k) * (2 * Y') with the A' terms canceling, which implies (kp - k) * (2 * Y') ≤ kp * LP.

    lines 20–24

    uses mul_nonneg, le_of_lt

      have h1 : 0 ≤ LP - (k * A' + 2 * Y') := by linarith
      have h2 : 0 ≤ kp * (LP - (k * A' + 2 * Y')) := mul_nonneg (le_of_lt hkp_pos) h1
      have h3 : 0 ≤ k * (kp * A' + 2 * Y') := mul_nonneg (le_of_lt hk) hdual_kp
      have h4 : kp * (LP - (k * A' + 2 * Y')) + k * (kp * A' + 2 * Y') = kp * LP - (kp - k) * (2 * Y') := by ring
      have h_comb : (kp - k) * (2 * Y') ≤ kp * LP := by linarith
  4. LP ≥ 0

    Since kp - k > 0 and Y' ≥ 0, the product (kp - k) * (2 * Y') is nonnegative by `mul_nonneg` and `le_of_lt`, which forces kp * LP ≥ 0. Since kp > 0, `nonneg_of_mul_nonneg_right` implies LP ≥ 0.

    lines 25–28

    uses mul_nonneg, le_of_lt, nonneg_of_mul_nonneg_right

      have hLP : 0 ≤ LP := by
        have hy : 0 ≤ (kp - k) * (2 * Y') := mul_nonneg (le_of_lt hkp_diff) (by linarith)
        have : 0 ≤ kp * LP := by linarith
        exact nonneg_of_mul_nonneg_right this hkp_pos
  5. 2 * Y' ≤ (kp / (kp - k)) * LP

    Dividing the inequality (kp - k) * (2 * Y') ≤ kp * LP by the positive difference kp - k > 0 via `le_div_iff₀` gives 2 * Y' ≤ (kp * LP) / (kp - k). Factoring the right-hand side as (kp / (kp - k)) * LP gives the intermediate upper bound.

    lines 29–33

    uses le_div_iff₀

      have h_step1 : 2 * Y' ≤ (kp / (kp - k)) * LP := by
        have h_comb' : 2 * Y' * (kp - k) ≤ kp * LP := by linarith
        have h_div : 2 * Y' ≤ (kp * LP) / (kp - k) := (le_div_iff₀ hkp_diff).mpr h_comb'
        have : (kp * LP) / (kp - k) = (kp / (kp - k)) * LP := by ring
        linarith
  6. kp / (kp - k) ≤ ((1 + ε) * k) / (ε * k - 1)

    Since both denominators kp - k and ε * k - 1 are strictly positive, `div_le_div_iff₀` reduces the fraction comparison to the cross-multiplication kp * (ε * k - 1) ≤ (1 + ε) * k * (kp - k). Algebraic identity shows the difference between the two sides is kp * (k + 1) - (1 + ε) * k^2. Multiplying the lower bound (1 + ε) * k - 1 ≤ kp by k + 1 ≥ 0 via `mul_le_mul_of_nonneg_right` and combining it with the identity ((1 + ε) * k - 1) * (k + 1) - (1 + ε) * k^2 = ε * k - 1 confirms the cross-multiplied inequality.

    lines 34–41

    uses mul_le_mul_of_nonneg_right, div_le_div_iff₀

      have h_frac : kp / (kp - k) ≤ (1 + ε) * k / (ε * k - 1) := by
        have hk1 : 0 ≤ k + 1 := by linarith
        have hnum1 : kp * (k + 1) - (1 + ε) * k^2 = (1 + ε) * k * (kp - k) - kp * (ε * k - 1) := by ring
        have hnum2 : ((1 + ε) * k - 1) * (k + 1) - (1 + ε) * k^2 = ε * k - 1 := by ring
        have hnum3 : ((1 + ε) * k - 1) * (k + 1) ≤ kp * (k + 1) := mul_le_mul_of_nonneg_right hkp_bound hk1
        have h_cross : kp * (ε * k - 1) ≤ (1 + ε) * k * (kp - k) := by linarith
        rw [div_le_div_iff₀ hkp_diff hε_pos]
        exact h_cross
  7. 2 * Y' ≤ ((1 + ε) * k / (ε * k - 1)) * LP

    Multiplying the fraction inequality by the nonnegative factor LP ≥ 0 via `mul_le_mul_of_nonneg_right` preserves the inequality. Combining this with the intermediate bound 2 * Y' ≤ (kp / (kp - k)) * LP by transitivity (`le_trans`) establishes the theorem.

    lines 42–44

    uses mul_le_mul_of_nonneg_right, le_trans

      have h_step2 : (kp / (kp - k)) * LP ≤ ((1 + ε) * k / (ε * k - 1)) * LP :=
        mul_le_mul_of_nonneg_right h_frac hLP
      exact le_trans h_step1 h_step2
div_lt_iff₀
For c > 0, b / c < a if and only if b < a * c.
mul_nonneg
If a ≥ 0 and b ≥ 0, then a * b ≥ 0.
le_of_lt
If a < b, then a ≤ b.
nonneg_of_mul_nonneg_right
If a * b ≥ 0 and a > 0, then b ≥ 0.
le_div_iff₀
For c > 0, a ≤ b / c if and only if a * c ≤ b.
mul_le_mul_of_nonneg_right
If b ≤ c and a ≥ 0, then b * a ≤ c * a.
div_le_div_iff₀
For positive denominators b > 0 and d > 0, a / b ≤ c / d if and only if a * d ≤ c * b.
le_trans
If a ≤ b and b ≤ c, then a ≤ c.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Real arithmetic bound underlying the dual variable sum bound in multi-path TSP LP augmentation. -/theorem ssss_dual_bound_arithmetic    (k kp ε A' Y' LP : ℝ)    (hk : 0 < k)    (hε : 1 / k < ε)    (hkp_ge_k : k ≤ kp)    (hkp_bound : (1 + ε) * k - 1 ≤ kp)    (hY : 0 ≤ Y')    (hdual_k : k * A' + 2 * Y' ≤ LP)    (hdual_kp : 0 ≤ kp * A' + 2 * Y') :    2 * Y' ≤ ((1 + ε) * k / (ε * k - 1)) * LP := by  have _ := hkp_ge_k  have hε_pos : 0 < ε * k - 1 := by    have : 1 < ε * k := (div_lt_iff₀ hk).mp hε    linarith  have hkp_diff : 0 < kp - k := by    have : (1 + ε) * k - 1 = k + (ε * k - 1) := by ring    linarith  have hkp_pos : 0 < kp := by linarith  have h1 : 0 ≤ LP - (k * A' + 2 * Y') := by linarith  have h2 : 0 ≤ kp * (LP - (k * A' + 2 * Y')) := mul_nonneg (le_of_lt hkp_pos) h1  have h3 : 0 ≤ k * (kp * A' + 2 * Y') := mul_nonneg (le_of_lt hk) hdual_kp  have h4 : kp * (LP - (k * A' + 2 * Y')) + k * (kp * A' + 2 * Y') = kp * LP - (kp - k) * (2 * Y') := by ring  have h_comb : (kp - k) * (2 * Y') ≤ kp * LP := by linarith  have hLP : 0 ≤ LP := by    have hy : 0 ≤ (kp - k) * (2 * Y') := mul_nonneg (le_of_lt hkp_diff) (by linarith)    have : 0 ≤ kp * LP := by linarith    exact nonneg_of_mul_nonneg_right this hkp_pos  have h_step1 : 2 * Y' ≤ (kp / (kp - k)) * LP := by    have h_comb' : 2 * Y' * (kp - k) ≤ kp * LP := by linarith    have h_div : 2 * Y' ≤ (kp * LP) / (kp - k) := (le_div_iff₀ hkp_diff).mpr h_comb'    have : (kp * LP) / (kp - k) = (kp / (kp - k)) * LP := by ring    linarith  have h_frac : kp / (kp - k) ≤ (1 + ε) * k / (ε * k - 1) := by    have hk1 : 0 ≤ k + 1 := by linarith    have hnum1 : kp * (k + 1) - (1 + ε) * k^2 = (1 + ε) * k * (kp - k) - kp * (ε * k - 1) := by ring    have hnum2 : ((1 + ε) * k - 1) * (k + 1) - (1 + ε) * k^2 = ε * k - 1 := by ring    have hnum3 : ((1 + ε) * k - 1) * (k + 1) ≤ kp * (k + 1) := mul_le_mul_of_nonneg_right hkp_bound hk1    have h_cross : kp * (ε * k - 1) ≤ (1 + ε) * k * (kp - k) := by linarith    rw [div_le_div_iff₀ hkp_diff hε_pos]    exact h_cross  have h_step2 : (kp / (kp - k)) * LP ≤ ((1 + ε) * k / (ε * k - 1)) * LP :=    mul_le_mul_of_nonneg_right h_frac hLP  exact le_trans h_step1 h_step2
See it in the graphDiscuss this resultChallenge it