Skip to content
Rainbow docs menu

Reference · Lemmas behind operations-research checks

rainbow.math.lemmas.gilmore-pricing

Lemmas behind operations-research checkssrc/rainbow/math/lemmas/gilmore_pricing.clj0 definitions, 2 theorems

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

Depends onmath.lemmas.lp-dualitymath.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.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.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.row-length-shapemath.linear.matrix.row-length-decidermath.rational.signed.structural-equalitymath.checksmath.nat.at-most-addmath.rational.nnrat.harmonic-convergencemath.nat.divmodmath.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.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.lp-boundsmath.lemmas.lp-farkasmath.lemmas.lp-ray

signed/positive-difference-negative-reverse

TheoremFor all inputsNo axiomsSource

signed/positive-difference-negative-reverse :
  (value unit : ℚ)
  (positive : 0 < value + signed/negate unit)
  → unit + signed/negate value < 0

+ = signed/add0 = signed/zero< = signed/less-thanℚ = signed/SignedRational

signed/gilmore-complete-pricing-cover-bound

TheoremFor all inputsNo axiomsSource

signed/gilmore-complete-pricing-cover-bound :
  (A : ℕ → ℕ → ℚ) (d w : ℕ → ℚ) (W : ℚ) (prices x : ℕ → ℚ) (m n : ℕ)
  (prices-nonnegative : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx m), 0 ≤ prices idx)
  (all-pricing : ∀ (pattern : ℕ → ℚ), ∀ (counts : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx m), 0 ≤ pattern idx), ∀ (capacity : signed/expr-sum-value (fun z => pattern z · w z) m ≤ W), signed/expr-sum-value (fun z => pattern z · prices z) m ≤ 1)
  (pattern-counts : ∀ (column : ℕ), ∀ (hc : nat/strict-below column n), ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx m), 0 ≤ (fun item => A item column) idx)
  (pattern-capacity : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx n), signed/expr-sum-value (fun z => (fun item => A item idx) z · w z) m ≤ W)
  (cover : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx m), d idx ≤ signed/expr-sum-value (fun j => A idx j · x j) n)
  (nonnegative : ∀ (idx : ℕ), ∀ (bound : nat/strict-below idx n), 0 ≤ x idx)
  → signed/expr-sum-value (fun z => d z · prices z) m ≤ signed/expr-sum-value x n

0 = signed/zero1 = signed/one· = signed/multiplyℕ = data/Natℚ = signed/SignedRational≤ = signed/at-most