Introduction to type-proofs in Kotlin
summary
Shows how Arrow Meta embeds subtype relations, union types, refined types, inductive proofs and type classes into Kotlin without changing grammar, with a proof-aware type checker that feeds the IDE and compiler. Demonstrates extensions that coerce data classes to tuples, union membership checks erased at compile time, zero-cost refinements for literals and nullable-safe boxed refinements for runtime values, and automatic transitive proofs (A→B, B→C yields A→C). Provides working demos and notes limits: literal-only refinements and coherence via orphan-instance rules.
AI-written summary · about
