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

Theorem fimaproj 7947
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 5373 . . . . 5 ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ ∈ V
2 fvproj.h . . . . . 6 𝐻 = (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩)
3 vex 3426 . . . . . . . . . 10 𝑥 ∈ V
4 vex 3426 . . . . . . . . . 10 𝑦 ∈ V
53, 4op1std 7814 . . . . . . . . 9 (𝑧 = ⟨𝑥, 𝑦⟩ → (1st𝑧) = 𝑥)
65fveq2d 6760 . . . . . . . 8 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐹‘(1st𝑧)) = (𝐹𝑥))
73, 4op2ndd 7815 . . . . . . . . 9 (𝑧 = ⟨𝑥, 𝑦⟩ → (2nd𝑧) = 𝑦)
87fveq2d 6760 . . . . . . . 8 (𝑧 = ⟨𝑥, 𝑦⟩ → (𝐺‘(2nd𝑧)) = (𝐺𝑦))
96, 8opeq12d 4809 . . . . . . 7 (𝑧 = ⟨𝑥, 𝑦⟩ → ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ = ⟨(𝐹𝑥), (𝐺𝑦)⟩)
109mpompt 7366 . . . . . 6 (𝑧 ∈ (𝐴 × 𝐵) ↦ ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩) = (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩)
112, 10eqtr4i 2769 . . . . 5 𝐻 = (𝑧 ∈ (𝐴 × 𝐵) ↦ ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩)
121, 11fnmpti 6560 . . . 4 𝐻 Fn (𝐴 × 𝐵)
13 fimaproj.x . . . . 5 (𝜑𝑋𝐴)
14 fimaproj.y . . . . 5 (𝜑𝑌𝐵)
15 xpss12 5595 . . . . 5 ((𝑋𝐴𝑌𝐵) → (𝑋 × 𝑌) ⊆ (𝐴 × 𝐵))
1613, 14, 15syl2anc 583 . . . 4 (𝜑 → (𝑋 × 𝑌) ⊆ (𝐴 × 𝐵))
17 fvelimab 6823 . . . 4 ((𝐻 Fn (𝐴 × 𝐵) ∧ (𝑋 × 𝑌) ⊆ (𝐴 × 𝐵)) → (𝑐 ∈ (𝐻 “ (𝑋 × 𝑌)) ↔ ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐))
1812, 16, 17sylancr 586 . . 3 (𝜑 → (𝑐 ∈ (𝐻 “ (𝑋 × 𝑌)) ↔ ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐))
19 simp-4r 780 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑎𝑋)
20 simplr 765 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑏𝑌)
21 opelxpi 5617 . . . . . . . 8 ((𝑎𝑋𝑏𝑌) → ⟨𝑎, 𝑏⟩ ∈ (𝑋 × 𝑌))
2219, 20, 21syl2anc 583 . . . . . . 7 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → ⟨𝑎, 𝑏⟩ ∈ (𝑋 × 𝑌))
23 simpllr 772 . . . . . . . . 9 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → (𝐹𝑎) = (1st𝑐))
24 simpr 484 . . . . . . . . 9 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → (𝐺𝑏) = (2nd𝑐))
2523, 24opeq12d 4809 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → ⟨(𝐹𝑎), (𝐺𝑏)⟩ = ⟨(1st𝑐), (2nd𝑐)⟩)
2613ad5antr 730 . . . . . . . . . 10 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑋𝐴)
2726, 19sseldd 3918 . . . . . . . . 9 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑎𝐴)
2814ad5antr 730 . . . . . . . . . 10 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑌𝐵)
2928, 20sseldd 3918 . . . . . . . . 9 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑏𝐵)
302, 27, 29fvproj 7946 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → (𝐻‘⟨𝑎, 𝑏⟩) = ⟨(𝐹𝑎), (𝐺𝑏)⟩)
31 1st2nd2 7843 . . . . . . . . 9 (𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)) → 𝑐 = ⟨(1st𝑐), (2nd𝑐)⟩)
3231ad5antlr 731 . . . . . . . 8 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → 𝑐 = ⟨(1st𝑐), (2nd𝑐)⟩)
3325, 30, 323eqtr4d 2788 . . . . . . 7 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → (𝐻‘⟨𝑎, 𝑏⟩) = 𝑐)
34 fveqeq2 6765 . . . . . . . 8 (𝑧 = ⟨𝑎, 𝑏⟩ → ((𝐻𝑧) = 𝑐 ↔ (𝐻‘⟨𝑎, 𝑏⟩) = 𝑐))
3534rspcev 3552 . . . . . . 7 ((⟨𝑎, 𝑏⟩ ∈ (𝑋 × 𝑌) ∧ (𝐻‘⟨𝑎, 𝑏⟩) = 𝑐) → ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐)
3622, 33, 35syl2anc 583 . . . . . 6 ((((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) ∧ 𝑏𝑌) ∧ (𝐺𝑏) = (2nd𝑐)) → ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐)
37 fimaproj.g . . . . . . . . 9 (𝜑𝐺 Fn 𝐵)
3837ad3antrrr 726 . . . . . . . 8 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → 𝐺 Fn 𝐵)
39 fnfun 6517 . . . . . . . 8 (𝐺 Fn 𝐵 → Fun 𝐺)
4038, 39syl 17 . . . . . . 7 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → Fun 𝐺)
41 xp2nd 7837 . . . . . . . 8 (𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)) → (2nd𝑐) ∈ (𝐺𝑌))
4241ad3antlr 727 . . . . . . 7 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → (2nd𝑐) ∈ (𝐺𝑌))
43 fvelima 6817 . . . . . . 7 ((Fun 𝐺 ∧ (2nd𝑐) ∈ (𝐺𝑌)) → ∃𝑏𝑌 (𝐺𝑏) = (2nd𝑐))
4440, 42, 43syl2anc 583 . . . . . 6 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → ∃𝑏𝑌 (𝐺𝑏) = (2nd𝑐))
4536, 44r19.29a 3217 . . . . 5 ((((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) ∧ 𝑎𝑋) ∧ (𝐹𝑎) = (1st𝑐)) → ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐)
46 fimaproj.f . . . . . . . 8 (𝜑𝐹 Fn 𝐴)
4746adantr 480 . . . . . . 7 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → 𝐹 Fn 𝐴)
48 fnfun 6517 . . . . . . 7 (𝐹 Fn 𝐴 → Fun 𝐹)
4947, 48syl 17 . . . . . 6 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → Fun 𝐹)
50 xp1st 7836 . . . . . . 7 (𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)) → (1st𝑐) ∈ (𝐹𝑋))
5150adantl 481 . . . . . 6 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → (1st𝑐) ∈ (𝐹𝑋))
52 fvelima 6817 . . . . . 6 ((Fun 𝐹 ∧ (1st𝑐) ∈ (𝐹𝑋)) → ∃𝑎𝑋 (𝐹𝑎) = (1st𝑐))
5349, 51, 52syl2anc 583 . . . . 5 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → ∃𝑎𝑋 (𝐹𝑎) = (1st𝑐))
5445, 53r19.29a 3217 . . . 4 ((𝜑𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))) → ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐)
55 simpr 484 . . . . . 6 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐻𝑧) = 𝑐)
5616ad2antrr 722 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝑋 × 𝑌) ⊆ (𝐴 × 𝐵))
57 simplr 765 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑧 ∈ (𝑋 × 𝑌))
5856, 57sseldd 3918 . . . . . . . 8 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑧 ∈ (𝐴 × 𝐵))
5911fvmpt2 6868 . . . . . . . 8 ((𝑧 ∈ (𝐴 × 𝐵) ∧ ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ ∈ V) → (𝐻𝑧) = ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩)
6058, 1, 59sylancl 585 . . . . . . 7 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐻𝑧) = ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩)
6146ad2antrr 722 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝐹 Fn 𝐴)
6213ad2antrr 722 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑋𝐴)
63 xp1st 7836 . . . . . . . . . 10 (𝑧 ∈ (𝑋 × 𝑌) → (1st𝑧) ∈ 𝑋)
6457, 63syl 17 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (1st𝑧) ∈ 𝑋)
65 fnfvima 7091 . . . . . . . . 9 ((𝐹 Fn 𝐴𝑋𝐴 ∧ (1st𝑧) ∈ 𝑋) → (𝐹‘(1st𝑧)) ∈ (𝐹𝑋))
6661, 62, 64, 65syl3anc 1369 . . . . . . . 8 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐹‘(1st𝑧)) ∈ (𝐹𝑋))
6737ad2antrr 722 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝐺 Fn 𝐵)
6814ad2antrr 722 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑌𝐵)
69 xp2nd 7837 . . . . . . . . . 10 (𝑧 ∈ (𝑋 × 𝑌) → (2nd𝑧) ∈ 𝑌)
7057, 69syl 17 . . . . . . . . 9 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (2nd𝑧) ∈ 𝑌)
71 fnfvima 7091 . . . . . . . . 9 ((𝐺 Fn 𝐵𝑌𝐵 ∧ (2nd𝑧) ∈ 𝑌) → (𝐺‘(2nd𝑧)) ∈ (𝐺𝑌))
7267, 68, 70, 71syl3anc 1369 . . . . . . . 8 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐺‘(2nd𝑧)) ∈ (𝐺𝑌))
73 opelxpi 5617 . . . . . . . 8 (((𝐹‘(1st𝑧)) ∈ (𝐹𝑋) ∧ (𝐺‘(2nd𝑧)) ∈ (𝐺𝑌)) → ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ ∈ ((𝐹𝑋) × (𝐺𝑌)))
7466, 72, 73syl2anc 583 . . . . . . 7 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → ⟨(𝐹‘(1st𝑧)), (𝐺‘(2nd𝑧))⟩ ∈ ((𝐹𝑋) × (𝐺𝑌)))
7560, 74eqeltrd 2839 . . . . . 6 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → (𝐻𝑧) ∈ ((𝐹𝑋) × (𝐺𝑌)))
7655, 75eqeltrrd 2840 . . . . 5 (((𝜑𝑧 ∈ (𝑋 × 𝑌)) ∧ (𝐻𝑧) = 𝑐) → 𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)))
7776r19.29an 3216 . . . 4 ((𝜑 ∧ ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐) → 𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)))
7854, 77impbida 797 . . 3 (𝜑 → (𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌)) ↔ ∃𝑧 ∈ (𝑋 × 𝑌)(𝐻𝑧) = 𝑐))
7918, 78bitr4d 281 . 2 (𝜑 → (𝑐 ∈ (𝐻 “ (𝑋 × 𝑌)) ↔ 𝑐 ∈ ((𝐹𝑋) × (𝐺𝑌))))
8079eqrdv 2736 1 (𝜑 → (𝐻 “ (𝑋 × 𝑌)) = ((𝐹𝑋) × (𝐺𝑌)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wrex 3064  Vcvv 3422  wss 3883  cop 4564  cmpt 5153   × cxp 5578  cima 5583  Fun wfun 6412   Fn wfn 6413  cfv 6418  cmpo 7257  1st c1st 7802  2nd c2nd 7803
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-sep 5218  ax-nul 5225  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-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-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-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805
This theorem is referenced by:  txomap  31686
  Copyright terms: Public domain W3C validator