We study a binary deterministic finite automaton whose
2n transitions are chosen independently and uniformly from its
n states. The learner observes independent uniform words of length
m, each labeled with a single bit indicating acceptance. For every fixed
β>0 we give a polynomial-time algorithm that works outside a set of transition tables of probability
o(n−β). On each remaining table, for any start state and accepting set, the predictor has error at most
ε on fresh uniform words of length
m with probability at least
1−γ over the training sample and the learner's random choices. Its sample size and running time are polynomial in
n,
m,
1/ε and
log(2/γ), with degree depending only on
β. Although each word reveals only one output, comparing label moments at two consecutive history lengths lets us estimate the expected product of the signed outputs of two continuations from the same hidden state. We also refute Conjecture 4 of Fish and Reyzin on meeting times. For two distinct states fixed before the table is drawn and every fixed
c>0, the fraction of words of length
⌊cn⌋ that send them to different states converges in probability to
e−c. On a typical table, driving this fraction down to
1/n takes asymptotically
nlogn letters. Selected proof steps are formalized in Lean.