Skip to content

Releases

lem-lean 0.4.0

Choose a tag to compare

@Barnes70 Barnes70 released this 14 Nov 12:35

The Lean 4 package cited by the paper Typed Crossings: What Casts, Refinement Proofs and Chain-of-Thought Checks Carry Across a Boundary (Version 1.0, 10.5281/zenodo.24219769). The listings in the paper are taken from this tag.

New in 0.4.0

  • Trace-only judgements, general statement (trace_only_test_iff in LemLean/Trace.lean): a judgement on traces alone agrees with faithfulness exactly when faithfulness is constant among the mechanisms that write the same trace. No assumption on faithful.
  • The obstruction (no_trace_only_test_of_split): where two mechanisms write one trace and it is faithful to one and not to the other, no such judgement exists. A shared trace alone is not an obstruction.
  • Typed crossings (new file LemLean/Crossing.lean): a crossing with a declared kind and a relation; preservation, reflection and invariance of predicates; invariance of a relation; an operation carried under a side condition; reuse of a claim by a preservation proof.
  • Two worked crossings with the same structure and different declared kinds: the cast Nat → Int (extension; addition carried unconditionally, subtraction only where a₂ ≤ a₁, order invariant) and the reading BitVec 64 → Nat (representation; addition carried only while nothing overflows), each with a counterexample without its side condition.

Unchanged

  • Basic.lean, Duration.lean, Locality.lean, Deontic.lean and the negative tests in test/Rejections.lean.

Build

  • Lean 4.35.0 (pinned in lean-toolchain), no Mathlib dependency, no sorry; #print axioms reports at most propext.
  • lake build, then lake env lean test/Rejections.lean.

Related: paper source at Barnes70/typed-crossings; Layered Event Modelling at Barnes70/layered-event-modelling.

🤖 Generated with Claude Code