Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  fpwrelmap Structured version   Visualization version   GIF version

Theorem fpwrelmap 30970
Description: Define a canonical mapping between functions from 𝐴 into subsets of 𝐵 and the relations with domain 𝐴 and range within 𝐵. Note that the same relation is used in axdc2lem 10135 and marypha2lem1 9124. (Contributed by Thierry Arnoux, 28-Aug-2017.)
Hypotheses
Ref Expression
fpwrelmap.1 𝐴 ∈ V
fpwrelmap.2 𝐵 ∈ V
fpwrelmap.3 𝑀 = (𝑓 ∈ (𝒫 𝐵m 𝐴) ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))})
Assertion
Ref Expression
fpwrelmap 𝑀:(𝒫 𝐵m 𝐴)–1-1-onto→𝒫 (𝐴 × 𝐵)
Distinct variable groups:   𝑥,𝑓,𝑦,𝐴   𝐵,𝑓,𝑥,𝑦
Allowed substitution hints:   𝑀(𝑥,𝑦,𝑓)

Proof of Theorem fpwrelmap
Dummy variable 𝑟 is distinct from all other variables.
StepHypRef Expression
1 fpwrelmap.3 . . 3 𝑀 = (𝑓 ∈ (𝒫 𝐵m 𝐴) ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))})
2 fpwrelmap.1 . . . . . 6 𝐴 ∈ V
32a1i 11 . . . . 5 (𝑓 ∈ (𝒫 𝐵m 𝐴) → 𝐴 ∈ V)
4 simpr 484 . . . . . . . . 9 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑥𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → 𝑦 ∈ (𝑓𝑥))
5 elmapi 8595 . . . . . . . . . . 11 (𝑓 ∈ (𝒫 𝐵m 𝐴) → 𝑓:𝐴⟶𝒫 𝐵)
65ffvelrnda 6943 . . . . . . . . . 10 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑥𝐴) → (𝑓𝑥) ∈ 𝒫 𝐵)
76adantr 480 . . . . . . . . 9 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑥𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → (𝑓𝑥) ∈ 𝒫 𝐵)
8 elelpwi 4542 . . . . . . . . 9 ((𝑦 ∈ (𝑓𝑥) ∧ (𝑓𝑥) ∈ 𝒫 𝐵) → 𝑦𝐵)
94, 7, 8syl2anc 583 . . . . . . . 8 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑥𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → 𝑦𝐵)
109ex 412 . . . . . . 7 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑥𝐴) → (𝑦 ∈ (𝑓𝑥) → 𝑦𝐵))
1110alrimiv 1931 . . . . . 6 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑥𝐴) → ∀𝑦(𝑦 ∈ (𝑓𝑥) → 𝑦𝐵))
12 abss 3990 . . . . . . 7 ({𝑦𝑦 ∈ (𝑓𝑥)} ⊆ 𝐵 ↔ ∀𝑦(𝑦 ∈ (𝑓𝑥) → 𝑦𝐵))
13 fpwrelmap.2 . . . . . . . 8 𝐵 ∈ V
1413ssex 5240 . . . . . . 7 ({𝑦𝑦 ∈ (𝑓𝑥)} ⊆ 𝐵 → {𝑦𝑦 ∈ (𝑓𝑥)} ∈ V)
1512, 14sylbir 234 . . . . . 6 (∀𝑦(𝑦 ∈ (𝑓𝑥) → 𝑦𝐵) → {𝑦𝑦 ∈ (𝑓𝑥)} ∈ V)
1611, 15syl 17 . . . . 5 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑥𝐴) → {𝑦𝑦 ∈ (𝑓𝑥)} ∈ V)
173, 16opabex3d 7781 . . . 4 (𝑓 ∈ (𝒫 𝐵m 𝐴) → {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))} ∈ V)
1817adantl 481 . . 3 ((⊤ ∧ 𝑓 ∈ (𝒫 𝐵m 𝐴)) → {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))} ∈ V)
192mptex 7081 . . . 4 (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}) ∈ V
2019a1i 11 . . 3 ((⊤ ∧ 𝑟 ∈ 𝒫 (𝐴 × 𝐵)) → (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}) ∈ V)
2110imdistanda 571 . . . . . . . . . 10 (𝑓 ∈ (𝒫 𝐵m 𝐴) → ((𝑥𝐴𝑦 ∈ (𝑓𝑥)) → (𝑥𝐴𝑦𝐵)))
2221ssopab2dv 5457 . . . . . . . . 9 (𝑓 ∈ (𝒫 𝐵m 𝐴) → {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))} ⊆ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦𝐵)})
2322adantr 480 . . . . . . . 8 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))} ⊆ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦𝐵)})
24 simpr 484 . . . . . . . 8 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))})
25 df-xp 5586 . . . . . . . . 9 (𝐴 × 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦𝐵)}
2625a1i 11 . . . . . . . 8 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → (𝐴 × 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦𝐵)})
2723, 24, 263sstr4d 3964 . . . . . . 7 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → 𝑟 ⊆ (𝐴 × 𝐵))
28 velpw 4535 . . . . . . 7 (𝑟 ∈ 𝒫 (𝐴 × 𝐵) ↔ 𝑟 ⊆ (𝐴 × 𝐵))
2927, 28sylibr 233 . . . . . 6 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → 𝑟 ∈ 𝒫 (𝐴 × 𝐵))
305feqmptd 6819 . . . . . . . 8 (𝑓 ∈ (𝒫 𝐵m 𝐴) → 𝑓 = (𝑥𝐴 ↦ (𝑓𝑥)))
3130adantr 480 . . . . . . 7 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → 𝑓 = (𝑥𝐴 ↦ (𝑓𝑥)))
32 nfv 1918 . . . . . . . . 9 𝑥 𝑓 ∈ (𝒫 𝐵m 𝐴)
33 nfopab1 5140 . . . . . . . . . 10 𝑥{⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}
3433nfeq2 2923 . . . . . . . . 9 𝑥 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}
3532, 34nfan 1903 . . . . . . . 8 𝑥(𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))})
36 df-rab 3072 . . . . . . . . . 10 {𝑦𝐵𝑥𝑟𝑦} = {𝑦 ∣ (𝑦𝐵𝑥𝑟𝑦)}
3736a1i 11 . . . . . . . . 9 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → {𝑦𝐵𝑥𝑟𝑦} = {𝑦 ∣ (𝑦𝐵𝑥𝑟𝑦)})
38 nfv 1918 . . . . . . . . . . . 12 𝑦 𝑓 ∈ (𝒫 𝐵m 𝐴)
39 nfopab2 5141 . . . . . . . . . . . . 13 𝑦{⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}
4039nfeq2 2923 . . . . . . . . . . . 12 𝑦 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}
4138, 40nfan 1903 . . . . . . . . . . 11 𝑦(𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))})
42 nfv 1918 . . . . . . . . . . 11 𝑦 𝑥𝐴
4341, 42nfan 1903 . . . . . . . . . 10 𝑦((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴)
449adantllr 715 . . . . . . . . . . . . 13 ((((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → 𝑦𝐵)
45 df-br 5071 . . . . . . . . . . . . . . . . 17 (𝑥𝑟𝑦 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑟)
46 eleq2 2827 . . . . . . . . . . . . . . . . . 18 (𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))} → (⟨𝑥, 𝑦⟩ ∈ 𝑟 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}))
47 opabidw 5431 . . . . . . . . . . . . . . . . . 18 (⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))} ↔ (𝑥𝐴𝑦 ∈ (𝑓𝑥)))
4846, 47bitrdi 286 . . . . . . . . . . . . . . . . 17 (𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))} → (⟨𝑥, 𝑦⟩ ∈ 𝑟 ↔ (𝑥𝐴𝑦 ∈ (𝑓𝑥))))
4945, 48syl5bb 282 . . . . . . . . . . . . . . . 16 (𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))} → (𝑥𝑟𝑦 ↔ (𝑥𝐴𝑦 ∈ (𝑓𝑥))))
5049ad2antlr 723 . . . . . . . . . . . . . . 15 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → (𝑥𝑟𝑦 ↔ (𝑥𝐴𝑦 ∈ (𝑓𝑥))))
51 elfvdm 6788 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ (𝑓𝑥) → 𝑥 ∈ dom 𝑓)
5251adantl 481 . . . . . . . . . . . . . . . . . . 19 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → 𝑥 ∈ dom 𝑓)
535fdmd 6595 . . . . . . . . . . . . . . . . . . . 20 (𝑓 ∈ (𝒫 𝐵m 𝐴) → dom 𝑓 = 𝐴)
5453adantr 480 . . . . . . . . . . . . . . . . . . 19 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → dom 𝑓 = 𝐴)
5552, 54eleqtrd 2841 . . . . . . . . . . . . . . . . . 18 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → 𝑥𝐴)
5655ex 412 . . . . . . . . . . . . . . . . 17 (𝑓 ∈ (𝒫 𝐵m 𝐴) → (𝑦 ∈ (𝑓𝑥) → 𝑥𝐴))
5756pm4.71rd 562 . . . . . . . . . . . . . . . 16 (𝑓 ∈ (𝒫 𝐵m 𝐴) → (𝑦 ∈ (𝑓𝑥) ↔ (𝑥𝐴𝑦 ∈ (𝑓𝑥))))
5857ad2antrr 722 . . . . . . . . . . . . . . 15 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → (𝑦 ∈ (𝑓𝑥) ↔ (𝑥𝐴𝑦 ∈ (𝑓𝑥))))
5950, 58bitr4d 281 . . . . . . . . . . . . . 14 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → (𝑥𝑟𝑦𝑦 ∈ (𝑓𝑥)))
6059biimpar 477 . . . . . . . . . . . . 13 ((((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → 𝑥𝑟𝑦)
6144, 60jca 511 . . . . . . . . . . . 12 ((((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → (𝑦𝐵𝑥𝑟𝑦))
6261ex 412 . . . . . . . . . . 11 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → (𝑦 ∈ (𝑓𝑥) → (𝑦𝐵𝑥𝑟𝑦)))
6359biimpd 228 . . . . . . . . . . . 12 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → (𝑥𝑟𝑦𝑦 ∈ (𝑓𝑥)))
6463adantld 490 . . . . . . . . . . 11 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → ((𝑦𝐵𝑥𝑟𝑦) → 𝑦 ∈ (𝑓𝑥)))
6562, 64impbid 211 . . . . . . . . . 10 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → (𝑦 ∈ (𝑓𝑥) ↔ (𝑦𝐵𝑥𝑟𝑦)))
6643, 65abbid 2810 . . . . . . . . 9 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → {𝑦𝑦 ∈ (𝑓𝑥)} = {𝑦 ∣ (𝑦𝐵𝑥𝑟𝑦)})
67 abid2 2881 . . . . . . . . . 10 {𝑦𝑦 ∈ (𝑓𝑥)} = (𝑓𝑥)
6867a1i 11 . . . . . . . . 9 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → {𝑦𝑦 ∈ (𝑓𝑥)} = (𝑓𝑥))
6937, 66, 683eqtr2rd 2785 . . . . . . . 8 (((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ 𝑥𝐴) → (𝑓𝑥) = {𝑦𝐵𝑥𝑟𝑦})
7035, 69mpteq2da 5168 . . . . . . 7 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → (𝑥𝐴 ↦ (𝑓𝑥)) = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}))
7131, 70eqtrd 2778 . . . . . 6 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}))
7229, 71jca 511 . . . . 5 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) → (𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})))
73 ssrab2 4009 . . . . . . . . . . . 12 {𝑦𝐵𝑥𝑟𝑦} ⊆ 𝐵
7413, 73elpwi2 5265 . . . . . . . . . . 11 {𝑦𝐵𝑥𝑟𝑦} ∈ 𝒫 𝐵
7574a1i 11 . . . . . . . . . 10 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑥𝐴) → {𝑦𝐵𝑥𝑟𝑦} ∈ 𝒫 𝐵)
7675fmpttd 6971 . . . . . . . . 9 (𝑟 ∈ 𝒫 (𝐴 × 𝐵) → (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}):𝐴⟶𝒫 𝐵)
7776adantr 480 . . . . . . . 8 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}):𝐴⟶𝒫 𝐵)
78 simpr 484 . . . . . . . . 9 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}))
7978feq1d 6569 . . . . . . . 8 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (𝑓:𝐴⟶𝒫 𝐵 ↔ (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}):𝐴⟶𝒫 𝐵))
8077, 79mpbird 256 . . . . . . 7 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → 𝑓:𝐴⟶𝒫 𝐵)
8113pwex 5298 . . . . . . . 8 𝒫 𝐵 ∈ V
8281, 2elmap 8617 . . . . . . 7 (𝑓 ∈ (𝒫 𝐵m 𝐴) ↔ 𝑓:𝐴⟶𝒫 𝐵)
8380, 82sylibr 233 . . . . . 6 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → 𝑓 ∈ (𝒫 𝐵m 𝐴))
84 elpwi 4539 . . . . . . . . . 10 (𝑟 ∈ 𝒫 (𝐴 × 𝐵) → 𝑟 ⊆ (𝐴 × 𝐵))
8584adantr 480 . . . . . . . . 9 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → 𝑟 ⊆ (𝐴 × 𝐵))
86 xpss 5596 . . . . . . . . 9 (𝐴 × 𝐵) ⊆ (V × V)
8785, 86sstrdi 3929 . . . . . . . 8 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → 𝑟 ⊆ (V × V))
88 df-rel 5587 . . . . . . . 8 (Rel 𝑟𝑟 ⊆ (V × V))
8987, 88sylibr 233 . . . . . . 7 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → Rel 𝑟)
90 relopabv 5720 . . . . . . . 8 Rel {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}
9190a1i 11 . . . . . . 7 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → Rel {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))})
92 id 22 . . . . . . 7 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})))
93 nfv 1918 . . . . . . . . 9 𝑥 𝑟 ∈ 𝒫 (𝐴 × 𝐵)
94 nfmpt1 5178 . . . . . . . . . 10 𝑥(𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})
9594nfeq2 2923 . . . . . . . . 9 𝑥 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})
9693, 95nfan 1903 . . . . . . . 8 𝑥(𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}))
97 nfv 1918 . . . . . . . . 9 𝑦 𝑟 ∈ 𝒫 (𝐴 × 𝐵)
9842nfci 2889 . . . . . . . . . . 11 𝑦𝐴
99 nfrab1 3310 . . . . . . . . . . 11 𝑦{𝑦𝐵𝑥𝑟𝑦}
10098, 99nfmpt 5177 . . . . . . . . . 10 𝑦(𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})
101100nfeq2 2923 . . . . . . . . 9 𝑦 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})
10297, 101nfan 1903 . . . . . . . 8 𝑦(𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}))
103 nfcv 2906 . . . . . . . 8 𝑥𝑟
104 nfcv 2906 . . . . . . . 8 𝑦𝑟
105 brelg 30850 . . . . . . . . . . . . . . . 16 ((𝑟 ⊆ (𝐴 × 𝐵) ∧ 𝑥𝑟𝑦) → (𝑥𝐴𝑦𝐵))
10684, 105sylan 579 . . . . . . . . . . . . . . 15 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑥𝑟𝑦) → (𝑥𝐴𝑦𝐵))
107106adantlr 711 . . . . . . . . . . . . . 14 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝑟𝑦) → (𝑥𝐴𝑦𝐵))
108107simpld 494 . . . . . . . . . . . . 13 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝑟𝑦) → 𝑥𝐴)
109107simprd 495 . . . . . . . . . . . . . 14 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝑟𝑦) → 𝑦𝐵)
110 simpr 484 . . . . . . . . . . . . . 14 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝑟𝑦) → 𝑥𝑟𝑦)
11178fveq1d 6758 . . . . . . . . . . . . . . . . . 18 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (𝑓𝑥) = ((𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})‘𝑥))
11213rabex 5251 . . . . . . . . . . . . . . . . . . 19 {𝑦𝐵𝑥𝑟𝑦} ∈ V
113 eqid 2738 . . . . . . . . . . . . . . . . . . . 20 (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}) = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})
114113fvmpt2 6868 . . . . . . . . . . . . . . . . . . 19 ((𝑥𝐴 ∧ {𝑦𝐵𝑥𝑟𝑦} ∈ V) → ((𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})‘𝑥) = {𝑦𝐵𝑥𝑟𝑦})
115112, 114mpan2 687 . . . . . . . . . . . . . . . . . 18 (𝑥𝐴 → ((𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})‘𝑥) = {𝑦𝐵𝑥𝑟𝑦})
116111, 115sylan9eq 2799 . . . . . . . . . . . . . . . . 17 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝐴) → (𝑓𝑥) = {𝑦𝐵𝑥𝑟𝑦})
117116eleq2d 2824 . . . . . . . . . . . . . . . 16 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝐴) → (𝑦 ∈ (𝑓𝑥) ↔ 𝑦 ∈ {𝑦𝐵𝑥𝑟𝑦}))
118 rabid 3304 . . . . . . . . . . . . . . . 16 (𝑦 ∈ {𝑦𝐵𝑥𝑟𝑦} ↔ (𝑦𝐵𝑥𝑟𝑦))
119117, 118bitrdi 286 . . . . . . . . . . . . . . 15 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝐴) → (𝑦 ∈ (𝑓𝑥) ↔ (𝑦𝐵𝑥𝑟𝑦)))
120108, 119syldan 590 . . . . . . . . . . . . . 14 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝑟𝑦) → (𝑦 ∈ (𝑓𝑥) ↔ (𝑦𝐵𝑥𝑟𝑦)))
121109, 110, 120mpbir2and 709 . . . . . . . . . . . . 13 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝑟𝑦) → 𝑦 ∈ (𝑓𝑥))
122108, 121jca 511 . . . . . . . . . . . 12 (((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝑟𝑦) → (𝑥𝐴𝑦 ∈ (𝑓𝑥)))
123122ex 412 . . . . . . . . . . 11 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (𝑥𝑟𝑦 → (𝑥𝐴𝑦 ∈ (𝑓𝑥))))
124119simplbda 499 . . . . . . . . . . . 12 ((((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) ∧ 𝑥𝐴) ∧ 𝑦 ∈ (𝑓𝑥)) → 𝑥𝑟𝑦)
125124expl 457 . . . . . . . . . . 11 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → ((𝑥𝐴𝑦 ∈ (𝑓𝑥)) → 𝑥𝑟𝑦))
126123, 125impbid 211 . . . . . . . . . 10 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (𝑥𝑟𝑦 ↔ (𝑥𝐴𝑦 ∈ (𝑓𝑥))))
12745, 126bitr3id 284 . . . . . . . . 9 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (⟨𝑥, 𝑦⟩ ∈ 𝑟 ↔ (𝑥𝐴𝑦 ∈ (𝑓𝑥))))
128127, 47bitr4di 288 . . . . . . . 8 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (⟨𝑥, 𝑦⟩ ∈ 𝑟 ↔ ⟨𝑥, 𝑦⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}))
12996, 102, 103, 104, 33, 39, 128eqrelrd2 30857 . . . . . . 7 (((Rel 𝑟 ∧ Rel {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ∧ (𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}))) → 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))})
13089, 91, 92, 129syl21anc 834 . . . . . 6 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))})
13183, 130jca 511 . . . . 5 ((𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})) → (𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}))
13272, 131impbii 208 . . . 4 ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ↔ (𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦})))
133132a1i 11 . . 3 (⊤ → ((𝑓 ∈ (𝒫 𝐵m 𝐴) ∧ 𝑟 = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 ∈ (𝑓𝑥))}) ↔ (𝑟 ∈ 𝒫 (𝐴 × 𝐵) ∧ 𝑓 = (𝑥𝐴 ↦ {𝑦𝐵𝑥𝑟𝑦}))))
1341, 18, 20, 133f1od 7499 . 2 (⊤ → 𝑀:(𝒫 𝐵m 𝐴)–1-1-onto→𝒫 (𝐴 × 𝐵))
135134mptru 1546 1 𝑀:(𝒫 𝐵m 𝐴)–1-1-onto→𝒫 (𝐴 × 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wal 1537   = wceq 1539  wtru 1540  wcel 2108  {cab 2715  {crab 3067  Vcvv 3422  wss 3883  𝒫 cpw 4530  cop 4564   class class class wbr 5070  {copab 5132  cmpt 5153   × cxp 5578  dom cdm 5580  Rel wrel 5585  wf 6414  1-1-ontowf1o 6417  cfv 6418  (class class class)co 7255  m cmap 8573
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805  df-map 8575
This theorem is referenced by:  fpwrelmapffs  30971
  Copyright terms: Public domain W3C validator