Skip to content
Rainbow docs menu

Reference · The Applied Higher-Order Functions catalogue

rainbow.algorithms.proofs.ahof.constrained-ls

The Applied Higher-Order Functions cataloguesrc/rainbow/algorithms/proofs/ahof/constrained_ls.clj3 definitions, 4 theorems

Kochenderfer 'Algorithms for Optimization' Ch.11/13 constrained least-squares / distributed cores as higher-order-function compositions, proved axiom-free, extending the 222 AHoF catalog: O13.2 least squares w/ inequalities (LSI) : feasibility test g.x >= h (decidable) O13.3 least distance programming (LDP) : minimum-norm feasible point (min) O11.8 consensus ADMM : consensus variable = weighted average LSI feasibility reuses the decidable order (soundness via decide-at-most-true-sound); LDP reuses nnrat-minmax min; the consensus average reuses nnrat/wsum2 and inherits the convex bound. Native and axiom-free; chains nnrat-convex (-> wsum2, minmax) on d63.

Depends onmath.rational.nnrat.convex

opt/lsi-feasible

DefinitionSource, line 36

opt/lsi-feasible :
  (x₁ x₂ : ℚ≥0)
  → data/Bool

ℚ≥0 = nnrat/NonnegativeRational

opt/ldp-min-norm

DefinitionSource, line 53

opt/ldp-min-norm :
  (x₁ x₂ : ℚ≥0)
  → ℚ≥0

ℚ≥0 = nnrat/NonnegativeRational

opt/admm-consensus

DefinitionSource, line 73

opt/admm-consensus :
  (x₁ x₂ x₃ x₄ : ℚ≥0)
  → ℚ≥0

ℚ≥0 = nnrat/NonnegativeRational

opt/lsi-feasible-sound

TheoremFor all inputsNo axiomsSource, line 41

opt/lsi-feasible-sound :
  (gx h : ℚ≥0)
  (ok : bo/is-safe gx h = data/true)
  → h ≤ gx

= = equality/Eqℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most

opt/ldp-below-left

TheoremFor all inputsNo axiomsSource, line 58

opt/ldp-below-left :
  (n0 n1 : ℚ≥0)
  → opt/ldp-min-norm n0 n1 ≤ n0

ℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most

opt/ldp-below-right

TheoremFor all inputsNo axiomsSource, line 65

opt/ldp-below-right :
  (n0 n1 : ℚ≥0)
  → opt/ldp-min-norm n0 n1 ≤ n1

ℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most

opt/admm-consensus-within-max

TheoremFor all inputsNo axiomsSource, line 80

opt/admm-consensus-within-max :
  (w0 w1 x0 x1 : ℚ≥0)
  (hw : w0 + w1 = 1)
  → bo/bootstrap-632 w0 w1 x0 x1 ≤ minmax/max x0 x1

+ = nnrat/add1 = nnrat/one= = nnrat/equivalent: equality of rational valuesℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most