lean-bigraph-modeling
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
USE FOR: Robin Milner Bigraphical Reactive Systems (BRS). DO NOT USE FOR: standard simple graphs without containment hierarchy (@lean-math-discrete). TRIGGERS: bigraph, place graph, link graph, hyperedge, containment forest.
In this repository65 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-guard-judge-evalSkill
- applied-data-information-securitySkill
- applied-engineering-disciplinesSkill
- applied-legal-reasoningSkill
- epistemic-discovery-engineSkill
- epistemic-mappingSkill
- hol-metamath-adapterSkill
- isabelle-isar-adapterSkill
- itp-cross-portingSkill
- lean-ai-formalizationSkill
- lean-applied-reasoningSkill
- lean-axiom-closureSkill
- lean-bisectSkill
- lean-blueprintSkill
- lean-buildSkill
- lean-causal-reasoningSkill
- lean-competitive-mathSkill
- lean-convergence-verificationSkill
- lean-core-onlySkill
- lean-dag-visualizerSkill
- lean-deep-auditSkill
- lean-doc-feedbackSkill
- lean-doc-improvementSkill
- lean-doc-requirementsSkill
- lean-enforcementSkill
- lean-formalization-breakdownSkill
- lean-gatewaySkill
- lean-integration-protocolSkill
- lean-knowledge-formalizationSkill
- lean-math-analysisSkill
- lean-math-discreteSkill
- lean-math-dynamicalSkill
- lean-math-foundationsSkill
- lean-math-optimizationSkill
- lean-math-stochasticSkill
- lean-mweSkill
- lean-nested-learningSkill
- lean-package-researchSkill
- lean-pedagogical-expositionSkill
- lean-proof-refactorSkill
- lean-proof-repairSkill
- lean-proof-reviewSkill
- lean-proofSkill
- lean-prSkill
- lean-quality-engineSkill
- lean-replay-verificationSkill
- lean-reportSkill
- lean-researchSkill
- lean-retroactive-auditSkill
- lean-retro-methodologySkill
- lean-review-councilSkill
- lean-security-formalizationSkill
- lean-setupSkill
- lean-specificationSkill
- lean-tautology-triageSkill
- lean-upstream-portingSkill
- lean-vendor-substrateSkill
- lean-zettelkastenSkill
- math-product-managementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
STOP if estimated belief that the bigraph representation satisfies structural acyclicity is below 0.90 -- ask user via HITL channel.
- Very specific: line 57
STOP if custom axioms are proposed -- all bigraph theorems must resolve solely on propext and Quot.sound.
- Distinctive: line 59
STOP if link rewiring leaks into place containment -- verify orthogonality by definitional reflexivity.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lean 4 Milner Bigraphical Reactive Systems Modeling
Guide to formalizing Milner Bigraphs (Place Graphs + Link Graphs), interface faces, tensor products, and categorical composition in Lean 4.
Routing
- USE FOR: Robin Milner Bigraphical Reactive Systems (BRS), orthogonal Place Graph (containment forest) and Link Graph (relational hyperedges), tensor product, categorical composition, interface faces, and structural well-formedness proofs in Lean 4.
- DO NOT USE FOR: standard simple graphs without containment hierarchy (delegate to
@lean-math-discrete); abstract monoidal category theory without bigraphs (delegate to@lean-math-foundations). - TRIGGERS: bigraph, place graph, link graph, hyperedge, containment forest, milner, tensor product, categorical composition, port rewiring.
Workflow
- Model the Place Graph as a parent pointer function
parent : NodeId -> Option NodeIdwith explicit acyclicity invariants. - Model the Link Graph as hyperedges connecting sets of ports
linkMap : Port -> Option EdgeIdwith typed relation kinds. - Formulate interface boundaries as faces
<width, names>, where width represents sites/regions and names represent inner/outer link endpoints. - Prove orthogonality: demonstrate that rewiring link hyperedges leaves parent containment invariant (
rfl). - Prove composition properties: prove tensor product commutativity (
place_tensor_count_comm) and depth monotonicity under categorical grafting. - Verify against
templates/Template_Bigraph.md.
Recovery & STOP
- STOP if estimated belief that the bigraph representation satisfies structural acyclicity is below 0.90 -- ask user via HITL channel.
- STOP if custom axioms are proposed -- all bigraph theorems must resolve solely on
propextandQuot.sound. - STOP if link rewiring leaks into place containment -- verify orthogonality by definitional reflexivity.
Handoffs
- Predecessors:
agent:gateway,skill:lean-math-discrete(graph definitions),skill:lean-proof(tactics). - Successors:
skill:lean-proof(theorem discharge),skill:lean-proof-review(axiom and invariant audit).
Detailed reference
Full encyclopedic reference, decision trees, and lookup tables live in
references/lean-bigraph-modeling-handbook.md .
See also
../../references/lean-bigraph-modeling-handbook.md-- Completelean-bigraph-modelingHandbook../lean-gateway/SKILL.md-- Top-level skill router
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

