Reference · Finite sums
rainbow.math.sums.two-terms
One term, and two DISTINCT terms, are bounded by a nonnegative expr-sum-value. Reuses the existing sum and order. F is intentionally not named q: s/induct binds q.
signed/expr-sum-value-term-bound
signed/expr-sum-value-term-bound : (F : ℕ → ℚ) (n : ℕ) (hF : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx n), 0 ≤ F idx) (i : ℕ) (hi : nat/strict-below i n) → F i ≤ signed/expr-sum-value F n
0 = signed/zeroℕ = data/Natℚ = signed/SignedRational≤ = signed/at-most
signed/expr-sum-value-two-distinct-bound
signed/expr-sum-value-two-distinct-bound : (F : ℕ → ℚ) (n : ℕ) (hF : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx n), 0 ≤ F idx) (i : ℕ) (hi : nat/strict-below i n) (j : ℕ) (hj : nat/strict-below j n) (hne : proposition/negation (i = j)) → F i + F j ≤ signed/expr-sum-value F n
+ = signed/add0 = signed/zero= = equality/Eqℕ = data/Natℚ = signed/SignedRational≤ = signed/at-most