Alphabeta Math
Pipeline-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.

Imitation learning and DAgger — Examples

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

None yet.

4 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedOpen item page →

Behavior cloning can incur quadratic cost under state-distribution shift

Example

Let the states be g (good) and b (bad), with initial state S0=g. At g the actions are c and e; action c stays at g with task cost 0, while action e moves to b with cost 1. At b the actions are r and e; action r moves to g with cost 0, while action e stays at b with cost 1. The transition is deterministic for every state/action pair. The deterministic expert chooses c at g and r at b. For a parameter ϵ with 0<ϵ≤1/T, the learner chooses e at g with probability ϵ and c otherwise, and always chooses e at b. Use the statewise 0–1 expert-action disagreement as surrogate loss.

The diagram labels each deterministic transition by action/task-cost; the text specifies the two stochastic action probabilities of the learner. The expert occupancy is concentrated at g, so the behavior-cloning disagreement loss on expert states is ϵ. Under the learner, the expected total task cost is

∑k=1T(1−(1−ϵ)k),

which lies between ϵT2/8 and ϵT2. Thus an ϵ disagreement rate on expert states can correspond to quadratic-in-T learner cost when a mistake moves the learner to states absent from expert demonstrations.

diagram failed to render:
\begin{tikzpicture}[>=stealth]
  \node[draw,circle] (g) at (0,0) {$g$};
  \node[draw,circle] (b) at (4,0) {$b$};
  \draw[->] (g) edge[loop above] node[above] {$c/0$} (g);
  \draw[->] (g) to[bend left=18] node[above] {$e/1$} (b);
  \draw[->] (b) edge[loop above] node[above] {$e/1$} (b);
  \draw[->] (b) to[bend left=18] node[below] {$r/0$} (g);
\end{tikzpicture}

Facts & Assumptions

Given: The two-state transition/task-cost model, expert, learner, horizon, and surrogate loss in the Example.

[F1]

Finite-horizon imitation learning and expert-surrogate loss: dπ is the normalized average of the state distributions at times 0,…,T−1, and an expert surrogate is a [0,1]-valued upper bound on the probability of taking an action different from the deterministic expert. The Example chooses the surrogate equal to that disagreement probability.

[A1]

T≥1 and 0<ϵ≤1/T.

Verification

1.1F1A1given

Under the expert, the state remains g at every decision time, so dπ∗ is the point mass at g. The learner's action-disagreement probability at g is ϵ, hence its behavior-cloning surrogate loss averaged under dπ∗ equals ϵ.

1.2A1F1algebra

Put q=1−ϵ. The probability that the learner is at g at time t is qt: it is 1 at t=0, and if it is g at time t it remains there at the next state with probability q, while if it is b it remains b. Thus the probability at time t+1 is qtq=qt+1. At decision time t, expected cost is qtϵ+(1−qt)=1−qt+1. Summing for t=0,…,T−1 gives the displayed cost.

2.1A1step 1.2algebra

For each integer k≥1, (1−ϵ)k≥1−kϵ: the case k=1 is equality, and if it holds at k, multiplication by 1−ϵ≥0 gives (1−ϵ)k+1≥(1−kϵ)(1−ϵ)=1−(k+1)ϵ+kϵ2≥1−(k+1)ϵ. Therefore 1−qk≤kϵ.

2.2A1step 1.2algebra

If T=1, the displayed cost is ϵ, which lies between ϵT2/8 and ϵT2. Now assume T≥2, so 0<ϵ≤1/2. Then (1−ϵ)−1≥1+ϵ because (1−ϵ)−1−(1+ϵ)=ϵ2/(1−ϵ)≥0. Also (1+ϵ)k≥1+kϵ for all k≥1: it is equality for k=1, and multiplication by 1+ϵ>0 gives (1+ϵ)k+1≥(1+kϵ)(1+ϵ)=1+(k+1)ϵ+kϵ2≥1+(k+1)ϵ. Hence qk≤1/(1+kϵ). For k≤T, [A1] gives kϵ≤1, so 1−qk≥kϵ/(1+kϵ)≥kϵ/2. Let r=⌈T/2⌉; there are at least T/2 integer indices from r through T, each at least T/2, so ∑k=1Tk≥T2/4. The expected cost is at least ϵT2/8.

3.1A1step 2.1step 2.2algebra∎

Summing the upper estimate 1−qk≤kϵ from step 2.1 gives cost at most ϵ∑k=1Tk≤ϵT2. Together with the lower estimate from step 2.2, this proves the claimed bounds.

ExampleConstruction: AI-generatedVerification: AI-generatedOpen item page →

DAgger queries expert labels on learner-visited states

Example

