Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  acongeq Structured version   Visualization version   GIF version

Theorem acongeq 40721
Description: Two numbers in the fundamental domain are alternating-congruent iff they are equal. TODO: could be used to shorten jm2.26 40740. (Contributed by Stefan O'Rear, 4-Oct-2014.)
Assertion
Ref Expression
acongeq ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐵 = 𝐶 ↔ ((2 · 𝐴) ∥ (𝐵𝐶) ∨ (2 · 𝐴) ∥ (𝐵 − -𝐶))))

Proof of Theorem acongeq
StepHypRef Expression
1 2z 12282 . . . . . . 7 2 ∈ ℤ
2 nnz 12272 . . . . . . . 8 (𝐴 ∈ ℕ → 𝐴 ∈ ℤ)
323ad2ant1 1131 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐴 ∈ ℤ)
4 zmulcl 12299 . . . . . . 7 ((2 ∈ ℤ ∧ 𝐴 ∈ ℤ) → (2 · 𝐴) ∈ ℤ)
51, 3, 4sylancr 586 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (2 · 𝐴) ∈ ℤ)
6 elfzelz 13185 . . . . . . 7 (𝐵 ∈ (0...𝐴) → 𝐵 ∈ ℤ)
763ad2ant2 1132 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐵 ∈ ℤ)
8 congid 40709 . . . . . 6 (((2 · 𝐴) ∈ ℤ ∧ 𝐵 ∈ ℤ) → (2 · 𝐴) ∥ (𝐵𝐵))
95, 7, 8syl2anc 583 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (2 · 𝐴) ∥ (𝐵𝐵))
109adantr 480 . . . 4 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ 𝐵 = 𝐶) → (2 · 𝐴) ∥ (𝐵𝐵))
11 oveq2 7263 . . . . 5 (𝐵 = 𝐶 → (𝐵𝐵) = (𝐵𝐶))
1211adantl 481 . . . 4 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ 𝐵 = 𝐶) → (𝐵𝐵) = (𝐵𝐶))
1310, 12breqtrd 5096 . . 3 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ 𝐵 = 𝐶) → (2 · 𝐴) ∥ (𝐵𝐶))
1413orcd 869 . 2 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ 𝐵 = 𝐶) → ((2 · 𝐴) ∥ (𝐵𝐶) ∨ (2 · 𝐴) ∥ (𝐵 − -𝐶)))
15 elfzelz 13185 . . . . . . . . . 10 (𝐶 ∈ (0...𝐴) → 𝐶 ∈ ℤ)
16153ad2ant3 1133 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐶 ∈ ℤ)
177, 16zsubcld 12360 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐵𝐶) ∈ ℤ)
1817zcnd 12356 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐵𝐶) ∈ ℂ)
1918abscld 15076 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (abs‘(𝐵𝐶)) ∈ ℝ)
20 nnre 11910 . . . . . . . 8 (𝐴 ∈ ℕ → 𝐴 ∈ ℝ)
21203ad2ant1 1131 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐴 ∈ ℝ)
22 0re 10908 . . . . . . 7 0 ∈ ℝ
23 resubcl 11215 . . . . . . 7 ((𝐴 ∈ ℝ ∧ 0 ∈ ℝ) → (𝐴 − 0) ∈ ℝ)
2421, 22, 23sylancl 585 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − 0) ∈ ℝ)
25 2re 11977 . . . . . . 7 2 ∈ ℝ
26 remulcl 10887 . . . . . . 7 ((2 ∈ ℝ ∧ 𝐴 ∈ ℝ) → (2 · 𝐴) ∈ ℝ)
2725, 21, 26sylancr 586 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (2 · 𝐴) ∈ ℝ)
28 simp2 1135 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐵 ∈ (0...𝐴))
29 simp3 1136 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐶 ∈ (0...𝐴))
3024leidd 11471 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − 0) ≤ (𝐴 − 0))
31 fzmaxdif 40719 . . . . . . 7 (((𝐴 ∈ ℤ ∧ 𝐵 ∈ (0...𝐴)) ∧ (𝐴 ∈ ℤ ∧ 𝐶 ∈ (0...𝐴)) ∧ (𝐴 − 0) ≤ (𝐴 − 0)) → (abs‘(𝐵𝐶)) ≤ (𝐴 − 0))
323, 28, 3, 29, 30, 31syl221anc 1379 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (abs‘(𝐵𝐶)) ≤ (𝐴 − 0))
33 nnrp 12670 . . . . . . . . 9 (𝐴 ∈ ℕ → 𝐴 ∈ ℝ+)
34333ad2ant1 1131 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐴 ∈ ℝ+)
3521, 34ltaddrpd 12734 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐴 < (𝐴 + 𝐴))
3621recnd 10934 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐴 ∈ ℂ)
3736subid1d 11251 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − 0) = 𝐴)
38362timesd 12146 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (2 · 𝐴) = (𝐴 + 𝐴))
3935, 37, 383brtr4d 5102 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − 0) < (2 · 𝐴))
4019, 24, 27, 32, 39lelttrd 11063 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (abs‘(𝐵𝐶)) < (2 · 𝐴))
4140adantr 480 . . . 4 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → (abs‘(𝐵𝐶)) < (2 · 𝐴))
42 2nn 11976 . . . . . 6 2 ∈ ℕ
43 simpl1 1189 . . . . . 6 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → 𝐴 ∈ ℕ)
44 nnmulcl 11927 . . . . . 6 ((2 ∈ ℕ ∧ 𝐴 ∈ ℕ) → (2 · 𝐴) ∈ ℕ)
4542, 43, 44sylancr 586 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → (2 · 𝐴) ∈ ℕ)
46 simpl2 1190 . . . . . 6 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → 𝐵 ∈ (0...𝐴))
4746elfzelzd 13186 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → 𝐵 ∈ ℤ)
48 simpl3 1191 . . . . . 6 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → 𝐶 ∈ (0...𝐴))
4948elfzelzd 13186 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → 𝐶 ∈ ℤ)
50 simpr 484 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → (2 · 𝐴) ∥ (𝐵𝐶))
51 congabseq 40712 . . . . 5 ((((2 · 𝐴) ∈ ℕ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℤ) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → ((abs‘(𝐵𝐶)) < (2 · 𝐴) ↔ 𝐵 = 𝐶))
5245, 47, 49, 50, 51syl31anc 1371 . . . 4 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → ((abs‘(𝐵𝐶)) < (2 · 𝐴) ↔ 𝐵 = 𝐶))
5341, 52mpbid 231 . . 3 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵𝐶)) → 𝐵 = 𝐶)
54 simpll2 1211 . . . . . . . . . . 11 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐵 ∈ (0...𝐴))
55 elfzle1 13188 . . . . . . . . . . 11 (𝐵 ∈ (0...𝐴) → 0 ≤ 𝐵)
5654, 55syl 17 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 0 ≤ 𝐵)
577zred 12355 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐵 ∈ ℝ)
5816zred 12355 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐶 ∈ ℝ)
5958renegcld 11332 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → -𝐶 ∈ ℝ)
6057, 59resubcld 11333 . . . . . . . . . . . . . . 15 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐵 − -𝐶) ∈ ℝ)
6160recnd 10934 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐵 − -𝐶) ∈ ℂ)
6261abscld 15076 . . . . . . . . . . . . 13 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (abs‘(𝐵 − -𝐶)) ∈ ℝ)
6362ad2antrr 722 . . . . . . . . . . . 12 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (abs‘(𝐵 − -𝐶)) ∈ ℝ)
64 1re 10906 . . . . . . . . . . . . . . . 16 1 ∈ ℝ
65 resubcl 11215 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℝ ∧ 1 ∈ ℝ) → (𝐴 − 1) ∈ ℝ)
6621, 64, 65sylancl 585 . . . . . . . . . . . . . . 15 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − 1) ∈ ℝ)
6766renegcld 11332 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → -(𝐴 − 1) ∈ ℝ)
6821, 67resubcld 11333 . . . . . . . . . . . . 13 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − -(𝐴 − 1)) ∈ ℝ)
6968ad2antrr 722 . . . . . . . . . . . 12 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (𝐴 − -(𝐴 − 1)) ∈ ℝ)
7027ad2antrr 722 . . . . . . . . . . . 12 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (2 · 𝐴) ∈ ℝ)
717ad2antrr 722 . . . . . . . . . . . . . . 15 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐵 ∈ ℤ)
7271zcnd 12356 . . . . . . . . . . . . . 14 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐵 ∈ ℂ)
7316znegcld 12357 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → -𝐶 ∈ ℤ)
7473ad2antrr 722 . . . . . . . . . . . . . . 15 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → -𝐶 ∈ ℤ)
7574zcnd 12356 . . . . . . . . . . . . . 14 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → -𝐶 ∈ ℂ)
7672, 75abssubd 15093 . . . . . . . . . . . . 13 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (abs‘(𝐵 − -𝐶)) = (abs‘(-𝐶𝐵)))
77 0zd 12261 . . . . . . . . . . . . . 14 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 0 ∈ ℤ)
78 simpr 484 . . . . . . . . . . . . . . . 16 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐶 ∈ (0...(𝐴 − 1)))
79 0zd 12261 . . . . . . . . . . . . . . . . . 18 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 0 ∈ ℤ)
80 1z 12280 . . . . . . . . . . . . . . . . . . 19 1 ∈ ℤ
81 zsubcl 12292 . . . . . . . . . . . . . . . . . . 19 ((𝐴 ∈ ℤ ∧ 1 ∈ ℤ) → (𝐴 − 1) ∈ ℤ)
823, 80, 81sylancl 585 . . . . . . . . . . . . . . . . . 18 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − 1) ∈ ℤ)
83 fzneg 40720 . . . . . . . . . . . . . . . . . 18 ((𝐶 ∈ ℤ ∧ 0 ∈ ℤ ∧ (𝐴 − 1) ∈ ℤ) → (𝐶 ∈ (0...(𝐴 − 1)) ↔ -𝐶 ∈ (-(𝐴 − 1)...-0)))
8416, 79, 82, 83syl3anc 1369 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐶 ∈ (0...(𝐴 − 1)) ↔ -𝐶 ∈ (-(𝐴 − 1)...-0)))
8584ad2antrr 722 . . . . . . . . . . . . . . . 16 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (𝐶 ∈ (0...(𝐴 − 1)) ↔ -𝐶 ∈ (-(𝐴 − 1)...-0)))
8678, 85mpbid 231 . . . . . . . . . . . . . . 15 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → -𝐶 ∈ (-(𝐴 − 1)...-0))
87 neg0 11197 . . . . . . . . . . . . . . . . 17 -0 = 0
8887a1i 11 . . . . . . . . . . . . . . . 16 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → -0 = 0)
8988oveq2d 7271 . . . . . . . . . . . . . . 15 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (-(𝐴 − 1)...-0) = (-(𝐴 − 1)...0))
9086, 89eleqtrd 2841 . . . . . . . . . . . . . 14 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → -𝐶 ∈ (-(𝐴 − 1)...0))
913ad2antrr 722 . . . . . . . . . . . . . 14 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐴 ∈ ℤ)
92 simp1 1134 . . . . . . . . . . . . . . . . . . 19 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐴 ∈ ℕ)
9342, 92, 44sylancr 586 . . . . . . . . . . . . . . . . . 18 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (2 · 𝐴) ∈ ℕ)
94 nnm1nn0 12204 . . . . . . . . . . . . . . . . . 18 ((2 · 𝐴) ∈ ℕ → ((2 · 𝐴) − 1) ∈ ℕ0)
9593, 94syl 17 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → ((2 · 𝐴) − 1) ∈ ℕ0)
9695nn0ge0d 12226 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 0 ≤ ((2 · 𝐴) − 1))
97 0m0e0 12023 . . . . . . . . . . . . . . . . 17 (0 − 0) = 0
9897a1i 11 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (0 − 0) = 0)
99 1cnd 10901 . . . . . . . . . . . . . . . . . 18 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 1 ∈ ℂ)
10036, 36, 99addsubassd 11282 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → ((𝐴 + 𝐴) − 1) = (𝐴 + (𝐴 − 1)))
10138oveq1d 7270 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → ((2 · 𝐴) − 1) = ((𝐴 + 𝐴) − 1))
102 ax-1cn 10860 . . . . . . . . . . . . . . . . . . 19 1 ∈ ℂ
103 subcl 11150 . . . . . . . . . . . . . . . . . . 19 ((𝐴 ∈ ℂ ∧ 1 ∈ ℂ) → (𝐴 − 1) ∈ ℂ)
10436, 102, 103sylancl 585 . . . . . . . . . . . . . . . . . 18 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − 1) ∈ ℂ)
10536, 104subnegd 11269 . . . . . . . . . . . . . . . . 17 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − -(𝐴 − 1)) = (𝐴 + (𝐴 − 1)))
106100, 101, 1053eqtr4rd 2789 . . . . . . . . . . . . . . . 16 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − -(𝐴 − 1)) = ((2 · 𝐴) − 1))
10796, 98, 1063brtr4d 5102 . . . . . . . . . . . . . . 15 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (0 − 0) ≤ (𝐴 − -(𝐴 − 1)))
108107ad2antrr 722 . . . . . . . . . . . . . 14 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (0 − 0) ≤ (𝐴 − -(𝐴 − 1)))
109 fzmaxdif 40719 . . . . . . . . . . . . . 14 (((0 ∈ ℤ ∧ -𝐶 ∈ (-(𝐴 − 1)...0)) ∧ (𝐴 ∈ ℤ ∧ 𝐵 ∈ (0...𝐴)) ∧ (0 − 0) ≤ (𝐴 − -(𝐴 − 1))) → (abs‘(-𝐶𝐵)) ≤ (𝐴 − -(𝐴 − 1)))
11077, 90, 91, 54, 108, 109syl221anc 1379 . . . . . . . . . . . . 13 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (abs‘(-𝐶𝐵)) ≤ (𝐴 − -(𝐴 − 1)))
11176, 110eqbrtrd 5092 . . . . . . . . . . . 12 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (abs‘(𝐵 − -𝐶)) ≤ (𝐴 − -(𝐴 − 1)))
11227ltm1d 11837 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → ((2 · 𝐴) − 1) < (2 · 𝐴))
113106, 112eqbrtrd 5092 . . . . . . . . . . . . 13 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 − -(𝐴 − 1)) < (2 · 𝐴))
114113ad2antrr 722 . . . . . . . . . . . 12 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (𝐴 − -(𝐴 − 1)) < (2 · 𝐴))
11563, 69, 70, 111, 114lelttrd 11063 . . . . . . . . . . 11 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (abs‘(𝐵 − -𝐶)) < (2 · 𝐴))
11693ad2antrr 722 . . . . . . . . . . . 12 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (2 · 𝐴) ∈ ℕ)
117 simplr 765 . . . . . . . . . . . 12 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (2 · 𝐴) ∥ (𝐵 − -𝐶))
118 congabseq 40712 . . . . . . . . . . . 12 ((((2 · 𝐴) ∈ ℕ ∧ 𝐵 ∈ ℤ ∧ -𝐶 ∈ ℤ) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) → ((abs‘(𝐵 − -𝐶)) < (2 · 𝐴) ↔ 𝐵 = -𝐶))
119116, 71, 74, 117, 118syl31anc 1371 . . . . . . . . . . 11 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → ((abs‘(𝐵 − -𝐶)) < (2 · 𝐴) ↔ 𝐵 = -𝐶))
120115, 119mpbid 231 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐵 = -𝐶)
12156, 120breqtrd 5096 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 0 ≤ -𝐶)
122 elfzelz 13185 . . . . . . . . . . . 12 (𝐶 ∈ (0...(𝐴 − 1)) → 𝐶 ∈ ℤ)
123122zred 12355 . . . . . . . . . . 11 (𝐶 ∈ (0...(𝐴 − 1)) → 𝐶 ∈ ℝ)
124123adantl 481 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐶 ∈ ℝ)
125124le0neg1d 11476 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (𝐶 ≤ 0 ↔ 0 ≤ -𝐶))
126121, 125mpbird 256 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐶 ≤ 0)
127 elfzle1 13188 . . . . . . . . 9 (𝐶 ∈ (0...(𝐴 − 1)) → 0 ≤ 𝐶)
128127adantl 481 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 0 ≤ 𝐶)
129 letri3 10991 . . . . . . . . 9 ((𝐶 ∈ ℝ ∧ 0 ∈ ℝ) → (𝐶 = 0 ↔ (𝐶 ≤ 0 ∧ 0 ≤ 𝐶)))
130124, 22, 129sylancl 585 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → (𝐶 = 0 ↔ (𝐶 ≤ 0 ∧ 0 ≤ 𝐶)))
131126, 128, 130mpbir2and 709 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐶 = 0)
132131negeqd 11145 . . . . . 6 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → -𝐶 = -0)
133132, 88eqtrd 2778 . . . . 5 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → -𝐶 = 0)
134133, 120, 1313eqtr4d 2788 . . . 4 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 ∈ (0...(𝐴 − 1))) → 𝐵 = 𝐶)
135 oveq2 7263 . . . . . . . . 9 (𝐶 = 𝐴 → (𝐵𝐶) = (𝐵𝐴))
136135adantl 481 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (𝐵𝐶) = (𝐵𝐴))
137136fveq2d 6760 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (abs‘(𝐵𝐶)) = (abs‘(𝐵𝐴)))
13840ad2antrr 722 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (abs‘(𝐵𝐶)) < (2 · 𝐴))
139137, 138eqbrtrrd 5094 . . . . . 6 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (abs‘(𝐵𝐴)) < (2 · 𝐴))
14093ad2antrr 722 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (2 · 𝐴) ∈ ℕ)
1417ad2antrr 722 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → 𝐵 ∈ ℤ)
1423ad2antrr 722 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → 𝐴 ∈ ℤ)
143 simplr 765 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (2 · 𝐴) ∥ (𝐵 − -𝐶))
1447zcnd 12356 . . . . . . . . . . . . . 14 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐵 ∈ ℂ)
14536, 36, 144ppncand 11302 . . . . . . . . . . . . 13 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → ((𝐴 + 𝐴) + (𝐵𝐴)) = (𝐴 + 𝐵))
14636, 144addcomd 11107 . . . . . . . . . . . . 13 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐴 + 𝐵) = (𝐵 + 𝐴))
147145, 146eqtrd 2778 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → ((𝐴 + 𝐴) + (𝐵𝐴)) = (𝐵 + 𝐴))
148147ad2antrr 722 . . . . . . . . . . 11 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → ((𝐴 + 𝐴) + (𝐵𝐴)) = (𝐵 + 𝐴))
149 oveq2 7263 . . . . . . . . . . . 12 (𝐶 = 𝐴 → (𝐵 + 𝐶) = (𝐵 + 𝐴))
150149adantl 481 . . . . . . . . . . 11 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (𝐵 + 𝐶) = (𝐵 + 𝐴))
151148, 150eqtr4d 2781 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → ((𝐴 + 𝐴) + (𝐵𝐴)) = (𝐵 + 𝐶))
15238oveq1d 7270 . . . . . . . . . . 11 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → ((2 · 𝐴) + (𝐵𝐴)) = ((𝐴 + 𝐴) + (𝐵𝐴)))
153152ad2antrr 722 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → ((2 · 𝐴) + (𝐵𝐴)) = ((𝐴 + 𝐴) + (𝐵𝐴)))
15416zcnd 12356 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐶 ∈ ℂ)
155144, 154subnegd 11269 . . . . . . . . . . 11 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐵 − -𝐶) = (𝐵 + 𝐶))
156155ad2antrr 722 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (𝐵 − -𝐶) = (𝐵 + 𝐶))
157151, 153, 1563eqtr4d 2788 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → ((2 · 𝐴) + (𝐵𝐴)) = (𝐵 − -𝐶))
158143, 157breqtrrd 5098 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (2 · 𝐴) ∥ ((2 · 𝐴) + (𝐵𝐴)))
1595ad2antrr 722 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (2 · 𝐴) ∈ ℤ)
1607, 3zsubcld 12360 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐵𝐴) ∈ ℤ)
161160ad2antrr 722 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (𝐵𝐴) ∈ ℤ)
162 dvdsadd 15939 . . . . . . . . 9 (((2 · 𝐴) ∈ ℤ ∧ (𝐵𝐴) ∈ ℤ) → ((2 · 𝐴) ∥ (𝐵𝐴) ↔ (2 · 𝐴) ∥ ((2 · 𝐴) + (𝐵𝐴))))
163159, 161, 162syl2anc 583 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → ((2 · 𝐴) ∥ (𝐵𝐴) ↔ (2 · 𝐴) ∥ ((2 · 𝐴) + (𝐵𝐴))))
164158, 163mpbird 256 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → (2 · 𝐴) ∥ (𝐵𝐴))
165 congabseq 40712 . . . . . . 7 ((((2 · 𝐴) ∈ ℕ ∧ 𝐵 ∈ ℤ ∧ 𝐴 ∈ ℤ) ∧ (2 · 𝐴) ∥ (𝐵𝐴)) → ((abs‘(𝐵𝐴)) < (2 · 𝐴) ↔ 𝐵 = 𝐴))
166140, 141, 142, 164, 165syl31anc 1371 . . . . . 6 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → ((abs‘(𝐵𝐴)) < (2 · 𝐴) ↔ 𝐵 = 𝐴))
167139, 166mpbid 231 . . . . 5 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → 𝐵 = 𝐴)
168 simpr 484 . . . . 5 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → 𝐶 = 𝐴)
169167, 168eqtr4d 2781 . . . 4 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) ∧ 𝐶 = 𝐴) → 𝐵 = 𝐶)
170 nnnn0 12170 . . . . . . . 8 (𝐴 ∈ ℕ → 𝐴 ∈ ℕ0)
1711703ad2ant1 1131 . . . . . . 7 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐴 ∈ ℕ0)
172 nn0uz 12549 . . . . . . 7 0 = (ℤ‘0)
173171, 172eleqtrdi 2849 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → 𝐴 ∈ (ℤ‘0))
174 fzm1 13265 . . . . . . 7 (𝐴 ∈ (ℤ‘0) → (𝐶 ∈ (0...𝐴) ↔ (𝐶 ∈ (0...(𝐴 − 1)) ∨ 𝐶 = 𝐴)))
175174biimpa 476 . . . . . 6 ((𝐴 ∈ (ℤ‘0) ∧ 𝐶 ∈ (0...𝐴)) → (𝐶 ∈ (0...(𝐴 − 1)) ∨ 𝐶 = 𝐴))
176173, 29, 175syl2anc 583 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐶 ∈ (0...(𝐴 − 1)) ∨ 𝐶 = 𝐴))
177176adantr 480 . . . 4 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) → (𝐶 ∈ (0...(𝐴 − 1)) ∨ 𝐶 = 𝐴))
178134, 169, 177mpjaodan 955 . . 3 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ (2 · 𝐴) ∥ (𝐵 − -𝐶)) → 𝐵 = 𝐶)
17953, 178jaodan 954 . 2 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) ∧ ((2 · 𝐴) ∥ (𝐵𝐶) ∨ (2 · 𝐴) ∥ (𝐵 − -𝐶))) → 𝐵 = 𝐶)
18014, 179impbida 797 1 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ (0...𝐴) ∧ 𝐶 ∈ (0...𝐴)) → (𝐵 = 𝐶 ↔ ((2 · 𝐴) ∥ (𝐵𝐶) ∨ (2 · 𝐴) ∥ (𝐵 − -𝐶))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108   class class class wbr 5070  cfv 6418  (class class class)co 7255  cc 10800  cr 10801  0cc0 10802  1c1 10803   + caddc 10805   · cmul 10807   < clt 10940  cle 10941  cmin 11135  -cneg 11136  cn 11903  2c2 11958  0cn0 12163  cz 12249  cuz 12511  +crp 12659  ...cfz 13168  abscabs 14873  cdvds 15891
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-sup 9131  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-seq 13650  df-exp 13711  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-dvds 15892
This theorem is referenced by:  jm2.27a  40743
  Copyright terms: Public domain W3C validator