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

Theorem lgsdir2lem3 27315
Description: Lemma for lgsdir2 27318. (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 483 . . . 4 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → 𝐴 ∈ ℤ)
2 8nn 12274 . . . 4 8 ∈ ℕ
3 zmodfz 13850 . . . 4 ((𝐴 ∈ ℤ ∧ 8 ∈ ℕ) → (𝐴 mod 8) ∈ (0...(8 − 1)))
41, 2, 3sylancl 592 . . 3 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...(8 − 1)))
5 8m1e7 12307 . . . 4 (8 − 1) = 7
65oveq2i 7374 . . 3 (0...(8 − 1)) = (0...7)
74, 6eleqtrdi 2850 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...7))
8 neg1z 12561 . . . . . . . 8 -1 ∈ ℤ
9 z0even 16334 . . . . . . . . 9 2 ∥ 0
10 1pneg1e0 12293 . . . . . . . . . 10 (1 + -1) = 0
11 ax-1cn 11094 . . . . . . . . . . 11 1 ∈ ℂ
12 neg1cn 12142 . . . . . . . . . . 11 -1 ∈ ℂ
1311, 12addcomi 11335 . . . . . . . . . 10 (1 + -1) = (-1 + 1)
1410, 13eqtr3i 2765 . . . . . . . . 9 0 = (-1 + 1)
159, 14breqtri 5104 . . . . . . . 8 2 ∥ (-1 + 1)
16 noel 4273 . . . . . . . . . . 11 ¬ (𝐴 mod 8) ∈ ∅
1716pm2.21i 119 . . . . . . . . . 10 ((𝐴 mod 8) ∈ ∅ → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
18 neg1lt0 12145 . . . . . . . . . . 11 -1 < 0
19 0z 12533 . . . . . . . . . . . 12 0 ∈ ℤ
20 fzn 13492 . . . . . . . . . . . 12 ((0 ∈ ℤ ∧ -1 ∈ ℤ) → (-1 < 0 ↔ (0...-1) = ∅))
2119, 8, 20mp2an 698 . . . . . . . . . . 11 (-1 < 0 ↔ (0...-1) = ∅)
2218, 21mpbi 231 . . . . . . . . . 10 (0...-1) = ∅
2317, 22eleq2s 2858 . . . . . . . . 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 1346 . . . . . . 7 (-1 ∈ ℤ ∧ 2 ∥ (-1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
26 1e0p1 12684 . . . . . . 7 1 = (0 + 1)
27 ssun1 4114 . . . . . . . 8 {1, 7} ⊆ ({1, 7} ∪ {3, 5})
28 1ex 11138 . . . . . . . . 9 1 ∈ V
2928prid1 4701 . . . . . . . 8 1 ∈ {1, 7}
3027, 29sselii 3919 . . . . . . 7 1 ∈ ({1, 7} ∪ {3, 5})
3125, 14, 26, 30lgsdir2lem2 27314 . . . . . 6 (1 ∈ ℤ ∧ 2 ∥ (1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
32 df-2 12242 . . . . . 6 2 = (1 + 1)
33 df-3 12243 . . . . . 6 3 = (2 + 1)
34 ssun2 4115 . . . . . . 7 {3, 5} ⊆ ({1, 7} ∪ {3, 5})
35 3ex 12261 . . . . . . . 8 3 ∈ V
3635prid1 4701 . . . . . . 7 3 ∈ {3, 5}
3734, 36sselii 3919 . . . . . 6 3 ∈ ({1, 7} ∪ {3, 5})
3831, 32, 33, 37lgsdir2lem2 27314 . . . . 5 (3 ∈ ℤ ∧ 2 ∥ (3 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...3) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
39 df-4 12244 . . . . 5 4 = (3 + 1)
40 df-5 12245 . . . . 5 5 = (4 + 1)
41 5nn 12265 . . . . . . . 8 5 ∈ ℕ
4241elexi 3455 . . . . . . 7 5 ∈ V
4342prid2 4702 . . . . . 6 5 ∈ {3, 5}
4434, 43sselii 3919 . . . . 5 5 ∈ ({1, 7} ∪ {3, 5})
4538, 39, 40, 44lgsdir2lem2 27314 . . . 4 (5 ∈ ℤ ∧ 2 ∥ (5 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...5) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
46 df-6 12246 . . . 4 6 = (5 + 1)
47 df-7 12247 . . . 4 7 = (6 + 1)
48 7nn 12271 . . . . . . 7 7 ∈ ℕ
4948elexi 3455 . . . . . 6 7 ∈ V
5049prid2 4702 . . . . 5 7 ∈ {1, 7}
5127, 50sselii 3919 . . . 4 7 ∈ ({1, 7} ∪ {3, 5})
5245, 46, 47, 51lgsdir2lem2 27314 . . 3 (7 ∈ ℤ ∧ 2 ∥ (7 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
5352simp3i 1147 . 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 207  wa 396   = wceq 1547  wcel 2119  cun 3888  c0 4268  {cpr 4564   class class class wbr 5079  (class class class)co 7363  0cc0 11036  1c1 11037   + caddc 11039   < clt 11177  cmin 11375  -cneg 11376  cn 12172  2c2 12234  3c3 12235  4c4 12236  5c5 12237  6c6 12238  7c7 12239  8c8 12240  cz 12522  ...cfz 13459   mod cmo 13826  cdvds 16219
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1974  ax-7 2015  ax-8 2121  ax-9 2129  ax-10 2152  ax-11 2168  ax-12 2189  ax-ext 2712  ax-sep 5225  ax-nul 5235  ax-pow 5301  ax-pr 5369  ax-un 7685  ax-cnex 11092  ax-resscn 11093  ax-1cn 11094  ax-icn 11095  ax-addcl 11096  ax-addrcl 11097  ax-mulcl 11098  ax-mulrcl 11099  ax-mulcom 11100  ax-addass 11101  ax-mulass 11102  ax-distr 11103  ax-i2m1 11104  ax-1ne0 11105  ax-1rid 11106  ax-rnegex 11107  ax-rrecex 11108  ax-cnre 11109  ax-pre-lttri 11110  ax-pre-lttrn 11111  ax-pre-ltadd 11112  ax-pre-mulgt0 11113  ax-pre-sup 11114
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 854  df-3or 1093  df-3an 1094  df-tru 1550  df-fal 1560  df-ex 1787  df-nf 1791  df-sb 2074  df-mo 2543  df-eu 2573  df-clab 2719  df-cleq 2732  df-clel 2815  df-nfc 2889  df-ne 2936  df-nel 3040  df-ral 3055  df-rex 3065  df-rmo 3345  df-reu 3346  df-rab 3393  df-v 3434  df-sbc 3731  df-csb 3839  df-dif 3893  df-un 3895  df-in 3897  df-ss 3907  df-pss 3910  df-nul 4269  df-if 4462  df-pw 4538  df-sn 4563  df-pr 4565  df-op 4569  df-uni 4846  df-iun 4930  df-br 5080  df-opab 5142  df-mpt 5161  df-tr 5187  df-id 5520  df-eprel 5525  df-po 5533  df-so 5534  df-fr 5578  df-we 5580  df-xp 5631  df-rel 5632  df-cnv 5633  df-co 5634  df-dm 5635  df-rn 5636  df-res 5637  df-ima 5638  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 7320  df-ov 7366  df-oprab 7367  df-mpo 7368  df-om 7814  df-1st 7938  df-2nd 7939  df-frecs 8228  df-wrecs 8259  df-recs 8308  df-rdg 8346  df-er 8640  df-en 8891  df-dom 8892  df-sdom 8893  df-sup 9352  df-inf 9353  df-pnf 11179  df-mnf 11180  df-xr 11181  df-ltxr 11182  df-le 11183  df-sub 11377  df-neg 11378  df-div 11806  df-nn 12173  df-2 12242  df-3 12243  df-4 12244  df-5 12245  df-6 12246  df-7 12247  df-8 12248  df-n0 12436  df-z 12523  df-uz 12787  df-rp 12941  df-fz 13460  df-fl 13749  df-mod 13827  df-dvds 16220
This theorem is referenced by:  lgsdir2  27318  2lgslem3  27392  2lgsoddprmlem3  27402
  Copyright terms: Public domain W3C validator