PF000J

pythagorean_even_odd_square_gap_odd

Alpha v34 independently verified · alpha_closed; checked-use authorized; not Stable

An even first parameter and odd second parameter force their witnessed square difference to be odd.

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.

Exact expanded first-order arithmetic statement

forall m n d. m * m = n * n + d -> (exists a. m = 2 * a) -> (exists b. n = 2 * b + 1) -> exists q. d = 2 * q + 1

Constructive proof overview

Generated structural guide

An even first parameter and odd second parameter force their witnessed square difference to be odd.

The unchanged tactic script uses 5 declared prerequisites and contains 35 exact native proof lines.

dependency-curried kernel-checked theorem body; Alpha enrollment and checked-use authority follow separately sealed release evidence; Stable membership remains unchanged

Proof neighborhood

Direct dependencies

PF000H pythagorean_parameter_even_square PF000I pythagorean_parameter_odd_square parity_cases Stable theorem; checked-use authorized odd_add_even Stable theorem; checked-use authorized even_odd_exclusive_pointwise Stable theorem; checked-use authorized

Direct dependents

Formal native tactic body

Dependencies are introduced as named hypotheses before line 1. Local theorem links identify exact declared prerequisites. This exact body belongs to a complete independently kernel-checked constructive proof bundle and has Alpha checked-use authority; it does not imply Stable membership.

Read the argument

Proof checkpoints

35 script commands · 13 reading checkpoints · 3 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.

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 hmeven
  6. L6
    intro hnodd
02Establish hmsquareL7–9

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply pythagorean parameter even square.

  1. L7
    have hmsquare : exists q. m * m = 2 * q
  2. L8
    apply pythagorean_parameter_even_square
  3. L9
    exact hmeven
03Establish hnsquareL10–13

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply pythagorean parameter odd square.

  1. L10
    have hnsquare : exists q. n * n = 2 * q + 1
  2. L11
    apply pythagorean_parameter_odd_square
  3. L12
    exact hnodd
  4. L13
    specialize parity_cases d
04Separate the logical casesL14–16

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

  1. L14
    cases parity_cases
  2. L15
    cases parity_cases_witness
  3. L16
    exfalso
05Establish hsumoddL17–21

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply odd add even.

  1. L17
    have hsumodd : exists q. n * n + d = 2 * q + 1
  2. L18
    specialize odd_add_even (n * n)
  3. L19
    specialize odd_add_even d
  4. L20
    apply odd_add_even
  5. L21
    exact hnsquare
06Construct an explicit witnessL22–22

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

  1. L22
    exists x
07Use earlier factsL23–23

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

  1. L23
    exact parity_cases_witness_left
08Separate the logical casesL24–25

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

  1. L24
    cases hmsquare
  2. L25
    cases hsumodd
09Use earlier factsL26–30

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

  1. L26
    specialize even_odd_exclusive_pointwise (m * m)
  2. L27
    specialize even_odd_exclusive_pointwise x1
  3. L28
    specialize even_odd_exclusive_pointwise x2
  4. L29
    apply even_odd_exclusive_pointwise
  5. L30
    exact hmsquare_witness
10Calculate and transport equalitiesL31–31

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

  1. L31
    trans n * n + d
11Use earlier factsL32–33

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

  1. L32
    exact hgap
  2. L33
    exact hsumodd_witness
12Construct an explicit witnessL34–34

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

  1. L34
    exists x
13Use earlier factsL35–35

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

  1. L35
    exact parity_cases_witness_right

Library-wide reading audit

Original exact command ledger · 35 lines
  1. 0001intro m
  2. 0002intro n
  3. 0003intro d
  4. 0004intro hgap
  5. 0005intro hmeven
  6. 0006intro hnodd
  7. 0007have hmsquare : exists q. m * m = 2 * q
  8. 0008apply pythagorean_parameter_even_square
  9. 0009exact hmeven
  10. 0010have hnsquare : exists q. n * n = 2 * q + 1
  11. 0011apply pythagorean_parameter_odd_square
  12. 0012exact hnodd
  13. 0013specialize parity_cases d
  14. 0014cases parity_cases
  15. 0015cases parity_cases_witness
  16. 0016exfalso
  17. 0017have hsumodd : exists q. n * n + d = 2 * q + 1
  18. 0018specialize odd_add_even (n * n)
  19. 0019specialize odd_add_even d
  20. 0020apply odd_add_even
  21. 0021exact hnsquare
  22. 0022exists x
  23. 0023exact parity_cases_witness_left
  24. 0024cases hmsquare
  25. 0025cases hsumodd
  26. 0026specialize even_odd_exclusive_pointwise (m * m)
  27. 0027specialize even_odd_exclusive_pointwise x1
  28. 0028specialize even_odd_exclusive_pointwise x2
  29. 0029apply even_odd_exclusive_pointwise
  30. 0030exact hmsquare_witness
  31. 0031trans n * n + d
  32. 0032exact hgap
  33. 0033exact hsumodd_witness
  34. 0034exists x
  35. 0035exact parity_cases_witness_right