MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  difsqpwdvds Structured version   Visualization version   GIF version

Theorem difsqpwdvds 17125
Description: If the difference of two squares is a power of a prime, the prime divides twice the second squared number. (Contributed by AV, 13-Aug-2021.)
Assertion
Ref Expression
difsqpwdvds (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → ((𝐶↑𝐷) = ((𝐴↑2) − (𝐵↑2)) → 𝐶 ∥ (2 · 𝐵)))

Proof of Theorem difsqpwdvds
Dummy variables 𝑚 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nn0cn 12667 . . . . . . 7 (𝐴 ∈ ℕ0 → 𝐴 ∈ ℂ)
2 nn0cn 12667 . . . . . . 7 (𝐵 ∈ ℕ0 → 𝐵 ∈ ℂ)
31, 2anim12i 625 . . . . . 6 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → (𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ))
433adant3 1151 . . . . 5 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ))
5 subsq 14407 . . . . 5 ((𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ) → ((𝐴↑2) − (𝐵↑2)) = ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
64, 5syl 18 . . . 4 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → ((𝐴↑2) − (𝐵↑2)) = ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
76adantr 486 . . 3 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → ((𝐴↑2) − (𝐵↑2)) = ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
87eqeq2d 2780 . 2 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → ((𝐶↑𝐷) = ((𝐴↑2) − (𝐵↑2)) ↔ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))))
9 simprl 783 . . . . . . 7 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → 𝐶 ∈ ℙ)
10 nn0z 12768 . . . . . . . . . . . 12 (𝐴 ∈ ℕ0 → 𝐴 ∈ ℤ)
11 nn0z 12768 . . . . . . . . . . . 12 (𝐵 ∈ ℕ0 → 𝐵 ∈ ℤ)
1210, 11anim12i 625 . . . . . . . . . . 11 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → (𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ))
13 zaddcl 12787 . . . . . . . . . . 11 ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → (𝐴 + 𝐵) ∈ ℤ)
1412, 13syl 18 . . . . . . . . . 10 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → (𝐴 + 𝐵) ∈ ℤ)
15143adant3 1151 . . . . . . . . 9 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐴 + 𝐵) ∈ ℤ)
16 nn0re 12666 . . . . . . . . . . . . 13 (𝐵 ∈ ℕ0 → 𝐵 ∈ ℝ)
1716adantl 487 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → 𝐵 ∈ ℝ)
18 1red 11359 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → 1 ∈ ℝ)
19 nn0re 12666 . . . . . . . . . . . . 13 (𝐴 ∈ ℕ0 → 𝐴 ∈ ℝ)
2019adantr 486 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → 𝐴 ∈ ℝ)
2117, 18, 20ltaddsub2d 11968 . . . . . . . . . . 11 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → ((𝐵 + 1) < 𝐴 ↔ 1 < (𝐴 − 𝐵)))
22 simpr 490 . . . . . . . . . . . . 13 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → 𝐵 ∈ ℕ0)
2320, 22, 183jca 1147 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → (𝐴 ∈ ℝ ∧ 𝐵 ∈ ℕ0 ∧ 1 ∈ ℝ))
24 difgtsumgt 12710 . . . . . . . . . . . 12 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℕ0 ∧ 1 ∈ ℝ) → (1 < (𝐴 − 𝐵) → 1 < (𝐴 + 𝐵)))
2523, 24syl 18 . . . . . . . . . . 11 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → (1 < (𝐴 − 𝐵) → 1 < (𝐴 + 𝐵)))
2621, 25sylbid 243 . . . . . . . . . 10 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → ((𝐵 + 1) < 𝐴 → 1 < (𝐴 + 𝐵)))
27263impia 1136 . . . . . . . . 9 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → 1 < (𝐴 + 𝐵))
28 eluz2b1 13097 . . . . . . . . 9 ((𝐴 + 𝐵) ∈ (ℤ≥‘2) ↔ ((𝐴 + 𝐵) ∈ ℤ ∧ 1 < (𝐴 + 𝐵)))
2915, 27, 28sylanbrc 595 . . . . . . . 8 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐴 + 𝐵) ∈ (ℤ≥‘2))
3029adantr 486 . . . . . . 7 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (𝐴 + 𝐵) ∈ (ℤ≥‘2))
31 simprr 785 . . . . . . 7 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → 𝐷 ∈ ℕ0)
329, 30, 313jca 1147 . . . . . 6 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (𝐶 ∈ ℙ ∧ (𝐴 + 𝐵) ∈ (ℤ≥‘2) ∧ 𝐷 ∈ ℕ0))
3332adantr 486 . . . . 5 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (𝐶 ∈ ℙ ∧ (𝐴 + 𝐵) ∈ (ℤ≥‘2) ∧ 𝐷 ∈ ℕ0))
34 zsubcl 12789 . . . . . . . . . . 11 ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → (𝐴 − 𝐵) ∈ ℤ)
3513, 34jca 521 . . . . . . . . . 10 ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ))
3612, 35syl 18 . . . . . . . . 9 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → ((𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ))
37363adant3 1151 . . . . . . . 8 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → ((𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ))
38 dvdsmul1 16503 . . . . . . . 8 (((𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ) → (𝐴 + 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
3937, 38syl 18 . . . . . . 7 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐴 + 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
4039ad2antrr 739 . . . . . 6 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (𝐴 + 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
41 breq2 5115 . . . . . . 7 ((𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵)) → ((𝐴 + 𝐵) ∥ (𝐶↑𝐷) ↔ (𝐴 + 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵))))
4241adantl 487 . . . . . 6 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → ((𝐴 + 𝐵) ∥ (𝐶↑𝐷) ↔ (𝐴 + 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵))))
4340, 42mpbird 260 . . . . 5 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (𝐴 + 𝐵) ∥ (𝐶↑𝐷))
44 dvdsprmpweqnn 17123 . . . . 5 ((𝐶 ∈ ℙ ∧ (𝐴 + 𝐵) ∈ (ℤ≥‘2) ∧ 𝐷 ∈ ℕ0) → ((𝐴 + 𝐵) ∥ (𝐶↑𝐷) → ∃𝑚 ∈ ℕ (𝐴 + 𝐵) = (𝐶↑𝑚)))
4533, 43, 44sylc 66 . . . 4 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → ∃𝑚 ∈ ℕ (𝐴 + 𝐵) = (𝐶↑𝑚))
46 prmz 16907 . . . . . . . . . . 11 (𝐶 ∈ ℙ → 𝐶 ∈ ℤ)
47 iddvdsexp 16505 . . . . . . . . . . 11 ((𝐶 ∈ ℤ ∧ 𝑚 ∈ ℕ) → 𝐶 ∥ (𝐶↑𝑚))
4846, 47sylan 592 . . . . . . . . . 10 ((𝐶 ∈ ℙ ∧ 𝑚 ∈ ℕ) → 𝐶 ∥ (𝐶↑𝑚))
49 breq2 5115 . . . . . . . . . 10 ((𝐴 + 𝐵) = (𝐶↑𝑚) → (𝐶 ∥ (𝐴 + 𝐵) ↔ 𝐶 ∥ (𝐶↑𝑚)))
5048, 49syl5ibrcom 250 . . . . . . . . 9 ((𝐶 ∈ ℙ ∧ 𝑚 ∈ ℕ) → ((𝐴 + 𝐵) = (𝐶↑𝑚) → 𝐶 ∥ (𝐴 + 𝐵)))
5150rexlimdva 3173 . . . . . . . 8 (𝐶 ∈ ℙ → (∃𝑚 ∈ ℕ (𝐴 + 𝐵) = (𝐶↑𝑚) → 𝐶 ∥ (𝐴 + 𝐵)))
5251adantr 486 . . . . . . 7 ((𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0) → (∃𝑚 ∈ ℕ (𝐴 + 𝐵) = (𝐶↑𝑚) → 𝐶 ∥ (𝐴 + 𝐵)))
5352adantl 487 . . . . . 6 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (∃𝑚 ∈ ℕ (𝐴 + 𝐵) = (𝐶↑𝑚) → 𝐶 ∥ (𝐴 + 𝐵)))
5453adantr 486 . . . . 5 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (∃𝑚 ∈ ℕ (𝐴 + 𝐵) = (𝐶↑𝑚) → 𝐶 ∥ (𝐴 + 𝐵)))
5512, 34syl 18 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0) → (𝐴 − 𝐵) ∈ ℤ)
56553adant3 1151 . . . . . . . . . . 11 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐴 − 𝐵) ∈ ℤ)
5721biimp3a 1501 . . . . . . . . . . 11 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → 1 < (𝐴 − 𝐵))
58 eluz2b1 13097 . . . . . . . . . . 11 ((𝐴 − 𝐵) ∈ (ℤ≥‘2) ↔ ((𝐴 − 𝐵) ∈ ℤ ∧ 1 < (𝐴 − 𝐵)))
5956, 57, 58sylanbrc 595 . . . . . . . . . 10 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐴 − 𝐵) ∈ (ℤ≥‘2))
6059adantr 486 . . . . . . . . 9 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (𝐴 − 𝐵) ∈ (ℤ≥‘2))
619, 60, 313jca 1147 . . . . . . . 8 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (𝐶 ∈ ℙ ∧ (𝐴 − 𝐵) ∈ (ℤ≥‘2) ∧ 𝐷 ∈ ℕ0))
6261adantr 486 . . . . . . 7 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (𝐶 ∈ ℙ ∧ (𝐴 − 𝐵) ∈ (ℤ≥‘2) ∧ 𝐷 ∈ ℕ0))
63 dvdsmul2 16504 . . . . . . . . . 10 (((𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ) → (𝐴 − 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
6437, 63syl 18 . . . . . . . . 9 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐴 − 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
6564ad2antrr 739 . . . . . . . 8 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (𝐴 − 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵)))
66 breq2 5115 . . . . . . . . 9 ((𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵)) → ((𝐴 − 𝐵) ∥ (𝐶↑𝐷) ↔ (𝐴 − 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵))))
6766adantl 487 . . . . . . . 8 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → ((𝐴 − 𝐵) ∥ (𝐶↑𝐷) ↔ (𝐴 − 𝐵) ∥ ((𝐴 + 𝐵) · (𝐴 − 𝐵))))
6865, 67mpbird 260 . . . . . . 7 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (𝐴 − 𝐵) ∥ (𝐶↑𝐷))
69 dvdsprmpweqnn 17123 . . . . . . 7 ((𝐶 ∈ ℙ ∧ (𝐴 − 𝐵) ∈ (ℤ≥‘2) ∧ 𝐷 ∈ ℕ0) → ((𝐴 − 𝐵) ∥ (𝐶↑𝐷) → ∃𝑛 ∈ ℕ (𝐴 − 𝐵) = (𝐶↑𝑛)))
7062, 68, 69sylc 66 . . . . . 6 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → ∃𝑛 ∈ ℕ (𝐴 − 𝐵) = (𝐶↑𝑛))
71 iddvdsexp 16505 . . . . . . . . . . . . 13 ((𝐶 ∈ ℤ ∧ 𝑛 ∈ ℕ) → 𝐶 ∥ (𝐶↑𝑛))
7246, 71sylan 592 . . . . . . . . . . . 12 ((𝐶 ∈ ℙ ∧ 𝑛 ∈ ℕ) → 𝐶 ∥ (𝐶↑𝑛))
73 breq2 5115 . . . . . . . . . . . 12 ((𝐴 − 𝐵) = (𝐶↑𝑛) → (𝐶 ∥ (𝐴 − 𝐵) ↔ 𝐶 ∥ (𝐶↑𝑛)))
7472, 73syl5ibrcom 250 . . . . . . . . . . 11 ((𝐶 ∈ ℙ ∧ 𝑛 ∈ ℕ) → ((𝐴 − 𝐵) = (𝐶↑𝑛) → 𝐶 ∥ (𝐴 − 𝐵)))
7574rexlimdva 3173 . . . . . . . . . 10 (𝐶 ∈ ℙ → (∃𝑛 ∈ ℕ (𝐴 − 𝐵) = (𝐶↑𝑛) → 𝐶 ∥ (𝐴 − 𝐵)))
7675adantr 486 . . . . . . . . 9 ((𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0) → (∃𝑛 ∈ ℕ (𝐴 − 𝐵) = (𝐶↑𝑛) → 𝐶 ∥ (𝐴 − 𝐵)))
7776adantl 487 . . . . . . . 8 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (∃𝑛 ∈ ℕ (𝐴 − 𝐵) = (𝐶↑𝑛) → 𝐶 ∥ (𝐴 − 𝐵)))
7877adantr 486 . . . . . . 7 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (∃𝑛 ∈ ℕ (𝐴 − 𝐵) = (𝐶↑𝑛) → 𝐶 ∥ (𝐴 − 𝐵)))
7946adantr 486 . . . . . . . . . . . . 13 ((𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0) → 𝐶 ∈ ℤ)
8037, 79anim12ci 626 . . . . . . . . . . . 12 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (𝐶 ∈ ℤ ∧ ((𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ)))
81 3anass 1112 . . . . . . . . . . . 12 ((𝐶 ∈ ℤ ∧ (𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ) ↔ (𝐶 ∈ ℤ ∧ ((𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ)))
8280, 81sylibr 237 . . . . . . . . . . 11 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (𝐶 ∈ ℤ ∧ (𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ))
83 dvds2sub 16517 . . . . . . . . . . 11 ((𝐶 ∈ ℤ ∧ (𝐴 + 𝐵) ∈ ℤ ∧ (𝐴 − 𝐵) ∈ ℤ) → ((𝐶 ∥ (𝐴 + 𝐵) ∧ 𝐶 ∥ (𝐴 − 𝐵)) → 𝐶 ∥ ((𝐴 + 𝐵) − (𝐴 − 𝐵))))
8482, 83syl 18 . . . . . . . . . 10 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → ((𝐶 ∥ (𝐴 + 𝐵) ∧ 𝐶 ∥ (𝐴 − 𝐵)) → 𝐶 ∥ ((𝐴 + 𝐵) − (𝐴 − 𝐵))))
8513ad2ant1 1152 . . . . . . . . . . . . . . 15 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → 𝐴 ∈ ℂ)
8623ad2ant2 1153 . . . . . . . . . . . . . . 15 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → 𝐵 ∈ ℂ)
8785, 86, 86pnncand 11758 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → ((𝐴 + 𝐵) − (𝐴 − 𝐵)) = (𝐵 + 𝐵))
8822timesd 12640 . . . . . . . . . . . . . . . 16 (𝐵 ∈ ℕ0 → (2 · 𝐵) = (𝐵 + 𝐵))
8988eqcomd 2775 . . . . . . . . . . . . . . 15 (𝐵 ∈ ℕ0 → (𝐵 + 𝐵) = (2 · 𝐵))
90893ad2ant2 1153 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐵 + 𝐵) = (2 · 𝐵))
9187, 90eqtrd 2804 . . . . . . . . . . . . 13 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → ((𝐴 + 𝐵) − (𝐴 − 𝐵)) = (2 · 𝐵))
9291breq2d 5123 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐶 ∥ ((𝐴 + 𝐵) − (𝐴 − 𝐵)) ↔ 𝐶 ∥ (2 · 𝐵)))
9392biimpd 232 . . . . . . . . . . 11 ((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) → (𝐶 ∥ ((𝐴 + 𝐵) − (𝐴 − 𝐵)) → 𝐶 ∥ (2 · 𝐵)))
9493adantr 486 . . . . . . . . . 10 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (𝐶 ∥ ((𝐴 + 𝐵) − (𝐴 − 𝐵)) → 𝐶 ∥ (2 · 𝐵)))
9584, 94syld 48 . . . . . . . . 9 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → ((𝐶 ∥ (𝐴 + 𝐵) ∧ 𝐶 ∥ (𝐴 − 𝐵)) → 𝐶 ∥ (2 · 𝐵)))
9695expcomd 422 . . . . . . . 8 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → (𝐶 ∥ (𝐴 − 𝐵) → (𝐶 ∥ (𝐴 + 𝐵) → 𝐶 ∥ (2 · 𝐵))))
9796adantr 486 . . . . . . 7 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (𝐶 ∥ (𝐴 − 𝐵) → (𝐶 ∥ (𝐴 + 𝐵) → 𝐶 ∥ (2 · 𝐵))))
9878, 97syld 48 . . . . . 6 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (∃𝑛 ∈ ℕ (𝐴 − 𝐵) = (𝐶↑𝑛) → (𝐶 ∥ (𝐴 + 𝐵) → 𝐶 ∥ (2 · 𝐵))))
9970, 98mpd 16 . . . . 5 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (𝐶 ∥ (𝐴 + 𝐵) → 𝐶 ∥ (2 · 𝐵)))
10054, 99syld 48 . . . 4 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → (∃𝑚 ∈ ℕ (𝐴 + 𝐵) = (𝐶↑𝑚) → 𝐶 ∥ (2 · 𝐵)))
10145, 100mpd 16 . . 3 ((((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) ∧ (𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵))) → 𝐶 ∥ (2 · 𝐵))
102101ex 418 . 2 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → ((𝐶↑𝐷) = ((𝐴 + 𝐵) · (𝐴 − 𝐵)) → 𝐶 ∥ (2 · 𝐵)))
1038, 102sylbid 243 1 (((𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0 ∧ (𝐵 + 1) < 𝐴) ∧ (𝐶 ∈ ℙ ∧ 𝐷 ∈ ℕ0)) → ((𝐶↑𝐷) = ((𝐴↑2) − (𝐵↑2)) → 𝐶 ∥ (2 · 𝐵)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1104   = wceq 1572   ∈ wcel 2151  ∃wrex 3096   class class class wbr 5111  ‘cfv 6573  (class class class)co 7462  ℂcc 11248  ℝcr 11249  1c1 11251   + caddc 11253   · cmul 11255   < clt 11393   − cmin 11591  ℕcn 12386  2c2 12448  ℕ0cn0 12657  ℤcz 12744  ℤ≥cuz 13016  ↑cexp 14257   ∥ cdvds 16478  ℙcprime 16903
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7794  ax-cnex 11306  ax-resscn 11307  ax-1cn 11308  ax-icn 11309  ax-addcl 11310  ax-addrcl 11311  ax-mulcl 11312  ax-mulrcl 11313  ax-mulcom 11314  ax-addass 11315  ax-mulass 11316  ax-distr 11317  ax-i2m1 11318  ax-1ne0 11319  ax-1rid 11320  ax-rnegex 11321  ax-rrecex 11322  ax-cnre 11323  ax-pre-lttri 11324  ax-pre-lttrn 11325  ax-pre-ltadd 11326  ax-pre-mulgt0 11327  ax-pre-sup 11328
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-rmo 3371  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6337  df-ord 6398  df-on 6399  df-lim 6400  df-suc 6401  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-riota 7418  df-ov 7465  df-oprab 7466  df-mpo 7467  df-om 7923  df-1st 8046  df-2nd 8047  df-frecs 8348  df-wrecs 8379  df-recs 8428  df-rdg 8467  df-1o 8525  df-2o 8526  df-er 8766  df-en 9023  df-dom 9024  df-sdom 9025  df-fin 9026  df-sup 9482  df-inf 9483  df-pnf 11395  df-mnf 11396  df-xr 11397  df-ltxr 11398  df-le 11399  df-sub 11593  df-neg 11594  df-div 12025  df-nn 12387  df-2 12456  df-3 12457  df-n0 12658  df-z 12745  df-uz 13017  df-q 13127  df-rp 13172  df-fz 13691  df-fl 13985  df-mod 14063  df-seq 14198  df-exp 14258  df-cj 15322  df-re 15323  df-im 15324  df-sqrt 15458  df-abs 15459  df-dvds 16479  df-gcd 16721  df-prm 16904  df-pc 17075
This theorem is used by:  lighneallem2  49047
  Copyright terms: Public domain W3C validator