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

Theorem lgsdir2lem3 27730
Description: Lemma for lgsdir2 27733. (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 488 . . . 4 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → 𝐴 ∈ ℤ)
2 8nn 12488 . . . 4 8 ∈ ℕ
3 zmodfz 14083 . . . 4 ((𝐴 ∈ ℤ ∧ 8 ∈ ℕ) → (𝐴 mod 8) ∈ (0...(8 − 1)))
41, 2, 3sylancl 598 . . 3 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...(8 − 1)))
5 8m1e7 12525 . . . 4 (8 − 1) = 7
65oveq2i 7472 . . 3 (0...(8 − 1)) = (0...7)
74, 6eleqtrdi 2880 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...7))
8 neg1z 12782 . . . . . . . 8 -1 ∈ ℤ
9 z0even 16590 . . . . . . . . 9 2 ∥ 0
10 1pneg1e0 12510 . . . . . . . . . 10 (1 + -1) = 0
11 ax-1cn 11307 . . . . . . . . . . 11 1 ∈ ℂ
12 neg1cn 12355 . . . . . . . . . . 11 -1 ∈ ℂ
1311, 12addcomi 11550 . . . . . . . . . 10 (1 + -1) = ( -1 + 1)
1410, 13eqtr3i 2794 . . . . . . . . 9 0 = ( -1 + 1)
159, 14breqtri 5139 . . . . . . . 8 2 ∥ ( -1 + 1)
16 noel 4288 . . . . . . . . . . 11 ¬ (𝐴 mod 8) ∈ ∅
1716pm2.21i 120 . . . . . . . . . 10 ((𝐴 mod 8) ∈ ∅ → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
18 neg1lt0 12358 . . . . . . . . . . 11 -1 < 0
19 0z 12754 . . . . . . . . . . . 12 0 ∈ ℤ
20 fzn 13723 . . . . . . . . . . . 12 ((0 ∈ ℤ ∧ -1 ∈ ℤ) → ( -1 < 0 ↔ (0... -1) = ∅))
2119, 8, 20mp2an 705 . . . . . . . . . . 11 ( -1 < 0 ↔ (0... -1) = ∅)
2218, 21mpbi 233 . . . . . . . . . 10 (0... -1) = ∅
2317, 22eleq2s 2888 . . . . . . . . 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 1360 . . . . . . 7 ( -1 ∈ ℤ ∧ 2 ∥ ( -1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0... -1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
26 1e0p1 12911 . . . . . . 7 1 = (0 + 1)
27 ssun1 4181 . . . . . . . 8 {1, 7} ⊆ ({1, 7} ∪ {3, 5})
28 1ex 11352 . . . . . . . . 9 1 ∈ V
2928prid1 4728 . . . . . . . 8 1 ∈ {1, 7}
3027, 29sselii 3912 . . . . . . 7 1 ∈ ({1, 7} ∪ {3, 5})
3125, 14, 26, 30lgsdir2lem2 27729 . . . . . 6 (1 ∈ ℤ ∧ 2 ∥ (1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
32 df-2 12455 . . . . . 6 2 = (1 + 1)
33 df-3 12456 . . . . . 6 3 = (2 + 1)
34 ssun2 4182 . . . . . . 7 {3, 5} ⊆ ({1, 7} ∪ {3, 5})
35 3ex 12475 . . . . . . . 8 3 ∈ V
3635prid1 4728 . . . . . . 7 3 ∈ {3, 5}
3734, 36sselii 3912 . . . . . 6 3 ∈ ({1, 7} ∪ {3, 5})
3831, 32, 33, 37lgsdir2lem2 27729 . . . . 5 (3 ∈ ℤ ∧ 2 ∥ (3 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...3) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
39 df-4 12457 . . . . 5 4 = (3 + 1)
40 df-5 12458 . . . . 5 5 = (4 + 1)
41 5nn 12479 . . . . . . . 8 5 ∈ ℕ
4241elexi 3478 . . . . . . 7 5 ∈ V
4342prid2 4729 . . . . . 6 5 ∈ {3, 5}
4434, 43sselii 3912 . . . . 5 5 ∈ ({1, 7} ∪ {3, 5})
4538, 39, 40, 44lgsdir2lem2 27729 . . . 4 (5 ∈ ℤ ∧ 2 ∥ (5 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...5) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
46 df-6 12459 . . . 4 6 = (5 + 1)
47 df-7 12460 . . . 4 7 = (6 + 1)
48 7nn 12485 . . . . . . 7 7 ∈ ℕ
4948elexi 3478 . . . . . 6 7 ∈ V
5049prid2 4729 . . . . 5 7 ∈ {1, 7}
5127, 50sselii 3912 . . . 4 7 ∈ ({1, 7} ∪ {3, 5})
5245, 46, 47, 51lgsdir2lem2 27729 . . 3 (7 ∈ ℤ ∧ 2 ∥ (7 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
5352simp3i 1160 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5})))
547, 53mpd 16 1 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572   ∈ wcel 2151   ∪ cun 4154  ∅c0 4283  {cpr 4592   class class class wbr 5111  (class class class)co 7461  0cc0 11249  1c1 11250   + caddc 11252   < clt 11392   − cmin 11590   -cneg 11591  ℕcn 12385  2c2 12447  3c3 12448  4c4 12449  5c5 12450  6c6 12451  7c7 12452  8c8 12453  ℤcz 12743  ...cfz 13689   mod cmo 14059   ∥ cdvds 16475
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 7793  ax-cnex 11305  ax-resscn 11306  ax-1cn 11307  ax-icn 11308  ax-addcl 11309  ax-addrcl 11310  ax-mulcl 11311  ax-mulrcl 11312  ax-mulcom 11313  ax-addass 11314  ax-mulass 11315  ax-distr 11316  ax-i2m1 11317  ax-1ne0 11318  ax-1rid 11319  ax-rnegex 11320  ax-rrecex 11321  ax-cnre 11322  ax-pre-lttri 11323  ax-pre-lttrn 11324  ax-pre-ltadd 11325  ax-pre-mulgt0 11326  ax-pre-sup 11327
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 7464  df-oprab 7465  df-mpo 7466  df-om 7922  df-1st 8045  df-2nd 8046  df-frecs 8347  df-wrecs 8378  df-recs 8427  df-rdg 8466  df-er 8765  df-en 9022  df-dom 9023  df-sdom 9024  df-sup 9481  df-inf 9482  df-pnf 11394  df-mnf 11395  df-xr 11396  df-ltxr 11397  df-le 11398  df-sub 11592  df-neg 11593  df-div 12024  df-nn 12386  df-2 12455  df-3 12456  df-4 12457  df-5 12458  df-6 12459  df-7 12460  df-8 12461  df-n0 12657  df-z 12744  df-uz 13016  df-rp 13171  df-fz 13690  df-fl 13982  df-mod 14060  df-dvds 16476
This theorem is used by:  lgsdir2  27733  2lgslem3  27807  2lgsoddprmlem3  27817
  Copyright terms: Public domain W3C validator