compositional-acset-comparison
БесплатноБез исполняемых скриптовНе проверенCompositional algorithm and data analysis via algebraic databases
от plurigrid★ 73 звезды на GitHubОб этом скилле
Compositional ACSet Comparison Skill
Trit: 0 (ERGODIC - Coordinator) Color: #26D826 (Green) Domain: Compositional algorithm/data analysis via algebraic databases
Homoiconic Insight
In self-hosted Lisps, the boundary between data structures and algorithms dissolves:
- Code is data, data is code (homoiconicity)
- Evaluation time is phase-scoped (RED/BLUE/GREEN gadgets)
- Entanglement avoided by leaving phases open until explicitly closed
- Compositional structure preserved across algorithm ↔ data boundary
Overview
Compare data structures and their properties (density/sparsity, dynamic/static, versioning strategies) using the richness afforded by ACSets. Uses Gay.jl-aided superrandom walks for deterministic exploration of comparison dimensions.
Canonical Triads
schema-validation (-1) ⊗ compositional-acset-comparison (0) ⊗ gay-mcp (+1) = 0 ✓ [Property Analysis]
three-match (-1) ⊗ compositional-acset-comparison (0) ⊗ koopman-generator (+1) = 0 ✓ [Dynamic Traversal]
temporal-coalgebra (-1) ⊗ compositional-acset-comparison (0) ⊗ oapply-colimit (+1) = 0 ✓ [Versioning]
polyglot-spi (-1) ⊗ compositional-acset-comparison (0) ⊗ gay-mcp (+1) = 0 ✓ [Homoiconic Interop]
Golden Thread Walk Dimensions
Each dimension is explored via φ-angle (137.508°) golden spiral for maximal dispersion:
| Step | Dimension | Hex Color | Hue |
|---|---|---|---|
| 1 | Storage Hierarchy | #EE2B2B | 0° |
| 2 | Density/Sparsity | #2BEE64 | 137.51° |
| 3 | Dynamic/Static | #9D2BEE | 275.02° |
| 4 | Versioning Strategy | #EED52B | 52.52° |
| 5 | Traversal Patterns | #2BCDEE | 190.03° |
| 6 | Index Structures | #EE2B94 | 327.54° |
| 7 | Compression | #5BEE2B | 105.05° |
| 8 | Query Model | #332BEE | 242.55° |
| 9 | Embedding Support | #EE6C2B | 20.06° |
| 10 | Interoperability | #2BEEA5 | 157.57° |
| 11 | Concurrency | #DE2BEE | 295.08° |
| 12 | Memory Model | #C5EE2B | 72.59° |
Comparison Matrix: DuckDB vs LanceDB
Dimension 1: Storage Hierarchy (#EE2B2B)
DuckDB LanceDB
────── ───────
Table Database
└─RowGroup (122K rows) └─Table
└─Column └─Manifest (version)
└─Segment └─Fragment
└─Block └─Column
└─VectorColumn
ACSet Morphism Depth:
- DuckDB: 4 levels (Table→RowGroup→Column→Segment)
- LanceDB: 5 levels (Database→Table→Manifest→Fragment→Column)
Dimension 2: Density/Sparsity (#2BEE64)
| Property | DuckDB | LanceDB |
|---|---|---|
| Default | Dense columnar | Dense Arrow arrays |
| Sparse Support | Via NULL bitmask | Via Arrow validity bitmask |
| Vector Sparsity | N/A | Sparse via IVF partitioning |
| Storage Efficiency | ALP, ZSTD compression | Lance columnar format |
| ACSet Rep | DenseFinColumn |
DenseFinColumn with VectorColumn extension |
Density Formula:
density(acset, obj) = nparts(acset, obj) / theoretical_max(acset, obj)
# DuckDB Segment: ~2048 rows per vector batch
# LanceDB Fragment: variable, optimized for vector search
Dimension 3: Dynamic/Static (#9D2BEE)
| Property | DuckDB | LanceDB |
|---|---|---|
| Schema Evolution | ALTER TABLE | Manifest versioning |
| Row Updates | In-place (TRANSIENT→PERSISTENT) | Append + compaction |
| Index Updates | Dynamic B-Tree/ART | Rebuild IVF partitions |
| ACSet Mutation | set_subpart!, rem_part! |
Append-only, version chains |
State Machine:
DuckDB Segment: TRANSIENT ⟷ PERSISTENT (bidirectional)
LanceDB Manifest: V1 → V2 → V3 → ... (append-only chain)
Dimension 4: Versioning Strategy (#EED52B) ⭐ Lance SDK 1.0.0
Critical Update (December 15, 2025): Lance SDK adopts SemVer 1.0.0
| Component | Versioning | Strategy |
|---|---|---|
| Lance SDK | SemVer 1.0.0 | MAJOR.MINOR.PATCH |
| Lance File Format | 2.1 | Binary compatibility, independent |
| Lance Table Format | Feature flags | Full backward compat, no linear versions |
| Lance Namespace Spec | Per-operation | Iceberg REST Catalog style |
Key Insight: Breaking SDK changes will NOT invalidate existing Lance data.
# ACSet representation of versioning strategies
@present SchVersioning(FreeSchema) begin
SDKVersion::Ob # SemVer (1.0.0)
FileFormat::Ob # Binary compat (2.1)
TableFormat::Ob # Feature flags
NamespaceSpec::Ob # Per-operation
# Morphisms: SDK ≠ Format
sdk_file::Hom(SDKVersion, FileFormat) # Many-to-one
file_table::Hom(FileFormat, TableFormat) # Independent
table_ns::Hom(TableFormat, NamespaceSpec) # Independent
end
DuckDB Versioning:
- Temporal tables via
VERSION AT - Extension versioning separate from core
Dimension 5: Traversal Patterns (#2BCDEE)
| Pattern | DuckDB | LanceDB
Установить compositional-acset-comparison в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл compositional-acset-comparison?
Compositional algorithm and data analysis via algebraic databases
Как установить скилл compositional-acset-comparison?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл compositional-acset-comparison запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic