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

Theorem lgsdir2lem3 27304
Description: Lemma for lgsdir2 27307. (Contributed by Mario Carneiro, 4-Feb-2015.)
Assertion
Ref Expression
lgsdir2lem3 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))

Proof of Theorem lgsdir2lem3
StepHypRef Expression
1 simpl 482 . . . 4 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → 𝐴 ∈ ℤ)
2 8nn 12267 . . . 4 8 ∈ ℕ
3 zmodfz 13843 . . . 4 ((𝐴 ∈ ℤ ∧ 8 ∈ ℕ) → (𝐴 mod 8) ∈ (0...(8 − 1)))
41, 2, 3sylancl 587 . . 3 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...(8 − 1)))
5 8m1e7 12300 . . . 4 (8 − 1) = 7
65oveq2i 7371 . . 3 (0...(8 − 1)) = (0...7)
74, 6eleqtrdi 2847 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...7))
8 neg1z 12554 . . . . . . . 8 -1 ∈ ℤ
9 z0even 16327 . . . . . . . . 9 2 ∥ 0
10 1pneg1e0 12286 . . . . . . . . . 10 (1 + -1) = 0
11 ax-1cn 11087 . . . . . . . . . . 11 1 ∈ ℂ
12 neg1cn 12135 . . . . . . . . . . 11 -1 ∈ ℂ
1311, 12addcomi 11328 . . . . . . . . . 10 (1 + -1) = (-1 + 1)
1410, 13eqtr3i 2762 . . . . . . . . 9 0 = (-1 + 1)
159, 14breqtri 5111 . . . . . . . 8 2 ∥ (-1 + 1)
16 noel 4279 . . . . . . . . . . 11 ¬ (𝐴 mod 8) ∈ ∅
1716pm2.21i 119 . . . . . . . . . 10 ((𝐴 mod 8) ∈ ∅ → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
18 neg1lt0 12138 . . . . . . . . . . 11 -1 < 0
19 0z 12526 . . . . . . . . . . . 12 0 ∈ ℤ
20 fzn 13485 . . . . . . . . . . . 12 ((0 ∈ ℤ ∧ -1 ∈ ℤ) → (-1 < 0 ↔ (0...-1) = ∅))
2119, 8, 20mp2an 693 . . . . . . . . . . 11 (-1 < 0 ↔ (0...-1) = ∅)
2218, 21mpbi 230 . . . . . . . . . 10 (0...-1) = ∅
2317, 22eleq2s 2855 . . . . . . . . 9 ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
2423a1i 11 . . . . . . . 8 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5})))
258, 15, 243pm3.2i 1341 . . . . . . 7 (-1 ∈ ℤ ∧ 2 ∥ (-1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
26 1e0p1 12677 . . . . . . 7 1 = (0 + 1)
27 ssun1 4119 . . . . . . . 8 {1, 7} ⊆ ({1, 7} ∪ {3, 5})
28 1ex 11131 . . . . . . . . 9 1 ∈ V
2928prid1 4707 . . . . . . . 8 1 ∈ {1, 7}
3027, 29sselii 3919 . . . . . . 7 1 ∈ ({1, 7} ∪ {3, 5})
3125, 14, 26, 30lgsdir2lem2 27303 . . . . . 6 (1 ∈ ℤ ∧ 2 ∥ (1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
32 df-2 12235 . . . . . 6 2 = (1 + 1)
33 df-3 12236 . . . . . 6 3 = (2 + 1)
34 ssun2 4120 . . . . . . 7 {3, 5} ⊆ ({1, 7} ∪ {3, 5})
35 3ex 12254 . . . . . . . 8 3 ∈ V
3635prid1 4707 . . . . . . 7 3 ∈ {3, 5}
3734, 36sselii 3919 . . . . . 6 3 ∈ ({1, 7} ∪ {3, 5})
3831, 32, 33, 37lgsdir2lem2 27303 . . . . 5 (3 ∈ ℤ ∧ 2 ∥ (3 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...3) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
39 df-4 12237 . . . . 5 4 = (3 + 1)
40 df-5 12238 . . . . 5 5 = (4 + 1)
41 5nn 12258 . . . . . . . 8 5 ∈ ℕ
4241elexi 3453 . . . . . . 7 5 ∈ V
4342prid2 4708 . . . . . 6 5 ∈ {3, 5}
4434, 43sselii 3919 . . . . 5 5 ∈ ({1, 7} ∪ {3, 5})
4538, 39, 40, 44lgsdir2lem2 27303 . . . 4 (5 ∈ ℤ ∧ 2 ∥ (5 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...5) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
46 df-6 12239 . . . 4 6 = (5 + 1)
47 df-7 12240 . . . 4 7 = (6 + 1)
48 7nn 12264 . . . . . . 7 7 ∈ ℕ
4948elexi 3453 . . . . . 6 7 ∈ V
5049prid2 4708 . . . . 5 7 ∈ {1, 7}
5127, 50sselii 3919 . . . 4 7 ∈ ({1, 7} ∪ {3, 5})
5245, 46, 47, 51lgsdir2lem2 27303 . . 3 (7 ∈ ℤ ∧ 2 ∥ (7 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
5352simp3i 1142 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5})))
547, 53mpd 15 1 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 206  wa 395   = wceq 1542  wcel 2114  cun 3888  c0 4274  {cpr 4570   class class class wbr 5086  (class class class)co 7360  0cc0 11029  1c1 11030   + caddc 11032   < clt 11170  cmin 11368  -cneg 11369  cn 12165  2c2 12227  3c3 12228  4c4 12229  5c5 12230  6c6 12231  7c7 12232  8c8 12233  cz 12515  ...cfz 13452   mod cmo 13819  cdvds 16212
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1969  ax-7 2010  ax-8 2116  ax-9 2124  ax-10 2147  ax-11 2163  ax-12 2185  ax-ext 2709  ax-sep 5231  ax-nul 5241  ax-pow 5302  ax-pr 5370  ax-un 7682  ax-cnex 11085  ax-resscn 11086  ax-1cn 11087  ax-icn 11088  ax-addcl 11089  ax-addrcl 11090  ax-mulcl 11091  ax-mulrcl 11092  ax-mulcom 11093  ax-addass 11094  ax-mulass 11095  ax-distr 11096  ax-i2m1 11097  ax-1ne0 11098  ax-1rid 11099  ax-rnegex 11100  ax-rrecex 11101  ax-cnre 11102  ax-pre-lttri 11103  ax-pre-lttrn 11104  ax-pre-ltadd 11105  ax-pre-mulgt0 11106  ax-pre-sup 11107
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-3or 1088  df-3an 1089  df-tru 1545  df-fal 1555  df-ex 1782  df-nf 1786  df-sb 2069  df-mo 2540  df-eu 2570  df-clab 2716  df-cleq 2729  df-clel 2812  df-nfc 2886  df-ne 2934  df-nel 3038  df-ral 3053  df-rex 3063  df-rmo 3343  df-reu 3344  df-rab 3391  df-v 3432  df-sbc 3730  df-csb 3839  df-dif 3893  df-un 3895  df-in 3897  df-ss 3907  df-pss 3910  df-nul 4275  df-if 4468  df-pw 4544  df-sn 4569  df-pr 4571  df-op 4575  df-uni 4852  df-iun 4936  df-br 5087  df-opab 5149  df-mpt 5168  df-tr 5194  df-id 5519  df-eprel 5524  df-po 5532  df-so 5533  df-fr 5577  df-we 5579  df-xp 5630  df-rel 5631  df-cnv 5632  df-co 5633  df-dm 5634  df-rn 5635  df-res 5636  df-ima 5637  df-pred 6259  df-ord 6320  df-on 6321  df-lim 6322  df-suc 6323  df-iota 6448  df-fun 6494  df-fn 6495  df-f 6496  df-f1 6497  df-fo 6498  df-f1o 6499  df-fv 6500  df-riota 7317  df-ov 7363  df-oprab 7364  df-mpo 7365  df-om 7811  df-1st 7935  df-2nd 7936  df-frecs 8224  df-wrecs 8255  df-recs 8304  df-rdg 8342  df-er 8636  df-en 8887  df-dom 8888  df-sdom 8889  df-sup 9348  df-inf 9349  df-pnf 11172  df-mnf 11173  df-xr 11174  df-ltxr 11175  df-le 11176  df-sub 11370  df-neg 11371  df-div 11799  df-nn 12166  df-2 12235  df-3 12236  df-4 12237  df-5 12238  df-6 12239  df-7 12240  df-8 12241  df-n0 12429  df-z 12516  df-uz 12780  df-rp 12934  df-fz 13453  df-fl 13742  df-mod 13820  df-dvds 16213
This theorem is referenced by:  lgsdir2  27307  2lgslem3  27381  2lgsoddprmlem3  27391
  Copyright terms: Public domain W3C validator