The CleverLang Book

From your first function to your first proof. The compiler checked all 31 CleverLang samples: 8 with laws proven, 5 mistakes rejected on purpose, and 13 samples you can run on the page.

  1. QuickstartWrite it, prove it, and ship it to C, WebAssembly and JavaScript.
  2. Language TourValues, types, loops, errors and collections.
  3. Second-Class BorrowsOwnership without lifetimes.
  4. Proving & Trust ReportsState what must be true, then read the receipt.
  5. Capabilities, Concurrency & GPUNo power by default, tasks that can’t escape, loops on the GPU.
  6. Constant-Time CryptographyKeep secrets out of branches, lookups and timing.
  7. Coming from Rust, Kotlin, or LeanWhat you already know, translated.
  8. Single-Page ReferenceSyntax, tactics and commands on one page.