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
∀ a. ∀ b. ∀ h. FermatFourCounterexample(a,b,h) → ∃ x. ∃ y. ∃ z. PrimitiveFermatFourCounterexample(x,y,z) ∧ Le(z,h)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 a b h. ((~((a) = 0) /\ (~((b) = 0) /\ (~((h) = 0) /\ ((a) * (a) * (a) * (a) + (b) * (b) * (b) * (b) = (h) * (h)))))) -> exists A B H. (((((~((A) = 0) /\ (~((B) = 0) /\ (~((H) = 0) /\ ((A) * (A) * (A) * (A) + (B) * (B) * (B) * (B) = (H) * (H)))))) /\ (forall pff_divisor_normalize_result. (exists pff_left_normalize_result. (A) = pff_divisor_normalize_result * pff_left_normalize_result) -> (exists pff_right_normalize_result. (B) = pff_divisor_normalize_result * pff_right_normalize_result) -> pff_divisor_normalize_result = 1))) /\ (exists k. k + H = h))Proof neighborhood
Direct theorem prerequisites
PF0028 fermat_four_scaled_equation PF001G square_divides_square_root factor_nonzero_right · Alpha closed PF0029 fermat_four_cancel_scaled_equation PF0025 fermat_four_square_nonzero le_scaled_nonzero · 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 (4)
01Fix variables and assumptionsL1–4
02Separate the logical casesL5–7
03Establish hgL8–9
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply gcd exists relational.
04Separate the logical casesL10–10
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L10
cases hg
05Establish hquotL11–18
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply is gcd nonzero coprime quotients.
- L11
have hquot : ∃ A. ∃ B. a = x · A ∧ b = x · B ∧ (¬x = 0 ∧ ¬A = 0 ∧ (¬B = 0 ∧ Coprime(A,B)))Definitions: Coprime(A,B)Original native command in the exact edition - L12
specialize is_gcd_nonzero_coprime_quotients (x) - L13
specialize is_gcd_nonzero_coprime_quotients (a) - L14
specialize is_gcd_nonzero_coprime_quotients (b) - L15
apply is_gcd_nonzero_coprime_quotients - L16
exact hcounter_left - L17
exact hcounter_right_left - L18
exact hg_witness
06Separate the logical casesL19–25
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
07Establish hscaledL26–35
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply fermat four scaled equation.
- L26
have hscaled : h * h = ((x * x) * (x * x)) * ((x1 * x1) * (x1 * x1) + (x2 * x2) * (x2 * x2)) - L27
specialize fermat_four_scaled_equation (a) - L28
specialize fermat_four_scaled_equation (b) - L29
specialize fermat_four_scaled_equation (h) - L30
specialize fermat_four_scaled_equation (x) - L31
specialize fermat_four_scaled_equation (x1) - L32
specialize fermat_four_scaled_equation (x2) - L33
apply fermat_four_scaled_equation - L34
exact hquot_witness_witness_left_left - L35
exact hquot_witness_witness_left_right
08Use earlier factsL36–36
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L36
exact hcounter_right_right_right
09Establish hdivL37–40
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply square divides square root.
10Construct an explicit witnessL41–41
Supply the displayed value, then prove that it has the required property.
- L41
exists (x1 * x1) * (x1 * x1) + (x2 * x2) * (x2 * x2)
11Use earlier factsL42–42
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L42
exact hscaled
12Separate the logical casesL43–43
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L43
cases hdiv
13Establish hheightL44–52
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply factor nonzero right.
14Construct an explicit witnessL53–55
15Separate the logical casesL56–58
16Use earlier factsL59–59
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L59
exact hquot_witness_witness_right_left_right
17Separate the logical casesL60–60
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L60
split
18Use earlier factsL61–61
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L61
exact hquot_witness_witness_right_right_left
19Separate the logical casesL62–62
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L62
split
20Use earlier factsL63–72
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L63
exact hheight - L64
specialize fermat_four_cancel_scaled_equation (x) - L65
specialize fermat_four_cancel_scaled_equation (x1) - L66
specialize fermat_four_cancel_scaled_equation (x2) - L67
specialize fermat_four_cancel_scaled_equation (x3) - L68
specialize fermat_four_cancel_scaled_equation (h) - L69
apply fermat_four_cancel_scaled_equation - L70
exact hquot_witness_witness_right_left_left - L71
exact hdiv_witness - L72
exact hscaled
21Use earlier factsL73–73
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L73
exact hquot_witness_witness_right_right_right
22Calculate and transport equalitiesL74–74
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L74
rewrite hdiv_witness
23Use earlier factsL75–77
24Fix variables and assumptionsL78–78
Work with arbitrary variables or the premises of the current implication.
- L78
intro hzero
Original defined command ledger · 82 lines
- 0001
intro a - 0002
intro b - 0003
intro h - 0004
intro hcounter - 0005
cases hcounter - 0006
cases hcounter_right - 0007
cases hcounter_right_right - 0008
have hg : ∃ g. IsGCD(g,a,b)Exact native replay line
have hg : exists g. (((exists hag_left_factor_ffd_normalize_gcd. a = g * hag_left_factor_ffd_normalize_gcd) /\ (exists hag_right_factor_ffd_normalize_gcd. b = g * hag_right_factor_ffd_normalize_gcd)) /\ forall hag_divisor_ffd_normalize_gcd. (exists hag_common_left_ffd_normalize_gcd. a = hag_divisor_ffd_normalize_gcd * hag_common_left_ffd_normalize_gcd) -> (exists hag_common_right_ffd_normalize_gcd. b = hag_divisor_ffd_normalize_gcd * hag_common_right_ffd_normalize_gcd) -> exists hag_greatest_factor_ffd_normalize_gcd. g = hag_divisor_ffd_normalize_gcd * hag_greatest_factor_ffd_normalize_gcd) - 0009
apply gcd_exists_relational - 0010
cases hg - 0011
have hquot : ∃ A. ∃ B. a = x · A ∧ b = x · B ∧ (¬x = 0 ∧ ¬A = 0 ∧ (¬B = 0 ∧ Coprime(A,B)))Exact native replay line
have hquot : exists A B. ((a = x * A /\ b = x * B) /\ ((~(x = 0) /\ ~(A = 0)) /\ (~(B = 0) /\ (forall pff_divisor_ffd_normalize_quotient. (exists pff_left_ffd_normalize_quotient. (A) = pff_divisor_ffd_normalize_quotient * pff_left_ffd_normalize_quotient) -> (exists pff_right_ffd_normalize_quotient. (B) = pff_divisor_ffd_normalize_quotient * pff_right_ffd_normalize_quotient) -> pff_divisor_ffd_normalize_quotient = 1)))) - 0012
specialize is_gcd_nonzero_coprime_quotients (x) - 0013
specialize is_gcd_nonzero_coprime_quotients (a) - 0014
specialize is_gcd_nonzero_coprime_quotients (b) - 0015
apply is_gcd_nonzero_coprime_quotients - 0016
exact hcounter_left - 0017
exact hcounter_right_left - 0018
exact hg_witness - 0019
cases hquot - 0020
cases hquot_witness - 0021
cases hquot_witness_witness - 0022
cases hquot_witness_witness_left - 0023
cases hquot_witness_witness_right - 0024
cases hquot_witness_witness_right_left - 0025
cases hquot_witness_witness_right_right - 0026
have hscaled : h * h = ((x * x) * (x * x)) * ((x1 * x1) * (x1 * x1) + (x2 * x2) * (x2 * x2)) - 0027
specialize fermat_four_scaled_equation (a) - 0028
specialize fermat_four_scaled_equation (b) - 0029
specialize fermat_four_scaled_equation (h) - 0030
specialize fermat_four_scaled_equation (x) - 0031
specialize fermat_four_scaled_equation (x1) - 0032
specialize fermat_four_scaled_equation (x2) - 0033
apply fermat_four_scaled_equation - 0034
exact hquot_witness_witness_left_left - 0035
exact hquot_witness_witness_left_right - 0036
exact hcounter_right_right_right - 0037
have hdiv : Dvd(x · x,h)Exact native replay line
have hdiv : exists H. h = (x * x) * H - 0038
specialize square_divides_square_root (x * x) - 0039
specialize square_divides_square_root (h) - 0040
apply square_divides_square_root - 0041
exists (x1 * x1) * (x1 * x1) + (x2 * x2) * (x2 * x2) - 0042
exact hscaled - 0043
cases hdiv - 0044
have hheight : ~(x3 = 0) - 0045
intro hzero - 0046
specialize factor_nonzero_right (h) - 0047
specialize factor_nonzero_right (x * x) - 0048
specialize factor_nonzero_right (x3) - 0049
apply factor_nonzero_right - 0050
exact hcounter_right_right_left - 0051
exact hdiv_witness - 0052
exact hzero - 0053
exists x1 - 0054
exists x2 - 0055
exists x3 - 0056
split - 0057
split - 0058
split - 0059
exact hquot_witness_witness_right_left_right - 0060
split - 0061
exact hquot_witness_witness_right_right_left - 0062
split - 0063
exact hheight - 0064
specialize fermat_four_cancel_scaled_equation (x) - 0065
specialize fermat_four_cancel_scaled_equation (x1) - 0066
specialize fermat_four_cancel_scaled_equation (x2) - 0067
specialize fermat_four_cancel_scaled_equation (x3) - 0068
specialize fermat_four_cancel_scaled_equation (h) - 0069
apply fermat_four_cancel_scaled_equation - 0070
exact hquot_witness_witness_right_left_left - 0071
exact hdiv_witness - 0072
exact hscaled - 0073
exact hquot_witness_witness_right_right_right - 0074
rewrite hdiv_witness - 0075
specialize le_scaled_nonzero (x * x) - 0076
specialize le_scaled_nonzero (x3) - 0077
apply le_scaled_nonzero - 0078
intro hzero - 0079
specialize fermat_four_square_nonzero (x) - 0080
apply fermat_four_square_nonzero - 0081
exact hquot_witness_witness_right_left_left - 0082
exact hzero