Why Dependent Types Feel Natural *After* `omega`
Earlier courses throw Fin n ({ i : Nat // i < n }) at learners on Day 1, before they know omega or if h : ..., turning array indexing into cryptic compiler errors. Now that you command omega and grind, Subtype ({ x : α // P x }) is effortless: .val (or coercion) extracts the data, .property hands omega the built-in proof P x, and if h : idx < arr.size binds h right at your parsing boundary!
Zero-Bounds-Check Array Access (`arr[i]`) & Non-Zero Divisors
In Lean 4, arr[i] looks up a proof of i < arr.size automatically in your local context (using omega tactics behind the scenes!) and compiles to an unguarded pointer load lean_array_uget—memory safety without runtime bounds-check tax.