Skip to content
Rainbow docs menu

Reference · Lemmas behind operations-research checks

rainbow.math.lemmas.mccormick-sandwich

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

General lemmas: mccormick sandwich. 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-ringmath.rational.signed.distributivemath.linear.matrix.row-length-shapemath.linear.matrix.row-length-decidermath.rational.signed.structural-equalitymath.linear.vector.equivalencemath.linear.vector.uniform-clampmath.linear.vector.pointwise-ordermath.linear.matrix.action-prependmath.linear.matrix.action-associativemath.linear.matrix.transpose-multiplymath.linear.matrix.transpose-shapemath.linear.matrix.transpose-involutionmath.linear.matrix.transpose-involution-positivemath.linear.matrix.transpose-multiply-reversemath.linear.matrix.composable-transposemath.linear.matrix.associativity-counterexamplemath.linear.matrix.signed-scalemath.linear.matrix.signed-scale-rightmath.linear.matrix.addmath.linear.matrix.add-shapemath.linear.matrix.prepend-addmath.linear.matrix.add-rightmath.linear.matrix.add-algebramath.linear.matrix.additive-groupmath.linear.matrix.negate-linearmath.linear.matrix.subtract-linearmath.linear.matrix.signed-scale-algebramath.linear.matrix.signed-scale-unitsmath.linear.matrix.signed-scale-congruencemath.linear.matrix.signed-scale-subtractmath.rational.signed.distance-multiply-nonnegativemath.rational.signed.vector-sup-distancealgorithms.proofs.inner-productmath.rational.signed.distance-trianglemath.rational.signed.distance-translationmath.rational.signed.distance-additivemath.linear.vector.dot-distance-boundmath.linear.vector.row-sum-lipschitzmath.linear.matrix.action-sup-boundmath.linear.matrix.signed-scale-ordermath.linear.matrix.pointwise-order-lawsmath.linear.matrix.signed-scale-antitonemath.linear.matrix.add-ordermath.linear.matrix.signed-scale-positivemath.linear.matrix.signed-scale-signmath.linear.matrix.positive-actionmath.linear.matrix.transpose-ordermath.linear.matrix.positive-multiplymath.linear.matrix.gram-positivemath.linear.matrix.gram-kernelmath.linear.matrix.row-grammath.linear.matrix.row-gram-kernelmath.linear.vector.norm-pythagoreanmath.linear.matrix.least-squares-normalmath.linear.matrix.least-squares-equalitymath.linear.matrix.mixed-sign-actionmath.linear.matrix.mixed-sign-multiplymath.linear.matrix.antitonemath.linear.matrix.interval-ordermath.linear.matrix.affine-ordermath.linear.matrix.linearmath.rational.signed.vector-sup-congruencemath.finite.vectormath.linear.vector.pointwise-order-lawsmath.linear.vector.add-ordermath.rational.signed.vector-sup-translationmath.linear.matrix.affine-sup-distancemath.linear.matrix.row-sum-lipschitzmath.linear.matrix.row-sum-fixed-point-uniquenessmath.linear.matrix.half-row-sum-fixed-point-uniquenessmath.linear.matrix.affine-half-iterate-contractionmath.linear.matrix.affine-half-iterate-ratemath.rational.signed.geometric-bridgemath.linear.matrix.affine-half-iterate-convergesmath.linear.matrix.affine-strong-row-contractionmath.linear.matrix.affine-residual-certificatemath.linear.matrix.affine-inverse-gap-certificatemath.linear.matrix.affine-general-rate-certificatemath.sums.of-natmath.lemmas.one-center

signed/mccormick-under

TheoremFor all inputsNo axiomsSource

signed/mccormick-under :
  (mu-a mu-b mu-x mu-y : ℚ)
  (mu-h : 0 ≤ (mu-x + signed/negate mu-a) · (mu-y + signed/negate mu-b))
  → mu-a · mu-y + mu-x · mu-b + signed/negate (mu-a · mu-b) ≤ mu-x · mu-y

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

signed/mccormick-over

TheoremFor all inputsNo axiomsSource

signed/mccormick-over :
  (mo-a mo-b mo-x mo-y : ℚ)
  (mo-h : 0 ≤ (mo-a + signed/negate mo-x) · (mo-y + signed/negate mo-b))
  → mo-x · mo-y ≤ mo-a · mo-y + mo-x · mo-b + signed/negate (mo-a · mo-b)

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

signed/mccormick-coordinate

TheoremFor all inputsNo axiomsSource

signed/mccormick-coordinate :
  (mt-x mt-y mt-xl mt-xu mt-yl mt-yu mt-lo mt-hi : ℚ)
  (mt-g0 : mt-xl ≤ mt-x)
  (mt-g1 : mt-x ≤ mt-xu)
  (mt-g2 : mt-yl ≤ mt-y)
  (mt-g3 : mt-y ≤ mt-yu)
  (mt-g4 : mt-xl · mt-y + mt-x · mt-yl + signed/negate (mt-xl · mt-yl) ≤ mt-lo)
  (mt-g5 : mt-xu · mt-y + mt-x · mt-yu + signed/negate (mt-xu · mt-yu) ≤ mt-lo)
  (mt-g6 : (mt-lo + signed/negate (mt-xl · mt-y + mt-x · mt-yl + signed/negate (mt-xl · mt-yl))) · (mt-lo + signed/negate (mt-xu · mt-y + mt-x · mt-yu + signed/negate (mt-xu · mt-yu))) = 0)
  (mt-g8 : mt-hi ≤ mt-xu · mt-y + mt-x · mt-yl + signed/negate (mt-xu · mt-yl))
  (mt-g9 : mt-hi ≤ mt-xl · mt-y + mt-x · mt-yu + signed/negate (mt-xl · mt-yu))
  (mt-g10 : (mt-xu · mt-y + mt-x · mt-yl + signed/negate (mt-xu · mt-yl) + signed/negate mt-hi) · (mt-xl · mt-y + mt-x · mt-yu + signed/negate (mt-xl · mt-yu) + signed/negate mt-hi) = 0)
  → proposition/conjunction (conjunction₁) (conjunction)
  where conjunction := proposition/conjunction (proposition/conjunction (proposition/disjunction (mt-hi = mt-xu · mt-y + mt-x · mt-yl + signed/negate (mt-xu · mt-yl)) (mt-hi = mt-xl · mt-y + mt-x · mt-yu + signed/negate (mt-xl · mt-yu))) (proposition/conjunction (mt-hi ≤ mt-xu · mt-y + mt-x · mt-yl + signed/negate (mt-xu · mt-yl)) (mt-hi ≤ mt-xl · mt-y + mt-x · mt-yu + signed/negate (mt-xl · mt-yu)))) (proposition/conjunction (mt-lo ≤ mt-x · mt-y) (mt-x · mt-y ≤ mt-hi))
  where conjunction₁ := proposition/conjunction (proposition/disjunction (mt-lo = mt-xl · mt-y + mt-x · mt-yl + signed/negate (mt-xl · mt-yl)) (mt-lo = mt-xu · mt-y + mt-x · mt-yu + signed/negate (mt-xu · mt-yu))) (proposition/conjunction (mt-xl · mt-y + mt-x · mt-yl + signed/negate (mt-xl · mt-yl) ≤ mt-lo) (mt-xu · mt-y + mt-x · mt-yu + signed/negate (mt-xu · mt-yu) ≤ mt-lo))

+ = signed/add0 = signed/zero= = signed/equivalent: equality of rational values· = signed/multiplyℚ = signed/SignedRational≤ = signed/at-most