Skip to content
Rainbow docs menu

Reference · The Applied Higher-Order Functions catalogue

rainbow.algorithms.proofs.ahof.game-ascent

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

AHoF D80 Gradient Ascent (Games): each player ascends its own payoff gradient, updating ascent-step theta step = theta + step. Worked: 1+2=3. Values proved by signed cross-product equivalence. Proved native and axiom-free. Requires signed/add, signed/from-nnrat, signed/equivalent (all in the D63 checkpoint). Scope (measured by the kernel): this module has 2 worked instances (statements about specific values) and 1 definitional unfoldings (true by unfolding a definition). None of its theorems is a guarantee about the algorithm for all inputs; `lein verify rainbow.algorithms.proofs.ahof.game-ascent` prints this classification.

game-ascent/ascent-step

DefinitionSource, line 44

game-ascent/ascent-step :
  (x₁ x₂ : ℚ)
  → ℚ

ℚ = signed/SignedRational

game-ascent/ascent-example

DefinitionSource, line 49

game-ascent/ascent-example :
  → ℚ

ℚ = signed/SignedRational

game-ascent/no-step

DefinitionSource, line 53

game-ascent/no-step :
  → ℚ

ℚ = signed/SignedRational

game-ascent/ascent-step-unfold

TheoremHolds by unfolding a definitionNo axiomsSource, line 59

game-ascent/ascent-step-unfold :
  (a b : ℚ)
  → game-ascent/ascent-step a b = a + b

+ = signed/add= = equality/Eqℚ = signed/SignedRational

game-ascent/ascent-example-is-3

TheoremWorked exampleNo axiomsSource, line 67

game-ascent/ascent-example-is-3 :
  → game-ascent/ascent-example = signed/from-nnrat 3

= = signed/equivalent: equality of rational values

game-ascent/no-step-is-3

TheoremWorked exampleNo axiomsSource, line 72

game-ascent/no-step-is-3 :
  → game-ascent/no-step = signed/from-nnrat 3

= = signed/equivalent: equality of rational values