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

Theorem psrbagconf1o 14714
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 2231 . 2 (𝑥𝑆 ↦ (𝐹𝑓𝑥)) = (𝑥𝑆 ↦ (𝐹𝑓𝑥))
2 psrbag.d . . 3 𝐷 = {𝑓 ∈ (ℕ0𝑚 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
3 psrbagconf1o.s . . 3 𝑆 = {𝑦𝐷𝑦𝑟𝐹}
42, 3psrbagconcl 14713 . 2 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) ∈ 𝑆)
52, 3psrbagconcl 14713 . 2 ((𝐹𝐷𝑧𝑆) → (𝐹𝑓𝑧) ∈ 𝑆)
62psrbagf 14706 . . . . . . . . 9 (𝐹𝐷𝐹:𝐼⟶ℕ0)
76adantr 276 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐹:𝐼⟶ℕ0)
87ffvelcdmda 5783 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) ∈ ℕ0)
93ssrab3 3313 . . . . . . . . . . . 12 𝑆𝐷
109sseli 3223 . . . . . . . . . . 11 (𝑧𝑆𝑧𝐷)
1110adantl 277 . . . . . . . . . 10 ((𝐹𝐷𝑧𝑆) → 𝑧𝐷)
122psrbagf 14706 . . . . . . . . . 10 (𝑧𝐷𝑧:𝐼⟶ℕ0)
1311, 12syl 14 . . . . . . . . 9 ((𝐹𝐷𝑧𝑆) → 𝑧:𝐼⟶ℕ0)
1413adantrl 478 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑧:𝐼⟶ℕ0)
1514ffvelcdmda 5783 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) ∈ ℕ0)
16 simprl 531 . . . . . . . . . 10 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥𝑆)
179, 16sselid 3225 . . . . . . . . 9 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥𝐷)
182psrbagf 14706 . . . . . . . . 9 (𝑥𝐷𝑥:𝐼⟶ℕ0)
1917, 18syl 14 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥:𝐼⟶ℕ0)
2019ffvelcdmda 5783 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) ∈ ℕ0)
21 nn0cn 9415 . . . . . . . 8 ((𝐹𝑛) ∈ ℕ0 → (𝐹𝑛) ∈ ℂ)
22 nn0cn 9415 . . . . . . . 8 ((𝑧𝑛) ∈ ℕ0 → (𝑧𝑛) ∈ ℂ)
23 nn0cn 9415 . . . . . . . 8 ((𝑥𝑛) ∈ ℕ0 → (𝑥𝑛) ∈ ℂ)
24 subsub23 8387 . . . . . . . 8 (((𝐹𝑛) ∈ ℂ ∧ (𝑧𝑛) ∈ ℂ ∧ (𝑥𝑛) ∈ ℂ) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
2521, 22, 23, 24syl3an 1315 . . . . . . 7 (((𝐹𝑛) ∈ ℕ0 ∧ (𝑧𝑛) ∈ ℕ0 ∧ (𝑥𝑛) ∈ ℕ0) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
268, 15, 20, 25syl3anc 1273 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
27 eqcom 2233 . . . . . 6 ((𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛)) ↔ ((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛))
28 eqcom 2233 . . . . . 6 ((𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛)) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛))
2926, 27, 283bitr4g 223 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛)) ↔ (𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛))))
306ffnd 5483 . . . . . . . 8 (𝐹𝐷𝐹 Fn 𝐼)
3130adantr 276 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐹 Fn 𝐼)
3213ffnd 5483 . . . . . . . 8 ((𝐹𝐷𝑧𝑆) → 𝑧 Fn 𝐼)
3332adantrl 478 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑧 Fn 𝐼)
3419ffnd 5483 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥 Fn 𝐼)
3516, 34fndmexd 5526 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐼 ∈ V)
36 inidm 3416 . . . . . . 7 (𝐼𝐼) = 𝐼
37 eqidd 2232 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) = (𝐹𝑛))
38 eqidd 2232 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) = (𝑧𝑛))
398nn0zd 9603 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) ∈ ℤ)
4015nn0zd 9603 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) ∈ ℤ)
4139, 40zsubcld 9610 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑛) − (𝑧𝑛)) ∈ ℤ)
4231, 33, 35, 35, 36, 37, 38, 41ofvalg 6248 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑓𝑧)‘𝑛) = ((𝐹𝑛) − (𝑧𝑛)))
4342eqeq2d 2243 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ (𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛))))
44 eqidd 2232 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) = (𝑥𝑛))
4520nn0zd 9603 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) ∈ ℤ)
4639, 45zsubcld 9610 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑛) − (𝑥𝑛)) ∈ ℤ)
4731, 34, 35, 35, 36, 37, 44, 46ofvalg 6248 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑓𝑥)‘𝑛) = ((𝐹𝑛) − (𝑥𝑛)))
4847eqeq2d 2243 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛) ↔ (𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛))))
4929, 43, 483bitr4d 220 . . . 4 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
5049ralbidva 2528 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
515adantrl 478 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) ∈ 𝑆)
529, 51sselid 3225 . . . . . 6 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) ∈ 𝐷)
532psrbagf 14706 . . . . . 6 ((𝐹𝑓𝑧) ∈ 𝐷 → (𝐹𝑓𝑧):𝐼⟶ℕ0)
5452, 53syl 14 . . . . 5 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧):𝐼⟶ℕ0)
5554ffnd 5483 . . . 4 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) Fn 𝐼)
56 eqfnfv 5745 . . . 4 ((𝑥 Fn 𝐼 ∧ (𝐹𝑓𝑧) Fn 𝐼) → (𝑥 = (𝐹𝑓𝑧) ↔ ∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛)))
5734, 55, 56syl2anc 411 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑥 = (𝐹𝑓𝑧) ↔ ∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛)))
589, 4sselid 3225 . . . . . . 7 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) ∈ 𝐷)
592psrbagf 14706 . . . . . . 7 ((𝐹𝑓𝑥) ∈ 𝐷 → (𝐹𝑓𝑥):𝐼⟶ℕ0)
6058, 59syl 14 . . . . . 6 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥):𝐼⟶ℕ0)
6160ffnd 5483 . . . . 5 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) Fn 𝐼)
6261adantrr 479 . . . 4 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑥) Fn 𝐼)
63 eqfnfv 5745 . . . 4 ((𝑧 Fn 𝐼 ∧ (𝐹𝑓𝑥) Fn 𝐼) → (𝑧 = (𝐹𝑓𝑥) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
6433, 62, 63syl2anc 411 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑧 = (𝐹𝑓𝑥) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
6550, 57, 643bitr4d 220 . 2 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑥 = (𝐹𝑓𝑧) ↔ 𝑧 = (𝐹𝑓𝑥)))
661, 4, 5, 65f1o2d 6231 1 (𝐹𝐷 → (𝑥𝑆 ↦ (𝐹𝑓𝑥)):𝑆1-1-onto𝑆)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  wb 105   = wceq 1397  wcel 2202  wral 2510  {crab 2514  Vcvv 2802   class class class wbr 4088  cmpt 4150  ccnv 4724  cima 4728   Fn wfn 5321  wf 5322  1-1-ontowf1o 5325  cfv 5326  (class class class)co 6021  𝑓 cof 6236  𝑟 cofr 6237  𝑚 cmap 6820  Fincfn 6912  cc 8033  cle 8218  cmin 8353  cn 9146  0cn0 9405  cz 9482
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 2204  ax-14 2205  ax-ext 2213  ax-coll 4204  ax-sep 4207  ax-nul 4215  ax-pow 4264  ax-pr 4299  ax-un 4530  ax-setind 4635  ax-iinf 4686  ax-cnex 8126  ax-resscn 8127  ax-1cn 8128  ax-1re 8129  ax-icn 8130  ax-addcl 8131  ax-addrcl 8132  ax-mulcl 8133  ax-addcom 8135  ax-addass 8137  ax-distr 8139  ax-i2m1 8140  ax-0lt1 8141  ax-0id 8143  ax-rnegex 8144  ax-cnre 8146  ax-pre-ltirr 8147  ax-pre-ltwlin 8148  ax-pre-lttrn 8149  ax-pre-ltadd 8151
This theorem depends on definitions:  df-bi 117  df-dc 842  df-3or 1005  df-3an 1006  df-tru 1400  df-fal 1403  df-nf 1509  df-sb 1811  df-eu 2082  df-mo 2083  df-clab 2218  df-cleq 2224  df-clel 2227  df-nfc 2363  df-ne 2403  df-nel 2498  df-ral 2515  df-rex 2516  df-reu 2517  df-rab 2519  df-v 2804  df-sbc 3032  df-csb 3128  df-dif 3202  df-un 3204  df-in 3206  df-ss 3213  df-nul 3495  df-if 3606  df-pw 3654  df-sn 3675  df-pr 3676  df-op 3678  df-uni 3894  df-int 3929  df-iun 3972  df-br 4089  df-opab 4151  df-mpt 4152  df-tr 4188  df-id 4390  df-iord 4463  df-on 4465  df-suc 4468  df-iom 4689  df-xp 4731  df-rel 4732  df-cnv 4733  df-co 4734  df-dm 4735  df-rn 4736  df-res 4737  df-ima 4738  df-iota 5286  df-fun 5328  df-fn 5329  df-f 5330  df-f1 5331  df-fo 5332  df-f1o 5333  df-fv 5334  df-riota 5974  df-ov 6024  df-oprab 6025  df-mpo 6026  df-of 6238  df-ofr 6239  df-1o 6585  df-er 6705  df-map 6822  df-en 6913  df-fin 6915  df-pnf 8219  df-mnf 8220  df-xr 8221  df-ltxr 8222  df-le 8223  df-sub 8355  df-neg 8356  df-inn 9147  df-n0 9406  df-z 9483  df-uz 9759
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator