Skip to content
Rainbow docs menu

Reference · Lemmas behind operations-research checks

rainbow.math.lemmas.stochastic-dominance

Lemmas behind operations-research checkssrc/rainbow/math/lemmas/stochastic_dominance.clj0 definitions, 3 theorems

General lemmas: stochastic dominance. The mathematical facts the corresponding checks rest on, each checked by the kernel.

Depends onmath.sums.value-appendmath.nat.infinitemath.rational.nnrat.identitiesmath.nat.at-most-cancellationmath.rational.nnrat.order-equivalencemath.rational.nnrat.archimedeanmath.rational.nnrat.add-monotonemath.rational.nnrat.add-cancellationmath.rational.nnrat.additive-reassociationmath.rational.signed.order-transitivitymath.rational.signed.convergencemath.rational.signed.order-respectsmath.rational.signed.limit-uniquenessmath.rational.signed.strict-ordermath.rational.signed.multiplymath.rational.nnrat.multiply-commutemath.rational.nnrat.product-reassociationmath.rational.nnrat.distribute-rightmath.rational.nnrat.ringmath.rational.nnrat.multiply-monotonemath.rational.nnrat.order-differencemath.rational.signed.multiply-ordermath.rational.signed.equivalence-lawsmath.rational.nnrat.minmaxmath.rational.nnrat.farkas-elim-listmath.rational.signed.no-zero-divisorsmath.rational.signed.decide-ordermath.rational.signed.decide-reflexivemath.logic.boolean-andmath.rational.signed.decide-equivalencemath.rational.signed.decide-completenessmath.rational.signed.unit-lawsmath.nat.strict-below-splitmath.nat.strict-below-moremath.checksmath.nat.at-most-addmath.rational.nnrat.harmonic-convergencemath.nat.divmodmath.rational.signed.minmaxmath.rational.signed.minmax-algebramath.rational.signed.clampmath.rational.signed.deviation-rowsmath.rational.signed.absolutemath.rational.signed.absolute-algebramath.rational.signed.distancemath.nat.linear-ordermath.rational.signed.add-associativemath.nat.semiringmath.nat.multiply-zero-splitmath.rational.nnrat.multiply-zero-splitmath.nat.monusmath.rational.nnrat.monusmath.rational.nnrat.add-zero-splitmath.rational.nnrat.add-cancel-zeromath.finite.rational-argmaxmath.rational.nnrat.order-totalmath.rational.nnrat.multiply-difference-zeromath.linear.vector.norm-nonnegativemath.linear.vector.norm-zero-reflectionalgorithms.proofs.counterfactual-distance-separationalgorithms.proofs.counterfactual-distance-lawsmath.finite.matrixmath.linear.matrix.equivalencemath.linear.matrix.transposemath.linear.matrix.transpose-equivalencemath.linear.matrix.multiplymath.linear.matrix.multiply-shapemath.linear.matrix.composablemath.linear.matrix.composable-multiplymath.linear.vector.additive-unitsmath.linear.vector.shape-cancellationmath.linear.vector.shape-mapmath.linear.vector.shape-addmath.linear.vector.dot-additivemath.linear.vector.dot-bilinearmath.linear.vector.dot-negatemath.linear.vector.dot-subtractmath.linear.vector.dot-scalemath.linear.matrix.action-scalemath.rational.signed.multiply-nonzeromath.rational.signed.order-monotonemath.rational.signed.list-summath.rational.signed.multiply-monotonemath.rational.signed.map-sum-algebramath.rational.signed.negate-additivemath.rational.signed.lp-objective-negatemath.nat.pair-index-inversemath.sums.flow-cutmath.sums.nonneg-zeromath.rational.signed.multiply-ring

signed/abel-summation

TheoremFor all inputsNo axiomsSource

signed/abel-summation :
  (c u : ℕ → ℚ) (M : ℕ)
  → signed/expr-sum-value (fun cu => c cu · u cu) (data/succ M) = signed/expr-sum-value (fun at => signed/expr-sum-value c (data/succ at) · (u at + signed/negate (u (data/succ at)))) M + signed/expr-sum-value c (data/succ M) · u M

+ = signed/add= = signed/equivalent: equality of rational values· = signed/multiplyℕ = data/Natℚ = signed/SignedRational

signed/nonpositive-product-nonnegative

TheoremFor all inputsNo axiomsSource

signed/nonpositive-product-nonnegative :
  (x y : ℚ)
  (hx : x ≤ 0)
  (hy : y ≤ 0)
  → 0 ≤ x · y

0 = signed/zero· = signed/multiplyℚ = signed/SignedRational≤ = signed/at-most

signed/first-order-dominance-expectation

TheoremFor all inputsNo axiomsSource

signed/first-order-dominance-expectation :
  (a b u : ℕ → ℚ) (q : ℕ)
  (hu : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx q), u idx ≤ u (data/succ idx))
  (hF : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx (data/succ q)), signed/expr-sum-value a (data/succ idx) ≤ signed/expr-sum-value b (data/succ idx))
  (hA : signed/expr-sum-value a (data/succ q) = 1)
  (hB : signed/expr-sum-value b (data/succ q) = 1)
  → signed/expr-sum-value (fun cu => b cu · u cu) (data/succ q) ≤ signed/expr-sum-value (fun cu => a cu · u cu) (data/succ q)

1 = signed/one= = signed/equivalent: equality of rational values· = signed/multiplyℕ = data/Natℚ = signed/SignedRational≤ = signed/at-most