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

Theorem negfi 12290
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 3907 . . . . . . . . 9 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 → 𝑎 ∈ ℝ))
2 renegcl 11645 . . . . . . . . 9 (𝑎 ∈ ℝ → -𝑎 ∈ ℝ)
31, 2syl6 36 . . . . . . . 8 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 → -𝑎 ∈ ℝ))
43ralrimiv 3157 . . . . . . 7 (𝐴 ⊆ ℝ → ∀𝑎 ∈ 𝐴 -𝑎 ∈ ℝ)
5 dmmptg 6255 . . . . . . 7 (∀𝑎 ∈ 𝐴 -𝑎 ∈ ℝ → dom (𝑎 ∈ 𝐴 ↦ -𝑎) = 𝐴)
64, 5syl 18 . . . . . 6 (𝐴 ⊆ ℝ → dom (𝑎 ∈ 𝐴 ↦ -𝑎) = 𝐴)
76eqcomd 2769 . . . . 5 (𝐴 ⊆ ℝ → 𝐴 = dom (𝑎 ∈ 𝐴 ↦ -𝑎))
87eleq1d 2849 . . . 4 (𝐴 ⊆ ℝ → (𝐴 ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
9 funmpt 6595 . . . . 5 Fun (𝑎 ∈ 𝐴 ↦ -𝑎)
10 fundmfibi 9350 . . . . 5 (Fun (𝑎 ∈ 𝐴 ↦ -𝑎) → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
119, 10mp1i 14 . . . 4 (𝐴 ⊆ ℝ → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
128, 11bitr4d 285 . . 3 (𝐴 ⊆ ℝ → (𝐴 ∈ Fin ↔ (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
13 reex 11315 . . . . . 6 ℝ ∈ V
1413ssex 5286 . . . . 5 (𝐴 ⊆ ℝ → 𝐴 ∈ V)
1514mptexd 7250 . . . 4 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ V)
16 eqid 2763 . . . . . 6 (𝑎 ∈ 𝐴 ↦ -𝑎) = (𝑎 ∈ 𝐴 ↦ -𝑎)
1716negf1o 11770 . . . . 5 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1onto{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
18 f1of1 6842 . . . . 5 ((𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1onto{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴} → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
1917, 18syl 18 . . . 4 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
20 f1vrnfibi 9356 . . . 4 (((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ V ∧ (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴}) → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ ran (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
2115, 19, 20syl2anc 596 . . 3 (𝐴 ⊆ ℝ → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ ran (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
221imp 412 . . . . . . . . 9 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → 𝑎 ∈ ℝ)
232adantl 487 . . . . . . . . . 10 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → -𝑎 ∈ ℝ)
24 recn 11314 . . . . . . . . . . . . . . . 16 (𝑎 ∈ ℝ → 𝑎 ∈ ℂ)
2524negnegd 11684 . . . . . . . . . . . . . . 15 (𝑎 ∈ ℝ → - -𝑎 = 𝑎)
2625eqcomd 2769 . . . . . . . . . . . . . 14 (𝑎 ∈ ℝ → 𝑎 = - -𝑎)
2726eleq1d 2849 . . . . . . . . . . . . 13 (𝑎 ∈ ℝ → (𝑎 ∈ 𝐴 ↔ - -𝑎 ∈ 𝐴))
2827biimpcd 252 . . . . . . . . . . . 12 (𝑎 ∈ 𝐴 → (𝑎 ∈ ℝ → - -𝑎 ∈ 𝐴))
2928adantl 487 . . . . . . . . . . 11 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → (𝑎 ∈ ℝ → - -𝑎 ∈ 𝐴))
3029imp 412 . . . . . . . . . 10 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → - -𝑎 ∈ 𝐴)
3123, 30jca 521 . . . . . . . . 9 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴))
3222, 31mpdan 700 . . . . . . . 8 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴))
33 eleq1 2852 . . . . . . . . 9 (𝑛 = -𝑎 → (𝑛 ∈ ℝ ↔ -𝑎 ∈ ℝ))
34 negeq 11573 . . . . . . . . . 10 (𝑛 = -𝑎 → -𝑛 = - -𝑎)
3534eleq1d 2849 . . . . . . . . 9 (𝑛 = -𝑎 → ( -𝑛 ∈ 𝐴 ↔ - -𝑎 ∈ 𝐴))
3633, 35anbi12d 644 . . . . . . . 8 (𝑛 = -𝑎 → ((𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴) ↔ ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴)))
3732, 36syl5ibrcom 250 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → (𝑛 = -𝑎 → (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)))
38 simprr 785 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)) → -𝑛 ∈ 𝐴)
39 recn 11314 . . . . . . . . 9 (𝑛 ∈ ℝ → 𝑛 ∈ ℂ)
40 negneg 11632 . . . . . . . . . 10 (𝑛 ∈ ℂ → - -𝑛 = 𝑛)
4140eqcomd 2769 . . . . . . . . 9 (𝑛 ∈ ℂ → 𝑛 = - -𝑛)
4239, 41syl 18 . . . . . . . 8 (𝑛 ∈ ℝ → 𝑛 = - -𝑛)
4342ad2antrl 741 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)) → 𝑛 = - -𝑛)
44 negeq 11573 . . . . . . . 8 (𝑎 = -𝑛 → -𝑎 = - -𝑛)
4544eqeq2d 2774 . . . . . . 7 (𝑎 = -𝑛 → (𝑛 = -𝑎 ↔ 𝑛 = - -𝑛))
4637, 38, 43, 45rspceb2dv 3584 . . . . . 6 (𝐴 ⊆ ℝ → (∃𝑎 ∈ 𝐴 𝑛 = -𝑎 ↔ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)))
4746abbidv 2829 . . . . 5 (𝐴 ⊆ ℝ → {𝑛 ∣ ∃𝑎 ∈ 𝐴 𝑛 = -𝑎} = {𝑛 ∣ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)})
4816rnmpt 5945 . . . . 5 ran (𝑎 ∈ 𝐴 ↦ -𝑎) = {𝑛 ∣ ∃𝑎 ∈ 𝐴 𝑛 = -𝑎}
49 df-rab 3417 . . . . 5 {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴} = {𝑛 ∣ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)}
5047, 48, 493eqtr4g 2823 . . . 4 (𝐴 ⊆ ℝ → ran (𝑎 ∈ 𝐴 ↦ -𝑎) = {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴})
5150eleq1d 2849 . . 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 1570   ∈ wcel 2147  {cab 2741  ∀wral 3080  ∃wrex 3090  {crab 3416  Vcvv 3454   ⊆ wss 3900   ↦ cmpt 5189  dom cdm 5655  ran crn 5656  Fun wfun 6549  ⟶1-1wf1 6552  ⟶1-1ontowf1o 6554  Fincfn 8998  ℂcc 11222  ℝcr 11223   -cneg 11566
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7772  ax-cnex 11280  ax-resscn 11281  ax-1cn 11282  ax-icn 11283  ax-addcl 11284  ax-addrcl 11285  ax-mulcl 11286  ax-mulrcl 11287  ax-mulcom 11288  ax-addass 11289  ax-mulass 11290  ax-distr 11291  ax-i2m1 11292  ax-1ne0 11293  ax-1rid 11294  ax-rnegex 11295  ax-rrecex 11296  ax-cnre 11297  ax-pre-lttri 11298  ax-pre-lttrn 11299  ax-pre-ltadd 11300
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-ord 6380  df-on 6381  df-lim 6382  df-suc 6383  df-iota 6509  df-fun 6557  df-fn 6558  df-f 6559  df-f1 6560  df-fo 6561  df-f1o 6562  df-fv 6563  df-riota 7397  df-ov 7443  df-oprab 7444  df-mpo 7445  df-om 7899  df-1st 8022  df-2nd 8023  df-1o 8501  df-er 8742  df-en 8999  df-dom 9000  df-sdom 9001  df-fin 9002  df-pnf 11369  df-mnf 11370  df-ltxr 11372  df-sub 11567  df-neg 11568
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator