Reference · Finite sums
rainbow.math.sums.binary-conflicts
Reusable bridges from binary entries and nonpositive nonnegative sums to exclusions.
signed/boolean-cases-nonnegative
signed/boolean-cases-nonnegative : (x : ℚ) (binary : proposition/disjunction (x = 0) (x = 1)) → 0 ≤ x
0 = signed/zero1 = signed/one= = signed/equivalent: equality of rational valuesℚ = signed/SignedRational≤ = signed/at-most
signed/nonnegative-nonpositive-sum-term-zero
signed/nonnegative-nonpositive-sum-term-zero : (F : ℕ → ℚ) (n : ℕ) (nonnegative : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx n), 0 ≤ F idx) (nonpositive : signed/expr-sum-value F n ≤ 0) (i : ℕ) (bound : nat/strict-below i n) → F i = 0
0 = signed/zero= = signed/equivalent: equality of rational valuesℕ = data/Natℚ = signed/SignedRational≤ = signed/at-most
signed/binary-exclusion-zero-product
signed/binary-exclusion-zero-product : (x y z : ℚ) (xb : proposition/disjunction (x = 0) (x = 1)) (yb : proposition/disjunction (y = 0) (y = 1)) (excluded : x = 1 → y = 1 → z = 0) → x · (y · z) = 0
0 = signed/zero1 = signed/one= = signed/equivalent: equality of rational values· = signed/multiplyℚ = signed/SignedRational