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 31003
Description: Express the preimage of a function operation as a union of preimages. This version of ofpreima 31002 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 31002 . . 3 (𝜑 → ((𝐹f 𝑅𝐺) “ 𝐷) = 𝑝 ∈ (𝑅𝐷)((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
6 inundif 4412 . . . . 5 (((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) = (𝑅𝐷)
7 iuneq1 4940 . . . . 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 5023 . . . 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 2794 . 2 (𝜑 → ((𝐹f 𝑅𝐺) “ 𝐷) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))))
12 simpr 485 . . . . . . . . . . 11 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)))
1312eldifbd 3900 . . . . . . . . . 10 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ¬ 𝑝 ∈ (ran 𝐹 × ran 𝐺))
14 cnvimass 5989 . . . . . . . . . . . . . 14 (𝑅𝐷) ⊆ dom 𝑅
154fndmd 6538 . . . . . . . . . . . . . 14 (𝜑 → dom 𝑅 = (𝐵 × 𝐶))
1614, 15sseqtrid 3973 . . . . . . . . . . . . 13 (𝜑 → (𝑅𝐷) ⊆ (𝐵 × 𝐶))
1716ssdifssd 4077 . . . . . . . . . . . 12 (𝜑 → ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)) ⊆ (𝐵 × 𝐶))
1817sselda 3921 . . . . . . . . . . 11 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝑝 ∈ (𝐵 × 𝐶))
19 1st2nd2 7870 . . . . . . . . . . 11 (𝑝 ∈ (𝐵 × 𝐶) → 𝑝 = ⟨(1st𝑝), (2nd𝑝)⟩)
20 elxp6 7865 . . . . . . . . . . . 12 (𝑝 ∈ (ran 𝐹 × ran 𝐺) ↔ (𝑝 = ⟨(1st𝑝), (2nd𝑝)⟩ ∧ ((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺)))
2120simplbi2 501 . . . . . . . . . . 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 979 . . . . . . . . 9 (¬ ((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺) ↔ (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
2523, 24sylib 217 . . . . . . . 8 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
26 disjsn 4647 . . . . . . . . 9 ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ↔ ¬ (1st𝑝) ∈ ran 𝐹)
27 disjsn 4647 . . . . . . . . 9 ((ran 𝐺 ∩ {(2nd𝑝)}) = ∅ ↔ ¬ (2nd𝑝) ∈ ran 𝐺)
2826, 27orbi12i 912 . . . . . . . 8 (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) ↔ (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
2925, 28sylibr 233 . . . . . . 7 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅))
301ffnd 6601 . . . . . . . . 9 (𝜑𝐹 Fn 𝐴)
31 dffn3 6613 . . . . . . . . 9 (𝐹 Fn 𝐴𝐹:𝐴⟶ran 𝐹)
3230, 31sylib 217 . . . . . . . 8 (𝜑𝐹:𝐴⟶ran 𝐹)
332ffnd 6601 . . . . . . . . . 10 (𝜑𝐺 Fn 𝐴)
34 dffn3 6613 . . . . . . . . . 10 (𝐺 Fn 𝐴𝐺:𝐴⟶ran 𝐺)
3533, 34sylib 217 . . . . . . . . 9 (𝜑𝐺:𝐴⟶ran 𝐺)
3635adantr 481 . . . . . . . 8 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝐺:𝐴⟶ran 𝐺)
37 fimacnvdisj 6652 . . . . . . . . . . 11 ((𝐹:𝐴⟶ran 𝐹 ∧ (ran 𝐹 ∩ {(1st𝑝)}) = ∅) → (𝐹 “ {(1st𝑝)}) = ∅)
38 ineq1 4139 . . . . . . . . . . . 12 ((𝐹 “ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = (∅ ∩ (𝐺 “ {(2nd𝑝)})))
39 0in 4327 . . . . . . . . . . . 12 (∅ ∩ (𝐺 “ {(2nd𝑝)})) = ∅
4038, 39eqtrdi 2794 . . . . . . . . . . 11 ((𝐹 “ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4137, 40syl 17 . . . . . . . . . 10 ((𝐹:𝐴⟶ran 𝐹 ∧ (ran 𝐹 ∩ {(1st𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4241ex 413 . . . . . . . . 9 (𝐹:𝐴⟶ran 𝐹 → ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
43 fimacnvdisj 6652 . . . . . . . . . . 11 ((𝐺:𝐴⟶ran 𝐺 ∧ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → (𝐺 “ {(2nd𝑝)}) = ∅)
44 ineq2 4140 . . . . . . . . . . . 12 ((𝐺 “ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ((𝐹 “ {(1st𝑝)}) ∩ ∅))
45 in0 4325 . . . . . . . . . . . 12 ((𝐹 “ {(1st𝑝)}) ∩ ∅) = ∅
4644, 45eqtrdi 2794 . . . . . . . . . . 11 ((𝐺 “ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4743, 46syl 17 . . . . . . . . . 10 ((𝐺:𝐴⟶ran 𝐺 ∧ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4847ex 413 . . . . . . . . 9 (𝐺:𝐴⟶ran 𝐺 → ((ran 𝐺 ∩ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
4942, 48jaao 952 . . . . . . . 8 ((𝐹:𝐴⟶ran 𝐹𝐺:𝐴⟶ran 𝐺) → (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
5032, 36, 49syl2an2r 682 . . . . . . 7 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
5129, 50mpd 15 . . . . . 6 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
5251iuneq2dv 4948 . . . . 5 (𝜑 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))∅)
53 iun0 4991 . . . . 5 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))∅ = ∅
5452, 53eqtrdi 2794 . . . 4 (𝜑 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
5554uneq2d 4097 . . 3 (𝜑 → ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ ∅))
56 un0 4324 . . 3 ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ ∅) = 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))
5755, 56eqtrdi 2794 . 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 396  wo 844   = wceq 1539  wcel 2106  cdif 3884  cun 3885  cin 3886  c0 4256  {csn 4561  cop 4567   ciun 4924   × cxp 5587  ccnv 5588  dom cdm 5589  ran crn 5590  cima 5592   Fn wfn 6428  wf 6429  cfv 6433  (class class class)co 7275  f cof 7531  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-rep 5209  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-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  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-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280  df-of 7533  df-1st 7831  df-2nd 7832
This theorem is referenced by:  sibfof  32307
  Copyright terms: Public domain W3C validator