Skip to content
kolmogorov-compression logo

Kolmogorov Compression Skill

kolmogorov-compression

Kolmogorov complexity as the ultimate intelligence measure. Shortest

SKILL.md

Full skill instructions

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

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:

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

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)

End-of-Skill Interface

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

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."

r2con Speaker Resources

SpeakerHandleRepositoryRelevance
mr_phrazermrphrazermsynthMBA deobfuscation via program synthesis (compression-as-deobfuscation)
mr_phrazermrphrazerMonocleLLM-assisted binary analysis for complexity reduction
oddcoderoddcoderrair-coreRAIR - Radare in Rust for minimal description programs
condretcondretr2ghidraDecompilation as compression (binary → source)

SDF Interleaving

This skill connects to Software Design for Flexibility (Hanson & Sussman, 2021):

Primary Chapter: 5. Evaluation

Concepts: eval, apply, interpreter, environment

GF(3) Balanced Triad

kolmogorov-compression (○) + SDF.Ch5 (−) + [balancer] (+) = 0

Skill Trit: 0 (ERGODIC - coordination)

Connection Pattern

Evaluation interprets expressions. This skill processes or generates evaluable forms.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View