Use states g,b, initial state g, actions A(g)={c,e} and A(b)={r,e}, and deterministic transitions/costs: at g, c returns to g with cost 0 and e moves to b with cost 1; at b, r moves to g with cost 0 and e returns to b with cost 1. The expert chooses c at g and r at b. The learner class contains two deterministic policies: πbad chooses e at both states, and πgood chooses c at g and r at b. Run two DAgger rounds with horizon T=2, one trajectory per round, expert-use probabilities β1=β2=0, initial policy πbad, and statewise 0–1 disagreement loss. The round-1 rollout visits g and then b; DAgger queries the expert at both states, aggregates the labels (g,c) and (b,r), and fits πgood as the unique minimum-loss policy. The second rollout then remains at g. The label (b,r) could not be obtained from expert-only demonstrations because the expert stays at g.

The diagram labels each deterministic transition by action/task-cost and marks the initial state; the expert and the two learner policies are specified in the text.

diagram failed to render:
\begin{tikzpicture}[>=stealth]
  \node[draw,circle] (g) at (0,0) {$g$};
  \node[draw,circle] (b) at (4,0) {$b$};
  \draw[->] (-1.5,0) -- (g) node[midway,above] {start};
  \draw[->] (g) edge[loop above] node[above] {$c/0$} (g);
  \draw[->] (g) to[bend left=18] node[above] {$e/1$} (b);
  \draw[->] (b) edge[loop above] node[above] {$e/1$} (b);
  \draw[->] (b) to[bend left=18] node[below] {$r/0$} (g);
\end{tikzpicture}

Facts & Assumptions

Given: The two-state MDP, expert, learner class, two DAgger rounds, and loss in the Example.

[F1]

Finite-horizon imitation learning and expert-surrogate loss: the deterministic expert label at state s is π∗(s), and DAgger's training loss evaluates candidate policies on labeled states.

[F2]

Dataset Aggregation (DAgger): each round executes the current expert/learner mixture, queries the expert on every visited state, aggregates the labels, and updates by minimizing cumulative empirical loss.

[A1]

T=2, m=1, N=2, β1=β2=0, and the initial learned policy is πbad.

Verification

1.1A1F1F2construct

With β1=0, the first round executes πbad. From S0=g it takes e to S1=b; at both visited states the expert labels are c at g and r at b. By [F2], both labeled pairs enter the aggregate dataset.

2.1A1F2step 1.1algebra

On this two-example dataset, πgood has total 0–1 loss 0, while πbad disagrees on both labeled states and has loss 2. Thus the unique FTL minimizer is πgood, which is the next policy.

3.1A1F1F2step 2.1algebra∎

In round 2, β2=0 and πgood takes c at g, so the state remains g and the expert label is c. Adding this pair preserves πgood as the unique zero-loss minimizer. Since the expert itself remains at g on every expert-only rollout, it never labels b; the first interactive DAgger round supplies that missing recovery label.

ExampleConstruction: AI-generatedVerification: AI-generatedOpen item page →

A candidate loss score that does not control task cost

Example

Let S={s}, A(s)={a∗,b}, and let both actions return deterministically to s at every decision. For every time, set task costs ct(s,a∗)=0 and ct(s,b)=1. Let the expert always choose a∗, let the learner class contain both the expert and a learner that always chooses b, and define a candidate loss score by ℓ(s,θ)=0 for every class policy. Then the learner's score is zero under every state distribution, while its total task cost over horizon T≥1 is T and the expert's task cost is zero. This score fails the required disagreement-domination condition ℓ(s,θ)≥∑a≠π∗(s)πθ(a∣s), so the example does not contradict the DAgger task-cost lemma; it shows why that premise is necessary.

The diagram labels each deterministic self-transition by action/task-cost. The two actions have the same next state but different task costs.

diagram failed to render:
\begin{tikzpicture}[>=stealth]
  \node[draw,circle] (s) at (0,0) {$s$};
  \draw[->] (s) edge[loop above] node[above] {$a^*/0$} (s);
  \draw[->] (s) edge[loop below] node[below] {$b/1$} (s);
\end{tikzpicture}

Facts & Assumptions

Given: The one-state MDP, expert, learner, task costs, candidate loss score, and horizon in the Example.

[F1]

Finite-horizon imitation learning and expert-surrogate loss: the expert-action disagreement probability is ∑a≠π∗(s)πθ(a∣s), and task cost is the finite-horizon expected sum of per-time costs.

[A1]

T is an integer with T≥1.

Verification

1.1F1A1given

The state is always s under both policies, so every occupancy is the point mass at s. By the defined candidate score, the learner's expected loss score is ℓ(s,θ)=0. Its disagreement probability is 1, so [F1]'s required domination premise fails.

2.1A1givenalgebra∎

At each of the T decisions the learner pays cost 1, while the expert pays cost 0. Therefore J(π^)=T and J(π∗)=0. Any unconditional claim that a zero candidate score alone forces J(π^)≤J(π∗) would assert T≤0, contradicting T≥1.

Sources