Implementing Grassroots Logic Programs with Multiagent Transition Systems and AI (Full Version)
cs.PL, cs.AI, cs.DC, cs.LO, cs.MA
Submitted: 2026-02-06
Updated: 2026-08-30
Comments: arXiv admin note: text overlap with arXiv:2510.15747
Code: https://github.com/EShapiro2/FCP
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
The gist: Grassroots Logic Programs (GLP) is a concurrent logic programming language in which logic variables are partitioned into paired readers and writers.
Terminology
Abstract
Grassroots Logic Programs (GLP) is a concurrent logic programming language in which logic variables are partitioned into paired readers and writers. An assignment is produced at most once via a writer and consumed at most once via its paired reader, and may contain additional readers and/or writers. This enables the concise expression of rich multidirectional communication modalities. The language was introduced together with concurrent (cGLP) and multiagent (maGLP) operational semantics. Here, we derive from these (1) dGLP, a deterministic counterpart of cGLP, and (2) madGLP, a counterpart of maGLP in which deterministic agents communicate solely by asynchronous message passing, and prove them correct against their abstract counterparts. maGLP shared variable pairs spanning agents can be implemented by two local variable pairs joined by a global link, with correctness following from disjoint substitution commutativity (a consequence of GLP's single-occurrence invariant). We further prove that madGLP is grassroots. Both dGLP and madGLP serve as formal specifications for an AI-driven implementation discipline (math to informal spec to Dart) employed and described here: from dGLP, AI (Claude) developed a workstation-based GLP implementation in Dart, and from madGLP it is developing a smartphone-based multiagent one.
Sources
- The Blocklace: A Byzantine-repelling and Universal Conflict-free Replicated Data Type
- Federated Assemblies
- Grassroots Flash: A Payment System for Grassroots Cryptocurrencies
- Volition-Guarded Multiagent Atomic Transactions: Describing People and their Machines
- Type-Constrained Code Generation with Language Models
- Multiagent Transition Systems for Composing Fault-Resilient Protocol Stacks
- Grassroots Systems: Concept, Examples, Implementation and Applications
- Grassroots Currencies: Foundations for Grassroots Digital Economies
- GLP: A Grassroots, Multiagent, Concurrent, Logic Programming Language for AI (Full Version)
- Grassroots Platforms with Atomic Transactions: Social Networks, Cryptocurrencies, and Democratic Federations
- Moded Types for Grassroots Logic Programs, by AI, for AI (Full Version)
- Grassroots Federation: Fair Democratic Governance at Scale
Related papers
- Language-Based Agent Control
- ANEForge: Python for direct computation on the Apple Neural Engine
- Volition Elicitation: Operational Semantics for People and Their Machines
- Griotte: Verified Compartmentalisation via Capabilities
- GraphMend: Code Transformations for Fixing Graph Breaks in PyTorch 2
- Two Birds One Stone: Effective Static Detection of Resource and Communication Deadlocks in Rust Programs