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

Theorem psrbagconf1o 14774
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 14773 . 2 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) ∈ 𝑆)
52, 3psrbagconcl 14773 . 2 ((𝐹𝐷𝑧𝑆) → (𝐹𝑓𝑧) ∈ 𝑆)
62psrbagf 14766 . . . . . . . . 9 (𝐹𝐷𝐹:𝐼⟶ℕ0)
76adantr 276 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐹:𝐼⟶ℕ0)
87ffvelcdmda 5790 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) ∈ ℕ0)
93ssrab3 3314 . . . . . . . . . . . 12 𝑆𝐷
109sseli 3224 . . . . . . . . . . 11 (𝑧𝑆𝑧𝐷)
1110adantl 277 . . . . . . . . . 10 ((𝐹𝐷𝑧𝑆) → 𝑧𝐷)
122psrbagf 14766 . . . . . . . . . 10 (𝑧𝐷𝑧:𝐼⟶ℕ0)
1311, 12syl 14 . . . . . . . . 9 ((𝐹𝐷𝑧𝑆) → 𝑧:𝐼⟶ℕ0)
1413adantrl 478 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑧:𝐼⟶ℕ0)
1514ffvelcdmda 5790 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) ∈ ℕ0)
16 simprl 531 . . . . . . . . . 10 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥𝑆)
179, 16sselid 3226 . . . . . . . . 9 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥𝐷)
182psrbagf 14766 . . . . . . . . 9 (𝑥𝐷𝑥:𝐼⟶ℕ0)
1917, 18syl 14 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥:𝐼⟶ℕ0)
2019ffvelcdmda 5790 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) ∈ ℕ0)
21 nn0cn 9471 . . . . . . . 8 ((𝐹𝑛) ∈ ℕ0 → (𝐹𝑛) ∈ ℂ)
22 nn0cn 9471 . . . . . . . 8 ((𝑧𝑛) ∈ ℕ0 → (𝑧𝑛) ∈ ℂ)
23 nn0cn 9471 . . . . . . . 8 ((𝑥𝑛) ∈ ℕ0 → (𝑥𝑛) ∈ ℂ)
24 subsub23 8443 . . . . . . . 8 (((𝐹𝑛) ∈ ℂ ∧ (𝑧𝑛) ∈ ℂ ∧ (𝑥𝑛) ∈ ℂ) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
2521, 22, 23, 24syl3an 1316 . . . . . . 7 (((𝐹𝑛) ∈ ℕ0 ∧ (𝑧𝑛) ∈ ℕ0 ∧ (𝑥𝑛) ∈ ℕ0) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
268, 15, 20, 25syl3anc 1274 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛)))
27 eqcom 2233 . . . . . 6 ((𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛)) ↔ ((𝐹𝑛) − (𝑧𝑛)) = (𝑥𝑛))
28 eqcom 2233 . . . . . 6 ((𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛)) ↔ ((𝐹𝑛) − (𝑥𝑛)) = (𝑧𝑛))
2926, 27, 283bitr4g 223 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛)) ↔ (𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛))))
306ffnd 5490 . . . . . . . 8 (𝐹𝐷𝐹 Fn 𝐼)
3130adantr 276 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐹 Fn 𝐼)
3213ffnd 5490 . . . . . . . 8 ((𝐹𝐷𝑧𝑆) → 𝑧 Fn 𝐼)
3332adantrl 478 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑧 Fn 𝐼)
3419ffnd 5490 . . . . . . . 8 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝑥 Fn 𝐼)
3516, 34fndmexd 5534 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → 𝐼 ∈ V)
36 inidm 3418 . . . . . . 7 (𝐼𝐼) = 𝐼
37 eqidd 2232 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) = (𝐹𝑛))
38 eqidd 2232 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) = (𝑧𝑛))
398nn0zd 9661 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝐹𝑛) ∈ ℤ)
4015nn0zd 9661 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑧𝑛) ∈ ℤ)
4139, 40zsubcld 9668 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑛) − (𝑧𝑛)) ∈ ℤ)
4231, 33, 35, 35, 36, 37, 38, 41ofvalg 6254 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑓𝑧)‘𝑛) = ((𝐹𝑛) − (𝑧𝑛)))
4342eqeq2d 2243 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ (𝑥𝑛) = ((𝐹𝑛) − (𝑧𝑛))))
44 eqidd 2232 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) = (𝑥𝑛))
4520nn0zd 9661 . . . . . . . 8 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → (𝑥𝑛) ∈ ℤ)
4639, 45zsubcld 9668 . . . . . . 7 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑛) − (𝑥𝑛)) ∈ ℤ)
4731, 34, 35, 35, 36, 37, 44, 46ofvalg 6254 . . . . . 6 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝐹𝑓𝑥)‘𝑛) = ((𝐹𝑛) − (𝑥𝑛)))
4847eqeq2d 2243 . . . . 5 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛) ↔ (𝑧𝑛) = ((𝐹𝑛) − (𝑥𝑛))))
4929, 43, 483bitr4d 220 . . . 4 (((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) ∧ 𝑛𝐼) → ((𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
5049ralbidva 2529 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
515adantrl 478 . . . . . . 7 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) ∈ 𝑆)
529, 51sselid 3226 . . . . . 6 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) ∈ 𝐷)
532psrbagf 14766 . . . . . 6 ((𝐹𝑓𝑧) ∈ 𝐷 → (𝐹𝑓𝑧):𝐼⟶ℕ0)
5452, 53syl 14 . . . . 5 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧):𝐼⟶ℕ0)
5554ffnd 5490 . . . 4 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑧) Fn 𝐼)
56 eqfnfv 5753 . . . 4 ((𝑥 Fn 𝐼 ∧ (𝐹𝑓𝑧) Fn 𝐼) → (𝑥 = (𝐹𝑓𝑧) ↔ ∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛)))
5734, 55, 56syl2anc 411 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑥 = (𝐹𝑓𝑧) ↔ ∀𝑛𝐼 (𝑥𝑛) = ((𝐹𝑓𝑧)‘𝑛)))
589, 4sselid 3226 . . . . . . 7 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) ∈ 𝐷)
592psrbagf 14766 . . . . . . 7 ((𝐹𝑓𝑥) ∈ 𝐷 → (𝐹𝑓𝑥):𝐼⟶ℕ0)
6058, 59syl 14 . . . . . 6 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥):𝐼⟶ℕ0)
6160ffnd 5490 . . . . 5 ((𝐹𝐷𝑥𝑆) → (𝐹𝑓𝑥) Fn 𝐼)
6261adantrr 479 . . . 4 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝐹𝑓𝑥) Fn 𝐼)
63 eqfnfv 5753 . . . 4 ((𝑧 Fn 𝐼 ∧ (𝐹𝑓𝑥) Fn 𝐼) → (𝑧 = (𝐹𝑓𝑥) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
6433, 62, 63syl2anc 411 . . 3 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑧 = (𝐹𝑓𝑥) ↔ ∀𝑛𝐼 (𝑧𝑛) = ((𝐹𝑓𝑥)‘𝑛)))
6550, 57, 643bitr4d 220 . 2 ((𝐹𝐷 ∧ (𝑥𝑆𝑧𝑆)) → (𝑥 = (𝐹𝑓𝑧) ↔ 𝑧 = (𝐹𝑓𝑥)))
661, 4, 5, 65f1o2d 6238 1 (𝐹𝐷 → (𝑥𝑆 ↦ (𝐹𝑓𝑥)):𝑆1-1-onto𝑆)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  wb 105   = wceq 1398  wcel 2202  wral 2511  {crab 2515  Vcvv 2803   class class class wbr 4093  cmpt 4155  ccnv 4730  cima 4734   Fn wfn 5328  wf 5329  1-1-ontowf1o 5332  cfv 5333  (class class class)co 6028  𝑓 cof 6242  𝑟 cofr 6243  𝑚 cmap 6860  Fincfn 6952  cc 8090  cle 8274  cmin 8409  cn 9202  0cn0 9461  cz 9540
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 2204  ax-14 2205  ax-ext 2213  ax-coll 4209  ax-sep 4212  ax-nul 4220  ax-pow 4270  ax-pr 4305  ax-un 4536  ax-setind 4641  ax-iinf 4692  ax-cnex 8183  ax-resscn 8184  ax-1cn 8185  ax-1re 8186  ax-icn 8187  ax-addcl 8188  ax-addrcl 8189  ax-mulcl 8190  ax-addcom 8192  ax-addass 8194  ax-distr 8196  ax-i2m1 8197  ax-0lt1 8198  ax-0id 8200  ax-rnegex 8201  ax-cnre 8203  ax-pre-ltirr 8204  ax-pre-ltwlin 8205  ax-pre-lttrn 8206  ax-pre-ltadd 8208
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 1811  df-eu 2082  df-mo 2083  df-clab 2218  df-cleq 2224  df-clel 2227  df-nfc 2364  df-ne 2404  df-nel 2499  df-ral 2516  df-rex 2517  df-reu 2518  df-rab 2520  df-v 2805  df-sbc 3033  df-csb 3129  df-dif 3203  df-un 3205  df-in 3207  df-ss 3214  df-nul 3497  df-if 3608  df-pw 3658  df-sn 3679  df-pr 3680  df-op 3682  df-uni 3899  df-int 3934  df-iun 3977  df-br 4094  df-opab 4156  df-mpt 4157  df-tr 4193  df-id 4396  df-iord 4469  df-on 4471  df-suc 4474  df-iom 4695  df-xp 4737  df-rel 4738  df-cnv 4739  df-co 4740  df-dm 4741  df-rn 4742  df-res 4743  df-ima 4744  df-iota 5293  df-fun 5335  df-fn 5336  df-f 5337  df-f1 5338  df-fo 5339  df-f1o 5340  df-fv 5341  df-riota 5981  df-ov 6031  df-oprab 6032  df-mpo 6033  df-of 6244  df-ofr 6245  df-1o 6625  df-er 6745  df-map 6862  df-en 6953  df-fin 6955  df-pnf 8275  df-mnf 8276  df-xr 8277  df-ltxr 8278  df-le 8279  df-sub 8411  df-neg 8412  df-inn 9203  df-n0 9462  df-z 9541  df-uz 9817
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator