Correct Code Press · Book Zero

Book Zero

The Foundation of Correct Code

Before you learn algorithms, learn how to reason about them.

Book Zero introduces the reasoning methodology behind Correct Code Press. It treats facts as constraints, movement as lawful elimination, and correctness as proof — before the formal tools arrive.

Requires Starter Access

Book Zero: The Carmen Sandiego Algorithm cover
Proof-first reasoning, not pattern memory
One framework from game to interview
Free preview: Chapters 0–3

What You'll Learn

The Foundation of Correct Code

Book Zero builds the reasoning vocabulary the whole framework rests on. Each concept is introduced through the logic of a detective investigation, so the abstract stays attached to a concrete hunt.

Intent

Name what must stay true before you move. Every correct algorithm preserves an intent from the first frame to the final proof.

Problem Space

The world the problem creates: inputs, candidates, constraints, and the environment where the answer must be found.

Answer Space

The set of possible answers — large enough to defeat guessing, small enough to collapse under evidence.

Decision Space

The lawful moves available at each frame. A good move shrinks the space without removing the answer.

Frame

One complete cycle: observe, decide, eliminate, record, maintain. The unit of lawful reasoning.

Invariant

The guarantee that remains true at every step. When it breaks, the proof is corrupted until repaired.

Scanner

Movement through a world one frame at a time, collecting evidence without skipping candidates.

Recorder

Evidence remembered across candidates when later decisions depend on earlier observations.

Decisions

Lawful elimination, not guessing. Each decision must forbid something, or it constrains nothing.

Repair

Restoring the invariant when a decision breaks it — never proceeding on a corrupted proof.

Final Proof

The state where only one lawful answer remains and every other candidate has been eliminated.

The Core Distinction

Memorizing Patterns vs Reasoning About Problems

Traditional algorithm prep hands you patterns to memorize. Book Zero hands you a method that produces the pattern when the problem demands it.

Memorizing Patterns

  • Matches problems to remembered templates
  • Fails when the template is slightly different
  • Explains what runs, not why it's correct
  • Leaves you helpless on unfamiliar ground

Reasoning Through CCF

  • Names the problem space before choosing a tool
  • Eliminates candidates lawfully until one remains
  • Carries a proof from first frame to final answer
  • Transfers to any problem, any language, any domain

The Book Zero Contract

"Facts are constraints. Movement is lawful elimination. Correctness is proof."

Your Reading Path

Book Zero → The Secret Language of Algorithms

Book Zero is the required foundation. The Secret Language of Algorithms teaches the structural vocabulary beneath every algorithm — the natural next step once the detective contract is in place.

Table of Contents

Thirteen Chapters, One Investigation

Chapters 0–3 are the free preview. Chapters 4–12 open with Starter Access and build the complete Carmen Sandiego Algorithm.

Part I: The Detective Contract
Chapters 0–3 · Free preview
0
What Is an Algorithm?
Enumerating vs measuring: the difference between counting everything and inferring the truth.
Preview chapter
1
The Game Is a Proof Engine
Answer spaces, constraints, and why strong players feel calm instead of frantic.
Preview chapter
2
Narrative Layer vs Problem Space
The story motivates the hunt. The structure decides what is legal.
Preview chapter
3
Clues Are Constraints
A clue that forbids nothing constrains nothing.
Preview chapter
Part II: The Hidden CCF Algorithm
Starter Access
4
The Scanner: Traveling Through a World
Movement one frame at a time, without skipping candidates.
Starter Access
5
The Invariant: The Suspect Set Stays Feasible
The guarantee that keeps every remaining candidate possible.
Starter Access
6
Decisions: Lawful Elimination
Choosing moves that shrink the space safely and irreversibly.
Starter Access
Part III: Proof Tools You Already Used
Starter Access
7
Recording: The Clue Ledger
Remembering evidence across the investigation.
Starter Access
8
Termination and Finalization
Ending computation only when the proof is complete.
Starter Access
9
Choosing Structures by Proof
Selecting tools from constraints, not from habit.
Starter Access
Part IV: The Carmen Sandiego Algorithm
Starter Access
10
The Algorithm in 9 CCF Phases
The full framework in compact, reusable form.
Starter Access
11
A Worked Case: Three Cities, One Answer
One complete investigation from opening to closing the case.
Starter Access
12
From Game to General Algorithms
Transferring the method to arrays, graphs, and interviews.
Starter Access

From the Book

How the Method Reads

The Three Moves

For each chapter, do the same three moves: name the problem space (what universe are we searching?), extract constraints (what becomes illegal?), and watch the space shrink (how elimination becomes certainty).

Read the free preview

Counting vs Measuring

Dock A verifies a pallet by scanning every box one at a time. Dock B lifts the pallet once and reads a calibrated scale. Same truth, different method. The method a system uses to arrive at truth determines how fast it moves, how much it leaks, and how easily it can be exploited.

See the Framework

Start With the Videos

The Carmen Sandiego Algorithm

See how evidence and constraints narrow the lawful decision path using the familiar logic of the chase.

Watch on the video library

What Is the Correct Code Framework?

Why CCF starts with intent, structure, and proof before code.

Watch on the video library

Correct Code Philosophy

Orient yourself to the reasoning-first philosophy behind the framework.

Watch on the video library

Some videos require membership access. Visit the video library to see what's unlocked for your plan.

Who It's For

Book Zero is built for developers who want the method

Software developers who want to understand why solutions work
Computer science students building foundations before patterns
Developers preparing for technical interviews
Developers who rely too heavily on memorized patterns
Developers who want a repeatable reasoning process
Engineers who want to improve problem-solving discipline

Start with the Free Preview

Read Chapters 0–3 free. When the investigation pulls you in, Starter Access unlocks the complete Book Zero investigation plus the CCF Case Files.