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 , finite nonempty action sets, discount , terminal set , an initial-state rule specifying a distribution on at each episode boundary (independent draws from a fixed are a special case), an episode budget , an initial table , a step-size rule giving 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 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 , choose the action using the distribution supplied by at the current history and the next reward/state using ; 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 and visit counts for all . 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 , obtain from the step-size rule before observing from the MDP's conditional joint reward-transition law. For a visit-index schedule use . If , apply to the still pre-update table and the available history through the new state, sample from that action distribution, and set
If , instead set and take no terminal action. Update only the current pair:
leaving every other coordinate unchanged. Increment and output the updated table. If the next state is terminal, end the episode; otherwise set and continue. Retain the sampled 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 completed episodes when 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.
Definition references
Under AC, successive history-dependent probability kernels give the sampling law.
The finite state-dependent action sets and joint reward-transition law.
The discounted return and policy value.
The Sarsa TD-error and terminal-continuation conventions.
Sutton and Barto, Reinforcement Learning: An Introduction.
Yang, Optimal Control and Reinforcement Learning, Chapter 2.
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
- Richard S. Sutton and Andrew G. Barto, Reinforcement Learning: An Introduction, 2nd ed. (standard reference, not scraped)
- Han-Dong Yang, Optimal Control and Reinforcement Learning, Chapter 2: Value-based Reinforcement Learning (standard reference, not scraped)