ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  lgsdir2lem3 GIF version

Theorem lgsdir2lem3 15788
Description: Lemma for lgsdir2 15791. (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 109 . . . 4 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → 𝐴 ∈ ℤ)
2 8nn 9316 . . . 4 8 ∈ ℕ
3 zmodfz 10614 . . . 4 ((𝐴 ∈ ℤ ∧ 8 ∈ ℕ) → (𝐴 mod 8) ∈ (0...(8 − 1)))
41, 2, 3sylancl 413 . . 3 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...(8 − 1)))
5 8m1e7 9273 . . . 4 (8 − 1) = 7
65oveq2i 6034 . . 3 (0...(8 − 1)) = (0...7)
74, 6eleqtrdi 2323 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...7))
8 neg1z 9516 . . . . . . . 8 -1 ∈ ℤ
9 z0even 12495 . . . . . . . . 9 2 ∥ 0
10 1pneg1e0 9259 . . . . . . . . . 10 (1 + -1) = 0
11 ax-1cn 8130 . . . . . . . . . . 11 1 ∈ ℂ
12 neg1cn 9253 . . . . . . . . . . 11 -1 ∈ ℂ
1311, 12addcomi 8328 . . . . . . . . . 10 (1 + -1) = (-1 + 1)
1410, 13eqtr3i 2253 . . . . . . . . 9 0 = (-1 + 1)
159, 14breqtri 4114 . . . . . . . 8 2 ∥ (-1 + 1)
16 noel 3497 . . . . . . . . . . 11 ¬ (𝐴 mod 8) ∈ ∅
1716pm2.21i 651 . . . . . . . . . 10 ((𝐴 mod 8) ∈ ∅ → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
18 neg1lt0 9256 . . . . . . . . . . 11 -1 < 0
19 0z 9495 . . . . . . . . . . . 12 0 ∈ ℤ
20 fzn 10282 . . . . . . . . . . . 12 ((0 ∈ ℤ ∧ -1 ∈ ℤ) → (-1 < 0 ↔ (0...-1) = ∅))
2119, 8, 20mp2an 426 . . . . . . . . . . 11 (-1 < 0 ↔ (0...-1) = ∅)
2218, 21mpbi 145 . . . . . . . . . 10 (0...-1) = ∅
2317, 22eleq2s 2325 . . . . . . . . 9 ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
2423a1i 9 . . . . . . . 8 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5})))
258, 15, 243pm3.2i 1201 . . . . . . 7 (-1 ∈ ℤ ∧ 2 ∥ (-1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
26 1e0p1 9657 . . . . . . 7 1 = (0 + 1)
27 ssun1 3369 . . . . . . . 8 {1, 7} ⊆ ({1, 7} ∪ {3, 5})
28 1ex 8179 . . . . . . . . 9 1 ∈ V
2928prid1 3778 . . . . . . . 8 1 ∈ {1, 7}
3027, 29sselii 3223 . . . . . . 7 1 ∈ ({1, 7} ∪ {3, 5})
3125, 14, 26, 30lgsdir2lem2 15787 . . . . . 6 (1 ∈ ℤ ∧ 2 ∥ (1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
32 df-2 9207 . . . . . 6 2 = (1 + 1)
33 df-3 9208 . . . . . 6 3 = (2 + 1)
34 ssun2 3370 . . . . . . 7 {3, 5} ⊆ ({1, 7} ∪ {3, 5})
35 3ex 9224 . . . . . . . 8 3 ∈ V
3635prid1 3778 . . . . . . 7 3 ∈ {3, 5}
3734, 36sselii 3223 . . . . . 6 3 ∈ ({1, 7} ∪ {3, 5})
3831, 32, 33, 37lgsdir2lem2 15787 . . . . 5 (3 ∈ ℤ ∧ 2 ∥ (3 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...3) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
39 df-4 9209 . . . . 5 4 = (3 + 1)
40 df-5 9210 . . . . 5 5 = (4 + 1)
41 5nn 9313 . . . . . . . 8 5 ∈ ℕ
4241elexi 2814 . . . . . . 7 5 ∈ V
4342prid2 3779 . . . . . 6 5 ∈ {3, 5}
4434, 43sselii 3223 . . . . 5 5 ∈ ({1, 7} ∪ {3, 5})
4538, 39, 40, 44lgsdir2lem2 15787 . . . 4 (5 ∈ ℤ ∧ 2 ∥ (5 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...5) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
46 df-6 9211 . . . 4 6 = (5 + 1)
47 df-7 9212 . . . 4 7 = (6 + 1)
48 7nn 9315 . . . . . . 7 7 ∈ ℕ
4948elexi 2814 . . . . . 6 7 ∈ V
5049prid2 3779 . . . . 5 7 ∈ {1, 7}
5127, 50sselii 3223 . . . 4 7 ∈ ({1, 7} ∪ {3, 5})
5245, 46, 47, 51lgsdir2lem2 15787 . . 3 (7 ∈ ℤ ∧ 2 ∥ (7 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
5352simp3i 1034 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5})))
547, 53mpd 13 1 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 104  wb 105   = wceq 1397  wcel 2201  cun 3197  c0 3493  {cpr 3671   class class class wbr 4089  (class class class)co 6023  0cc0 8037  1c1 8038   + caddc 8040   < clt 8219  cmin 8355  -cneg 8356  cn 9148  2c2 9199  3c3 9200  4c4 9201  5c5 9202  6c6 9203  7c7 9204  8c8 9205  cz 9484  ...cfz 10248   mod cmo 10590  cdvds 12371
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 619  ax-in2 620  ax-io 716  ax-5 1495  ax-7 1496  ax-gen 1497  ax-ie1 1541  ax-ie2 1542  ax-8 1552  ax-10 1553  ax-11 1554  ax-i12 1555  ax-bndl 1557  ax-4 1558  ax-17 1574  ax-i9 1578  ax-ial 1582  ax-i5r 1583  ax-13 2203  ax-14 2204  ax-ext 2212  ax-sep 4208  ax-pow 4266  ax-pr 4301  ax-un 4532  ax-setind 4637  ax-cnex 8128  ax-resscn 8129  ax-1cn 8130  ax-1re 8131  ax-icn 8132  ax-addcl 8133  ax-addrcl 8134  ax-mulcl 8135  ax-mulrcl 8136  ax-addcom 8137  ax-mulcom 8138  ax-addass 8139  ax-mulass 8140  ax-distr 8141  ax-i2m1 8142  ax-0lt1 8143  ax-1rid 8144  ax-0id 8145  ax-rnegex 8146  ax-precex 8147  ax-cnre 8148  ax-pre-ltirr 8149  ax-pre-ltwlin 8150  ax-pre-lttrn 8151  ax-pre-apti 8152  ax-pre-ltadd 8153  ax-pre-mulgt0 8154  ax-pre-mulext 8155  ax-arch 8156
This theorem depends on definitions:  df-bi 117  df-3or 1005  df-3an 1006  df-tru 1400  df-fal 1403  df-nf 1509  df-sb 1810  df-eu 2081  df-mo 2082  df-clab 2217  df-cleq 2223  df-clel 2226  df-nfc 2362  df-ne 2402  df-nel 2497  df-ral 2514  df-rex 2515  df-reu 2516  df-rmo 2517  df-rab 2518  df-v 2803  df-sbc 3031  df-csb 3127  df-dif 3201  df-un 3203  df-in 3205  df-ss 3212  df-nul 3494  df-pw 3655  df-sn 3676  df-pr 3677  df-op 3679  df-uni 3895  df-int 3930  df-iun 3973  df-br 4090  df-opab 4152  df-mpt 4153  df-id 4392  df-po 4395  df-iso 4396  df-xp 4733  df-rel 4734  df-cnv 4735  df-co 4736  df-dm 4737  df-rn 4738  df-res 4739  df-ima 4740  df-iota 5288  df-fun 5330  df-fn 5331  df-f 5332  df-fv 5336  df-riota 5976  df-ov 6026  df-oprab 6027  df-mpo 6028  df-1st 6308  df-2nd 6309  df-pnf 8221  df-mnf 8222  df-xr 8223  df-ltxr 8224  df-le 8225  df-sub 8357  df-neg 8358  df-reap 8760  df-ap 8767  df-div 8858  df-inn 9149  df-2 9207  df-3 9208  df-4 9209  df-5 9210  df-6 9211  df-7 9212  df-8 9213  df-n0 9408  df-z 9485  df-uz 9761  df-q 9859  df-rp 9894  df-fz 10249  df-fl 10536  df-mod 10591  df-dvds 12372
This theorem is referenced by:  lgsdir2  15791  2lgslem3  15859  2lgsoddprmlem3  15869
  Copyright terms: Public domain W3C validator