Dependent types
summary
Dependent types let types depend on values so you can encode vectors with their length and finite index sets and eliminate out of bounds errors, shown in Idris vectors and dependent pairs for runtime lengths. Verifying a sort needs on the order of 100 lines for verified sort or hundreds in other languages. Practical attempts appear in academia and niche industry work such as cryptography and hardware tooling reported by Galois industry report and often succeed but at high development cost and slow verified code.
AI-written summary · about
