GI004F

gaussian_norm_exists

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

Construct the actual natural squared norm of every canonical Gaussian integer, with zero and units included.

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 z. (exists ge_real_positive_norm_exists_input ge_real_negative_norm_exists_input ge_imaginary_positive_norm_exists_input ge_imaginary_negative_norm_exists_input. (exists ge_real_code_norm_exists_inputdecode ge_imaginary_code_norm_exists_inputdecode. (((z) = ((ge_real_code_norm_exists_inputdecode) + (ge_imaginary_code_norm_exists_inputdecode)) * S ((ge_real_code_norm_exists_inputdecode) + (ge_imaginary_code_norm_exists_inputdecode)) + ((ge_imaginary_code_norm_exists_inputdecode) + (ge_imaginary_code_norm_exists_inputdecode))) /\ (((((ge_real_code_norm_exists_inputdecode) = 2 * (ge_real_positive_norm_exists_input) /\ (ge_real_negative_norm_exists_input) = 0) \/ exists ge_signed_half_ge_norm_exists_inputdecode_real. (((ge_real_code_norm_exists_inputdecode) = 2 * ge_signed_half_ge_norm_exists_inputdecode_real + 1 /\ (ge_real_positive_norm_exists_input) = 0) /\ (ge_real_negative_norm_exists_input) = S ge_signed_half_ge_norm_exists_inputdecode_real))) /\ ((((ge_imaginary_code_norm_exists_inputdecode) = 2 * (ge_imaginary_positive_norm_exists_input) /\ (ge_imaginary_negative_norm_exists_input) = 0) \/ exists ge_signed_half_ge_norm_exists_inputdecode_imaginary. (((ge_imaginary_code_norm_exists_inputdecode) = 2 * ge_signed_half_ge_norm_exists_inputdecode_imaginary + 1 /\ (ge_imaginary_positive_norm_exists_input) = 0) /\ (ge_imaginary_negative_norm_exists_input) = S ge_signed_half_ge_norm_exists_inputdecode_imaginary))))))) -> exists N. (exists ge_norm_rp_norm_exists_output ge_norm_rn_norm_exists_output ge_norm_ip_norm_exists_output ge_norm_in_norm_exists_output. ((exists ge_representation_real_code_norm_exists_outputrepresentation ge_representation_imaginary_code_norm_exists_outputrepresentation. (((z) = ((ge_representation_real_code_norm_exists_outputrepresentation) + (ge_representation_imaginary_code_norm_exists_outputrepresentation)) * S ((ge_representation_real_code_norm_exists_outputrepresentation) + (ge_representation_imaginary_code_norm_exists_outputrepresentation)) + ((ge_representation_imaginary_code_norm_exists_outputrepresentation) + (ge_representation_imaginary_code_norm_exists_outputrepresentation))) /\ ((exists ge_balance_positive_norm_exists_outputrepresentationreal ge_balance_negative_norm_exists_outputrepresentationreal. (((((ge_representation_real_code_norm_exists_outputrepresentation) = 2 * (ge_balance_positive_norm_exists_outputrepresentationreal) /\ (ge_balance_negative_norm_exists_outputrepresentationreal) = 0) \/ exists ge_signed_half_norm_exists_outputrepresentationrealdecode. (((ge_representation_real_code_norm_exists_outputrepresentation) = 2 * ge_signed_half_norm_exists_outputrepresentationrealdecode + 1 /\ (ge_balance_positive_norm_exists_outputrepresentationreal) = 0) /\ (ge_balance_negative_norm_exists_outputrepresentationreal) = S ge_signed_half_norm_exists_outputrepresentationrealdecode))) /\ ((ge_norm_rp_norm_exists_output) + ge_balance_negative_norm_exists_outputrepresentationreal = (ge_norm_rn_norm_exists_output) + ge_balance_positive_norm_exists_outputrepresentationreal))) /\ (exists ge_balance_positive_norm_exists_outputrepresentationimaginary ge_balance_negative_norm_exists_outputrepresentationimaginary. (((((ge_representation_imaginary_code_norm_exists_outputrepresentation) = 2 * (ge_balance_positive_norm_exists_outputrepresentationimaginary) /\ (ge_balance_negative_norm_exists_outputrepresentationimaginary) = 0) \/ exists ge_signed_half_norm_exists_outputrepresentationimaginarydecode. (((ge_representation_imaginary_code_norm_exists_outputrepresentation) = 2 * ge_signed_half_norm_exists_outputrepresentationimaginarydecode + 1 /\ (ge_balance_positive_norm_exists_outputrepresentationimaginary) = 0) /\ (ge_balance_negative_norm_exists_outputrepresentationimaginary) = S ge_signed_half_norm_exists_outputrepresentationimaginarydecode))) /\ ((ge_norm_ip_norm_exists_output) + ge_balance_negative_norm_exists_outputrepresentationimaginary = (ge_norm_in_norm_exists_output) + ge_balance_positive_norm_exists_outputrepresentationimaginary)))))) /\ (exists ge_real_square_norm_exists_outputsquare ge_imaginary_square_norm_exists_outputsquare. ((((((ge_norm_rp_norm_exists_output) * (ge_norm_rp_norm_exists_output))) + (((ge_norm_rn_norm_exists_output) * (ge_norm_rn_norm_exists_output)))) = ((ge_real_square_norm_exists_outputsquare) + (((((ge_norm_rp_norm_exists_output) * (ge_norm_rn_norm_exists_output))) + (((ge_norm_rn_norm_exists_output) * (ge_norm_rp_norm_exists_output))))))) /\ ((((((ge_norm_ip_norm_exists_output) * (ge_norm_ip_norm_exists_output))) + (((ge_norm_in_norm_exists_output) * (ge_norm_in_norm_exists_output)))) = ((ge_imaginary_square_norm_exists_outputsquare) + (((((ge_norm_ip_norm_exists_output) * (ge_norm_in_norm_exists_output))) + (((ge_norm_in_norm_exists_output) * (ge_norm_ip_norm_exists_output))))))) /\ ((N) = ge_real_square_norm_exists_outputsquare + ge_imaginary_square_norm_exists_outputsquare))))))

