Go check yourself

How to check it yourself

Don't take our word for it. Each result here comes with its files and a check guide, and each guide says which checks you can rerun yourself. Some results rest on logs from programs that are not part of this book, or on files available on request; the guide says which. Where your run matches ours, you checked that part rather than trusted it. If something breaks, confuses you or does not match, you are welcome to tell us. We fix the page and credit the person who found the mistake.

Every result here is preliminary: no expert outside this project has reviewed or refereed any of this yet. Sonny directed the work, with AI assistants; each result says how it was checked.

What each status label commits to

From data/labels.json; each result page shows its label.

What a match does and does not tell you

A match tells you that the published files really produce the published numbers. It doesn't tell you that the question was the right one to ask, or that a written argument around the numbers is complete. Each recipe says plainly what its steps show and what they don't. For a result whose evidence is logs (logs-only), a match checks the bookkeeping of the logs, not the search that wrote them.

Start here

Start with the smallest example

Before any longer check, try the smallest one that runs from start to finish: two short Lean files from the book on what "Lean-verified" means. You need Lean, installed with elan (https://lean-lang.org). The files pin Lean 4.34.1 and need no Mathlib. Follow steps 1 to 3 of the recipe (https://gocheckyourself.org/data/recipes/lean-verified-REPLICATE.md) to fetch the files, then run this in the lean folder:

lake build Demo.Honest

Expected output (the time in brackets will differ):

ℹ [2/2] Built Demo.Honest (630ms)
info: ../demos/Demo/Honest.lean:4:0: 'Demo.honest' does not depend on any axioms
Build completed successfully (2 jobs).

Then run:

lake build Demo.WrongDefinition

Expected output:

ℹ [2/2] Built Demo.WrongDefinition (789ms)
info: ../demos/Demo/WrongDefinition.lean:10:0: 'Demo.one_is_prime' depends on axioms: [propext]
Build completed successfully (2 jobs).

Each build takes about a second once Lean is installed; installing Lean takes some minutes. The second file states that 1 is prime, and the build passes, because its definition of a prime leaves out the condition 2 ≤ n. That is what a match shows and what it does not: Lean accepted the statement as written, and a reader of the definition is what tells you whether it says what the words say.

Why a recipe, and not just our program

If I hand you a program and it prints PASS, all you have learned is that my program agrees with me. If my program has a mistake, it will agree with my mistake.

A recipe is different. It tells you exactly what to fetch, what to compute and what you should see, so you can do it with tools you already trust: the hash command on your own computer, your own short script, or an AI assistant you ask to follow the steps. When your independent work lands on the same answer, the result stands on two legs instead of one.

What that gives you

Our own checkers

Our own checkers are not part of this site. We don't lead with them on purpose: a result you reproduced yourself is worth more than one you watched our program approve.

The step-by-step recipe for each book

Each recipe gives the files with their fingerprints, the commands for Windows PowerShell and for macOS or Linux, the output to expect, and what a match does and does not show. Under "What is known not to work today", each one says which checks rest on logs or on files that are not online. The same steps for programs and AI assistants are in a JSON file beside each one.


How to check a published file yourself (Windows, macOS, Linux)

You do not have to trust us. Every file in a book comes with a fingerprint, a long string of letters and digits (called a SHA-256 hash) that, in practice, no other file produces. If one letter of the file changes, the fingerprint changes completely. You work out the fingerprint on your own computer, with a tool that is part of your system, and compare it with the one we list. If they are the same, you have exactly the file we published.

This just shows that the file is the one we published. It does not show that what is in it is right. For that, each book has a written check recipe and a "Check it yourself" page.

What you need

One file, on Windows

  1. In PowerShell, go to the folder that holds the file. For example, if it is in Downloads:
cd $HOME\Downloads
  1. Ask Windows for the fingerprint:
Get-FileHash .\results.json -Algorithm SHA256
  1. Read the long string under Hash. Open SHA256SUMS.txt in Notepad, find the line for results.json, and compare. Each line is: the fingerprint, then the file name. The two strings must be the same, letter for letter. Capital or small letters do not matter.

One file, on macOS or Linux

shasum -a 256 results.json      # macOS
sha256sum results.json          # Linux

Compare the long string at the start of the line with the line for results.json in SHA256SUMS.txt.

All the files at once, on Windows

Keep the files in the same folders as on the site (the list says where each one goes, for example erdos647/classes_d0.txt). Open PowerShell in the folder that matches the list. For most books that is the certificates folder; for the covering-arrays, three-body and lean-verified books it is the book folder, because their lists start with certificates/, demos/ or lean/. In the book folder the list itself is certificates/SHA256SUMS.txt, so write that path wherever the commands below say SHA256SUMS.txt. Then paste:

$ok = 0; $bad = 0
Get-Content SHA256SUMS.txt | Where-Object { $_.Trim() } | ForEach-Object {
  $h = $_.Substring(0,64).ToLower()
  $rel = ($_ -replace '^[0-9a-fA-F]{64} [ *]','') -replace '^\./',''
  $f = Get-FileHash -Algorithm SHA256 -LiteralPath $rel -ErrorAction SilentlyContinue
  if ($f -and $f.Hash.ToLower() -eq $h) { $ok++ } else { $bad++; "NOT OK: $rel" }
}
"$ok OK, $bad not OK"

What you should see: a line like 17 OK, 0 not OK, with no NOT OK lines above it. The number of OK files is the number of lines in the list. If a file is named NOT OK, either it is not in that folder, it is damaged, or it is not the file we published. The SHA256SUMS.txt you pasted this against must itself come from the book; its own fingerprint is on the book's check page.

All the files at once, on macOS or Linux

Each list names its files from one folder: run the check in that folder, with the list's path as given (Linux: sha256sum; macOS: shasum -a 256). Keep the files in the same folders as on the site.

Every line must end in OK. A line ending in FAILED or No such file is a problem.

Try to break it (recommended)

Make a copy of any file, change one letter in it with Notepad or any editor, and run the fingerprint again. It will be completely different. That is the point: a changed file cannot pass.

Common trouble