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.
Statement with defined notation
∀ m. ∀ n. ∀ d. m · m = n · n + d → Odd(m) → Even(n) → Odd(d)Every purple notation token opens its conservative definition. This reading surface never changes the unchanged intuitionistic kernel or confers checked-use authority.
Definitions used by this theorem
In the theorem statement
In local proof propositions
Exact expanded first-order statement
forall m n d. m * m = n * n + d -> (exists a. m = 2 * a + 1) -> (exists b. n = 2 * b) -> exists q. d = 2 * q + 1Proof neighborhood
Direct theorem prerequisites
PF000I pythagorean_parameter_odd_square PF000H pythagorean_parameter_even_square parity_cases · Stable closed even_add_even · Stable closed even_odd_exclusive_pointwise · Stable closedDirect theorem dependents
Definition-aware tactic body
Only propositions whose conservative expansion has been checked for exact first-order equivalence are compacted. Every changed line retains its immutable exact replay command.
Read the argument
Proof checkpoints
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.
Named ingredients (2)
01Fix variables and assumptionsL1–6
02Establish hmsquareL7–9
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply pythagorean parameter odd square.
03Establish hnsquareL10–13
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply pythagorean parameter even square.
04Separate the logical casesL14–16
05Establish hsumevenL17–21
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply even add even.
- L17
have hsumeven : Even(n · n + d)Definitions: Even(n · n + d)Original native command in the exact edition - L18
specialize even_add_even (n * n) - L19
specialize even_add_even d - L20
apply even_add_even - L21
exact hnsquare
06Construct an explicit witnessL22–22
Supply the displayed value, then prove that it has the required property.
- L22
exists x
07Use earlier factsL23–23
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L23
exact parity_cases_witness_left
08Separate the logical casesL24–25
09Use earlier factsL26–29
10Calculate and transport equalitiesL30–30
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L30
trans n * n + d
11Use earlier factsL31–33
12Construct an explicit witnessL34–34
Supply the displayed value, then prove that it has the required property.
- L34
exists x
13Use earlier factsL35–35
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L35
exact parity_cases_witness_right
Original defined command ledger · 35 lines
- 0001
intro m - 0002
intro n - 0003
intro d - 0004
intro hgap - 0005
intro hmodd - 0006
intro hneven - 0007
have hmsquare : Odd(m · m)Exact native replay line
have hmsquare : exists q. m * m = 2 * q + 1 - 0008
apply pythagorean_parameter_odd_square - 0009
exact hmodd - 0010
have hnsquare : Even(n · n)Exact native replay line
have hnsquare : exists q. n * n = 2 * q - 0011
apply pythagorean_parameter_even_square - 0012
exact hneven - 0013
specialize parity_cases d - 0014
cases parity_cases - 0015
cases parity_cases_witness - 0016
exfalso - 0017
have hsumeven : Even(n · n + d)Exact native replay line
have hsumeven : exists q. n * n + d = 2 * q - 0018
specialize even_add_even (n * n) - 0019
specialize even_add_even d - 0020
apply even_add_even - 0021
exact hnsquare - 0022
exists x - 0023
exact parity_cases_witness_left - 0024
cases hsumeven - 0025
cases hmsquare - 0026
specialize even_odd_exclusive_pointwise (m * m) - 0027
specialize even_odd_exclusive_pointwise x1 - 0028
specialize even_odd_exclusive_pointwise x2 - 0029
apply even_odd_exclusive_pointwise - 0030
trans n * n + d - 0031
exact hgap - 0032
exact hsumeven_witness - 0033
exact hmsquare_witness - 0034
exists x - 0035
exact parity_cases_witness_right