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 up un vp vn wp wn xp xn su sv sw sx R I. (((((up) * (up))) + (((un) * (un)))) = ((su) + (((((up) * (un))) + (((un) * (up))))))) -> (((((vp) * (vp))) + (((vn) * (vn)))) = ((sv) + (((((vp) * (vn))) + (((vn) * (vp))))))) -> (((((wp) * (wp))) + (((wn) * (wn)))) = ((sw) + (((((wp) * (wn))) + (((wn) * (wp))))))) -> (((((xp) * (xp))) + (((xn) * (xn)))) = ((sx) + (((((xp) * (xn))) + (((xn) * (xp))))))) -> (((((up) * (vp))) + (((un) * (vn)))) = ((((wp) * (xp))) + (((wn) * (xn))))) -> (((((up) * (vn))) + (((un) * (vp)))) = ((((wp) * (xn))) + (((wn) * (xp))))) -> (((((((up) + (vn))) * (((up) + (vn))))) + (((((un) + (vp))) * (((un) + (vp)))))) = ((R) + (((((((up) + (vn))) * (((un) + (vp))))) + (((((un) + (vp))) * (((up) + (vn))))))))) -> (((((((wp) + (xp))) * (((wp) + (xp))))) + (((((wn) + (xn))) * (((wn) + (xn)))))) = ((I) + (((((((wp) + (xp))) * (((wn) + (xn))))) + (((((wn) + (xn))) * (((wp) + (xp))))))))) -> R + I = (su + sv) + (sw + sx)Constructive proof overview
Generated structural guide
Lagrange cancellation for two signed squared coordinates, with exact cross-product equations and all four actual scalar squares.
The unchanged tactic script uses 4 declared prerequisites and contains 63 exact native proof lines.
Alpha v34 checked-use · first admitted v28 · independently kernel and Lean verified; not Stable
Proof neighborhood
Direct dependencies
GI0011 gaussian_signed_square_difference_compensation GI0010 gaussian_signed_square_sum_compensation add_cross_sum_chain Alpha theorem; checked-use authorized add_comm Stable theorem; checked-use authorizedDirect 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 (2)
01Fix variables and assumptionsL1–10
02Fix variables and assumptionsL11–20
03Fix variables and assumptionsL21–22
04Establish hdifferenceL23–32
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply gaussian signed square difference compensation.
- L23
have hdifference : ((R) + (((((((up) * (vp))) + (((un) * (vn))))) + (((((up) * (vp))) + (((un) * (vn)))))))) = ((su + sv) + (((((((up) * (vn))) + (((un) * (vp))))) + (((((up) * (vn))) + (((un) * (vp)))))))) - L24
specialize gaussian_signed_square_difference_compensation up - L25
specialize gaussian_signed_square_difference_compensation un - L26
specialize gaussian_signed_square_difference_compensation vp - L27
specialize gaussian_signed_square_difference_compensation vn - L28
specialize gaussian_signed_square_difference_compensation su - L29
specialize gaussian_signed_square_difference_compensation sv - L30
specialize gaussian_signed_square_difference_compensation R - L31
apply gaussian_signed_square_difference_compensation - L32
exact hu
05Use earlier factsL33–34
06Establish hsumL35–44
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply gaussian signed square sum compensation.
- L35
have hsum : ((I) + (((((((wp) * (xn))) + (((wn) * (xp))))) + (((((wp) * (xn))) + (((wn) * (xp)))))))) = ((sw + sx) + (((((((wp) * (xp))) + (((wn) * (xn))))) + (((((wp) * (xp))) + (((wn) * (xn)))))))) - L36
specialize gaussian_signed_square_sum_compensation wp - L37
specialize gaussian_signed_square_sum_compensation wn - L38
specialize gaussian_signed_square_sum_compensation xp - L39
specialize gaussian_signed_square_sum_compensation xn - L40
specialize gaussian_signed_square_sum_compensation sw - L41
specialize gaussian_signed_square_sum_compensation sx - L42
specialize gaussian_signed_square_sum_compensation I - L43
apply gaussian_signed_square_sum_compensation - L44
exact hw
07Use earlier factsL45–46
08Calculate and transport equalitiesL47–50
09Use earlier factsL51–58
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L51
specialize add_cross_sum_chain R - L52
specialize add_cross_sum_chain su + sv - L53
specialize add_cross_sum_chain ((((((up) * (vp))) + (((un) * (vn))))) + (((((up) * (vp))) + (((un) * (vn)))))) - L54
specialize add_cross_sum_chain ((((((up) * (vn))) + (((un) * (vp))))) + (((((up) * (vn))) + (((un) * (vp)))))) - L55
specialize add_cross_sum_chain I - L56
specialize add_cross_sum_chain sw + sx - L57
apply add_cross_sum_chain - L58
exact hdifference
10Calculate and transport equalitiesL59–59
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L59
trans ((I) + (((((((up) * (vn))) + (((un) * (vp))))) + (((((up) * (vn))) + (((un) * (vp))))))))
11Use earlier factsL60–60
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L60
apply add_comm
12Calculate and transport equalitiesL61–61
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L61
trans ((sw + sx) + (((((((up) * (vp))) + (((un) * (vn))))) + (((((up) * (vp))) + (((un) * (vn))))))))
Original exact command ledger · 63 lines
- 0001
intro up - 0002
intro un - 0003
intro vp - 0004
intro vn - 0005
intro wp - 0006
intro wn - 0007
intro xp - 0008
intro xn - 0009
intro su - 0010
intro sv - 0011
intro sw - 0012
intro sx - 0013
intro R - 0014
intro I - 0015
intro hu - 0016
intro hv - 0017
intro hw - 0018
intro hx - 0019
intro hpositive - 0020
intro hnegative - 0021
intro hreal - 0022
intro himaginary - 0023
have hdifference : ((R) + (((((((up) * (vp))) + (((un) * (vn))))) + (((((up) * (vp))) + (((un) * (vn)))))))) = ((su + sv) + (((((((up) * (vn))) + (((un) * (vp))))) + (((((up) * (vn))) + (((un) * (vp)))))))) - 0024
specialize gaussian_signed_square_difference_compensation up - 0025
specialize gaussian_signed_square_difference_compensation un - 0026
specialize gaussian_signed_square_difference_compensation vp - 0027
specialize gaussian_signed_square_difference_compensation vn - 0028
specialize gaussian_signed_square_difference_compensation su - 0029
specialize gaussian_signed_square_difference_compensation sv - 0030
specialize gaussian_signed_square_difference_compensation R - 0031
apply gaussian_signed_square_difference_compensation - 0032
exact hu - 0033
exact hv - 0034
exact hreal - 0035
have hsum : ((I) + (((((((wp) * (xn))) + (((wn) * (xp))))) + (((((wp) * (xn))) + (((wn) * (xp)))))))) = ((sw + sx) + (((((((wp) * (xp))) + (((wn) * (xn))))) + (((((wp) * (xp))) + (((wn) * (xn)))))))) - 0036
specialize gaussian_signed_square_sum_compensation wp - 0037
specialize gaussian_signed_square_sum_compensation wn - 0038
specialize gaussian_signed_square_sum_compensation xp - 0039
specialize gaussian_signed_square_sum_compensation xn - 0040
specialize gaussian_signed_square_sum_compensation sw - 0041
specialize gaussian_signed_square_sum_compensation sx - 0042
specialize gaussian_signed_square_sum_compensation I - 0043
apply gaussian_signed_square_sum_compensation - 0044
exact hw - 0045
exact hx - 0046
exact himaginary - 0047
rewrite <- hpositive at hsum - 0048
rewrite <- hpositive at hsum - 0049
rewrite <- hnegative at hsum - 0050
rewrite <- hnegative at hsum - 0051
specialize add_cross_sum_chain R - 0052
specialize add_cross_sum_chain su + sv - 0053
specialize add_cross_sum_chain ((((((up) * (vp))) + (((un) * (vn))))) + (((((up) * (vp))) + (((un) * (vn)))))) - 0054
specialize add_cross_sum_chain ((((((up) * (vn))) + (((un) * (vp))))) + (((((up) * (vn))) + (((un) * (vp)))))) - 0055
specialize add_cross_sum_chain I - 0056
specialize add_cross_sum_chain sw + sx - 0057
apply add_cross_sum_chain - 0058
exact hdifference - 0059
trans ((I) + (((((((up) * (vn))) + (((un) * (vp))))) + (((((up) * (vn))) + (((un) * (vp)))))))) - 0060
apply add_comm - 0061
trans ((sw + sx) + (((((((up) * (vp))) + (((un) * (vn))))) + (((((up) * (vp))) + (((un) * (vn)))))))) - 0062
exact hsum - 0063
apply add_comm