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

Theorem ofpreima2 30905
Description: Express the preimage of a function operation as a union of preimages. This version of ofpreima 30904 iterates the union over a smaller set. (Contributed by Thierry Arnoux, 8-Mar-2018.)
Hypotheses
Ref Expression
ofpreima.1 (𝜑𝐹:𝐴𝐵)
ofpreima.2 (𝜑𝐺:𝐴𝐶)
ofpreima.3 (𝜑𝐴𝑉)
ofpreima.4 (𝜑𝑅 Fn (𝐵 × 𝐶))
Assertion
Ref Expression
ofpreima2 (𝜑 → ((𝐹f 𝑅𝐺) “ 𝐷) = 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
Distinct variable groups:   𝐴,𝑝   𝐷,𝑝   𝐹,𝑝   𝐺,𝑝   𝑅,𝑝   𝜑,𝑝
Allowed substitution hints:   𝐵(𝑝)   𝐶(𝑝)   𝑉(𝑝)

Proof of Theorem ofpreima2
StepHypRef Expression
1 ofpreima.1 . . . 4 (𝜑𝐹:𝐴𝐵)
2 ofpreima.2 . . . 4 (𝜑𝐺:𝐴𝐶)
3 ofpreima.3 . . . 4 (𝜑𝐴𝑉)
4 ofpreima.4 . . . 4 (𝜑𝑅 Fn (𝐵 × 𝐶))
51, 2, 3, 4ofpreima 30904 . . 3 (𝜑 → ((𝐹f 𝑅𝐺) “ 𝐷) = 𝑝 ∈ (𝑅𝐷)((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
6 inundif 4409 . . . . 5 (((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) = (𝑅𝐷)
7 iuneq1 4937 . . . . 5 ((((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) = (𝑅𝐷) → 𝑝 ∈ (((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = 𝑝 ∈ (𝑅𝐷)((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
86, 7ax-mp 5 . . . 4 𝑝 ∈ (((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = 𝑝 ∈ (𝑅𝐷)((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))
9 iunxun 5019 . . . 4 𝑝 ∈ (((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
108, 9eqtr3i 2768 . . 3 𝑝 ∈ (𝑅𝐷)((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
115, 10eqtrdi 2795 . 2 (𝜑 → ((𝐹f 𝑅𝐺) “ 𝐷) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))))
12 simpr 484 . . . . . . . . . . 11 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)))
1312eldifbd 3896 . . . . . . . . . 10 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ¬ 𝑝 ∈ (ran 𝐹 × ran 𝐺))
14 cnvimass 5978 . . . . . . . . . . . . . 14 (𝑅𝐷) ⊆ dom 𝑅
154fndmd 6522 . . . . . . . . . . . . . 14 (𝜑 → dom 𝑅 = (𝐵 × 𝐶))
1614, 15sseqtrid 3969 . . . . . . . . . . . . 13 (𝜑 → (𝑅𝐷) ⊆ (𝐵 × 𝐶))
1716ssdifssd 4073 . . . . . . . . . . . 12 (𝜑 → ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)) ⊆ (𝐵 × 𝐶))
1817sselda 3917 . . . . . . . . . . 11 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝑝 ∈ (𝐵 × 𝐶))
19 1st2nd2 7843 . . . . . . . . . . 11 (𝑝 ∈ (𝐵 × 𝐶) → 𝑝 = ⟨(1st𝑝), (2nd𝑝)⟩)
20 elxp6 7838 . . . . . . . . . . . 12 (𝑝 ∈ (ran 𝐹 × ran 𝐺) ↔ (𝑝 = ⟨(1st𝑝), (2nd𝑝)⟩ ∧ ((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺)))
2120simplbi2 500 . . . . . . . . . . 11 (𝑝 = ⟨(1st𝑝), (2nd𝑝)⟩ → (((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺) → 𝑝 ∈ (ran 𝐹 × ran 𝐺)))
2218, 19, 213syl 18 . . . . . . . . . 10 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺) → 𝑝 ∈ (ran 𝐹 × ran 𝐺)))
2313, 22mtod 197 . . . . . . . . 9 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ¬ ((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺))
24 ianor 978 . . . . . . . . 9 (¬ ((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺) ↔ (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
2523, 24sylib 217 . . . . . . . 8 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
26 disjsn 4644 . . . . . . . . 9 ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ↔ ¬ (1st𝑝) ∈ ran 𝐹)
27 disjsn 4644 . . . . . . . . 9 ((ran 𝐺 ∩ {(2nd𝑝)}) = ∅ ↔ ¬ (2nd𝑝) ∈ ran 𝐺)
2826, 27orbi12i 911 . . . . . . . 8 (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) ↔ (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
2925, 28sylibr 233 . . . . . . 7 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅))
301ffnd 6585 . . . . . . . . 9 (𝜑𝐹 Fn 𝐴)
31 dffn3 6597 . . . . . . . . 9 (𝐹 Fn 𝐴𝐹:𝐴⟶ran 𝐹)
3230, 31sylib 217 . . . . . . . 8 (𝜑𝐹:𝐴⟶ran 𝐹)
332ffnd 6585 . . . . . . . . . 10 (𝜑𝐺 Fn 𝐴)
34 dffn3 6597 . . . . . . . . . 10 (𝐺 Fn 𝐴𝐺:𝐴⟶ran 𝐺)
3533, 34sylib 217 . . . . . . . . 9 (𝜑𝐺:𝐴⟶ran 𝐺)
3635adantr 480 . . . . . . . 8 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝐺:𝐴⟶ran 𝐺)
37 fimacnvdisj 6636 . . . . . . . . . . 11 ((𝐹:𝐴⟶ran 𝐹 ∧ (ran 𝐹 ∩ {(1st𝑝)}) = ∅) → (𝐹 “ {(1st𝑝)}) = ∅)
38 ineq1 4136 . . . . . . . . . . . 12 ((𝐹 “ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = (∅ ∩ (𝐺 “ {(2nd𝑝)})))
39 0in 4324 . . . . . . . . . . . 12 (∅ ∩ (𝐺 “ {(2nd𝑝)})) = ∅
4038, 39eqtrdi 2795 . . . . . . . . . . 11 ((𝐹 “ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4137, 40syl 17 . . . . . . . . . 10 ((𝐹:𝐴⟶ran 𝐹 ∧ (ran 𝐹 ∩ {(1st𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4241ex 412 . . . . . . . . 9 (𝐹:𝐴⟶ran 𝐹 → ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
43 fimacnvdisj 6636 . . . . . . . . . . 11 ((𝐺:𝐴⟶ran 𝐺 ∧ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → (𝐺 “ {(2nd𝑝)}) = ∅)
44 ineq2 4137 . . . . . . . . . . . 12 ((𝐺 “ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ((𝐹 “ {(1st𝑝)}) ∩ ∅))
45 in0 4322 . . . . . . . . . . . 12 ((𝐹 “ {(1st𝑝)}) ∩ ∅) = ∅
4644, 45eqtrdi 2795 . . . . . . . . . . 11 ((𝐺 “ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4743, 46syl 17 . . . . . . . . . 10 ((𝐺:𝐴⟶ran 𝐺 ∧ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4847ex 412 . . . . . . . . 9 (𝐺:𝐴⟶ran 𝐺 → ((ran 𝐺 ∩ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
4942, 48jaao 951 . . . . . . . 8 ((𝐹:𝐴⟶ran 𝐹𝐺:𝐴⟶ran 𝐺) → (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
5032, 36, 49syl2an2r 681 . . . . . . 7 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
5129, 50mpd 15 . . . . . 6 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
5251iuneq2dv 4945 . . . . 5 (𝜑 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))∅)
53 iun0 4987 . . . . 5 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))∅ = ∅
5452, 53eqtrdi 2795 . . . 4 (𝜑 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
5554uneq2d 4093 . . 3 (𝜑 → ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ ∅))
56 un0 4321 . . 3 ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ ∅) = 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))
5755, 56eqtrdi 2795 . 2 (𝜑 → ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))) = 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
5811, 57eqtrd 2778 1 (𝜑 → ((𝐹f 𝑅𝐺) “ 𝐷) = 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  wo 843   = wceq 1539  wcel 2108  cdif 3880  cun 3881  cin 3882  c0 4253  {csn 4558  cop 4564   ciun 4921   × cxp 5578  ccnv 5579  dom cdm 5580  ran crn 5581  cima 5583   Fn wfn 6413  wf 6414  cfv 6418  (class class class)co 7255  f cof 7509  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-rep 5205  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-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-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-of 7511  df-1st 7804  df-2nd 7805
This theorem is referenced by:  sibfof  32207
  Copyright terms: Public domain W3C validator