Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  gpg3kgrtriexlem5 Structured version   Visualization version   GIF version

Theorem gpg3kgrtriexlem5 47992
Description: Lemma 5 for gpg3kgrtriex 47994. (Contributed by AV, 1-Oct-2025.)
Hypothesis
Ref Expression
gpg3kgrtriex.n 𝑁 = (3 · 𝐾)
Assertion
Ref Expression
gpg3kgrtriexlem5 (𝐾 ∈ ℕ → (𝐾 mod 𝑁) ≠ (-𝐾 mod 𝑁))

Proof of Theorem gpg3kgrtriexlem5
StepHypRef Expression
1 3nn 12349 . . . . . . 7 3 ∈ ℕ
21a1i 11 . . . . . 6 (𝐾 ∈ ℕ → 3 ∈ ℕ)
3 2eluzge1 12940 . . . . . . . . 9 2 ∈ (ℤ‘1)
4 eluzfz2 13575 . . . . . . . . 9 (2 ∈ (ℤ‘1) → 2 ∈ (1...2))
53, 4ax-mp 5 . . . . . . . 8 2 ∈ (1...2)
6 3m1e2 12398 . . . . . . . . 9 (3 − 1) = 2
76oveq2i 7446 . . . . . . . 8 (1...(3 − 1)) = (1...2)
85, 7eleqtrri 2839 . . . . . . 7 2 ∈ (1...(3 − 1))
98a1i 11 . . . . . 6 (𝐾 ∈ ℕ → 2 ∈ (1...(3 − 1)))
10 fzm1ndvds 16362 . . . . . 6 ((3 ∈ ℕ ∧ 2 ∈ (1...(3 − 1))) → ¬ 3 ∥ 2)
112, 9, 10syl2anc 584 . . . . 5 (𝐾 ∈ ℕ → ¬ 3 ∥ 2)
12 3z 12654 . . . . . . 7 3 ∈ ℤ
1312a1i 11 . . . . . 6 (𝐾 ∈ ℕ → 3 ∈ ℤ)
14 2z 12653 . . . . . . 7 2 ∈ ℤ
1514a1i 11 . . . . . 6 (𝐾 ∈ ℕ → 2 ∈ ℤ)
16 nnz 12638 . . . . . 6 (𝐾 ∈ ℕ → 𝐾 ∈ ℤ)
17 nnne0 12304 . . . . . 6 (𝐾 ∈ ℕ → 𝐾 ≠ 0)
18 dvdsmulcr 16326 . . . . . 6 ((3 ∈ ℤ ∧ 2 ∈ ℤ ∧ (𝐾 ∈ ℤ ∧ 𝐾 ≠ 0)) → ((3 · 𝐾) ∥ (2 · 𝐾) ↔ 3 ∥ 2))
1913, 15, 16, 17, 18syl112anc 1374 . . . . 5 (𝐾 ∈ ℕ → ((3 · 𝐾) ∥ (2 · 𝐾) ↔ 3 ∥ 2))
2011, 19mtbird 325 . . . 4 (𝐾 ∈ ℕ → ¬ (3 · 𝐾) ∥ (2 · 𝐾))
21 gpg3kgrtriex.n . . . . 5 𝑁 = (3 · 𝐾)
2221breq1i 5156 . . . 4 (𝑁 ∥ (2 · 𝐾) ↔ (3 · 𝐾) ∥ (2 · 𝐾))
2320, 22sylnibr 329 . . 3 (𝐾 ∈ ℕ → ¬ 𝑁 ∥ (2 · 𝐾))
24 id 22 . . . . . . 7 (𝐾 ∈ ℕ → 𝐾 ∈ ℕ)
252, 24nnmulcld 12323 . . . . . 6 (𝐾 ∈ ℕ → (3 · 𝐾) ∈ ℕ)
2621, 25eqeltrid 2844 . . . . 5 (𝐾 ∈ ℕ → 𝑁 ∈ ℕ)
27 2nn 12343 . . . . . . . 8 2 ∈ ℕ
2827a1i 11 . . . . . . 7 (𝐾 ∈ ℕ → 2 ∈ ℕ)
2928, 24nnmulcld 12323 . . . . . 6 (𝐾 ∈ ℕ → (2 · 𝐾) ∈ ℕ)
3029nnzd 12644 . . . . 5 (𝐾 ∈ ℕ → (2 · 𝐾) ∈ ℤ)
31 dvdsval3 16297 . . . . 5 ((𝑁 ∈ ℕ ∧ (2 · 𝐾) ∈ ℤ) → (𝑁 ∥ (2 · 𝐾) ↔ ((2 · 𝐾) mod 𝑁) = 0))
3226, 30, 31syl2anc 584 . . . 4 (𝐾 ∈ ℕ → (𝑁 ∥ (2 · 𝐾) ↔ ((2 · 𝐾) mod 𝑁) = 0))
33 nncn 12278 . . . . . . 7 (𝐾 ∈ ℕ → 𝐾 ∈ ℂ)
34332timesd 12513 . . . . . 6 (𝐾 ∈ ℕ → (2 · 𝐾) = (𝐾 + 𝐾))
3534oveq1d 7450 . . . . 5 (𝐾 ∈ ℕ → ((2 · 𝐾) mod 𝑁) = ((𝐾 + 𝐾) mod 𝑁))
3635eqeq1d 2738 . . . 4 (𝐾 ∈ ℕ → (((2 · 𝐾) mod 𝑁) = 0 ↔ ((𝐾 + 𝐾) mod 𝑁) = 0))
37 summodnegmod 16327 . . . . 5 ((𝐾 ∈ ℤ ∧ 𝐾 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (((𝐾 + 𝐾) mod 𝑁) = 0 ↔ (𝐾 mod 𝑁) = (-𝐾 mod 𝑁)))
3816, 16, 26, 37syl3anc 1371 . . . 4 (𝐾 ∈ ℕ → (((𝐾 + 𝐾) mod 𝑁) = 0 ↔ (𝐾 mod 𝑁) = (-𝐾 mod 𝑁)))
3932, 36, 383bitrd 305 . . 3 (𝐾 ∈ ℕ → (𝑁 ∥ (2 · 𝐾) ↔ (𝐾 mod 𝑁) = (-𝐾 mod 𝑁)))
4023, 39mtbid 324 . 2 (𝐾 ∈ ℕ → ¬ (𝐾 mod 𝑁) = (-𝐾 mod 𝑁))
4140neqned 2946 1 (𝐾 ∈ ℕ → (𝐾 mod 𝑁) ≠ (-𝐾 mod 𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 206   = wceq 1538  wcel 2107  wne 2939   class class class wbr 5149  cfv 6566  (class class class)co 7435  0cc0 11159  1c1 11160   + caddc 11162   · cmul 11164  cmin 11496  -cneg 11497  cn 12270  2c2 12325  3c3 12326  cz 12617  cuz 12882  ...cfz 13550   mod cmo 13912  cdvds 16293
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1793  ax-4 1807  ax-5 1909  ax-6 1966  ax-7 2006  ax-8 2109  ax-9 2117  ax-10 2140  ax-11 2156  ax-12 2176  ax-ext 2707  ax-sep 5303  ax-nul 5313  ax-pow 5372  ax-pr 5439  ax-un 7758  ax-cnex 11215  ax-resscn 11216  ax-1cn 11217  ax-icn 11218  ax-addcl 11219  ax-addrcl 11220  ax-mulcl 11221  ax-mulrcl 11222  ax-mulcom 11223  ax-addass 11224  ax-mulass 11225  ax-distr 11226  ax-i2m1 11227  ax-1ne0 11228  ax-1rid 11229  ax-rnegex 11230  ax-rrecex 11231  ax-cnre 11232  ax-pre-lttri 11233  ax-pre-lttrn 11234  ax-pre-ltadd 11235  ax-pre-mulgt0 11236  ax-pre-sup 11237
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1541  df-fal 1551  df-ex 1778  df-nf 1782  df-sb 2064  df-mo 2539  df-eu 2568  df-clab 2714  df-cleq 2728  df-clel 2815  df-nfc 2891  df-ne 2940  df-nel 3046  df-ral 3061  df-rex 3070  df-rmo 3379  df-reu 3380  df-rab 3435  df-v 3481  df-sbc 3793  df-csb 3910  df-dif 3967  df-un 3969  df-in 3971  df-ss 3981  df-pss 3984  df-nul 4341  df-if 4533  df-pw 4608  df-sn 4633  df-pr 4635  df-op 4639  df-uni 4914  df-iun 4999  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5584  df-eprel 5590  df-po 5598  df-so 5599  df-fr 5642  df-we 5644  df-xp 5696  df-rel 5697  df-cnv 5698  df-co 5699  df-dm 5700  df-rn 5701  df-res 5702  df-ima 5703  df-pred 6326  df-ord 6392  df-on 6393  df-lim 6394  df-suc 6395  df-iota 6519  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7392  df-ov 7438  df-oprab 7439  df-mpo 7440  df-om 7892  df-1st 8019  df-2nd 8020  df-frecs 8311  df-wrecs 8342  df-recs 8416  df-rdg 8455  df-er 8750  df-en 8991  df-dom 8992  df-sdom 8993  df-sup 9486  df-inf 9487  df-pnf 11301  df-mnf 11302  df-xr 11303  df-ltxr 11304  df-le 11305  df-sub 11498  df-neg 11499  df-div 11925  df-nn 12271  df-2 12333  df-3 12334  df-n0 12531  df-z 12618  df-uz 12883  df-rp 13039  df-fz 13551  df-fl 13835  df-mod 13913  df-dvds 16294
This theorem is referenced by:  gpg3kgrtriex  47994
  Copyright terms: Public domain W3C validator