locus: Blueprint

 locus: Blueprint🔗

A blueprint for locus: a Lean 4 mechanisation of Milner's bigraphs and bigraphical reactive systems, with their behavioural theory, a certified simulator and model checker, and an application. Each chapter states the main results of one part of the development in conventional notation, each attached to the Lean declaration that carries it; the Lean files hold the rest. Anything not yet proved is marked OPEN and has no Lean attachment.

Pages generated from the Lean, published on this site beside the Blueprint. Every figure in them is drawn from a Lean value, and every Lean excerpt is cut from the source by name.

A tutorial on bigraphs, in six chapters:

Problem books: chapter I and chapter II.

Animations and write-ups:

  • Dining philosophers, model-checked: the naive, repaired and fair protocols and a livelock, each with the model checker's verdicts, and the alternating bit protocol, with its messages tracked. Every drawing is generated from the Lean model.

  • Bigraph trace player: the player on its own, running the naive dining protocol to deadlock.

  • The same fork, later: the tracked-logic write-up.

Papers: none yet.

Contents

  1. 1. Introduction
  2. 2. Notation
  3. 3. Bigraphs
  4. 4. Concrete bigraphs, relative pushouts and bisimulation
  5. 5. The π-calculus in binding bigraphs
  6. 6. The simulator (BigraphSim)
  7. 7. Logic and model checking
  8. 8. Miolingo
  9. 9. Appendix: the locus calculus
  10. Dependency Graph
  11. Blueprint Summary