Skip to content
Rainbow docs menu

Reference · The Applied Higher-Order Functions catalogue

rainbow.algorithms.proofs.ahof.imitation-irl

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

Kochenderfer imitation-learning / inverse-RL / structure-learning cores as higher-order-function compositions, proved axiom-free, extending the 222 AHoF catalog: D18.3 SMILe : stochastic mixture of expert-imitating policies (convex blend) D18.5 max-margin IRL : reward makes the expert beat alternatives by a margin (sound) D18.6 max-entropy IRL : trajectory probability = exp-weight / partition (normalized) D5.3 structure learning: hill-climb the DAG by score (accepted neighbor >= current) The SMILe blend reuses nnrat/wsum2 (bounded by convex-at-most-max); the margin test is a decidable order on expert-vs-(alternative+margin) with soundness; max-entropy is a normalized weight (divide); structure search reuses nnrat-minmax max. Native and axiom-free; chains nnrat-convex on d63.

Depends onmath.rational.nnrat.convex

irl/smile-mixture

DefinitionSource, line 48

irl/smile-mixture :
  (x₁ x₂ x₃ x₄ : ℚ≥0)
  → ℚ≥0

ℚ≥0 = nnrat/NonnegativeRational

irl/margin-satisfied

DefinitionSource, line 66

irl/margin-satisfied :
  (x₁ x₂ x₃ : ℚ≥0)
  → data/Bool

ℚ≥0 = nnrat/NonnegativeRational

irl/maxent-probability

DefinitionSource, line 85

irl/maxent-probability :
  (x₁ x₂ : ℚ≥0)
  → ℚ≥0

ℚ≥0 = nnrat/NonnegativeRational

learn/structure-accept

DefinitionSource, line 99

learn/structure-accept :
  (x₁ x₂ : ℚ≥0)
  → ℚ≥0

ℚ≥0 = nnrat/NonnegativeRational

irl/smile-within-max

TheoremFor all inputsNo axiomsSource, line 54

irl/smile-within-max :
  (w0 w1 p0 p1 : ℚ≥0)
  (hw : w0 + w1 = 1)
  → bo/bootstrap-632 w0 w1 p0 p1 ≤ minmax/max p0 p1

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

irl/margin-sound

TheoremFor all inputsNo axiomsSource, line 72

irl/margin-sound :
  (expert alt margin : ℚ≥0)
  (ok : irl/margin-satisfied expert alt margin = data/true)
  → alt + margin ≤ expert

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

irl/maxent-probability-example

TheoremWorked exampleNo axiomsSource, line 91

irl/maxent-probability-example :
  → accuracy/accuracy 3 4 = 3/4

= = nnrat/equivalent: equality of rational values

learn/structure-improves

TheoremFor all inputsNo axiomsSource, line 104

learn/structure-improves :
  (current neighbor : ℚ≥0)
  → current ≤ game/pomg-value current neighbor

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