compositional-acset-comparison
БесплатноБез исполняемых скриптовНе проверенCompare data structures (DuckDB, LanceDB) via ACSets with persistent homology coverage analysis and geometric morphism translation.
от plurigrid★ 73 звезды на GitHubОб этом скилле
Compositional ACSet Comparison Skill
"The algorithm IS the data, the data IS the algorithm" — Homoiconic Principle
Trit: 0 (ERGODIC - Coordinator) Color: #26D826 (Green) Domain: Compositional algorithm/data analysis via algebraic databases
SYNOPSIS (Man Page)
compositional-acset-comparison - compare storage schemas via algebraic databases
USAGE:
include("DuckDBACSet.jl")
include("LanceDBACSet.jl")
compare_schemas(SchDuckDB, SchLanceDB)
TOOLS:
ComparisonUtils.jl - 12-dimension golden spiral comparison
GhristCoverage.jl - Persistent homology coverage analysis
ColoringFunctor.jl - GF(3) coloring and 3-colorability
GeometricMorphism.jl - Presheaf topos translation analysis
IrreversibleMorphisms.jl - Detect lossy morphisms
SideBySideComparison.jl - Visual diff tables
SEEDS:
1000000 - Core schemas and comparison
2000000 - Irreversibility analysis
3000000 - Side-by-side streams
4000000 - Ghrist/Coloring/Morphism analysis
SEE ALSO:
acsets(7), gay-mcp(7), three-match(7), temporal-coalgebra(7)
INFO (Quick Reference)
| Key | Value |
|---|---|
| Type | ERGODIC (0) - Coordinator |
| Color | #26D826 (Green) |
| Seed | 1000000 (core), 4000000 (analysis) |
| Golden Angle | 137.508° |
| Dimensions | 12 comparison axes |
| Schemas | DuckDB (10 Ob, 11 Hom), LanceDB (14 Ob, 18 Hom) |
| Irreversible | 0 (DuckDB), 2 (LanceDB) |
| Coverage | Table ↔ Table ✓, Column ↔ Column ✓ |
| Dead Zones | Segment, Manifest, VectorIndex |
Quick Commands
# Full 12-dimension comparison
full_comparison()
# Coverage analysis (Ghrist)
run_coverage_analysis()
# Coloring functor with GF(3) verification
run_coloring_comparison()
# Geometric morphism (presheaf topos translation)
run_geometric_morphism_analysis()
# Reversibility statistics
reversibility_summary()
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
``
Установить compositional-acset-comparison в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл compositional-acset-comparison?
Compare data structures (DuckDB, LanceDB) via ACSets with persistent homology coverage analysis and geometric morphism translation.
Как установить скилл 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