GF006D

gaussian_search_natural_le_square

Every natural is at most its square, including zero, by constructive equality decision.

Alpha v34 checked-use · first admitted v30 · independently kernel and Lean verified; not Stable

Current library: Alpha v34, 4,223 checked-use theorems; Stable remains 432. Historical first admissions, original proof editions, and non-admitted aliases are preserved. Exact original first-admission records.

Inputs are genuine canonical signed-pair codes, not arbitrary naturals. Products start at the actual Gaussian identity, whose code is six. The factor list uses the proved prime-divisor property; irreducibility alone is not silently renamed primality. Uniqueness supplies equal lengths, a bounded bijection, and an actual unit at each match, including repeated factors. Units have empty factorizations and zero is excluded. Sorted primary representatives, Gaussian prime classification, and Eisenstein factorization are separate targets.

Exact theorem in conservative defined notation

∀ n. Le(n,n · n)

Every linked abbreviation expands hygienically to the identical original native formula.

Definition DAG

Actual proof prerequisites

eq_decidable · checked external prerequisitele_scaled_nonzero · checked external prerequisite
Original expanded first-order statement
forall n. (exists ge_gap_natural_square. ge_gap_natural_square + (n) = (n*n))

Complete tactic proof in conservative notation

All 12 original proof lines are preserved. Only local proposition formulas are abbreviated; every abbreviation has an exact binder-safe expansion check. The linked exact edition contains the unchanged replay script.

Read the argument

Proof checkpoints

12 script commands · 6 reading checkpoints · 1 local claims

This is a reading aid, not a new proof or a proof-tree certificate. Checkpoint groups are consecutive commands, not inferred branch boundaries. Every step links to the preserved script.

Definition notation is shown below. Open the paired exact edition for the original native formulas. Source pairing is not a new equivalence certificate.

01Fix variables and assumptionsL1–1

Work with arbitrary variables or the premises of the current implication.

  1. L1
    intro n
02Establish hnL2–5

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply eq decidable.

  1. L2
    have hn : n=0 \/ ~(n=0)
  2. L3
    specialize eq_decidable (n)
  3. L4
    specialize eq_decidable (0)
  4. L5
    apply eq_decidable
03Separate the logical casesL6–6

Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.

  1. L6
    cases hn
04Construct an explicit witnessL7–7

Supply the displayed value, then prove that it has the required property.

  1. L7
    exists 0
05Calculate and transport equalitiesL8–8

Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.

  1. L8
    simp [hn_left]
06Use earlier factsL9–12

Instantiate or apply named facts and discharge the corresponding proof obligations.

  1. L9
    specialize le_scaled_nonzero (n)
  2. L10
    specialize le_scaled_nonzero (n)
  3. L11
    apply le_scaled_nonzero
  4. L12
    exact hn_right

Library-wide reading audit

Original defined command ledger · 12 lines
  1. 0001intro n
  2. 0002have hn : n=0 \/ ~(n=0)
  3. 0003specialize eq_decidable (n)
  4. 0004specialize eq_decidable (0)
  5. 0005apply eq_decidable
  6. 0006cases hn
  7. 0007exists 0
  8. 0008simp [hn_left]
  9. 0009specialize le_scaled_nonzero (n)
  10. 0010specialize le_scaled_nonzero (n)
  11. 0011apply le_scaled_nonzero
  12. 0012exact hn_right