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

Theorem fimaproj 7976
Description: Image of a cartesian product for a function on ordered pairs with values expressed as ordered pairs. Note that 𝐹 and 𝐺 are the projections of 𝐻 to the first and second coordinate respectively. (Contributed by Thierry Arnoux, 30-Dec-2019.)
Hypotheses
Ref Expression
fvproj.h 𝐻 = (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩)
fimaproj.f (𝜑𝐹 Fn 𝐴)
fimaproj.g (𝜑𝐺 Fn 𝐵)
fimaproj.x (𝜑𝑋𝐴)
fimaproj.y (𝜑𝑌𝐵)
Assertion
Ref Expression
fimaproj (𝜑 → (𝐻 “ (𝑋 × 𝑌)) = ((𝐹𝑋) × (𝐺𝑌)))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝐹,𝑦   𝑥,𝐺,𝑦   𝑥,𝐻,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝑋(𝑥,𝑦)   𝑌(𝑥,𝑦)

Proof of Theorem fimaproj
Dummy variables 𝑎 𝑏 𝑧 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 opex 5379 . . . . 5 ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ ∈ V
2 fvproj.h . . . . . 6 𝐻 = (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩)
3 vex 3436 . . . . . . . . . 10 𝑥 ∈ V
4 vex 3436 . . . . . . . . . 10 𝑦 ∈ V
53, 4op1std 7841 . . . . . . . . 9 (𝑧 = ⟨𝑥, 𝑦⟩ → (1st𝑧) = 𝑥)
65fveq2d 6778 . . . . . . . 8 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(1st𝑧)) = (𝐹𝑥))
73, 4op2ndd 7842 . . . . . . . . 9 (𝑧 = ⟨𝑥, 𝑦⟩ → (2nd𝑧) = 𝑦)
87fveq2d 6778 . . . . . . . 8 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺‘(2nd𝑧)) = (𝐺𝑦))
96, 8opeq12d 4812 . . . . . . 7 (𝑧 = ⟨𝑥, 𝑦⟩ → ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ = ⟨(𝐹𝑥), (𝐺𝑦)⟩)
109mpompt 7388 . . . . . 6 (𝑧 ∈ (𝐴 × 𝐵) ↦ ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩) = (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩)
112, 10eqtr4i 2769 . . . . 5 𝐻 = (𝑧 ∈ (𝐴 × 𝐵) ↦ ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩)
121, 11fnmpti 6576 . . . 4 𝐻 Fn (𝐴 × 𝐵)
13 fimaproj.x . . . . 5 (𝜑𝑋𝐴)
14 fimaproj.y . . . . 5 (𝜑𝑌𝐵)
15 xpss12 5604 . . . . 5 ((𝑋𝐴𝑌𝐵) → (𝑋 × 𝑌) ⊆ (𝐴 × 𝐵))
1613, 14, 15syl2anc 584 . . . 4 (𝜑 → (𝑋 × 𝑌) ⊆ (𝐴 × 𝐵))
17 fvelimab 6841 . . . 4 ((𝐻 Fn (𝐴 × 𝐵) ∧ (𝑋 × 𝑌) ⊆ (𝐴 × 𝐵)) → (𝑐 ∈ (𝐻 “ (𝑋 × 𝑌)) ↔ ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐))
1812, 16, 17sylancr 587 . . 3 (𝜑 → (𝑐 ∈ (𝐻 “ (𝑋 × 𝑌)) ↔ ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐))
19 simp-4r 781 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑎𝑋)
20 simplr 766 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑏𝑌)
21 opelxpi 5626 . . . . . . . 8 ((𝑎𝑋𝑏𝑌) → ⟨𝑎, 𝑏⟩ ∈ (𝑋 × 𝑌))
2219, 20, 21syl2anc 584 . . . . . . 7 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → ⟨𝑎, 𝑏⟩ ∈ (𝑋 × 𝑌))
23 simpllr 773 . . . . . . . . 9 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → (𝐹𝑎) = (1st𝑐))
24 simpr 485 . . . . . . . . 9 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → (𝐺𝑏) = (2nd𝑐))
2523, 24opeq12d 4812 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → ⟨(𝐹𝑎), (𝐺𝑏)⟩ = ⟨(1st𝑐), (2nd𝑐)⟩)
2613ad5antr 731 . . . . . . . . . 10 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑋𝐴)
2726, 19sseldd 3922 . . . . . . . . 9 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑎𝐴)
2814ad5antr 731 . . . . . . . . . 10 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑌𝐵)
2928, 20sseldd 3922 . . . . . . . . 9 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑏𝐵)
302, 27, 29fvproj 7975 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → (𝐻‘⟨𝑎, 𝑏⟩) = ⟨(𝐹𝑎), (𝐺𝑏)⟩)
31 1st2nd2 7870 . . . . . . . . 9 (𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)) → 𝑐 = ⟨(1st𝑐), (2nd𝑐)⟩)
3231ad5antlr 732 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑐 = ⟨(1st𝑐), (2nd𝑐)⟩)
3325, 30, 323eqtr4d 2788 . . . . . . 7 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → (𝐻‘⟨𝑎, 𝑏⟩) = 𝑐)
34 fveqeq2 6783 . . . . . . . 8 (𝑧 = ⟨𝑎, 𝑏⟩ → ((𝐻𝑧) = 𝑐 ↔ (𝐻‘⟨𝑎, 𝑏⟩) = 𝑐))
3534rspcev 3561 . . . . . . 7 ((⟨𝑎, 𝑏⟩ ∈ (𝑋 × 𝑌) ∧ (𝐻‘⟨𝑎, 𝑏⟩) = 𝑐) → ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐)
3622, 33, 35syl2anc 584 . . . . . 6 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐)
37 fimaproj.g . . . . . . . . 9 (𝜑𝐺 Fn 𝐵)
3837ad3antrrr 727 . . . . . . . 8 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → 𝐺 Fn 𝐵)
39 fnfun 6533 . . . . . . . 8 (𝐺 Fn 𝐵 → Fun 𝐺)
4038, 39syl 17 . . . . . . 7 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → Fun 𝐺)
41 xp2nd 7864 . . . . . . . 8 (𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)) → (2nd𝑐) ∈ (𝐺𝑌))
4241ad3antlr 728 . . . . . . 7 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → (2nd𝑐) ∈ (𝐺𝑌))
43 fvelima 6835 . . . . . . 7 ((Fun 𝐺 ∧ (2nd𝑐) ∈ (𝐺𝑌)) → ∃𝑏𝑌 (𝐺𝑏) = (2nd𝑐))
4440, 42, 43syl2anc 584 . . . . . 6 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → ∃𝑏𝑌 (𝐺𝑏) = (2nd𝑐))
4536, 44r19.29a 3218 . . . . 5 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐)
46 fimaproj.f . . . . . . . 8 (𝜑𝐹 Fn 𝐴)
4746adantr 481 . . . . . . 7 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → 𝐹 Fn 𝐴)
48 fnfun 6533 . . . . . . 7 (𝐹 Fn 𝐴 → Fun 𝐹)
4947, 48syl 17 . . . . . 6 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → Fun 𝐹)
50 xp1st 7863 . . . . . . 7 (𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)) → (1st𝑐) ∈ (𝐹𝑋))
5150adantl 482 . . . . . 6 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → (1st𝑐) ∈ (𝐹𝑋))
52 fvelima 6835 . . . . . 6 ((Fun 𝐹 ∧ (1st𝑐) ∈ (𝐹𝑋)) → ∃𝑎𝑋 (𝐹𝑎) = (1st𝑐))
5349, 51, 52syl2anc 584 . . . . 5 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → ∃𝑎𝑋 (𝐹𝑎) = (1st𝑐))
5445, 53r19.29a 3218 . . . 4 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐)
55 simpr 485 . . . . . 6 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐻𝑧) = 𝑐)
5616ad2antrr 723 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝑋 × 𝑌) ⊆ (𝐴 × 𝐵))
57 simplr 766 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑧 ∈ (𝑋 × 𝑌))
5856, 57sseldd 3922 . . . . . . . 8 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑧 ∈ (𝐴 × 𝐵))
5911fvmpt2 6886 . . . . . . . 8 ((𝑧 ∈ (𝐴 × 𝐵) ∧ ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ ∈ V) → (𝐻𝑧) = ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩)
6058, 1, 59sylancl 586 . . . . . . 7 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐻𝑧) = ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩)
6146ad2antrr 723 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝐹 Fn 𝐴)
6213ad2antrr 723 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑋𝐴)
63 xp1st 7863 . . . . . . . . . 10 (𝑧 ∈ (𝑋 × 𝑌) → (1st𝑧) ∈ 𝑋)
6457, 63syl 17 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (1st𝑧) ∈ 𝑋)
65 fnfvima 7109 . . . . . . . . 9 ((𝐹 Fn 𝐴𝑋𝐴 ∧ (1st𝑧) ∈ 𝑋) → (𝐹‘(1st𝑧)) ∈ (𝐹𝑋))
6661, 62, 64, 65syl3anc 1370 . . . . . . . 8 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐹‘(1st𝑧)) ∈ (𝐹𝑋))
6737ad2antrr 723 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝐺 Fn 𝐵)
6814ad2antrr 723 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑌𝐵)
69 xp2nd 7864 . . . . . . . . . 10 (𝑧 ∈ (𝑋 × 𝑌) → (2nd𝑧) ∈ 𝑌)
7057, 69syl 17 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (2nd𝑧) ∈ 𝑌)
71 fnfvima 7109 . . . . . . . . 9 ((𝐺 Fn 𝐵𝑌𝐵 ∧ (2nd𝑧) ∈ 𝑌) → (𝐺‘(2nd𝑧)) ∈ (𝐺𝑌))
7267, 68, 70, 71syl3anc 1370 . . . . . . . 8 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐺‘(2nd𝑧)) ∈ (𝐺𝑌))
73 opelxpi 5626 . . . . . . . 8 (((𝐹‘(1st𝑧)) ∈ (𝐹𝑋) ∧ (𝐺‘(2nd𝑧)) ∈ (𝐺𝑌)) → ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ ∈ ((𝐹𝑋) × (𝐺𝑌)))
7466, 72, 73syl2anc 584 . . . . . . 7 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ ∈ ((𝐹𝑋) × (𝐺𝑌)))
7560, 74eqeltrd 2839 . . . . . 6 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐻𝑧) ∈ ((𝐹𝑋) × (𝐺𝑌)))
7655, 75eqeltrrd 2840 . . . . 5 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)))
7776r19.29an 3217 . . . 4 ((𝜑 ∧ ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐) → 𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)))
7854, 77impbida 798 . . 3 (𝜑 → (𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)) ↔ ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐))
7918, 78bitr4d 281 . 2 (𝜑 → (𝑐 ∈ (𝐻 “ (𝑋 × 𝑌)) ↔ 𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))))
8079eqrdv 2736 1 (𝜑 → (𝐻 “ (𝑋 × 𝑌)) = ((𝐹𝑋) × (𝐺𝑌)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wrex 3065  Vcvv 3432  wss 3887  cop 4567  cmpt 5157   × cxp 5587  cima 5592  Fun wfun 6427   Fn wfn 6428  cfv 6433  cmpo 7277  1st c1st 7829  2nd c2nd 7830
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280  df-1st 7831  df-2nd 7832
This theorem is referenced by:  txomap  31784
  Copyright terms: Public domain W3C validator