Skip to content

feat(InteractionNets): textual calculus and interaction combinators - #1283

Open
Lorenzobattistela wants to merge 1 commit into
leanprover:mainfrom
Lorenzobattistela:interaction-nets
Open

Lorenzobattistela wants to merge 1 commit into
leanprover:mainfrom
Lorenzobattistela:interaction-nets

Conversation

@Lorenzobattistela

Copy link
Copy Markdown

The PR adds a textual calculus of interaction nets, presented by Hassan, Mackie and Sato (2015). It does it up to the definition of reduction, and Lafont's interaction combinators as an instance.

Terms are FirstOrder.Language.Term from Mathlib, as suggested on Zulip

Contents

Cslib/Languages/InteractionNets/Defs.lean contains the equations, configurations, rules,
interaction systems, instances of a rule, and the reduction relation Step with its
four cases (Communication, Substitution, Collect, Interaction).

Cslib/Languages/InteractionNets/Combinators.lean presents the symbols con, dup, era,
the nine rules, the system interactionCombinators, and a proof that each rule is linear.

CslibTests/InteractionNets.lean shows three example reduction steps.

references.bib: Lafont 1990, Lafont 1997, Hassan–Mackie–Sato 2015.

Not in this PR

  • Symmetry of the rule table (it holds only up to renaming of names).
  • Preservation of linearity by reduction.
  • Confluence modulo renaming.

The items above are planned as follow up PRs, as well as equivalence of configurations, computable reduction and other systems as instances (such as Symmetric Interaction Combinators). It's also possible as a follow up to add the Graph representation and prove the correspondence with textual calculus.

AI usage

Claude Fable 5.2 was used mainly as a reviewer and enforcer of the coding style and guidelines. Also used it to explore possible connections within mathlib and cslib (in addition to the pointers given on zulip). The notation follows the pointed paper. It also wrote some small mechanical parts of the file following my order and direction, such as the test file and organization of docstrings (from my personal notes and the paper).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant