Mini

Objective Bend

Mini's language: lazy open recursion over first-class, partial, composable specifications, after Faré's account of objects.

Mini supplies what the language does not: durable identity (objects), current authority, admission, funding and the laws that judge every write.

Core4

Example

spec Base for Shop:
  def price(n: Nat) -> Nat:
    n * 3n

spec Billing for Shop:
  def bill(n: Nat) -> Nat:
    self.price(n) + 1n

spec Surcharge for Shop:
  def price(n: Nat) -> Nat:
    super.price(n) + 2n

Billing calls self.price, so it sees a layer added later. bill(2) is 7 under Base and Billing, and 9 once Surcharge is composed in. A gate re-runs every command in the tutorial and fails on any changed output.

Proved

In Theory/ObjectiveBend*.lean; every pinned axiom set is within propext, Classical.choice, Quot.sound.

PropertyStatement
SoundnessIf the bounded machine finishes a closed term, the reference semantics evaluates it to the machine's result (weak head).
PreservationEvery machine step preserves typing.
No refusalA closed term the checker accepts never reaches a refusal, at any limits. It may still diverge, blackhole or suspend.
CompletenessA closed term that evaluates to an observable value finishes on the machine in finitely many steps, given large enough limits. No bound on those limits is proved.
Fast machineEvery compiled call runs a fast machine proved equal to the specified one; the compiler's substitution of it is trusted.
Front endWhen the checker accepts the front end's output, that term is typed, the machine never refuses it, and a finished run is a deep evaluation of it. The checker's reading of the front end's packet is proved to be the elaborator's own term.

Not proved, not deployed

Language guide: every theorem, its hypotheses, and what Core4 lacks.