acsets-hatchery
ACSets Hatchery
Overview
ACSets.jl provides acsets ("attributed C-sets") - data structures generalizing both graphs and data frames. They are an efficient in-memory implementation of category-theoretic relational databases.
Core Features
- Acset schemas - Category-theoretic data structure definitions
- Acsets - Instances of schemas (like database rows)
- Tabular columns - Efficient columnar storage
- Serialization - JSON/binary format support
What Are ACSets?
An ACSet is a functor from a category C to Set, with attributes. This means:
- Objects become tables
- Morphisms become foreign keys
- Attributes add data types to objects
Usage
using ACSets
# Define a schema
@present SchGraph(FreeSchema) begin
V::Ob
E::Ob
src::Hom(E, V)
tgt::Hom(E, V)
end
# Create an acset
g = @acset Graph begin
V = 3
E = 2
src = [1, 2]
tgt = [2, 3]
end
Extensions
- Catlab.jl - Homomorphisms, limits/colimits, functorial data migration
- AlgebraicRewriting.jl - DPO/SPO/SqPO rewriting for acsets
Learning Resources
- Graphs and C-sets I - What is a graph?
- Graphs and C-sets II - Half-edges and rotation systems
- Graphs and C-sets III - Reflexive graphs and homomorphisms
- Graphs and C-sets IV - Propositional logic of subgraphs
Gay.jl Integration
# Rec2020 wide gamut with acset seed
gay_seed!(0xb4545686b9115a09)
# Mixed mode checkpointing
params = OkhslParameters()
∂params = Enzyme.gradient(Reverse, loss, params, seed)
Citation
Patterson, Lynch, Fairbanks. Categorical data structures for technical computing. Compositionality 4, 5 (2022). arXiv:2106.04703
Repository
- Source: plurigrid/ACSets.jl (fork of AlgebraicJulia/ACSets.jl)
- Seed:
0xb4545686b9115a09 - Index: 494/1055
- Color: #204677
GF(3) Triad
algebraic-rewriting (-1) ⊗ acsets-hatchery (0) ⊗ gay-monte-carlo (+1) = 0 ✓
Related Skills
acsets-algebraic-databases- Full ACSet guidespecter-acset- Bidirectional navigationworld-a- AlgebraicJulia ecosystem
More from plurigrid/asi
academic-research
Search academic papers across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, Google Scholar, and more. Get BibTeX citations, download PDFs, analyze citation networks. Use for literature reviews, finding papers, and academic research.
49wev-tesseract
WEV Tesseract Skill
33tree-sitter
AST-based code analysis using tree-sitter. Use for parsing code structure, extracting symbols, finding patterns with tree-sitter queries, analyzing complexity, and understanding code architecture. Supports Python, JavaScript, TypeScript, Go, Rust, C, C++, Swift, Java, Kotlin, Julia, and more.
21alife
Comprehensive Artificial Life skill combining ALIFE2025 proceedings, classic texts (Axelrod, Epstein-Axtell), ALIEN simulation, Lenia, NCA, swarm intelligence, and evolutionary computation. 337 pages extracted, 80+ papers, 153 figures.
16reverse-engineering
Reverse Engineering Skill
16bdd-mathematical-verification
BDD-Driven Mathematical Content Verification Skill
16