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

Theorem trclun 14043
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 3951 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) ↔ (𝑅𝑆) ⊆ 𝑥)
2 simpl 474 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) → 𝑅𝑥)
31, 2sylbir 226 . . . . . . . . 9 ((𝑅𝑆) ⊆ 𝑥𝑅𝑥)
4 vex 3353 . . . . . . . . . . 11 𝑥 ∈ V
5 trcleq2lem 14020 . . . . . . . . . . 11 (𝑟 = 𝑥 → ((𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟) ↔ (𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)))
64, 5elab 3507 . . . . . . . . . 10 (𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ↔ (𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
76biimpri 219 . . . . . . . . 9 ((𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
83, 7sylan 575 . . . . . . . 8 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
9 intss1 4650 . . . . . . . 8 (𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} → {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ⊆ 𝑥)
108, 9syl 17 . . . . . . 7 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ⊆ 𝑥)
11 simpr 477 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) → 𝑆𝑥)
121, 11sylbir 226 . . . . . . . . 9 ((𝑅𝑆) ⊆ 𝑥𝑆𝑥)
13 trcleq2lem 14020 . . . . . . . . . . 11 (𝑠 = 𝑥 → ((𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠) ↔ (𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)))
144, 13elab 3507 . . . . . . . . . 10 (𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ↔ (𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
1514biimpri 219 . . . . . . . . 9 ((𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
1612, 15sylan 575 . . . . . . . 8 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
17 intss1 4650 . . . . . . . 8 (𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} → {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ⊆ 𝑥)
1816, 17syl 17 . . . . . . 7 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ⊆ 𝑥)
1910, 18unssd 3953 . . . . . 6 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥)
20 simpr 477 . . . . . 6 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → (𝑥𝑥) ⊆ 𝑥)
2119, 20jca 507 . . . . 5 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
22 ssmin 4654 . . . . . . . 8 𝑅 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)}
23 ssmin 4654 . . . . . . . 8 𝑆 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}
24 unss12 3949 . . . . . . . 8 ((𝑅 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∧ 𝑆 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) → (𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}))
2522, 23, 24mp2an 683 . . . . . . 7 (𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
26 sstr 3771 . . . . . . 7 (((𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∧ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥) → (𝑅𝑆) ⊆ 𝑥)
2725, 26mpan 681 . . . . . 6 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 → (𝑅𝑆) ⊆ 𝑥)
2827anim1i 608 . . . . 5 ((( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
2921, 28impbii 200 . . . 4 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) ↔ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
3029abbii 2882 . . 3 {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)} = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)}
3130inteqi 4639 . 2 {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)} = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)}
32 unexg 7159 . . 3 ((𝑅𝑉𝑆𝑊) → (𝑅𝑆) ∈ V)
33 trclfv 14029 . . 3 ((𝑅𝑆) ∈ V → (t+‘(𝑅𝑆)) = {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
3432, 33syl 17 . 2 ((𝑅𝑉𝑆𝑊) → (t+‘(𝑅𝑆)) = {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
35 simpl 474 . . . . . 6 ((𝑅𝑉𝑆𝑊) → 𝑅𝑉)
36 trclfv 14029 . . . . . 6 (𝑅𝑉 → (t+‘𝑅) = {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
3735, 36syl 17 . . . . 5 ((𝑅𝑉𝑆𝑊) → (t+‘𝑅) = {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
38 simpr 477 . . . . . 6 ((𝑅𝑉𝑆𝑊) → 𝑆𝑊)
39 trclfv 14029 . . . . . 6 (𝑆𝑊 → (t+‘𝑆) = {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
4038, 39syl 17 . . . . 5 ((𝑅𝑉𝑆𝑊) → (t+‘𝑆) = {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
4137, 40uneq12d 3932 . . . 4 ((𝑅𝑉𝑆𝑊) → ((t+‘𝑅) ∪ (t+‘𝑆)) = ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}))
4241fveq2d 6381 . . 3 ((𝑅𝑉𝑆𝑊) → (t+‘((t+‘𝑅) ∪ (t+‘𝑆))) = (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})))
43 fvex 6390 . . . . . 6 (t+‘𝑅) ∈ V
4436, 43syl6eqelr 2853 . . . . 5 (𝑅𝑉 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∈ V)
45 fvex 6390 . . . . . 6 (t+‘𝑆) ∈ V
4639, 45syl6eqelr 2853 . . . . 5 (𝑆𝑊 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ∈ V)
47 unexg 7159 . . . . 5 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∈ V ∧ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ∈ V) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V)
4844, 46, 47syl2an 589 . . . 4 ((𝑅𝑉𝑆𝑊) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V)
49 trclfv 14029 . . . 4 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V → (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5048, 49syl 17 . . 3 ((𝑅𝑉𝑆𝑊) → (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5142, 50eqtrd 2799 . 2 ((𝑅𝑉𝑆𝑊) → (t+‘((t+‘𝑅) ∪ (t+‘𝑆))) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5231, 34, 513eqtr4a 2825 1 ((𝑅𝑉𝑆𝑊) → (t+‘(𝑅𝑆)) = (t+‘((t+‘𝑅) ∪ (t+‘𝑆))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1652  wcel 2155  {cab 2751  Vcvv 3350  cun 3732  wss 3734   cint 4635  ccom 5283  cfv 6070  t+ctcl 14014
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1890  ax-4 1904  ax-5 2005  ax-6 2070  ax-7 2105  ax-8 2157  ax-9 2164  ax-10 2183  ax-11 2198  ax-12 2211  ax-13 2352  ax-ext 2743  ax-sep 4943  ax-nul 4951  ax-pow 5003  ax-pr 5064  ax-un 7149
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 874  df-3an 1109  df-tru 1656  df-ex 1875  df-nf 1879  df-sb 2063  df-mo 2565  df-eu 2582  df-clab 2752  df-cleq 2758  df-clel 2761  df-nfc 2896  df-ne 2938  df-ral 3060  df-rex 3061  df-rab 3064  df-v 3352  df-sbc 3599  df-dif 3737  df-un 3739  df-in 3741  df-ss 3748  df-nul 4082  df-if 4246  df-pw 4319  df-sn 4337  df-pr 4339  df-op 4343  df-uni 4597  df-int 4636  df-br 4812  df-opab 4874  df-mpt 4891  df-id 5187  df-xp 5285  df-rel 5286  df-cnv 5287  df-co 5288  df-dm 5289  df-rn 5290  df-res 5291  df-iota 6033  df-fun 6072  df-fv 6078  df-trcl 14016
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator