What problem does it solve?
L4 enables legal professionals to turn natural-language rules, contracts, and regulations into executable, type-checked programs, closing the gap between law and software.
Core Features & Use Cases
- Isomorphic encoding of legal text into structured L4 code, preserving the source document structure for traceability.
- Regulative rules & testing with pattern matching, timelines, and #TRACE simulations to verify compliance scenarios.
- Deployment-ready workflows including validation with jl4-cli or cloud validation, and the ability to generate web apps, APIs, or documentation from formal specifications.
- Use Case: Formalize a contract clause and automatically generate an evaluation trace to demonstrate compliance.
Quick Start
Install the cloud or local validator, create an .l4 file with a type-safe model of your rule, then run jl4-cli or the cloud validator to validate and test it. For example, write an L4 module that defines a simple agreement and run:
- jl4-cli your-file.l4
- or node validate-cloud.mjs your-file.l4