Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Tabular on-policy Sarsa control

Definition

Inputs: A finite MDP with nonempty finite state set S, finite nonempty action sets, discount 0≤γ<1, terminal set S†⊆S, an initial-state rule specifying a distribution on S at each episode boundary (independent draws from a fixed ν are a special case), an episode budget m∈N∪{∞}, an initial table Q0:D→R, a step-size rule giving αn(Sn,An)∈[0,1] from available history before the next reward and state are observed (deterministic per-pair visit-index schedules are a special case), and an action-selection rule Π that uses the current table and available history to supply a distribution on the legal actions of the current state. Assume the Axiom of Choice for the policy path laws, that the sampling rules are measurable functions of the information available when used, and that the episodes generated by the actual rule, including within-episode changes, reach S† almost surely from their start states.

Interpret successive draws on finite discrete transition-record spaces, including a restart record at each episode boundary. Conditional on the full available history and its current state s, choose the action using the distribution supplied by Π at the current history and the next reward/state using p(s′,ρ∣s,a); the initial-state rule gives the restart kernel. Require all sampling and step-size rules to be measurable with respect to their available histories. The table and counts are computed from these records. Under the stated AC assumption, the history-dependent kernel construction supplies this law, with a fixed stop symbol after a finite budget.

Output: The action-value table after every transition update and after every completed episode. A finite budget returns the final table after those episodes; budget ∞ specifies the successive tables indefinitely and has no final output or convergence assertion.

Initialize Q=Q0 and visit counts C(s,a)=0 for all (s,a)∈D. For each episode allowed by the budget, sample its start state using the initial-state rule. If it is terminal, end the episode without an update. Otherwise sample the initial action using Π with the current table and history. At each current nonterminal pair (Sn,An), obtain αn(Sn,An) from the step-size rule before observing (Rn+1,Sn+1) from the MDP's conditional joint reward-transition law. For a visit-index schedule use k=C(Sn,An). If Sn+1∉S†, apply Π to the still pre-update table Qn and the available history through the new state, sample An+1 from that action distribution, and set

δnSarsa=Rn+1+γQn(Sn+1,An+1)−Qn(Sn,An).

If Sn+1∈S†, instead set δnSarsa=Rn+1−Qn(Sn,An) and take no terminal action. Update only the current pair:

Qn+1(Sn,An)=Qn(Sn,An)+αn(Sn,An)δnSarsa,

leaving every other coordinate unchanged. Increment C(Sn,An) and output the updated table. If the next state is terminal, end the episode; otherwise set (S,A)=(Sn+1,An+1) and continue. Retain the sampled An+1 as the action actually executed next; do not resample it after updating the table. At the following transition, the next application of Π may use the updated table and history. A policy frozen for an episode is permitted as a special case. Stop after m completed episodes when m is finite. The sampled next action, rather than a maximum over actions, is part of the target and is also used by the behavior process, so Sarsa is on-policy. The procedure makes no convergence claim.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

33 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources