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 29300
Description: Express the preimage of a function operation as a union of preimages. This version of ofpreima 29299 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 (𝜑 → ((𝐹𝑓 𝑅𝐺) “ 𝐷) = 𝑝 ∈ ((𝑅𝐷) ∩ (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 29299 . . 3 (𝜑 → ((𝐹𝑓 𝑅𝐺) “ 𝐷) = 𝑝 ∈ (𝑅𝐷)((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
6 inundif 4023 . . . . 5 (((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) = (𝑅𝐷)
7 iuneq1 4505 . . . . 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 4576 . . . 4 𝑝 ∈ (((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
108, 9eqtr3i 2650 . . 3 𝑝 ∈ (𝑅𝐷)((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
115, 10syl6eq 2676 . 2 (𝜑 → ((𝐹𝑓 𝑅𝐺) “ 𝐷) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))))
12 simpr 477 . . . . . . . . . . 11 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)))
1312eldifbd 3573 . . . . . . . . . 10 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ¬ 𝑝 ∈ (ran 𝐹 × ran 𝐺))
14 cnvimass 5448 . . . . . . . . . . . . . 14 (𝑅𝐷) ⊆ dom 𝑅
15 fndm 5950 . . . . . . . . . . . . . . 15 (𝑅 Fn (𝐵 × 𝐶) → dom 𝑅 = (𝐵 × 𝐶))
164, 15syl 17 . . . . . . . . . . . . . 14 (𝜑 → dom 𝑅 = (𝐵 × 𝐶))
1714, 16syl5sseq 3637 . . . . . . . . . . . . 13 (𝜑 → (𝑅𝐷) ⊆ (𝐵 × 𝐶))
1817ssdifssd 3731 . . . . . . . . . . . 12 (𝜑 → ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺)) ⊆ (𝐵 × 𝐶))
1918sselda 3588 . . . . . . . . . . 11 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝑝 ∈ (𝐵 × 𝐶))
20 1st2nd2 7153 . . . . . . . . . . 11 (𝑝 ∈ (𝐵 × 𝐶) → 𝑝 = ⟨(1st𝑝), (2nd𝑝)⟩)
21 elxp6 7148 . . . . . . . . . . . 12 (𝑝 ∈ (ran 𝐹 × ran 𝐺) ↔ (𝑝 = ⟨(1st𝑝), (2nd𝑝)⟩ ∧ ((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺)))
2221simplbi2 654 . . . . . . . . . . 11 (𝑝 = ⟨(1st𝑝), (2nd𝑝)⟩ → (((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺) → 𝑝 ∈ (ran 𝐹 × ran 𝐺)))
2319, 20, 223syl 18 . . . . . . . . . 10 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺) → 𝑝 ∈ (ran 𝐹 × ran 𝐺)))
2413, 23mtod 189 . . . . . . . . 9 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ¬ ((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺))
25 ianor 509 . . . . . . . . 9 (¬ ((1st𝑝) ∈ ran 𝐹 ∧ (2nd𝑝) ∈ ran 𝐺) ↔ (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
2624, 25sylib 208 . . . . . . . 8 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
27 disjsn 4221 . . . . . . . . 9 ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ↔ ¬ (1st𝑝) ∈ ran 𝐹)
28 disjsn 4221 . . . . . . . . 9 ((ran 𝐺 ∩ {(2nd𝑝)}) = ∅ ↔ ¬ (2nd𝑝) ∈ ran 𝐺)
2927, 28orbi12i 543 . . . . . . . 8 (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) ↔ (¬ (1st𝑝) ∈ ran 𝐹 ∨ ¬ (2nd𝑝) ∈ ran 𝐺))
3026, 29sylibr 224 . . . . . . 7 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅))
311ffnd 6005 . . . . . . . . 9 (𝜑𝐹 Fn 𝐴)
32 dffn3 6013 . . . . . . . . 9 (𝐹 Fn 𝐴𝐹:𝐴⟶ran 𝐹)
3331, 32sylib 208 . . . . . . . 8 (𝜑𝐹:𝐴⟶ran 𝐹)
342ffnd 6005 . . . . . . . . . 10 (𝜑𝐺 Fn 𝐴)
35 dffn3 6013 . . . . . . . . . 10 (𝐺 Fn 𝐴𝐺:𝐴⟶ran 𝐺)
3634, 35sylib 208 . . . . . . . . 9 (𝜑𝐺:𝐴⟶ran 𝐺)
3736adantr 481 . . . . . . . 8 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝐺:𝐴⟶ran 𝐺)
38 fimacnvdisj 6042 . . . . . . . . . . 11 ((𝐹:𝐴⟶ran 𝐹 ∧ (ran 𝐹 ∩ {(1st𝑝)}) = ∅) → (𝐹 “ {(1st𝑝)}) = ∅)
39 ineq1 3790 . . . . . . . . . . . 12 ((𝐹 “ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = (∅ ∩ (𝐺 “ {(2nd𝑝)})))
40 0in 3946 . . . . . . . . . . . 12 (∅ ∩ (𝐺 “ {(2nd𝑝)})) = ∅
4139, 40syl6eq 2676 . . . . . . . . . . 11 ((𝐹 “ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4238, 41syl 17 . . . . . . . . . 10 ((𝐹:𝐴⟶ran 𝐹 ∧ (ran 𝐹 ∩ {(1st𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4342ex 450 . . . . . . . . 9 (𝐹:𝐴⟶ran 𝐹 → ((ran 𝐹 ∩ {(1st𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
44 fimacnvdisj 6042 . . . . . . . . . . 11 ((𝐺:𝐴⟶ran 𝐺 ∧ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → (𝐺 “ {(2nd𝑝)}) = ∅)
45 ineq2 3791 . . . . . . . . . . . 12 ((𝐺 “ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ((𝐹 “ {(1st𝑝)}) ∩ ∅))
46 in0 3945 . . . . . . . . . . . 12 ((𝐹 “ {(1st𝑝)}) ∩ ∅) = ∅
4745, 46syl6eq 2676 . . . . . . . . . . 11 ((𝐺 “ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4844, 47syl 17 . . . . . . . . . 10 ((𝐺:𝐴⟶ran 𝐺 ∧ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
4948ex 450 . . . . . . . . 9 (𝐺:𝐴⟶ran 𝐺 → ((ran 𝐺 ∩ {(2nd𝑝)}) = ∅ → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
5043, 49jaao 531 . . . . . . . 8 ((𝐹:𝐴⟶ran 𝐹𝐺:𝐴⟶ran 𝐺) → (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
5133, 37, 50syl2an2r 875 . . . . . . 7 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (((ran 𝐹 ∩ {(1st𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd𝑝)}) = ∅) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅))
5230, 51mpd 15 . . . . . 6 ((𝜑𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
5352iuneq2dv 4513 . . . . 5 (𝜑 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))∅)
54 iun0 4547 . . . . 5 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))∅ = ∅
5553, 54syl6eq 2676 . . . 4 (𝜑 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) = ∅)
5655uneq2d 3750 . . 3 (𝜑 → ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))) = ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ ∅))
57 un0 3944 . . 3 ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ ∅) = 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))
5856, 57syl6eq 2676 . 2 (𝜑 → ( 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})) ∪ 𝑝 ∈ ((𝑅𝐷) ∖ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)}))) = 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
5911, 58eqtrd 2660 1 (𝜑 → ((𝐹𝑓 𝑅𝐺) “ 𝐷) = 𝑝 ∈ ((𝑅𝐷) ∩ (ran 𝐹 × ran 𝐺))((𝐹 “ {(1st𝑝)}) ∩ (𝐺 “ {(2nd𝑝)})))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wo 383  wa 384   = wceq 1480  wcel 1992  cdif 3557  cun 3558  cin 3559  c0 3896  {csn 4153  cop 4159   ciun 4490   × cxp 5077  ccnv 5078  dom cdm 5079  ran crn 5080  cima 5082   Fn wfn 5845  wf 5846  cfv 5850  (class class class)co 6605  𝑓 cof 6849  1st c1st 7114  2nd c2nd 7115
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-rep 4736  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-nul 3897  df-if 4064  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-id 4994  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-f1 5855  df-fo 5856  df-f1o 5857  df-fv 5858  df-ov 6608  df-oprab 6609  df-mpt2 6610  df-of 6851  df-1st 7116  df-2nd 7117
This theorem is referenced by:  sibfof  30175
  Copyright terms: Public domain W3C validator