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

Theorem trclun 14653
Description: Transitive closure of a union of relations. (Contributed by RP, 5-May-2020.)
Assertion
Ref Expression
trclun ((𝑅𝑉𝑆𝑊) → (t+‘(𝑅𝑆)) = (t+‘((t+‘𝑅) ∪ (t+‘𝑆))))

Proof of Theorem trclun
Dummy variables 𝑥 𝑟 𝑠 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 unss 4114 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) ↔ (𝑅𝑆) ⊆ 𝑥)
2 simpl 482 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) → 𝑅𝑥)
31, 2sylbir 234 . . . . . . . . 9 ((𝑅𝑆) ⊆ 𝑥𝑅𝑥)
4 vex 3426 . . . . . . . . . . 11 𝑥 ∈ V
5 trcleq2lem 14630 . . . . . . . . . . 11 (𝑟 = 𝑥 → ((𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟) ↔ (𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)))
64, 5elab 3602 . . . . . . . . . 10 (𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ↔ (𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
76biimpri 227 . . . . . . . . 9 ((𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
83, 7sylan 579 . . . . . . . 8 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
9 intss1 4891 . . . . . . . 8 (𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} → {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ⊆ 𝑥)
108, 9syl 17 . . . . . . 7 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ⊆ 𝑥)
11 simpr 484 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) → 𝑆𝑥)
121, 11sylbir 234 . . . . . . . . 9 ((𝑅𝑆) ⊆ 𝑥𝑆𝑥)
13 trcleq2lem 14630 . . . . . . . . . . 11 (𝑠 = 𝑥 → ((𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠) ↔ (𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)))
144, 13elab 3602 . . . . . . . . . 10 (𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ↔ (𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
1514biimpri 227 . . . . . . . . 9 ((𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
1612, 15sylan 579 . . . . . . . 8 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
17 intss1 4891 . . . . . . . 8 (𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} → {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ⊆ 𝑥)
1816, 17syl 17 . . . . . . 7 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ⊆ 𝑥)
1910, 18unssd 4116 . . . . . 6 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥)
20 simpr 484 . . . . . 6 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → (𝑥𝑥) ⊆ 𝑥)
2119, 20jca 511 . . . . 5 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
22 ssmin 4895 . . . . . . . 8 𝑅 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)}
23 ssmin 4895 . . . . . . . 8 𝑆 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}
24 unss12 4112 . . . . . . . 8 ((𝑅 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∧ 𝑆 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) → (𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}))
2522, 23, 24mp2an 688 . . . . . . 7 (𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
26 sstr 3925 . . . . . . 7 (((𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∧ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥) → (𝑅𝑆) ⊆ 𝑥)
2725, 26mpan 686 . . . . . 6 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 → (𝑅𝑆) ⊆ 𝑥)
2827anim1i 614 . . . . 5 ((( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
2921, 28impbii 208 . . . 4 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) ↔ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
3029abbii 2809 . . 3 {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)} = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)}
3130inteqi 4880 . 2 {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)} = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)}
32 unexg 7577 . . 3 ((𝑅𝑉𝑆𝑊) → (𝑅𝑆) ∈ V)
33 trclfv 14639 . . 3 ((𝑅𝑆) ∈ V → (t+‘(𝑅𝑆)) = {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
3432, 33syl 17 . 2 ((𝑅𝑉𝑆𝑊) → (t+‘(𝑅𝑆)) = {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
35 simpl 482 . . . . . 6 ((𝑅𝑉𝑆𝑊) → 𝑅𝑉)
36 trclfv 14639 . . . . . 6 (𝑅𝑉 → (t+‘𝑅) = {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
3735, 36syl 17 . . . . 5 ((𝑅𝑉𝑆𝑊) → (t+‘𝑅) = {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
38 simpr 484 . . . . . 6 ((𝑅𝑉𝑆𝑊) → 𝑆𝑊)
39 trclfv 14639 . . . . . 6 (𝑆𝑊 → (t+‘𝑆) = {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
4038, 39syl 17 . . . . 5 ((𝑅𝑉𝑆𝑊) → (t+‘𝑆) = {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
4137, 40uneq12d 4094 . . . 4 ((𝑅𝑉𝑆𝑊) → ((t+‘𝑅) ∪ (t+‘𝑆)) = ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}))
4241fveq2d 6760 . . 3 ((𝑅𝑉𝑆𝑊) → (t+‘((t+‘𝑅) ∪ (t+‘𝑆))) = (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})))
43 fvex 6769 . . . . . 6 (t+‘𝑅) ∈ V
4436, 43eqeltrrdi 2848 . . . . 5 (𝑅𝑉 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∈ V)
45 fvex 6769 . . . . . 6 (t+‘𝑆) ∈ V
4639, 45eqeltrrdi 2848 . . . . 5 (𝑆𝑊 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ∈ V)
47 unexg 7577 . . . . 5 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∈ V ∧ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ∈ V) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V)
4844, 46, 47syl2an 595 . . . 4 ((𝑅𝑉𝑆𝑊) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V)
49 trclfv 14639 . . . 4 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V → (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5048, 49syl 17 . . 3 ((𝑅𝑉𝑆𝑊) → (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5142, 50eqtrd 2778 . 2 ((𝑅𝑉𝑆𝑊) → (t+‘((t+‘𝑅) ∪ (t+‘𝑆))) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5231, 34, 513eqtr4a 2805 1 ((𝑅𝑉𝑆𝑊) → (t+‘(𝑅𝑆)) = (t+‘((t+‘𝑅) ∪ (t+‘𝑆))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  {cab 2715  Vcvv 3422  cun 3881  wss 3883   cint 4876  ccom 5584  cfv 6418  t+ctcl 14624
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-sep 5218  ax-nul 5225  ax-pow 5283  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-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-int 4877  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-iota 6376  df-fun 6420  df-fv 6426  df-trcl 14626
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator