OmniLab

Olympiad-grade learning environment

Learn by breaking
what works.

OmniLab is a computational instrument for perturbation-based learning. Start from working code. Predict what one change does. Run it. Reflect on the divergence.

0ms
server round-trip
100%
in-browser execution
2
perturbation labs
BG · EN
fully bilingual
Code Ablation · live preview

Original

1def bisect(arr, x):
2  lo, hi = 0, len(arr)
3  while lo < hi:
4    m = (lo+hi) // 2
5    if arr[m] < x:
6      lo = m + 1
7    else:
8      hi = m
9  return lo

Mutated · line 6

1def bisect(arr, x):
2  lo, hi = 0, len(arr)
3  while lo < hi:
4    m = (lo+hi) // 2
5    if arr[m] < x:
6      lo = m   
7    else:
8      hi = m
9  return lo
Σ 7 ops · O(log n) · ✓Δ infinite loop @ run 1∞ ops · timeout · ✗

The method · four moves, infinite worlds

Most platforms ask you to memorize.
We ask you to perturb, predict,
and reconcile the difference.

  1. 01 / PREDICT

    State a hypothesis

    Read the original. Predict the output before you run it. Commit the prediction in writing.

  2. 02 / MUTATE

    Mutate one variable

    Change a single operator, line, or parameter. The instrument tracks the divergence character by character.

  3. 03 / DIVERGE

    Observe both worlds

    Run in Pyodide. The system shows two outputs side by side, plus the precise Δ between them.

  4. 04 / RECONCILE

    Reconcile with theory

    The Socratic Coach asks why — not what. You write the explanation. Mastery is earned.

RuntimePyodide · browser-local · zero roundtrip
CoachSocratic · adapts to your mutation
SubstratesCode · Physics · Math soon