Choose a course

The courses are learning paths through L4, each a sequence of modules with examples and exercises. Take them in order; each module builds on the one before.

Foundation course

The Foundation course is for anyone new to L4, with or without programming experience. In eight modules it goes from a first legal rule to a complete model of a charity registration scheme: types for legal entities, decision logic, functions, and obligations with deadlines and consequences.

Advanced course

The Advanced course is for those who have finished the Foundation course or already write L4. In four modules it covers encoding real regulatory schemes, patterns that recur across rules (deadlines, notices, appeals), contracts in depth, and structuring a real rulebase.

Learning paths

  1. The Foundation course, all modules (0 to 7)
  2. Module A1: Real regulatory schemes: encoding real legislation
  3. Module A2: Cross-cutting concerns: timing, notices and appeals

For developers

  1. Foundation modules 0 to 5 (skim Module 0; focus on types, control flow and functions)
  2. Module 6: Regulative rules: the part with no equivalent in other programming languages
  3. Module A3: Contracts in depth: recursive obligations and multi-party agreements
  4. Module A4: Production patterns: structuring, testing and deploying a rulebase
  1. The Foundation course
  2. The Advanced course
  3. Concepts, for why L4 works the way it does