1import Mathlib.Tactic
2
3/-!
4# Smoke test
5
6Checks that the toolchain and the prebuilt Mathlib load. It also states the simplest result of the
7programme, the shared-error judge identity (training-signal note, L4), so the build exercises `ring`
8and `nlinarith` on rationals.
9-/
10
11namespace FeedbackChannel.Smoke
12
13/-- Observed accuracy with a judge wrong at rate `e0` on items the controller gets right and `e1` on
14items it gets wrong equals `a - e + 2(1-a) e1`, where `e = a e0 + (1-a) e1`. -/
15theorem judge_identity (a e0 e1 : ℚ) :
16 a * (1 - e0) + (1 - a) * e1 = a - (a * e0 + (1 - a) * e1) + 2 * (1 - a) * e1 := by
17 ring
18
19end FeedbackChannel.Smoke