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

Theorem off 7077
 Description: The function operation produces a function. (Contributed by Mario Carneiro, 20-Jul-2014.)
Hypotheses
Ref Expression
off.1 ((𝜑 ∧ (𝑥𝑆𝑦𝑇)) → (𝑥𝑅𝑦) ∈ 𝑈)
off.2 (𝜑𝐹:𝐴𝑆)
off.3 (𝜑𝐺:𝐵𝑇)
off.4 (𝜑𝐴𝑉)
off.5 (𝜑𝐵𝑊)
off.6 (𝐴𝐵) = 𝐶
Assertion
Ref Expression
off (𝜑 → (𝐹𝑓 𝑅𝐺):𝐶𝑈)
Distinct variable groups:   𝑦,𝐺   𝑥,𝑦,𝜑   𝑥,𝑆,𝑦   𝑥,𝑇,𝑦   𝑥,𝐹,𝑦   𝑥,𝑅,𝑦   𝑥,𝑈,𝑦
Allowed substitution hints:   𝐴(𝑥,𝑦)   𝐵(𝑥,𝑦)   𝐶(𝑥,𝑦)   𝐺(𝑥)   𝑉(𝑥,𝑦)   𝑊(𝑥,𝑦)

Proof of Theorem off
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 off.2 . . . . 5 (𝜑𝐹:𝐴𝑆)
2 off.6 . . . . . . 7 (𝐴𝐵) = 𝐶
3 inss1 3976 . . . . . . 7 (𝐴𝐵) ⊆ 𝐴
42, 3eqsstr3i 3777 . . . . . 6 𝐶𝐴
54sseli 3740 . . . . 5 (𝑧𝐶𝑧𝐴)
6 ffvelrn 6520 . . . . 5 ((𝐹:𝐴𝑆𝑧𝐴) → (𝐹𝑧) ∈ 𝑆)
71, 5, 6syl2an 495 . . . 4 ((𝜑𝑧𝐶) → (𝐹𝑧) ∈ 𝑆)
8 off.3 . . . . 5 (𝜑𝐺:𝐵𝑇)
9 inss2 3977 . . . . . . 7 (𝐴𝐵) ⊆ 𝐵
102, 9eqsstr3i 3777 . . . . . 6 𝐶𝐵
1110sseli 3740 . . . . 5 (𝑧𝐶𝑧𝐵)
12 ffvelrn 6520 . . . . 5 ((𝐺:𝐵𝑇𝑧𝐵) → (𝐺𝑧) ∈ 𝑇)
138, 11, 12syl2an 495 . . . 4 ((𝜑𝑧𝐶) → (𝐺𝑧) ∈ 𝑇)
14 off.1 . . . . . 6 ((𝜑 ∧ (𝑥𝑆𝑦𝑇)) → (𝑥𝑅𝑦) ∈ 𝑈)
1514ralrimivva 3109 . . . . 5 (𝜑 → ∀𝑥𝑆𝑦𝑇 (𝑥𝑅𝑦) ∈ 𝑈)
1615adantr 472 . . . 4 ((𝜑𝑧𝐶) → ∀𝑥𝑆𝑦𝑇 (𝑥𝑅𝑦) ∈ 𝑈)
17 oveq1 6820 . . . . . 6 (𝑥 = (𝐹𝑧) → (𝑥𝑅𝑦) = ((𝐹𝑧)𝑅𝑦))
1817eleq1d 2824 . . . . 5 (𝑥 = (𝐹𝑧) → ((𝑥𝑅𝑦) ∈ 𝑈 ↔ ((𝐹𝑧)𝑅𝑦) ∈ 𝑈))
19 oveq2 6821 . . . . . 6 (𝑦 = (𝐺𝑧) → ((𝐹𝑧)𝑅𝑦) = ((𝐹𝑧)𝑅(𝐺𝑧)))
2019eleq1d 2824 . . . . 5 (𝑦 = (𝐺𝑧) → (((𝐹𝑧)𝑅𝑦) ∈ 𝑈 ↔ ((𝐹𝑧)𝑅(𝐺𝑧)) ∈ 𝑈))
2118, 20rspc2va 3462 . . . 4 ((((𝐹𝑧) ∈ 𝑆 ∧ (𝐺𝑧) ∈ 𝑇) ∧ ∀𝑥𝑆𝑦𝑇 (𝑥𝑅𝑦) ∈ 𝑈) → ((𝐹𝑧)𝑅(𝐺𝑧)) ∈ 𝑈)
227, 13, 16, 21syl21anc 1476 . . 3 ((𝜑𝑧𝐶) → ((𝐹𝑧)𝑅(𝐺𝑧)) ∈ 𝑈)
23 eqid 2760 . . 3 (𝑧𝐶 ↦ ((𝐹𝑧)𝑅(𝐺𝑧))) = (𝑧𝐶 ↦ ((𝐹𝑧)𝑅(𝐺𝑧)))
2422, 23fmptd 6548 . 2 (𝜑 → (𝑧𝐶 ↦ ((𝐹𝑧)𝑅(𝐺𝑧))):𝐶𝑈)
25 ffn 6206 . . . . 5 (𝐹:𝐴𝑆𝐹 Fn 𝐴)
261, 25syl 17 . . . 4 (𝜑𝐹 Fn 𝐴)
27 ffn 6206 . . . . 5 (𝐺:𝐵𝑇𝐺 Fn 𝐵)
288, 27syl 17 . . . 4 (𝜑𝐺 Fn 𝐵)
29 off.4 . . . 4 (𝜑𝐴𝑉)
30 off.5 . . . 4 (𝜑𝐵𝑊)
31 eqidd 2761 . . . 4 ((𝜑𝑧𝐴) → (𝐹𝑧) = (𝐹𝑧))
32 eqidd 2761 . . . 4 ((𝜑𝑧𝐵) → (𝐺𝑧) = (𝐺𝑧))
3326, 28, 29, 30, 2, 31, 32offval 7069 . . 3 (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑧𝐶 ↦ ((𝐹𝑧)𝑅(𝐺𝑧))))
3433feq1d 6191 . 2 (𝜑 → ((𝐹𝑓 𝑅𝐺):𝐶𝑈 ↔ (𝑧𝐶 ↦ ((𝐹𝑧)𝑅(𝐺𝑧))):𝐶𝑈))
3524, 34mpbird 247 1 (𝜑 → (𝐹𝑓 𝑅𝐺):𝐶𝑈)