topos-adhesive-rewriting

Compute incremental decompositions and pullback interactions for adhesive-category rewriting.

60|13|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/plurigrid/asi --skill topos-adhesive-rewriting
Or copy as Structured Prompt for Agent▾
Please help me install this Agent Skill.
Skill: topos-adhesive-rewriting
Source: https://github.com/plurigrid/asi/tree/main/skills/topos-adhesive-rewriting
Command: npx skills add https://github.com/plurigrid/asi --skill topos-adhesive-rewriting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adhesive categories provide a general setting for pattern matching and rewrite rules in a way that pushouts along monomorphisms behave well, enabling efficient incremental computation.

Core Features & Use Cases

  • Incremental Query Updating: Update results efficiently when inputs change.
  • Decompositions: Q ≅ Q_G +_{Q_L} Q_R factorization.
  • Interactions: Pullback squares between patterns and rewrite rules.
  • Rooted Search: Turn subgraph isomorphism into rooted search problems.
  • Complements: Use ∞A to optimize boundaries.

Quick Start

Run adhesive tooling: just adhesive-decompose QUERY just adhesive-update STATE RULE MATCH

Frequently Asked Questions about topos-adhesive-rewriting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update query results efficiently when graph data or rewrite rules change?▾

Adhesive-category rewriting enables incremental query updating by precomputing decompositions Q ≅ Q_G +_{Q_L} Q_R and reusing partial results when inputs change, avoiding full recomputation of pattern matches and rule applications.

What is pattern matching in adhesive categories and how does it work with pushouts?▾

Pattern matching in adhesive categories uses pushouts along monomorphisms to guarantee well-behaved rule application. This ensures decompositions into common elements, matches, and complements remain consistent during incremental updates across graphs and C-set structures.

Can I use adhesive-category rewriting for subgraph isomorphism and rule interaction detection?▾

Yes. Adhesive-category rewriting converts subgraph isomorphism into rooted search problems and enumerates interactions between patterns and rewrite rules using pullback squares, enabling efficient boundary optimization with complements.

What types of data structures does adhesive-category rewriting support?▾

Adhesive-category rewriting applies to graphs, C-set-like structures, and any domain where pushouts along monomorphisms preserve decomposition properties, supporting pattern matching and incremental rule application across these structures.

How do I extend partial pattern matches to complete matches using this approach?▾

The Skill extends partial matches to full matches by leveraging pullbacks and pushouts within the adhesive-category framework, systematically enumerating how query elements align with rule patterns and incrementally refining results.

What is the computational advantage of precomputing decompositions in incremental rewriting?▾

Precomputing all decompositions Q ≅ Q_G +_{Q_L} Q_R eliminates recomputation when queries or rules change. Incremental updates recalculate only affected portions, reducing complexity for large-scale graph pattern matching and rule application workflows.