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

Theorem ofres 7719
Description: Restrict the operands of a function operation to the same domain as that of the operation itself. (Contributed by Mario Carneiro, 15-Sep-2014.)
Hypotheses
Ref Expression
ofres.1 (𝜑 → 𝐹 Fn 𝐴)
ofres.2 (𝜑 → 𝐺 Fn 𝐵)
ofres.3 (𝜑 → 𝐴 ∈ 𝑉)
ofres.4 (𝜑 → 𝐵 ∈ 𝑊)
ofres.5 (𝐴 ∩ 𝐵) = 𝐶
Assertion
Ref Expression
ofres (𝜑 → (𝐹 ∘f 𝑅𝐺) = ((𝐹 ↾ 𝐶) ∘f 𝑅(𝐺 ↾ 𝐶)))

Proof of Theorem ofres
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 ofres.1 . . 3 (𝜑 → 𝐹 Fn 𝐴)
2 ofres.2 . . 3 (𝜑 → 𝐺 Fn 𝐵)
3 ofres.3 . . 3 (𝜑 → 𝐴 ∈ 𝑉)
4 ofres.4 . . 3 (𝜑 → 𝐵 ∈ 𝑊)
5 ofres.5 . . 3 (𝐴 ∩ 𝐵) = 𝐶
6 eqidd 2764 . . 3 ((𝜑 ∧ 𝑥 ∈ 𝐴) → (𝐹‘𝑥) = (𝐹‘𝑥))
7 eqidd 2764 . . 3 ((𝜑 ∧ 𝑥 ∈ 𝐵) → (𝐺‘𝑥) = (𝐺‘𝑥))
81, 2, 3, 4, 5, 6, 7offval 7709 . 2 (𝜑 → (𝐹 ∘f 𝑅𝐺) = (𝑥 ∈ 𝐶 ↦ ((𝐹‘𝑥)𝑅(𝐺‘𝑥))))
9 inss1 4135 . . . . 5 (𝐴 ∩ 𝐵) ⊆ 𝐴
105, 9eqsstrri 3959 . . . 4 𝐶 ⊆ 𝐴
11 fnssres 6670 . . . 4 ((𝐹 Fn 𝐴 ∧ 𝐶 ⊆ 𝐴) → (𝐹 ↾ 𝐶) Fn 𝐶)
121, 10, 11sylancl 598 . . 3 (𝜑 → (𝐹 ↾ 𝐶) Fn 𝐶)
13 inss2 4136 . . . . 5 (𝐴 ∩ 𝐵) ⊆ 𝐵
145, 13eqsstrri 3959 . . . 4 𝐶 ⊆ 𝐵
15 fnssres 6670 . . . 4 ((𝐺 Fn 𝐵 ∧ 𝐶 ⊆ 𝐵) → (𝐺 ↾ 𝐶) Fn 𝐶)
162, 14, 15sylancl 598 . . 3 (𝜑 → (𝐺 ↾ 𝐶) Fn 𝐶)
17 ssexg 5284 . . . 4 ((𝐶 ⊆ 𝐴 ∧ 𝐴 ∈ 𝑉) → 𝐶 ∈ V)
1810, 3, 17sylancr 599 . . 3 (𝜑 → 𝐶 ∈ V)
19 inidm 4125 . . 3 (𝐶 ∩ 𝐶) = 𝐶
20 fvres 6912 . . . 4 (𝑥 ∈ 𝐶 → ((𝐹 ↾ 𝐶)‘𝑥) = (𝐹‘𝑥))
2120adantl 487 . . 3 ((𝜑 ∧ 𝑥 ∈ 𝐶) → ((𝐹 ↾ 𝐶)‘𝑥) = (𝐹‘𝑥))
22 fvres 6912 . . . 4 (𝑥 ∈ 𝐶 → ((𝐺 ↾ 𝐶)‘𝑥) = (𝐺‘𝑥))
2322adantl 487 . . 3 ((𝜑 ∧ 𝑥 ∈ 𝐶) → ((𝐺 ↾ 𝐶)‘𝑥) = (𝐺‘𝑥))
2412, 16, 18, 18, 19, 21, 23offval 7709 . 2 (𝜑 → ((𝐹 ↾ 𝐶) ∘f 𝑅(𝐺 ↾ 𝐶)) = (𝑥 ∈ 𝐶 ↦ ((𝐹‘𝑥)𝑅(𝐺‘𝑥))))
258, 24eqtr4d 2801 1 (𝜑 → (𝐹 ∘f 𝑅𝐺) = ((𝐹 ↾ 𝐶) ∘f 𝑅(𝐺 ↾ 𝐶)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2146  Vcvv 3453   ⊆ wss 3899   ∩ cin 4091   ↦ cmpt 5188   ↾ cres 5656   Fn wfn 6541  ‘cfv 6546  (class class class)co 7427   ∘f cof 7698
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735  ax-rep 5234  ax-sep 5251  ax-nul 5262  ax-pr 5394
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2838  df-nfc 2912  df-ne 2959  df-ral 3080  df-rex 3090  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4838  df-uni 4870  df-iun 4955  df-br 5106  df-opab 5170  df-mpt 5189  df-id 5549  df-xp 5660  df-rel 5661  df-cnv 5662  df-co 5663  df-dm 5664  df-rn 5665  df-res 5666  df-ima 5667  df-iota 6500  df-fun 6548  df-fn 6549  df-f 6550  df-f1 6551  df-fo 6552  df-f1o 6553  df-fv 6554  df-ov 7430  df-oprab 7431  df-mpo 7432  df-of 7700
This theorem is used by:  ofoafg  44496
  Copyright terms: Public domain W3C validator