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

Theorem trclun 14725
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 4118 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) ↔ (𝑅𝑆) ⊆ 𝑥)
2 simpl 483 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) → 𝑅𝑥)
31, 2sylbir 234 . . . . . . . . 9 ((𝑅𝑆) ⊆ 𝑥𝑅𝑥)
4 vex 3436 . . . . . . . . . . 11 𝑥 ∈ V
5 trcleq2lem 14702 . . . . . . . . . . 11 (𝑟 = 𝑥 → ((𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟) ↔ (𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)))
64, 5elab 3609 . . . . . . . . . 10 (𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ↔ (𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
76biimpri 227 . . . . . . . . 9 ((𝑅𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
83, 7sylan 580 . . . . . . . 8 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
9 intss1 4894 . . . . . . . 8 (𝑥 ∈ {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} → {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ⊆ 𝑥)
108, 9syl 17 . . . . . . 7 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ⊆ 𝑥)
11 simpr 485 . . . . . . . . . 10 ((𝑅𝑥𝑆𝑥) → 𝑆𝑥)
121, 11sylbir 234 . . . . . . . . 9 ((𝑅𝑆) ⊆ 𝑥𝑆𝑥)
13 trcleq2lem 14702 . . . . . . . . . . 11 (𝑠 = 𝑥 → ((𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠) ↔ (𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)))
144, 13elab 3609 . . . . . . . . . 10 (𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ↔ (𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
1514biimpri 227 . . . . . . . . 9 ((𝑆𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
1612, 15sylan 580 . . . . . . . 8 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → 𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
17 intss1 4894 . . . . . . . 8 (𝑥 ∈ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} → {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ⊆ 𝑥)
1816, 17syl 17 . . . . . . 7 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ⊆ 𝑥)
1910, 18unssd 4120 . . . . . 6 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥)
20 simpr 485 . . . . . 6 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → (𝑥𝑥) ⊆ 𝑥)
2119, 20jca 512 . . . . 5 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
22 ssmin 4898 . . . . . . . 8 𝑅 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)}
23 ssmin 4898 . . . . . . . 8 𝑆 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}
24 unss12 4116 . . . . . . . 8 ((𝑅 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∧ 𝑆 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) → (𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}))
2522, 23, 24mp2an 689 . . . . . . 7 (𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
26 sstr 3929 . . . . . . 7 (((𝑅𝑆) ⊆ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∧ ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥) → (𝑅𝑆) ⊆ 𝑥)
2725, 26mpan 687 . . . . . 6 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 → (𝑅𝑆) ⊆ 𝑥)
2827anim1i 615 . . . . 5 ((( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) → ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
2921, 28impbii 208 . . . 4 (((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥) ↔ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥))
3029abbii 2808 . . 3 {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)} = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)}
3130inteqi 4883 . 2 {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)} = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)}
32 unexg 7599 . . 3 ((𝑅𝑉𝑆𝑊) → (𝑅𝑆) ∈ V)
33 trclfv 14711 . . 3 ((𝑅𝑆) ∈ V → (t+‘(𝑅𝑆)) = {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
3432, 33syl 17 . 2 ((𝑅𝑉𝑆𝑊) → (t+‘(𝑅𝑆)) = {𝑥 ∣ ((𝑅𝑆) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
35 simpl 483 . . . . . 6 ((𝑅𝑉𝑆𝑊) → 𝑅𝑉)
36 trclfv 14711 . . . . . 6 (𝑅𝑉 → (t+‘𝑅) = {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
3735, 36syl 17 . . . . 5 ((𝑅𝑉𝑆𝑊) → (t+‘𝑅) = {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)})
38 simpr 485 . . . . . 6 ((𝑅𝑉𝑆𝑊) → 𝑆𝑊)
39 trclfv 14711 . . . . . 6 (𝑆𝑊 → (t+‘𝑆) = {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
4038, 39syl 17 . . . . 5 ((𝑅𝑉𝑆𝑊) → (t+‘𝑆) = {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})
4137, 40uneq12d 4098 . . . 4 ((𝑅𝑉𝑆𝑊) → ((t+‘𝑅) ∪ (t+‘𝑆)) = ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}))
4241fveq2d 6778 . . 3 ((𝑅𝑉𝑆𝑊) → (t+‘((t+‘𝑅) ∪ (t+‘𝑆))) = (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})))
43 fvex 6787 . . . . . 6 (t+‘𝑅) ∈ V
4436, 43eqeltrrdi 2848 . . . . 5 (𝑅𝑉 {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∈ V)
45 fvex 6787 . . . . . 6 (t+‘𝑆) ∈ V
4639, 45eqeltrrdi 2848 . . . . 5 (𝑆𝑊 {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ∈ V)
47 unexg 7599 . . . . 5 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∈ V ∧ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)} ∈ V) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V)
4844, 46, 47syl2an 596 . . . 4 ((𝑅𝑉𝑆𝑊) → ( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V)
49 trclfv 14711 . . . 4 (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ∈ V → (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5048, 49syl 17 . . 3 ((𝑅𝑉𝑆𝑊) → (t+‘( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)})) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5142, 50eqtrd 2778 . 2 ((𝑅𝑉𝑆𝑊) → (t+‘((t+‘𝑅) ∪ (t+‘𝑆))) = {𝑥 ∣ (( {𝑟 ∣ (𝑅𝑟 ∧ (𝑟𝑟) ⊆ 𝑟)} ∪ {𝑠 ∣ (𝑆𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)}) ⊆ 𝑥 ∧ (𝑥𝑥) ⊆ 𝑥)})
5231, 34, 513eqtr4a 2804 1 ((𝑅𝑉𝑆𝑊) → (t+‘(𝑅𝑆)) = (t+‘((t+‘𝑅) ∪ (t+‘𝑆))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1539  wcel 2106  {cab 2715  Vcvv 3432  cun 3885  wss 3887   cint 4879  ccom 5593  cfv 6433  t+ctcl 14696
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-sep 5223  ax-nul 5230  ax-pow 5288  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-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  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-iota 6391  df-fun 6435  df-fv 6441  df-trcl 14698
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator