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

Theorem negfi 12305
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 3906 . . . . . . . . 9 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 → 𝑎 ∈ ℝ))
2 renegcl 11659 . . . . . . . . 9 (𝑎 ∈ ℝ → -𝑎 ∈ ℝ)
31, 2syl6 36 . . . . . . . 8 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 → -𝑎 ∈ ℝ))
43ralrimiv 3160 . . . . . . 7 (𝐴 ⊆ ℝ → ∀𝑎 ∈ 𝐴 -𝑎 ∈ ℝ)
5 dmmptg 6261 . . . . . . 7 (∀𝑎 ∈ 𝐴 -𝑎 ∈ ℝ → dom (𝑎 ∈ 𝐴 ↦ -𝑎) = 𝐴)
64, 5syl 18 . . . . . 6 (𝐴 ⊆ ℝ → dom (𝑎 ∈ 𝐴 ↦ -𝑎) = 𝐴)
76eqcomd 2772 . . . . 5 (𝐴 ⊆ ℝ → 𝐴 = dom (𝑎 ∈ 𝐴 ↦ -𝑎))
87eleq1d 2852 . . . 4 (𝐴 ⊆ ℝ → (𝐴 ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
9 funmpt 6605 . . . . 5 Fun (𝑎 ∈ 𝐴 ↦ -𝑎)
10 fundmfibi 9362 . . . . 5 (Fun (𝑎 ∈ 𝐴 ↦ -𝑎) → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
119, 10mp1i 14 . . . 4 (𝐴 ⊆ ℝ → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ dom (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
128, 11bitr4d 285 . . 3 (𝐴 ⊆ ℝ → (𝐴 ∈ Fin ↔ (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
13 reex 11329 . . . . . 6 ℝ ∈ V
1413ssex 5288 . . . . 5 (𝐴 ⊆ ℝ → 𝐴 ∈ V)
1514mptexd 7260 . . . 4 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ V)
16 eqid 2766 . . . . . 6 (𝑎 ∈ 𝐴 ↦ -𝑎) = (𝑎 ∈ 𝐴 ↦ -𝑎)
1716negf1o 11784 . . . . 5 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1onto{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
18 f1of1 6852 . . . . 5 ((𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1onto{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴} → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
1917, 18syl 18 . . . 4 (𝐴 ⊆ ℝ → (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴})
20 f1vrnfibi 9368 . . . 4 (((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ V ∧ (𝑎 ∈ 𝐴 ↦ -𝑎):𝐴⟶1-1{𝑥 ∈ ℝ ∣ -𝑥 ∈ 𝐴}) → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ ran (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
2115, 19, 20syl2anc 596 . . 3 (𝐴 ⊆ ℝ → ((𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin ↔ ran (𝑎 ∈ 𝐴 ↦ -𝑎) ∈ Fin))
221imp 412 . . . . . . . . 9 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → 𝑎 ∈ ℝ)
232adantl 487 . . . . . . . . . 10 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → -𝑎 ∈ ℝ)
24 recn 11328 . . . . . . . . . . . . . . . 16 (𝑎 ∈ ℝ → 𝑎 ∈ ℂ)
2524negnegd 11698 . . . . . . . . . . . . . . 15 (𝑎 ∈ ℝ → - -𝑎 = 𝑎)
2625eqcomd 2772 . . . . . . . . . . . . . 14 (𝑎 ∈ ℝ → 𝑎 = - -𝑎)
2726eleq1d 2852 . . . . . . . . . . . . 13 (𝑎 ∈ ℝ → (𝑎 ∈ 𝐴 ↔ - -𝑎 ∈ 𝐴))
2827biimpcd 252 . . . . . . . . . . . 12 (𝑎 ∈ 𝐴 → (𝑎 ∈ ℝ → - -𝑎 ∈ 𝐴))
2928adantl 487 . . . . . . . . . . 11 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → (𝑎 ∈ ℝ → - -𝑎 ∈ 𝐴))
3029imp 412 . . . . . . . . . 10 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → - -𝑎 ∈ 𝐴)
3123, 30jca 521 . . . . . . . . 9 (((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) ∧ 𝑎 ∈ ℝ) → ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴))
3222, 31mpdan 700 . . . . . . . 8 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴))
33 eleq1 2855 . . . . . . . . 9 (𝑛 = -𝑎 → (𝑛 ∈ ℝ ↔ -𝑎 ∈ ℝ))
34 negeq 11587 . . . . . . . . . 10 (𝑛 = -𝑎 → -𝑛 = - -𝑎)
3534eleq1d 2852 . . . . . . . . 9 (𝑛 = -𝑎 → ( -𝑛 ∈ 𝐴 ↔ - -𝑎 ∈ 𝐴))
3633, 35anbi12d 644 . . . . . . . 8 (𝑛 = -𝑎 → ((𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴) ↔ ( -𝑎 ∈ ℝ ∧ - -𝑎 ∈ 𝐴)))
3732, 36syl5ibrcom 250 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ 𝑎 ∈ 𝐴) → (𝑛 = -𝑎 → (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)))
38 simprr 785 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)) → -𝑛 ∈ 𝐴)
39 recn 11328 . . . . . . . . 9 (𝑛 ∈ ℝ → 𝑛 ∈ ℂ)
40 negneg 11646 . . . . . . . . . 10 (𝑛 ∈ ℂ → - -𝑛 = 𝑛)
4140eqcomd 2772 . . . . . . . . 9 (𝑛 ∈ ℂ → 𝑛 = - -𝑛)
4239, 41syl 18 . . . . . . . 8 (𝑛 ∈ ℝ → 𝑛 = - -𝑛)
4342ad2antrl 741 . . . . . . 7 ((𝐴 ⊆ ℝ ∧ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)) → 𝑛 = - -𝑛)
44 negeq 11587 . . . . . . . 8 (𝑎 = -𝑛 → -𝑎 = - -𝑛)
4544eqeq2d 2777 . . . . . . 7 (𝑎 = -𝑛 → (𝑛 = -𝑎 ↔ 𝑛 = - -𝑛))
4637, 38, 43, 45rspceb2dv 3583 . . . . . 6 (𝐴 ⊆ ℝ → (∃𝑎 ∈ 𝐴 𝑛 = -𝑎 ↔ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)))
4746abbidv 2832 . . . . 5 (𝐴 ⊆ ℝ → {𝑛 ∣ ∃𝑎 ∈ 𝐴 𝑛 = -𝑎} = {𝑛 ∣ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)})
4816rnmpt 5950 . . . . 5 ran (𝑎 ∈ 𝐴 ↦ -𝑎) = {𝑛 ∣ ∃𝑎 ∈ 𝐴 𝑛 = -𝑎}
49 df-rab 3416 . . . . 5 {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴} = {𝑛 ∣ (𝑛 ∈ ℝ ∧ -𝑛 ∈ 𝐴)}
5047, 48, 493eqtr4g 2826 . . . 4 (𝐴 ⊆ ℝ → ran (𝑎 ∈ 𝐴 ↦ -𝑎) = {𝑛 ∈ ℝ ∣ -𝑛 ∈ 𝐴})
5150eleq1d 2852 . . 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 1572   ∈ wcel 2150  {cab 2744  ∀wral 3083  ∃wrex 3093  {crab 3415  Vcvv 3453   ⊆ wss 3899   ↦ cmpt 5191  dom cdm 5657  ran crn 5658  Fun wfun 6559  ⟶1-1wf1 6562  ⟶1-1ontowf1o 6564  Fincfn 9010  ℂcc 11236  ℝcr 11237   -cneg 11580
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 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782  ax-cnex 11294  ax-resscn 11295  ax-1cn 11296  ax-icn 11297  ax-addcl 11298  ax-addrcl 11299  ax-mulcl 11300  ax-mulrcl 11301  ax-mulcom 11302  ax-addass 11303  ax-mulass 11304  ax-distr 11305  ax-i2m1 11306  ax-1ne0 11307  ax-1rid 11308  ax-rnegex 11309  ax-rrecex 11310  ax-cnre 11311  ax-pre-lttri 11312  ax-pre-lttrn 11313  ax-pre-ltadd 11314
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 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-ord 6390  df-on 6391  df-lim 6392  df-suc 6393  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-riota 7407  df-ov 7453  df-oprab 7454  df-mpo 7455  df-om 7911  df-1st 8034  df-2nd 8035  df-1o 8513  df-er 8754  df-en 9011  df-dom 9012  df-sdom 9013  df-fin 9014  df-pnf 11383  df-mnf 11384  df-ltxr 11386  df-sub 11581  df-neg 11582
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator