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

Theorem psrbagconf1o 14954
Description: Bag complementation is a bijection on the set of bags dominated by a given bag 𝐹. (Contributed by Mario Carneiro, 29-Dec-2014.) Remove a sethood antecedent. (Revised by SN, 6-Aug-2024.)
Hypotheses
Ref Expression
psrbag.d 𝐷 = {𝑓 ∈ (ℕ0𝑚 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
psrbagconf1o.s 𝑆 = {𝑦𝐷𝑦𝑟𝐹}
Assertion
Ref Expression
psrbagconf1o (𝐹𝐷 → (𝑥𝑆 ↦ (𝐹𝑓𝑥)):𝑆1-1-onto𝑆)
Distinct variable groups:   𝑓,𝐹   𝑓,𝐼   𝑥,𝐷,𝑦   𝑥,𝐹,𝑦   𝑥,𝐼,𝑓   𝑥,𝑆
Allowed substitution hints:   𝐷(𝑓)   𝑆(𝑦,𝑓)   𝐼(𝑦)

Proof of Theorem psrbagconf1o
Dummy variables 𝑛 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2234 . 2 (𝑥𝑆 ↦ (𝐹𝑓𝑥)) = (𝑥𝑆 ↦ (𝐹𝑓𝑥))
2 psrbag.d . . 3 𝐷 = {𝑓 ∈ (ℕ0𝑚 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
3 psrbagconf1o.s . . 3 𝑆 = {𝑦𝐷𝑦𝑟𝐹}
42, 3psrbagconcl 14953 . 2 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) ∈ 𝑆)
52, 3psrbagconcl 14953 . 2 ((𝐹𝐷𝑧𝑆) → (𝐹𝑓𝑧) ∈ 𝑆)
62psrbagf 14944 . . . . . . . . 9 (𝐹𝐷𝐹:𝐼⟶ℕ0)
76adantr 276 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐹:𝐼⟶ℕ0)
87ffvelcdmda 5817 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) ∈ ℕ0)
93ssrab3 3328 . . . . . . . . . . . 12 𝑆𝐷
109sseli 3238 . . . . . . . . . . 11 (𝑧𝑆𝑧𝐷)
1110adantl 277 . . . . . . . . . 10 ((𝐹𝐷𝑧𝑆) → 𝑧𝐷)
122psrbagf 14944 . . . . . . . . . 10 (𝑧𝐷𝑧:𝐼⟶ℕ0)
1311, 12syl 14 . . . . . . . . 9 ((𝐹𝐷𝑧𝑆) → 𝑧:𝐼⟶ℕ0)
1413adantrl 478 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑧:𝐼⟶ℕ0)
1514ffvelcdmda 5817 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) ∈ ℕ0)
16 simprl 531 . . . . . . . . . 10 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥𝑆)
179, 16sselid 3240 . . . . . . . . 9 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥𝐷)
182psrbagf 14944 . . . . . . . . 9 (𝑥𝐷𝑥:𝐼⟶ℕ0)
1917, 18syl 14 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥:𝐼⟶ℕ0)
2019ffvelcdmda 5817 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) ∈ ℕ0)
21 nn0cn 9523 . . . . . . . 8 ((𝐹𝑛) ∈ ℕ0 → (𝐹𝑛) ∈ ℂ)
22 nn0cn 9523 . . . . . . . 8 ((𝑧𝑛) ∈ ℕ0 → (𝑧𝑛) ∈ ℂ)
23 nn0cn 9523 . . . . . . . 8 ((𝑥𝑛) ∈ ℕ0 → (𝑥𝑛) ∈ ℂ)
24 subsub23 8494 . . . . . . . 8 (((𝐹𝑛) ∈ ℂ ∧ (𝑧𝑛) ∈ ℂ ∧ (𝑥𝑛) ∈ ℂ) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
2521, 22, 23, 24syl3an 1316 . . . . . . 7 (((𝐹𝑛) ∈ ℕ0 ∧ (𝑧𝑛) ∈ ℕ0 ∧ (𝑥𝑛) ∈ ℕ0) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
268, 15, 20, 25syl3anc 1274 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
27 eqcom 2236 . . . . . 6 ((𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛)) ↔ ((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛))
28 eqcom 2236 . . . . . 6 ((𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛)) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛))
2926, 27, 283bitr4g 223 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛)) ↔ (𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛))))
306ffnd 5514 . . . . . . . 8 (𝐹𝐷𝐹 Fn 𝐼)
3130adantr 276 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐹 Fn 𝐼)
3213ffnd 5514 . . . . . . . 8 ((𝐹𝐷𝑧𝑆) → 𝑧 Fn 𝐼)
3332adantrl 478 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑧 Fn 𝐼)
3419ffnd 5514 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥 Fn 𝐼)
3516, 34fndmexd 5561 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐼 ∈ V)
36 inidm 3434 . . . . . . 7 (𝐼𝐼) = 𝐼
37 eqidd 2235 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) = (𝐹𝑛))
38 eqidd 2235 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) = (𝑧𝑛))
398nn0zd 9716 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) ∈ ℤ)
4015nn0zd 9716 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) ∈ ℤ)
4139, 40zsubcld 9723 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑛) − (𝑧𝑛)) ∈ ℤ)
4231, 33, 35, 35, 36, 37, 38, 41ofvalg 6285 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑓𝑧)‘𝑛) = ((𝐹𝑛) − (𝑧𝑛)))
4342eqeq2d 2246 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ (𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛))))
44 eqidd 2235 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) = (𝑥𝑛))
4520nn0zd 9716 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) ∈ ℤ)
4639, 45zsubcld 9723 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑛) − (𝑥𝑛)) ∈ ℤ)
4731, 34, 35, 35, 36, 37, 44, 46ofvalg 6285 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑓𝑥)‘𝑛) = ((𝐹𝑛) − (𝑥𝑛)))
4847eqeq2d 2246 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛) ↔ (𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛))))
4929, 43, 483bitr4d 220 . . . 4 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
5049ralbidva 2540 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
515adantrl 478 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) ∈ 𝑆)
529, 51sselid 3240 . . . . . 6 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) ∈ 𝐷)
532psrbagf 14944 . . . . . 6 ((𝐹𝑓𝑧) ∈ 𝐷 → (𝐹𝑓𝑧):𝐼⟶ℕ0)
5452, 53syl 14 . . . . 5 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧):𝐼⟶ℕ0)
5554ffnd 5514 . . . 4 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) Fn 𝐼)
56 eqfnfv 5780 . . . 4 ((𝑥 Fn 𝐼 ∧ (𝐹𝑓𝑧) Fn 𝐼) → (𝑥 = (𝐹𝑓𝑧) ↔ ∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛)))
5734, 55, 56syl2anc 411 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑥 = (𝐹𝑓𝑧) ↔ ∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛)))
589, 4sselid 3240 . . . . . . 7 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) ∈ 𝐷)
592psrbagf 14944 . . . . . . 7 ((𝐹𝑓𝑥) ∈ 𝐷 → (𝐹𝑓𝑥):𝐼⟶ℕ0)
6058, 59syl 14 . . . . . 6 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥):𝐼⟶ℕ0)
6160ffnd 5514 . . . . 5 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) Fn 𝐼)
6261adantrr 479 . . . 4 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑥) Fn 𝐼)
63 eqfnfv 5780 . . . 4 ((𝑧 Fn 𝐼 ∧ (𝐹𝑓𝑥) Fn 𝐼) → (𝑧 = (𝐹𝑓𝑥) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
6433, 62, 63syl2anc 411 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑧 = (𝐹𝑓𝑥) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
6550, 57, 643bitr4d 220 . 2 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑥 = (𝐹𝑓𝑧) ↔ 𝑧 = (𝐹𝑓𝑥)))
661, 4, 5, 65f1o2d 6268 1 (𝐹𝐷 → (𝑥𝑆 ↦ (𝐹𝑓𝑥)):𝑆1-1-onto𝑆)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  wb 105   = wceq 1398  wcel 2205  wral 2522  {crab 2526  Vcvv 2815   class class class wbr 4114  cmpt 4176  ccnv 4753  cima 4757   Fn wfn 5352  wf 5353  1-1-ontowf1o 5356  cfv 5357  (class class class)co 6058  𝑓 cof 6273  𝑟 cofr 6274  𝑚 cmap 6895  Fincfn 6988  cc 8141  cle 8325  cmin 8460  cn 9254  0cn0 9513  cz 9594
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 717  ax-5 1496  ax-7 1497  ax-gen 1498  ax-ie1 1542  ax-ie2 1543  ax-8 1553  ax-10 1554  ax-11 1555  ax-i12 1556  ax-bndl 1558  ax-4 1559  ax-17 1575  ax-i9 1579  ax-ial 1583  ax-i5r 1584  ax-13 2207  ax-14 2208  ax-ext 2216  ax-coll 4230  ax-sep 4233  ax-nul 4241  ax-pow 4292  ax-pr 4327  ax-un 4559  ax-setind 4664  ax-iinf 4715  ax-cnex 8234  ax-resscn 8235  ax-1cn 8236  ax-1re 8237  ax-icn 8238  ax-addcl 8239  ax-addrcl 8240  ax-mulcl 8241  ax-addcom 8243  ax-addass 8245  ax-distr 8247  ax-i2m1 8248  ax-0lt1 8249  ax-0id 8251  ax-rnegex 8252  ax-cnre 8254  ax-pre-ltirr 8255  ax-pre-ltwlin 8256  ax-pre-lttrn 8257  ax-pre-ltadd 8259
This theorem depends on definitions:  df-bi 117  df-dc 843  df-3or 1006  df-3an 1007  df-tru 1401  df-fal 1404  df-nf 1510  df-sb 1812  df-eu 2085  df-mo 2086  df-clab 2221  df-cleq 2227  df-clel 2230  df-nfc 2375  df-ne 2415  df-nel 2510  df-ral 2527  df-rex 2528  df-reu 2529  df-rab 2531  df-v 2817  df-sbc 3046  df-csb 3142  df-dif 3216  df-un 3218  df-in 3220  df-ss 3227  df-nul 3513  df-if 3625  df-pw 3676  df-sn 3700  df-pr 3701  df-op 3703  df-uni 3920  df-int 3955  df-iun 3998  df-br 4115  df-opab 4177  df-mpt 4178  df-tr 4214  df-id 4419  df-iord 4492  df-on 4494  df-suc 4497  df-iom 4718  df-xp 4760  df-rel 4761  df-cnv 4762  df-co 4763  df-dm 4764  df-rn 4765  df-res 4766  df-ima 4767  df-iota 5317  df-fun 5359  df-fn 5360  df-f 5361  df-f1 5362  df-fo 5363  df-f1o 5364  df-fv 5365  df-riota 6011  df-ov 6061  df-oprab 6062  df-mpo 6063  df-of 6275  df-ofr 6276  df-1o 6660  df-er 6780  df-map 6897  df-en 6989  df-fin 6991  df-pnf 8326  df-mnf 8327  df-xr 8328  df-ltxr 8329  df-le 8330  df-sub 8462  df-neg 8463  df-inn 9255  df-n0 9514  df-z 9595  df-uz 9872
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator