Repository navigation
feat(InteractionNets): textual calculus and interaction combinators - #1283
Open
Lorenzobattistela wants to merge 1 commit into
Open
Lorenzobattistela wants to merge 1 commit into
Lorenzobattistela wants to merge 1 commit into
Conversation
Lorenzobattistela
requested review from
SamuelSchlesinger,
arademaker,
chenson2018,
crei,
ctchou,
fmontesi,
sorrachai and
thomaskwaring
as code owners
November 24, 2026 14:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Termfrom Mathlib, as suggested on ZulipContents
Cslib/Languages/InteractionNets/Defs.leancontains the equations, configurations, rules,interaction systems, instances of a rule, and the reduction relation
Stepwith itsfour cases (Communication, Substitution, Collect, Interaction).
Cslib/Languages/InteractionNets/Combinators.leanpresents the symbolscon,dup,era,the nine rules, the system
interactionCombinators, and a proof that each rule is linear.CslibTests/InteractionNets.leanshows three example reduction steps.references.bib: Lafont 1990, Lafont 1997, Hassan–Mackie–Sato 2015.Not in this PR
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).