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
GI0012 gaussian_signed_norm_exists GI004D gaussian_norm_of_representation GI0044 gaussian_decode_representationDirect 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
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
02Separate the logical casesL3–6
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.
- 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)))) - L8
specialize gaussian_signed_norm_exists x - L9
specialize gaussian_signed_norm_exists x1 - L10
specialize gaussian_signed_norm_exists x2 - L11
specialize gaussian_signed_norm_exists x3 - L12
apply gaussian_signed_norm_exists
04Separate the logical casesL13–13
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L13
cases hnorm
05Construct an explicit witnessL14–14
Supply the displayed value, then prove that it has the required property.
- L14
exists x4
06Use earlier factsL15–24
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L15
specialize gaussian_norm_of_representation z - L16
specialize gaussian_norm_of_representation x - L17
specialize gaussian_norm_of_representation x1 - L18
specialize gaussian_norm_of_representation x2 - L19
specialize gaussian_norm_of_representation x3 - L20
specialize gaussian_norm_of_representation x4 - L21
apply gaussian_norm_of_representation - L22
specialize gaussian_decode_representation z - L23
specialize gaussian_decode_representation x - L24
specialize gaussian_decode_representation x1
07Use earlier factsL25–29
Original exact command ledger · 29 lines
- 0001
intro z - 0002
intro hvalid - 0003
cases hvalid - 0004
cases hvalid_witness - 0005
cases hvalid_witness_witness - 0006
cases hvalid_witness_witness_witness - 0007
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)))) - 0008
specialize gaussian_signed_norm_exists x - 0009
specialize gaussian_signed_norm_exists x1 - 0010
specialize gaussian_signed_norm_exists x2 - 0011
specialize gaussian_signed_norm_exists x3 - 0012
apply gaussian_signed_norm_exists - 0013
cases hnorm - 0014
exists x4 - 0015
specialize gaussian_norm_of_representation z - 0016
specialize gaussian_norm_of_representation x - 0017
specialize gaussian_norm_of_representation x1 - 0018
specialize gaussian_norm_of_representation x2 - 0019
specialize gaussian_norm_of_representation x3 - 0020
specialize gaussian_norm_of_representation x4 - 0021
apply gaussian_norm_of_representation - 0022
specialize gaussian_decode_representation z - 0023
specialize gaussian_decode_representation x - 0024
specialize gaussian_decode_representation x1 - 0025
specialize gaussian_decode_representation x2 - 0026
specialize gaussian_decode_representation x3 - 0027
apply gaussian_decode_representation - 0028
exact hvalid_witness_witness_witness_witness - 0029
exact hnorm_witness