Starter Blueprint

1. Addition🔗

Definition1.1
Group: Core statements about addition on natural numbers. (3)
Group member previews
Preview
Theorem 1.2
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 0
Used by 4
Reverse dependency previews
Preview
Theorem 1.2
Loading preview
Reverse dependency preview content is loaded from the rendered-fragment cache.
XL∃∀N

We write a + b for the result of adding b to a. This starter Blueprint begins with the most basic sanity checks around that operation.

Theorem1.2
Original source
Source provenance preview
Preview
Original source
  • Documentaddition-source
    addition-source p. 1
    • page 1; pdf source/addition-source.pdf
Group: Core statements about addition on natural numbers. (3)
Group member previews
Preview
Definition 1.1
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1used by 0L∃∀N

For every natural number n, adding zero on the right leaves it unchanged: n + 0 = n. This is the first sanity check for Definition 1.1.

Proof for Theorem 1.2
uses 0

Induct on n. The base case is immediate and the inductive step unfolds one successor on each side.

Lean code for Theorem1.2theorem nat_add_zero_right (n : Nat) : n + 0 = n := n:Natn + 0 = n All goals completed! 🐙
Theorem1.3
Group: Core statements about addition on natural numbers. (3)
Group member previews
Preview
Definition 1.1
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 1used by 0L∃∀N

For all natural numbers a, b, and c, addition is associative: (a + b) + c = a + (b + c). This is another consequence of Definition 1.1.

Lean code for Theorem1.31 theorem
  • theoremdefined in Init/Data/Nat/Basic.lean
    complete
    theorem Nat.add_assoc (n m k : Nat) : n + m + k = n + (m + k)
    theorem Nat.add_assoc (n m k : Nat) :
      n + m + k = n + (m + k)
Proof for Theorem 1.3
uses 0

Lean already provides this theorem as Nat.add_assoc, so this Blueprint entry links to an existing declaration instead of restating the code locally.

Definition1.4
Group: Core statements about addition on natural numbers. (3)
Group member previews
Preview
Definition 1.1
Loading preview
Group member preview content is loaded from the rendered-fragment cache.
uses 0used by 0XL∃∀N

Some projects keep implementation notes or helper snippets next to the informal statement surface. Blueprint can attach a small Rust block for that purpose.

Rust code for Definition1.4
pub fn add_preview(x: i32, y: i32) -> i32 {
    x + y
}