cargo
Rust package manager (36 subcommands).
clifford-acset-bridge
Bridge between Clifford Algebras (ganja.js/Grassmann.jl) and ACSets with grade-preserving morphisms
Full skill instructions
Geometric Algebra as Attributed C-Set with grade-preserving morphisms
Version: 1.0.0
Trit: 0 (ERGODIC - coordinates between algebras)
Clifford Algebras and ACSets share deep structural similarities:
This skill bridges them for unified algebraic data modeling.
using Catlab, ACSets
@present SchCliffordACSet(FreeSchema) begin
# Objects: One per grade
Scalar::Ob # Grade 0
Vector::Ob # Grade 1
Bivector::Ob # Grade 2
Trivector::Ob # Grade 3
Pseudoscalar::Ob # Grade n
# Morphisms: Grade-changing operations
wedge_sv::Hom(Scalar × Vector, Vector) # 0+1=1
wedge_vv::Hom(Vector × Vector, Bivector) # 1+1=2
wedge_vb::Hom(Vector × Bivector, Trivector) # 1+2=3
dot_vv::Hom(Vector × Vector, Scalar) # 1-1=0
dot_bv::Hom(Bivector × Vector, Vector) # 2-1=1
dot_tv::Hom(Trivector × Vector, Bivector) # 3-1=2
geo_vv::Hom(Vector × Vector, Scalar + Bivector) # 1*1=0+2
dual::Hom(Vector, Bivector) # Hodge star (in 3D)
reverse::Hom(Bivector, Bivector) # Grade involution
# Attributes
Coeff::AttrType
coeff::Attr(Vector, Coeff)
coeff_bv::Attr(Bivector, Coeff)
# GF(3) trit per operation
Trit::AttrType
wedge_trit::Attr(Vector, Trit) # +1
dot_trit::Attr(Vector, Trit) # -1
geo_trit::Attr(Vector, Trit) # 0
end
The fundamental law: grade(a ∧ b) = grade(a) + grade(b)
In ACSet terms, this is a functorial constraint:
Grade: CliffordACSet → GradedMonoid
where GradedMonoid has:
Objects: ℤ (integers = grades)
Morphisms: Addition
a : Vector b : Vector
│ │
└────── ∧ ─────────┘
│
▼
a∧b : Bivector
│
grade │
▼
2 = 1 + 1 ✓
| Clifford Operation | Grade Change | GF(3) Trit | ACSet Morphism |
|---|---|---|---|
| Wedge (∧) | +k | +1 (PLUS) | Covariant Hom |
| Dot (·) | -k | -1 (MINUS) | Contravariant Hom |
| Geometric (*) | 0 (mixed) | 0 (ERGODIC) | Profunctor |
| Dual (⋆) | n-k | 0 (ERGODIC) | Adjoint |
| Reverse (~) | 0 | 0 (ERGODIC) | Involution |
For any composition of operations:
Σ trit(op_i) ≡ 0 (mod 3)
This ensures balanced exploration in the skill ecosystem.
From specter-acset:
# Navigators for Clifford algebra elements
GRADE_K(k) # Select grade-k component
WEDGE_WITH(b) # Navigate to wedge product
DOT_WITH(b) # Navigate to contraction
DUAL # Navigate to Hodge dual
REVERSE # Navigate to reversed element
# Example: Extract bivector part of geometric product
select([geo_product, GRADE_K(2)], a * b)
# Transform: Normalize all vectors
transform([GRADE_K(1)], normalize, multivector)
// ganja.js
var PGA3D = Algebra(3,0,1);
var point = 1e123 + x*(-1e023) + y*(1e013) + z*(-1e012);
var line = point & otherPoint; // Vee (regressive)
# Julia ACSet
const PGA3D = CliffordACSet{Float64}(3, 0, 1)
point = add_part!(PGA3D, :Trivector, coeff=[1, -x, y, -z])
line = vee(point, other_point) # Morphism application
function ganja_to_acset(mv::GanjaMultivector, acset::CliffordACSet)
for (grade, coeffs) in enumerate(mv.grades)
ob = grade_to_object(grade)
for (basis, val) in coeffs
add_part!(acset, ob, coeff=val, basis=basis)
end
end
end
function acset_to_ganja(acset::CliffordACSet)
mv = zeros(2^n)
for ob in [:Scalar, :Vector, :Bivector, :Trivector]
for part in parts(acset, ob)
grade = object_to_grade(ob)
mv[blade_index(grade, part)] = acset[part, :coeff]
end
end
return mv
end
The wedge game mechanics translate directly:
struct CliffordGame <: OpenGame
# Play: Strategy → Blade selection
play::Function # (gesture, state) → new_blade
# Coplay: Feedback → Score adjustment
coplay::Function # (gesture, state, reward) → updated_reward
# Equilibrium: Grade conservation check
equilibrium::Function # state → Bool
end
# Player skill as morphism
function player_skill(name, trit, morphism)
return (a, b) -> begin
result = morphism(a, b)
@assert mod(trit + grade(a) + grade(b), 3) == grade(result) mod 3
result
end
end
@presentselect/transform)ganja-wedge-game (+1) ⊗ clifford-acset-bridge (0) ⊗ specter-acset (0) → need -1
→ Add: three-match (-1) ⊗ clifford-acset-bridge (0) ⊗ ganja-wedge-game (+1) = 0 ✓
acsets (-1) ⊗ clifford-acset-bridge (0) ⊗ gay-integration (+1) = 0 ✓
# Julia: Load schema
julia -e 'include("clifford_acset_schema.jl")'
# Test grade preservation
just clifford-grade-test
# Convert ganja.js → ACSet
just ganja-to-acset examples/pga3d_point.js
lib/clifford_acset_schema.jllib/ganja_acset_bridge.jltest/test_grade_preservation.jlThe interaction IS the skill improving itself.
Every use of this skill is an opportunity for worlding:
Add Interaction Exemplars here as the skill is used.
Rust package manager (36 subcommands).
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma...
**Status**: 🌳 Production Ready (upstream in StringZilla v3+) **Type**: High-Performance String Operations / SIMD-Accelerated Text Processing **Principle**: Zero-copy views, SIMD/SWAR acceleration, deterministic hashing **Frame**: Cross-language interoperability (C, C++, Python, Rust, Go, Swift, ...
Conformal Geometric Algebra (CGA) for circles, spheres, and Möbius transformations
Verifies code implements exactly what documentation specifies for blockchain audits. Use when comparing code against whitepapers, finding gaps between specs and implementation, or performing compliance checks for protocol implementations.
Systems programming and performance optimization using Zig. Provides low-level abstractions, memory-safe compiled code, and performance benchmarking. Use for system-level operations, optimization, and interoperability with C/POSIX APIs.
Topological soliton detection and agency bridge with anyonic fusion algebra for concept composition
PayPal MCP server integration for invoices, payments, subscriptions, disputes, and transaction reporting via @paypal/mcp.
Unison language - content-addressed functional programming with abilities for effects, distributed computing, and structural types. Use for pure functional code, effect management, distributed systems, and refactoring-safe codebases.
Google Tasks management via TasksACSet. Transforms task operations into GF(3)-typed Interactions, routes to triadic queues, detects saturation for task-zero-as-condensed-state.
World C Skill
Syrup binary serialization for OCapN/CapTP wire format. Canonical encoding for capability messages.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience