PF000T · theorem body

pythagorean_primitive_euclidean_constructor

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

The complete forward primitive Euclid constructor proves both the exact Pythagorean identity and coprimality of its two displayed legs.

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 → Coprime(m,n)OppositeParity(m,n)PrimitivePythagorean(d,2 · (m · n),m · m + n · n)

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

none
Exact expanded first-order statement
forall m n d. m * m = n * n + d -> (forall pff_divisor_primitive_parameters. (exists pff_left_primitive_parameters. (m) = pff_divisor_primitive_parameters * pff_left_primitive_parameters) -> (exists pff_right_primitive_parameters. (n) = pff_divisor_primitive_parameters * pff_right_primitive_parameters) -> pff_divisor_primitive_parameters = 1) -> ((((exists pp_even_primitive_parameters_first_even. (m) = 2 * pp_even_primitive_parameters_first_even) /\ (exists pp_odd_primitive_parameters_second_odd. (n) = 2 * pp_odd_primitive_parameters_second_odd + 1)) \/ ((exists pp_odd_primitive_parameters_first_odd. (m) = 2 * pp_odd_primitive_parameters_first_odd + 1) /\ (exists pp_even_primitive_parameters_second_even. (n) = 2 * pp_even_primitive_parameters_second_even)))) -> ((((d) * (d) + (2 * (m * n)) * (2 * (m * n)) = (m * m + n * n) * (m * m + n * n)) /\ (forall pff_divisor_euclidean_result. (exists pff_left_euclidean_result. (d) = pff_divisor_euclidean_result * pff_left_euclidean_result) -> (exists pff_right_euclidean_result. (2 * (m * n)) = pff_divisor_euclidean_result * pff_right_euclidean_result) -> pff_divisor_euclidean_result = 1)))

Proof neighborhood

Direct theorem prerequisites

Direct 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

19 script commands · 4 reading checkpoints · 0 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.

Named ingredients (2)
01Fix variables and assumptionsL1–6

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

  1. L1
    intro m
  2. L2
    intro n
  3. L3
    intro d
  4. L4
    intro hgap
  5. L5
    intro hcoprime
  6. L6
    intro hopposite
02Separate the logical casesL7–7

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

  1. L7
    split
03Use earlier factsL8–17

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

  1. L8
    specialize pythagorean_euclidean_identity m
  2. L9
    specialize pythagorean_euclidean_identity n
  3. L10
    specialize pythagorean_euclidean_identity d
  4. L11
    apply pythagorean_euclidean_identity
  5. L12
    exact hgap
  6. L13
    specialize pythagorean_primitive_euclidean_legs m
  7. L14
    specialize pythagorean_primitive_euclidean_legs n
  8. L15
    specialize pythagorean_primitive_euclidean_legs d
  9. L16
    apply pythagorean_primitive_euclidean_legs
  10. L17
    exact hgap
04Use earlier factsL18–19

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

  1. L18
    exact hcoprime
  2. L19
    exact hopposite

Library-wide reading audit

Original defined command ledger · 19 lines
  1. 0001intro m
  2. 0002intro n
  3. 0003intro d
  4. 0004intro hgap
  5. 0005intro hcoprime
  6. 0006intro hopposite
  7. 0007split
  8. 0008specialize pythagorean_euclidean_identity m
  9. 0009specialize pythagorean_euclidean_identity n
  10. 0010specialize pythagorean_euclidean_identity d
  11. 0011apply pythagorean_euclidean_identity
  12. 0012exact hgap
  13. 0013specialize pythagorean_primitive_euclidean_legs m
  14. 0014specialize pythagorean_primitive_euclidean_legs n
  15. 0015specialize pythagorean_primitive_euclidean_legs d
  16. 0016apply pythagorean_primitive_euclidean_legs
  17. 0017exact hgap
  18. 0018exact hcoprime
  19. 0019exact hopposite