kolmogorov-compression
Kolmogorov complexity as the ultimate intelligence measure. Shortest program that outputs data.
Best use case
kolmogorov-compression is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Kolmogorov complexity as the ultimate intelligence measure. Shortest program that outputs data.
Teams using kolmogorov-compression should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/kolmogorov-compression/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How kolmogorov-compression Compares
| Feature / Agent | kolmogorov-compression | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Kolmogorov complexity as the ultimate intelligence measure. Shortest program that outputs data.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Kolmogorov Compression Skill
> *"The Kolmogorov complexity of x is the length of the shortest program that outputs x."*
> — Andrey Kolmogorov
## Overview
**Kolmogorov complexity** K(x) = length of shortest program P where P() = x.
**Intelligence = Compression**: Finding short descriptions of data.
## Core Concept
```latex
K(x) = min { |P| : U(P) = x }
Where:
U = Universal Turing Machine
P = program (binary string)
|P| = length of P
Properties:
- K(x) ≤ |x| + O(1) (trivial: print x)
- K(x) is uncomputable (halting problem)
- K(x|y) = conditional complexity given y
```
## The KoLMogorov-Test (2025)
Use LLMs to approximate Kolmogorov complexity:
```python
class KolmogorovCompressor:
"""
Approximate K(x) via code generation.
"""
def __init__(self, llm):
self.llm = llm
def compress(self, data: str) -> str:
"""Generate shortest program that outputs data."""
prompt = f"""
Generate the shortest Python program that prints exactly:
{data[:100]}...
The program must output EXACTLY this string.
Make it as SHORT as possible.
"""
program = self.llm.generate(prompt)
return self.extract_code(program)
def complexity(self, data: str) -> int:
"""Estimate K(data)."""
program = self.compress(data)
return len(program.encode())
def intelligence_score(self, model, data: str) -> float:
"""
KoLMogorov-Test score.
Higher = better compression = more intelligent.
"""
program = model.compress(data)
ratio = len(program) / len(data)
return 1 - ratio # Higher = better
```
## Integration with Sutskever's Thesis
```
Sutskever's Insight:
Compression = Prediction = Understanding = Intelligence
If you can compress x to K(x) bits:
- You understand x's structure
- You can predict x from the program
- You have a model of x
```
## GF(3) Triads
```
kolmogorov-compression (-1) ⊗ cognitive-superposition (0) ⊗ godel-machine (+1) = 0 ✓
kolmogorov-compression (-1) ⊗ turing-chemputer (0) ⊗ dna-origami (+1) = 0 ✓
kolmogorov-compression (-1) ⊗ solomonoff-induction (0) ⊗ information-capacity (+1) = 0 ✓
```
As **Validator (-1)**, kolmogorov-compression:
- Measures true complexity (validates claims)
- Filters noise from signal
- Provides lower bound on description
## Connection to Theorem Proving
```
For proof P of theorem T:
K(T) ≈ min |P| over all proofs P
Short proofs = Simple theorems
Long proofs = Complex theorems (but still provable)
Gödel: Some true statements have K(T) = ∞ (unprovable)
```
## References
1. Kolmogorov, A.N. (1965). "Three approaches to the quantitative definition of information."
2. Solomonoff, R.J. (1964). "A formal theory of inductive inference."
3. Li, M. & Vitányi, P. (2008). *An Introduction to Kolmogorov Complexity and Its Applications*.
4. Fan et al. (2025). "The KoLMogorov-Test: Compression-Based Intelligence Evaluation."Related Skills
kolmogorov-onsager-hurst
Turbulence scaling theory: K41 energy cascade, Onsager's anomalous dissipation, and Hurst exponent for long-range dependence
kolmogorov-codex-quest
Kolmogorov Codex Quest
compression-progress
Schmidhuber's compression progress as intrinsic curiosity reward for learning systems.
zx-calculus
Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)
zulip-cogen
Zulip Cogen Skill 🐸⚡
zls-integration
zls-integration skill
zig
zig skill
zig-syrup-bci
Multimodal BCI pipeline in Zig: DSI-24 EEG, fNIRS mBLL, eye tracking IVT, LSL sync, EDF read/write, GF(3) conservation
zig-programming
zig-programming skill
zeroth-bot
Zeroth Bot - 3D-printed open-source humanoid robot platform for sim-to-real and RL research. Affordable entry point for humanoid robotics.
xlsx
Comprehensive spreadsheet creation, editing, and analysis with support
wycheproof
Google's Wycheproof test vectors for cryptographic implementation testing.