Go check yourself

Readings / Formal verification (Lean)

Status: Lean-checked (second-kernel)formal-verification/result-5

Lean-checked: proved, and every step checked by the Lean proof checker. · rerun: from-files

Demo: the different plus sign, 2+2=52 + 2 = 5

Lean-checked (second-kernel) · rerun: from-files · no part marked open · Every result here is preliminary. No one outside this project has refereed it yet.

2+2=52 + 2 = 5 where a local definition makes plus on natural numbers add one extra.

Status, part by part

Proved and checked in Lean (the Lean statement as written, accepted by the kernel; the meaning of the statement is not claimed). Build: passes. Axiom report: none. leanchecker, fresh: accepts. nanoda (Lean 4.35.0 build): accepts. What catches it: reading the definitions in scope.

5-minute check: compare the fingerprints of the book's files with its published list (recipe steps 2 to 4, https://gocheckyourself.org/data/recipes/lean-verified-REPLICATE.md). Expected: PowerShell prints the line "10 OK, 0 not OK". bash prints "10 OK" and nothing else. A match shows that your files are exactly the files the list names. What the files say is tested by the other steps of this recipe.

Credit: Tools: Lean 4; leanchecker; the nanoda kernel checker. This result (Sonny): proved (Lean).

Short address: gocheckyourself.org/r/334/

Id: formal-verification/result-5

Receipt 1 files, each with its SHA-256 fingerprint

Evidence

  1. document chapters/03-two-plus-two-is-five.md
    sha256 b604020a44f5c79d55e47d423a1ccc3415ee6737153846ba23e59ced53531cc2

Lean name

-- name: Demo.redefined_plus
local instance : Add Nat := ⟨fun a b => Nat.succ (Nat.add a b)⟩

theorem redefined_plus : 2 + 2 = 5 := rfl

How to check this