Constructive proof overview

Generated structural guide

Construct the actual natural squared norm of every canonical Gaussian integer, with zero and units included.

The unchanged tactic script uses 3 declared prerequisites and contains 29 exact native proof lines.

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

Proof neighborhood

Direct dependencies

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

29 script commands · 7 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.

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

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

  1. L1
    intro z
  2. L2
    intro hvalid
02Separate the logical casesL3–6

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

  1. L3
    cases hvalid
  2. L4
    cases hvalid_witness
  3. L5
    cases hvalid_witness_witness
  4. L6
    cases hvalid_witness_witness_witness
03Establish hnormL7–12

Establish this local claim before using it. It is not an additional assumption. The following proof commands apply gaussian signed norm exists.

  1. L7
    have hnorm : exists N. (exists ge_real_square_code_norm_construct ge_imaginary_square_code_norm_construct. ((((((x) * (x))) + (((x1) * (x1)))) = ((ge_real_square_code_norm_construct) + (((((x) * (x1))) + (((x1) * (x))))))) /\ ((((((x2) * (x2))) + (((x3) * (x3)))) = ((ge_imaginary_square_code_norm_construct) + (((((x2) * (x3))) + (((x3) * (x2))))))) /\ ((N) = ge_real_square_code_norm_construct + ge_imaginary_square_code_norm_construct))))
  2. L8
    specialize gaussian_signed_norm_exists x
  3. L9
    specialize gaussian_signed_norm_exists x1
  4. L10
    specialize gaussian_signed_norm_exists x2
  5. L11
    specialize gaussian_signed_norm_exists x3
  6. L12
    apply gaussian_signed_norm_exists
04Separate the logical casesL13–13

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

  1. L13
    cases hnorm
05Construct an explicit witnessL14–14

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

  1. L14
    exists x4
06Use earlier factsL15–24

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

  1. L15
    specialize gaussian_norm_of_representation z
  2. L16
    specialize gaussian_norm_of_representation x
  3. L17
    specialize gaussian_norm_of_representation x1
  4. L18
    specialize gaussian_norm_of_representation x2
  5. L19
    specialize gaussian_norm_of_representation x3
  6. L20
    specialize gaussian_norm_of_representation x4
  7. L21
    apply gaussian_norm_of_representation
  8. L22
    specialize gaussian_decode_representation z
  9. L23
    specialize gaussian_decode_representation x
  10. L24
    specialize gaussian_decode_representation x1
07Use earlier factsL25–29

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

  1. L25
    specialize gaussian_decode_representation x2
  2. L26
    specialize gaussian_decode_representation x3
  3. L27
    apply gaussian_decode_representation
  4. L28
    exact hvalid_witness_witness_witness_witness
  5. L29
    exact hnorm_witness

Library-wide reading audit

Original exact command ledger · 29 lines
  1. 0001intro z
  2. 0002intro hvalid
  3. 0003cases hvalid
  4. 0004cases hvalid_witness
  5. 0005cases hvalid_witness_witness
  6. 0006cases hvalid_witness_witness_witness
  7. 0007have hnorm : exists N. (exists ge_real_square_code_norm_construct ge_imaginary_square_code_norm_construct. ((((((x) * (x))) + (((x1) * (x1)))) = ((ge_real_square_code_norm_construct) + (((((x) * (x1))) + (((x1) * (x))))))) /\ ((((((x2) * (x2))) + (((x3) * (x3)))) = ((ge_imaginary_square_code_norm_construct) + (((((x2) * (x3))) + (((x3) * (x2))))))) /\ ((N) = ge_real_square_code_norm_construct + ge_imaginary_square_code_norm_construct))))
  8. 0008specialize gaussian_signed_norm_exists x
  9. 0009specialize gaussian_signed_norm_exists x1
  10. 0010specialize gaussian_signed_norm_exists x2
  11. 0011specialize gaussian_signed_norm_exists x3
  12. 0012apply gaussian_signed_norm_exists
  13. 0013cases hnorm
  14. 0014exists x4
  15. 0015specialize gaussian_norm_of_representation z
  16. 0016specialize gaussian_norm_of_representation x
  17. 0017specialize gaussian_norm_of_representation x1
  18. 0018specialize gaussian_norm_of_representation x2
  19. 0019specialize gaussian_norm_of_representation x3
  20. 0020specialize gaussian_norm_of_representation x4
  21. 0021apply gaussian_norm_of_representation
  22. 0022specialize gaussian_decode_representation z
  23. 0023specialize gaussian_decode_representation x
  24. 0024specialize gaussian_decode_representation x1
  25. 0025specialize gaussian_decode_representation x2
  26. 0026specialize gaussian_decode_representation x3
  27. 0027apply gaussian_decode_representation
  28. 0028exact hvalid_witness_witness_witness_witness
  29. 0029exact hnorm_witness