# Kolmogorov complexity

> Source: https://modeladay.com/models/kolmogorov-complexity/
> Category: principle | Topics: science, cognition | Difficulty: 5/5

## Definition

The length of the shortest program generating some object: structured and predictable means compressible (small K), pure randomness means incompressible (K near the object's own length).

## Core Rule

The length of the shortest program that can generate a given object—structured and predictable = compressible (small K), purely random = incompressible (K ≈ the object's own length). Common sign: it shifts "amount of information" from a probability distribution to a "shortest description," an intrinsic complexity of a single object rather than of a source.

## Opening Context

In nineteen forty-nine, an early electronic computer produced more than two thousand decimal places of pi. Run your finger down those digits and they give you almost no help guessing the next one. Yet the people running the machine never fed it a list of the answers.

How much information does it actually take to write down a string like that?

Kolmogorov complexity asks how long the shortest program is that can make the exact object again. We'll follow those digits out of the machine and see how a short set of instructions can get you a long answer. Then we'll try the idea on data you might have.

## How It Works (Preview)

Start with why anyone wanted a string that long. John von Neumann and others wanted to test sequences for randomness, and pi offered digits they could calculate by a known procedure. Before any of those tests, they needed a long run of digits to work with.

So the team turned to an early electronic computer called ENIAC. They could express pi in terms of quantities they could calculate by adding terms in a series. They broke the work into operations the computer could carry out to the precision they needed.

## When It Fails (Preview)

That old report gives us one way to make the digits. When you turn this insight into a practical tool, three distinctions matter.

## Full Lesson, Audio & Practice

Get the full Kolmogorov complexity breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow
- Web page: https://modeladay.com/models/kolmogorov-complexity/

## Related Mental Models

- [Halting Problem](https://modeladay.com/models/halting-problem/)
- [Self-information](https://modeladay.com/models/self-information/)
- [Source coding theorem](https://modeladay.com/models/source-coding-theorem/)
