Users' Mathboxes Mathbox for Richard Penner < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  dftrcl3 Structured version   Visualization version   GIF version

Theorem dftrcl3 40421
Description: Transitive closure of a relation, expressed as indexed union of powers of relations. (Contributed by RP, 5-Jun-2020.)
Assertion
Ref Expression
dftrcl3 t+ = (𝑟 ∈ V ↦ 𝑛 ∈ ℕ (𝑟𝑟𝑛))
Distinct variable group:   𝑛,𝑟

Proof of Theorem dftrcl3
Dummy variables 𝑘 𝑎 𝑡 𝑠 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-trcl 14338 . 2 t+ = (𝑟 ∈ V ↦ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)})
2 relexp1g 14377 . . . . . . . 8 (𝑟 ∈ V → (𝑟𝑟1) = 𝑟)
3 nnex 11631 . . . . . . . . 9 ℕ ∈ V
4 1nn 11636 . . . . . . . . 9 1 ∈ ℕ
5 oveq1 7142 . . . . . . . . . . . . 13 (𝑎 = 𝑡 → (𝑎𝑟𝑛) = (𝑡𝑟𝑛))
65iuneq2d 4910 . . . . . . . . . . . 12 (𝑎 = 𝑡 𝑛 ∈ ℕ (𝑎𝑟𝑛) = 𝑛 ∈ ℕ (𝑡𝑟𝑛))
7 oveq2 7143 . . . . . . . . . . . . 13 (𝑛 = 𝑘 → (𝑡𝑟𝑛) = (𝑡𝑟𝑘))
87cbviunv 4927 . . . . . . . . . . . 12 𝑛 ∈ ℕ (𝑡𝑟𝑛) = 𝑘 ∈ ℕ (𝑡𝑟𝑘)
96, 8eqtrdi 2849 . . . . . . . . . . 11 (𝑎 = 𝑡 𝑛 ∈ ℕ (𝑎𝑟𝑛) = 𝑘 ∈ ℕ (𝑡𝑟𝑘))
109cbvmptv 5133 . . . . . . . . . 10 (𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛)) = (𝑡 ∈ V ↦ 𝑘 ∈ ℕ (𝑡𝑟𝑘))
1110ov2ssiunov2 40401 . . . . . . . . 9 ((𝑟 ∈ V ∧ ℕ ∈ V ∧ 1 ∈ ℕ) → (𝑟𝑟1) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))
123, 4, 11mp3an23 1450 . . . . . . . 8 (𝑟 ∈ V → (𝑟𝑟1) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))
132, 12eqsstrrd 3954 . . . . . . 7 (𝑟 ∈ V → 𝑟 ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))
14 nnuz 12269 . . . . . . . 8 ℕ = (ℤ‘1)
15 1nn0 11901 . . . . . . . 8 1 ∈ ℕ0
1610iunrelexpuztr 40420 . . . . . . . 8 ((𝑟 ∈ V ∧ ℕ = (ℤ‘1) ∧ 1 ∈ ℕ0) → (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∘ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))
1714, 15, 16mp3an23 1450 . . . . . . 7 (𝑟 ∈ V → (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∘ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))
18 fvex 6658 . . . . . . . 8 ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∈ V
19 trcleq2lem 14342 . . . . . . . . . 10 (𝑧 = ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) → ((𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧) ↔ (𝑟 ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∧ (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∘ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))))
2019a1i 11 . . . . . . . . 9 (𝑟 ∈ V → (𝑧 = ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) → ((𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧) ↔ (𝑟 ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∧ (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∘ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)))))
2120alrimiv 1928 . . . . . . . 8 (𝑟 ∈ V → ∀𝑧(𝑧 = ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) → ((𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧) ↔ (𝑟 ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∧ (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∘ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)))))
22 elabgt 3609 . . . . . . . 8 ((((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∈ V ∧ ∀𝑧(𝑧 = ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) → ((𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧) ↔ (𝑟 ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∧ (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∘ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))))) → (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∈ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} ↔ (𝑟 ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∧ (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∘ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))))
2318, 21, 22sylancr 590 . . . . . . 7 (𝑟 ∈ V → (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∈ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} ↔ (𝑟 ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∧ (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∘ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟)) ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))))
2413, 17, 23mpbir2and 712 . . . . . 6 (𝑟 ∈ V → ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∈ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)})
25 intss1 4853 . . . . . 6 (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ∈ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} → {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))
2624, 25syl 17 . . . . 5 (𝑟 ∈ V → {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} ⊆ ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))
27 vex 3444 . . . . . . . . 9 𝑠 ∈ V
28 trcleq2lem 14342 . . . . . . . . 9 (𝑧 = 𝑠 → ((𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧) ↔ (𝑟𝑠 ∧ (𝑠𝑠) ⊆ 𝑠)))
2927, 28elab 3615 . . . . . . . 8 (𝑠 ∈ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} ↔ (𝑟𝑠 ∧ (𝑠𝑠) ⊆ 𝑠))
30 eqid 2798 . . . . . . . . . 10 ℕ = ℕ
3110iunrelexpmin1 40409 . . . . . . . . . 10 ((𝑟 ∈ V ∧ ℕ = ℕ) → ∀𝑠((𝑟𝑠 ∧ (𝑠𝑠) ⊆ 𝑠) → ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ⊆ 𝑠))
3230, 31mpan2 690 . . . . . . . . 9 (𝑟 ∈ V → ∀𝑠((𝑟𝑠 ∧ (𝑠𝑠) ⊆ 𝑠) → ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ⊆ 𝑠))
333219.21bi 2186 . . . . . . . 8 (𝑟 ∈ V → ((𝑟𝑠 ∧ (𝑠𝑠) ⊆ 𝑠) → ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ⊆ 𝑠))
3429, 33syl5bi 245 . . . . . . 7 (𝑟 ∈ V → (𝑠 ∈ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} → ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ⊆ 𝑠))
3534ralrimiv 3148 . . . . . 6 (𝑟 ∈ V → ∀𝑠 ∈ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ⊆ 𝑠)
36 ssint 4854 . . . . . 6 (((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ⊆ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} ↔ ∀𝑠 ∈ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ⊆ 𝑠)
3735, 36sylibr 237 . . . . 5 (𝑟 ∈ V → ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) ⊆ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)})
3826, 37eqssd 3932 . . . 4 (𝑟 ∈ V → {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} = ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟))
39 oveq1 7142 . . . . . 6 (𝑎 = 𝑟 → (𝑎𝑟𝑛) = (𝑟𝑟𝑛))
4039iuneq2d 4910 . . . . 5 (𝑎 = 𝑟 𝑛 ∈ ℕ (𝑎𝑟𝑛) = 𝑛 ∈ ℕ (𝑟𝑟𝑛))
41 eqid 2798 . . . . 5 (𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛)) = (𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))
42 ovex 7168 . . . . . 6 (𝑟𝑟𝑛) ∈ V
433, 42iunex 7651 . . . . 5 𝑛 ∈ ℕ (𝑟𝑟𝑛) ∈ V
4440, 41, 43fvmpt 6745 . . . 4 (𝑟 ∈ V → ((𝑎 ∈ V ↦ 𝑛 ∈ ℕ (𝑎𝑟𝑛))‘𝑟) = 𝑛 ∈ ℕ (𝑟𝑟𝑛))
4538, 44eqtrd 2833 . . 3 (𝑟 ∈ V → {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)} = 𝑛 ∈ ℕ (𝑟𝑟𝑛))
4645mpteq2ia 5121 . 2 (𝑟 ∈ V ↦ {𝑧 ∣ (𝑟𝑧 ∧ (𝑧𝑧) ⊆ 𝑧)}) = (𝑟 ∈ V ↦ 𝑛 ∈ ℕ (𝑟𝑟𝑛))
471, 46eqtri 2821 1 t+ = (𝑟 ∈ V ↦ 𝑛 ∈ ℕ (𝑟𝑟𝑛))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wal 1536   = wceq 1538  wcel 2111  {cab 2776  wral 3106  Vcvv 3441  wss 3881   cint 4838   ciun 4881  cmpt 5110  ccom 5523  cfv 6324  (class class class)co 7135  1c1 10527  cn 11625  0cn0 11885  cuz 12231  t+ctcl 14336  𝑟crelexp 14370
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-int 4839  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-nn 11626  df-2 11688  df-n0 11886  df-z 11970  df-uz 12232  df-seq 13365  df-trcl 14338  df-relexp 14371
This theorem is referenced by:  brfvtrcld  40422  fvtrcllb1d  40423  trclfvcom  40424  cnvtrclfv  40425  cotrcltrcl  40426  trclimalb2  40427  trclfvdecomr  40429  dfrtrcl4  40439  corcltrcl  40440  cotrclrcl  40443
  Copyright terms: Public domain W3C validator