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

Theorem negfi 12266
Description: The negation of a finite set of real numbers is finite. (Contributed by AV, 9-Aug-2020.)
Assertion
Ref Expression
negfi ((𝐴 ⊆ ℝ ∧ 𝐴 ∈ Fin) → {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴} ∈ Fin)
Distinct variable group:   𝐴,𝑛

Proof of Theorem negfi
Dummy variables 𝑎 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ssel 3902 . . . . . . . . 9 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 → 𝑎 ∈ ℝ))
2 renegcl 11621 . . . . . . . . 9 (𝑎 ∈ ℝ → -𝑎 ∈ ℝ)
31, 2syl6 36 . . . . . . . 8 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 → -𝑎 ∈ ℝ))
43ralrimiv 3153 . . . . . . 7 (𝐴 ⊆ ℝ → ∀𝑎 ∈ 𝐴 -𝑎 ∈ ℝ)
5 dmmptg 6243 . . . . . . 7 (∀𝑎 ∈ 𝐴 -𝑎 ∈ ℝ → dom (𝑎 ∈ 𝐴 ↦ -𝑎) = 𝐴)
64, 5syl 18 . . . . . 6 (𝐴 ⊆ ℝ → dom (𝑎 ∈ 𝐴 ↦ -𝑎) = 𝐴)
76eqcomd 2766 . . . . 5 (𝐴 ⊆ ℝ → 𝐴 = dom (𝑎 ∈ 𝐴 ↦ -𝑎))
87eleq1d 2845 . . . 4 (𝐴 ⊆ ℝ → (𝐴 ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
9 funmpt 6578 . . . . 5 Fun (𝑎 ∈ 𝐴 ↦ -𝑎)
10 fundmfibi 9325 . . . . 5 (Fun (𝑎 ∈ 𝐴 ↦ -𝑎) → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
119, 10mp1i 14 . . . 4 (𝐴 ⊆ ℝ → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
128, 11bitr4d 285 . . 3 (𝐴 ⊆ ℝ → (𝐴 ∈ Fin ↔ (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
13 reex 11291 . . . . . 6 ℝ ∈ V
1413ssex 5281 . . . . 5 (𝐴 ⊆ ℝ → 𝐴 ∈ V)
1514mptexd 7230 . . . 4 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ V)
16 eqid 2760 . . . . . 6 (𝑎 ∈ 𝐴 ↦ -𝑎) = (𝑎 ∈ 𝐴 ↦ -𝑎)
1716negf1o 11746 . . . . 5 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴–1-1-onto→{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
18 f1of1 6823 . . . . 5 ((𝑎 ∈ 𝐴 ↦ -𝑎):𝐴–1-1-onto→{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴} → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴–1-1→{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
1917, 18syl 18 . . . 4 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴–1-1→{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
20 f1vrnfibi 9331 . . . 4 (((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ V ∧ (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴–1-1→{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴}) → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ ran (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
2115, 19, 20syl2anc 596 . . 3 (𝐴 ⊆ ℝ → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ ran (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
221imp 412 . . . . . . . . 9 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → 𝑎 ∈ ℝ)
232adantl 487 . . . . . . . . . 10 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → -𝑎 ∈ ℝ)
24 recn 11290 . . . . . . . . . . . . . . . 16 (𝑎 ∈ ℝ → 𝑎 ∈ ℂ)
2524negnegd 11660 . . . . . . . . . . . . . . 15 (𝑎 ∈ ℝ → - -𝑎 = 𝑎)
2625eqcomd 2766 . . . . . . . . . . . . . 14 (𝑎 ∈ ℝ → 𝑎 = - -𝑎)
2726eleq1d 2845 . . . . . . . . . . . . 13 (𝑎 ∈ ℝ → (𝑎 ∈ 𝐴 ↔ - -𝑎 ∈ 𝐴))
2827biimpcd 252 . . . . . . . . . . . 12 (𝑎 ∈ 𝐴 → (𝑎 ∈ ℝ → - -𝑎 ∈ 𝐴))
2928adantl 487 . . . . . . . . . . 11 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → (𝑎 ∈ ℝ → - -𝑎 ∈ 𝐴))
3029imp 412 . . . . . . . . . 10 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → - -𝑎 ∈ 𝐴)
3123, 30jca 521 . . . . . . . . 9 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴))
3222, 31mpdan 700 . . . . . . . 8 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴))
33 eleq1 2848 . . . . . . . . 9 (𝑛 = -𝑎 → (𝑛 ∈ ℝ ↔ -𝑎 ∈ ℝ))
34 negeq 11549 . . . . . . . . . 10 (𝑛 = -𝑎 → -𝑛 = - -𝑎)
3534eleq1d 2845 . . . . . . . . 9 (𝑛 = -𝑎 → ( -𝑛 ∈ 𝐴 ↔ - -𝑎 ∈ 𝐴))
3633, 35anbi12d 644 . . . . . . . 8 (𝑛 = -𝑎 → ((𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴) ↔ ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴)))
3732, 36syl5ibrcom 250 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → (𝑛 = -𝑎 → (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)))
38 simprr 785 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)) → -𝑛 ∈ 𝐴)
39 recn 11290 . . . . . . . . 9 (𝑛 ∈ ℝ → 𝑛 ∈ ℂ)
40 negneg 11608 . . . . . . . . . 10 (𝑛 ∈ ℂ → - -𝑛 = 𝑛)
4140eqcomd 2766 . . . . . . . . 9 (𝑛 ∈ ℂ → 𝑛 = - -𝑛)
4239, 41syl 18 . . . . . . . 8 (𝑛 ∈ ℝ → 𝑛 = - -𝑛)
4342ad2antrl 741 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)) → 𝑛 = - -𝑛)
44 negeq 11549 . . . . . . . 8 (𝑎 = -𝑛 → -𝑎 = - -𝑛)
4544eqeq2d 2771 . . . . . . 7 (𝑎 = -𝑛 → (𝑛 = -𝑎 ↔ 𝑛 = - -𝑛))
4637, 38, 43, 45rspceb2dv 3580 . . . . . 6 (𝐴 ⊆ ℝ → (∃𝑎 ∈ 𝐴 𝑛 = -𝑎 ↔ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)))
4746abbidv 2826 . . . . 5 (𝐴 ⊆ ℝ → {𝑛 ∣ ∃𝑎 ∈ 𝐴 𝑛 = -𝑎} = {𝑛 ∣ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)})
4816rnmpt 5938 . . . . 5 ran (𝑎 ∈ 𝐴 ↦ -𝑎) = {𝑛 ∣ ∃𝑎 ∈ 𝐴 𝑛 = -𝑎}
49 df-rab 3413 . . . . 5 {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴} = {𝑛 ∣ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)}
5047, 48, 493eqtr4g 2820 . . . 4 (𝐴 ⊆ ℝ → ran (𝑎 ∈ 𝐴 ↦ -𝑎) = {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴})
5150eleq1d 2845 . . 3 (𝐴 ⊆ ℝ → (ran (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴} ∈ Fin))
5212, 21, 513bitrd 308 . 2 (𝐴 ⊆ ℝ → (𝐴 ∈ Fin ↔ {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴} ∈ Fin))
5352biimpa 482 1 ((𝐴 ⊆ ℝ ∧ 𝐴 ∈ Fin) → {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴} ∈ Fin)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569   ∈ wcel 2144  {cab 2738  ∀wral 3076  ∃wrex 3086  {crab 3412  Vcvv 3450   ⊆ wss 3895   ↦ cmpt 5185  dom cdm 5650  ran crn 5651  Fun wfun 6532  –1-1→wf1 6535  –1-1-onto→wf1o 6537  Fincfn 8973  ℂcc 11198  ℝcr 11199   -cneg 11542
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7751  ax-cnex 11256  ax-resscn 11257  ax-1cn 11258  ax-icn 11259  ax-addcl 11260  ax-addrcl 11261  ax-mulcl 11262  ax-mulrcl 11263  ax-mulcom 11264  ax-addass 11265  ax-mulass 11266  ax-distr 11267  ax-i2m1 11268  ax-1ne0 11269  ax-1rid 11270  ax-rnegex 11271  ax-rrecex 11272  ax-cnre 11273  ax-pre-lttri 11274  ax-pre-lttrn 11275  ax-pre-ltadd 11276
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-pss 4014  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5545  df-eprel 5550  df-po 5558  df-so 5559  df-fr 5603  df-we 5605  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-riota 7377  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7878  df-1st 8001  df-2nd 8002  df-1o 8476  df-er 8717  df-en 8974  df-dom 8975  df-sdom 8976  df-fin 8977  df-pnf 11345  df-mnf 11346  df-ltxr 11348  df-sub 11543  df-neg 11544
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator