Metamath Proof Explorer


Theorem ezcubelinear

Description: Every cube in linear Eisenstein coordinates is the cube of an expression in the quadratic basis with integral coordinates. Proof prepared with AI assistance from OpenAI Codex. (Contributed by Beckett Kaplinski, 22-Nov-2026)

Ref Expression
Hypotheses ezcubelinear.a ⊢ φ → A ∈ ℤ
ezcubelinear.b ⊢ φ → B ∈ ℤ
Assertion ezcubelinear Could not format assertion : No typesetting found for |- ( ph -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-

Proof

Step Hyp Ref Expression
1 ezcubelinear.a ⊢ φ → A ∈ ℤ
2 ezcubelinear.b ⊢ φ → B ∈ ℤ
3 1 adantr ⊢ φ ∧ 2 ∥ B → A ∈ ℤ
4 2 adantr ⊢ φ ∧ 2 ∥ B → B ∈ ℤ
5 simpr ⊢ φ ∧ 2 ∥ B → 2 ∥ B
6 3 4 5 ezcuberoteven Could not format ( ( ph /\ 2 || B ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ph /\ 2 || B ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
7 2 adantr ⊢ φ ∧ ¬ 2 ∥ B → B ∈ ℤ
8 7 adantr ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B ∈ ℤ
9 1 adantr ⊢ φ ∧ ¬ 2 ∥ B → A ∈ ℤ
10 9 adantr ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → A ∈ ℤ
11 8 10 zsubcld ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B − A ∈ ℤ
12 10 znegcld ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → − A ∈ ℤ
13 simpr ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → 2 ∥ A
14 2z ⊢ 2 ∈ ℤ
15 14 a1i ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → 2 ∈ ℤ
16 15 10 jca ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → 2 ∈ ℤ ∧ A ∈ ℤ
17 dvdsnegb ⊢ 2 ∈ ℤ ∧ A ∈ ℤ → 2 ∥ A ↔ 2 ∥ − A
18 16 17 syl ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → 2 ∥ A ↔ 2 ∥ − A
19 13 18 mpbid ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → 2 ∥ − A
20 11 12 19 ezcuberoteven Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
21 11 zcnd ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B − A ∈ ℂ
22 12 zcnd ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → − A ∈ ℂ
23 21 22 ezrotcube Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( -u -u A + ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( -u -u A + ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
24 23 eqcomd Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( -u -u A + ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( -u -u A + ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
25 10 zcnd ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → A ∈ ℂ
26 25 negnegd ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → − − A = A
27 21 25 subnegd ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B - A - − A = B - A + A
28 eqidd ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B − A = B − A
29 8 zcnd ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B ∈ ℂ
30 29 25 21 subadd2d ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B − A = B − A ↔ B - A + A = B
31 28 30 mpbid ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B - A + A = B
32 27 31 eqtrd ⊢ φ ∧ ¬ 2 ∥ B ∧ 2 ∥ A → B - A - − A = B
33 32 oveq1d Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) = ( B x. ( bRoU ` 3 ) ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) = ( B x. ( bRoU ` 3 ) ) ) with typecode |-
34 26 33 oveq12d Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( -u -u A + ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) ) = ( A + ( B x. ( bRoU ` 3 ) ) ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( -u -u A + ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) ) = ( A + ( B x. ( bRoU ` 3 ) ) ) ) with typecode |-
35 34 oveq1d Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( -u -u A + ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( -u -u A + ( ( ( B - A ) - -u A ) x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
36 24 35 eqtrd Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
37 36 eqeq2d Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) <-> ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) <-> ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) ) with typecode |-
38 37 2rexbidv Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) <-> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> ( E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( ( B - A ) + ( -u A x. ( bRoU ` 3 ) ) ) ^ 3 ) <-> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) ) with typecode |-
39 20 38 mpbid Could not format ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ 2 || A ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
40 7 adantr ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → B ∈ ℤ
41 40 znegcld ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → − B ∈ ℤ
42 9 adantr ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → A ∈ ℤ
43 42 40 zsubcld ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → A − B ∈ ℤ
44 simpr ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → ¬ 2 ∥ A
45 42 44 jca ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → A ∈ ℤ ∧ ¬ 2 ∥ A
46 simplr ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → ¬ 2 ∥ B
47 40 46 jca ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → B ∈ ℤ ∧ ¬ 2 ∥ B
48 45 47 jca ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → A ∈ ℤ ∧ ¬ 2 ∥ A ∧ B ∈ ℤ ∧ ¬ 2 ∥ B
49 omoe ⊢ A ∈ ℤ ∧ ¬ 2 ∥ A ∧ B ∈ ℤ ∧ ¬ 2 ∥ B → 2 ∥ A − B
50 48 49 syl ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → 2 ∥ A − B
51 41 43 50 ezcuberoteven Could not format ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( -u B + ( ( A - B ) x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( -u B + ( ( A - B ) x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
52 42 zcnd ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → A ∈ ℂ
53 40 zcnd ⊢ φ ∧ ¬ 2 ∥ B ∧ ¬ 2 ∥ A → B ∈ ℂ
54 52 53 ezrotcube Could not format ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> ( ( -u B + ( ( A - B ) x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> ( ( -u B + ( ( A - B ) x. ( bRoU ` 3 ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
55 54 eqeq2d Could not format ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> ( ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( -u B + ( ( A - B ) x. ( bRoU ` 3 ) ) ) ^ 3 ) <-> ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> ( ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( -u B + ( ( A - B ) x. ( bRoU ` 3 ) ) ) ^ 3 ) <-> ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) ) with typecode |-
56 55 2rexbidv Could not format ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> ( E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( -u B + ( ( A - B ) x. ( bRoU ` 3 ) ) ) ^ 3 ) <-> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> ( E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( -u B + ( ( A - B ) x. ( bRoU ` 3 ) ) ) ^ 3 ) <-> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) ) with typecode |-
57 51 56 mpbid Could not format ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ( ph /\ -. 2 || B ) /\ -. 2 || A ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
58 39 57 pm2.61dan Could not format ( ( ph /\ -. 2 || B ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ( ph /\ -. 2 || B ) -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-
59 6 58 pm2.61dan Could not format ( ph -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) : No typesetting found for |- ( ph -> E. a e. ZZ E. b e. ZZ ( ( a + ( b x. ( 1 + ( 2 x. ( bRoU ` 3 ) ) ) ) ) ^ 3 ) = ( ( A + ( B x. ( bRoU ` 3 ) ) ) ^ 3 ) ) with typecode |-