Skip to content

Repository files navigation

Legal Math Modeling

Status: release-bounded public specification repository, rewritten on 2026-07-01.

What This Repository Is

legal-math-modeling is the mathematical companion and specification boundary for selected legal-reasoning structures. It is not a runtime certificate for a complete deployed system.

Current Public Boundary

The public boundary covers:

  • 11 canonical legal types: LegalFact, LegalRule, LegalNorm, LegalClaim, Argument, Attack, Priority, Violation, Reparation, DecisionStatus, ProofTrace.
  • 4 DDL modalities: OBLIGATION, PROHIBITION, PERMISSION, CONSTITUTIVE.
  • 4 slices: contract breach, license, permission, priority.
  • A minimal DDL core, a task-bounded Horn-to-AAF translation witness, and a content-bound certificate/checker v2 boundary.
  • Lean source inventory under proofs/lean/juris_lean/JurisLean/.

The generated source inventory currently records 33 Lean files and 141 theorem declarations. These counts are source facts, not a current-head release certificate; only a verified CI FormalReleaseCertificate can establish the release gate for its named commit.

Evidence Discipline

Formal claims require Lean source plus current build evidence. Engineering claims require tests or certificate-checker evidence. Narrative papers and generated reports are explanatory only. Unknown, skipped, timed-out, unavailable, or stale evidence is fail-closed.

JC Runtime Boundary After LSC Absorption

The 2026-07-03 juris-calculus absorption of transferable LSC ideas is a runtime-boundary event, not a new Lean theorem family. The transferable ideas are limited to fact trust envelopes, downgrade states for user-assumed/disputed/unknown inputs, auxiliary or conflict certificate states, provenance fields such as used fact keys, rule ids, source snapshots, derived taint, renderer/output firewalls, cross-module IO declarations, conflict certificates, review packets, and boundary tests.

These items are engineering metadata and disclosure controls. They do not add a twelfth canonical legal type, do not extend the four public slices, and do not change DecisionStatus, verified-fact gates, Horn closure, attack/exception/priority/permission semantics, certificate checker acceptance, or any formal proof claim. If a downstream runtime change needs any of those semantic changes, the change must return to this repository first.

Read Order

  1. docs/formal-release/FORMAL_RELEASE_REPORT.md
  2. docs/formal-release/theorem_manifest.json
  3. docs/spec/canonical_legal_schema.md
  4. docs/spec/ddl_minimal_core.md
  5. docs/spec/horn_to_aaf_contract.md
  6. docs/spec/certificate_checker_boundary.md
  7. docs/disclosure/PUBLIC_PRIVATE_BOUNDARY.md
  8. paper/README.md

Repository Layout

docs/          rewritten public documentation and manifests
paper/         rewritten papers and LaTeX sources
proofs/        Lean and engineering proof artifacts
runtime/       machine runtime fixtures; not prose documentation
scripts/       helper scripts
tests/         Python tests
theory/        Python theory/spec modules
verification/  verification helpers
reports/       archived generated analysis reports

Public/Private Split

The public repository keeps the auditable specification kernel and public explanatory material. Customer data, commercial rule libraries, lawyer workflows, litigation strategy, and private benchmarks stay out of the public repository by default.

Commands

python -m pytest -q
python scripts/scan_lean_guards.py proofs/lean/juris_lean/JurisLean
cd proofs/lean/juris_lean && lake build

Run commands on the relevant commit before making release claims.

External runtime agreement is a separate gate. It requires an independently checked RuntimeRefinementReceipt; the LMM formal release certificate cannot substitute for it.

About

A formal mathematical framework for cross-jurisdictional symbolic legal reasoning with evidence-calibrated trust labels

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages