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

Theorem dfrcl2 37433
Description: Reflexive closure of a relation as union with restricted identity relation. (Contributed by RP, 6-Jun-2020.)
Assertion
Ref Expression
dfrcl2 r* = (𝑥 ∈ V ↦ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))

Proof of Theorem dfrcl2
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 df-rcl 37432 . 2 r* = (𝑥 ∈ V ↦ {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)})
2 rabab 3214 . . . . . . . 8 {𝑧 ∈ V ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} = {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)}
32eqcomi 2635 . . . . . . 7 {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} = {𝑧 ∈ V ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)}
43inteqi 4449 . . . . . 6 {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} = {𝑧 ∈ V ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)}
54a1i 11 . . . . 5 (𝑥 ∈ V → {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} = {𝑧 ∈ V ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)})
6 vex 3194 . . . . . . . . . . 11 𝑥 ∈ V
76dmex 7047 . . . . . . . . . 10 dom 𝑥 ∈ V
86rnex 7048 . . . . . . . . . 10 ran 𝑥 ∈ V
97, 8unex 6910 . . . . . . . . 9 (dom 𝑥 ∪ ran 𝑥) ∈ V
10 resiexg 7050 . . . . . . . . 9 ((dom 𝑥 ∪ ran 𝑥) ∈ V → ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∈ V)
119, 10ax-mp 5 . . . . . . . 8 ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∈ V
1211, 6unex 6910 . . . . . . 7 (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∈ V
1312a1i 11 . . . . . 6 (𝑥 ∈ V → (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∈ V)
14 ssun2 3760 . . . . . . 7 𝑥 ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥)
15 dmun 5296 . . . . . . . . . . . 12 dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) = (dom ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ dom 𝑥)
16 dmresi 5420 . . . . . . . . . . . . 13 dom ( I ↾ (dom 𝑥 ∪ ran 𝑥)) = (dom 𝑥 ∪ ran 𝑥)
1716uneq1i 3746 . . . . . . . . . . . 12 (dom ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ dom 𝑥) = ((dom 𝑥 ∪ ran 𝑥) ∪ dom 𝑥)
18 un23 3755 . . . . . . . . . . . . 13 ((dom 𝑥 ∪ ran 𝑥) ∪ dom 𝑥) = ((dom 𝑥 ∪ dom 𝑥) ∪ ran 𝑥)
19 unidm 3739 . . . . . . . . . . . . . 14 (dom 𝑥 ∪ dom 𝑥) = dom 𝑥
2019uneq1i 3746 . . . . . . . . . . . . 13 ((dom 𝑥 ∪ dom 𝑥) ∪ ran 𝑥) = (dom 𝑥 ∪ ran 𝑥)
2118, 20eqtri 2648 . . . . . . . . . . . 12 ((dom 𝑥 ∪ ran 𝑥) ∪ dom 𝑥) = (dom 𝑥 ∪ ran 𝑥)
2215, 17, 213eqtri 2652 . . . . . . . . . . 11 dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) = (dom 𝑥 ∪ ran 𝑥)
23 rnun 5504 . . . . . . . . . . . 12 ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) = (ran ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ ran 𝑥)
24 rnresi 5442 . . . . . . . . . . . . 13 ran ( I ↾ (dom 𝑥 ∪ ran 𝑥)) = (dom 𝑥 ∪ ran 𝑥)
2524uneq1i 3746 . . . . . . . . . . . 12 (ran ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ ran 𝑥) = ((dom 𝑥 ∪ ran 𝑥) ∪ ran 𝑥)
26 unass 3753 . . . . . . . . . . . . 13 ((dom 𝑥 ∪ ran 𝑥) ∪ ran 𝑥) = (dom 𝑥 ∪ (ran 𝑥 ∪ ran 𝑥))
27 unidm 3739 . . . . . . . . . . . . . 14 (ran 𝑥 ∪ ran 𝑥) = ran 𝑥
2827uneq2i 3747 . . . . . . . . . . . . 13 (dom 𝑥 ∪ (ran 𝑥 ∪ ran 𝑥)) = (dom 𝑥 ∪ ran 𝑥)
2926, 28eqtri 2648 . . . . . . . . . . . 12 ((dom 𝑥 ∪ ran 𝑥) ∪ ran 𝑥) = (dom 𝑥 ∪ ran 𝑥)
3023, 25, 293eqtri 2652 . . . . . . . . . . 11 ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) = (dom 𝑥 ∪ ran 𝑥)
3122, 30uneq12i 3748 . . . . . . . . . 10 (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥)) = ((dom 𝑥 ∪ ran 𝑥) ∪ (dom 𝑥 ∪ ran 𝑥))
32 unidm 3739 . . . . . . . . . 10 ((dom 𝑥 ∪ ran 𝑥) ∪ (dom 𝑥 ∪ ran 𝑥)) = (dom 𝑥 ∪ ran 𝑥)
3331, 32eqtri 2648 . . . . . . . . 9 (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥)) = (dom 𝑥 ∪ ran 𝑥)
3433reseq2i 5357 . . . . . . . 8 ( I ↾ (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))) = ( I ↾ (dom 𝑥 ∪ ran 𝑥))
35 ssun1 3759 . . . . . . . 8 ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥)
3634, 35eqsstri 3619 . . . . . . 7 ( I ↾ (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))) ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥)
3714, 36pm3.2i 471 . . . . . 6 (𝑥 ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∧ ( I ↾ (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))) ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
38 dmeq 5289 . . . . . . . . . . 11 (𝑧 = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) → dom 𝑧 = dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
39 rneq 5315 . . . . . . . . . . 11 (𝑧 = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) → ran 𝑧 = ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
4038, 39uneq12d 3751 . . . . . . . . . 10 (𝑧 = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) → (dom 𝑧 ∪ ran 𝑧) = (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥)))
4140reseq2d 5360 . . . . . . . . 9 (𝑧 = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) → ( I ↾ (dom 𝑧 ∪ ran 𝑧)) = ( I ↾ (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))))
42 id 22 . . . . . . . . 9 (𝑧 = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) → 𝑧 = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
4341, 42sseq12d 3618 . . . . . . . 8 (𝑧 = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) → (( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧 ↔ ( I ↾ (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))) ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥)))
4443cleq2lem 37381 . . . . . . 7 (𝑧 = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) → ((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) ↔ (𝑥 ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∧ ( I ↾ (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))) ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))))
4544intminss 4473 . . . . . 6 (((( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∈ V ∧ (𝑥 ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∧ ( I ↾ (dom (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ∪ ran (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))) ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))) → {𝑧 ∈ V ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
4613, 37, 45sylancl 693 . . . . 5 (𝑥 ∈ V → {𝑧 ∈ V ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
475, 46eqsstrd 3623 . . . 4 (𝑥 ∈ V → {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} ⊆ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
48 dmss 5288 . . . . . . . . . . . . . . . 16 (𝑥𝑧 → dom 𝑥 ⊆ dom 𝑧)
49 rnss 5318 . . . . . . . . . . . . . . . 16 (𝑥𝑧 → ran 𝑥 ⊆ ran 𝑧)
50 unss12 3768 . . . . . . . . . . . . . . . 16 ((dom 𝑥 ⊆ dom 𝑧 ∧ ran 𝑥 ⊆ ran 𝑧) → (dom 𝑥 ∪ ran 𝑥) ⊆ (dom 𝑧 ∪ ran 𝑧))
5148, 49, 50syl2anc 692 . . . . . . . . . . . . . . 15 (𝑥𝑧 → (dom 𝑥 ∪ ran 𝑥) ⊆ (dom 𝑧 ∪ ran 𝑧))
52 dfss 3575 . . . . . . . . . . . . . . 15 ((dom 𝑥 ∪ ran 𝑥) ⊆ (dom 𝑧 ∪ ran 𝑧) ↔ (dom 𝑥 ∪ ran 𝑥) = ((dom 𝑥 ∪ ran 𝑥) ∩ (dom 𝑧 ∪ ran 𝑧)))
5351, 52sylib 208 . . . . . . . . . . . . . 14 (𝑥𝑧 → (dom 𝑥 ∪ ran 𝑥) = ((dom 𝑥 ∪ ran 𝑥) ∩ (dom 𝑧 ∪ ran 𝑧)))
54 incom 3788 . . . . . . . . . . . . . 14 ((dom 𝑥 ∪ ran 𝑥) ∩ (dom 𝑧 ∪ ran 𝑧)) = ((dom 𝑧 ∪ ran 𝑧) ∩ (dom 𝑥 ∪ ran 𝑥))
5553, 54syl6eq 2676 . . . . . . . . . . . . 13 (𝑥𝑧 → (dom 𝑥 ∪ ran 𝑥) = ((dom 𝑧 ∪ ran 𝑧) ∩ (dom 𝑥 ∪ ran 𝑥)))
5655reseq2d 5360 . . . . . . . . . . . 12 (𝑥𝑧 → ( I ↾ (dom 𝑥 ∪ ran 𝑥)) = ( I ↾ ((dom 𝑧 ∪ ran 𝑧) ∩ (dom 𝑥 ∪ ran 𝑥))))
57 resres 5372 . . . . . . . . . . . 12 (( I ↾ (dom 𝑧 ∪ ran 𝑧)) ↾ (dom 𝑥 ∪ ran 𝑥)) = ( I ↾ ((dom 𝑧 ∪ ran 𝑧) ∩ (dom 𝑥 ∪ ran 𝑥)))
5856, 57syl6eqr 2678 . . . . . . . . . . 11 (𝑥𝑧 → ( I ↾ (dom 𝑥 ∪ ran 𝑥)) = (( I ↾ (dom 𝑧 ∪ ran 𝑧)) ↾ (dom 𝑥 ∪ ran 𝑥)))
59 resss 5385 . . . . . . . . . . . 12 (( I ↾ (dom 𝑧 ∪ ran 𝑧)) ↾ (dom 𝑥 ∪ ran 𝑥)) ⊆ ( I ↾ (dom 𝑧 ∪ ran 𝑧))
6059a1i 11 . . . . . . . . . . 11 (𝑥𝑧 → (( I ↾ (dom 𝑧 ∪ ran 𝑧)) ↾ (dom 𝑥 ∪ ran 𝑥)) ⊆ ( I ↾ (dom 𝑧 ∪ ran 𝑧)))
6158, 60eqsstrd 3623 . . . . . . . . . 10 (𝑥𝑧 → ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ⊆ ( I ↾ (dom 𝑧 ∪ ran 𝑧)))
6261adantr 481 . . . . . . . . 9 ((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) → ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ⊆ ( I ↾ (dom 𝑧 ∪ ran 𝑧)))
63 simpr 477 . . . . . . . . 9 ((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) → ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)
6462, 63sstrd 3598 . . . . . . . 8 ((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) → ( I ↾ (dom 𝑥 ∪ ran 𝑥)) ⊆ 𝑧)
65 simpl 473 . . . . . . . 8 ((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) → 𝑥𝑧)
6664, 65unssd 3772 . . . . . . 7 ((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) → (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ⊆ 𝑧)
6766ax-gen 1719 . . . . . 6 𝑧((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) → (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ⊆ 𝑧)
6867a1i 11 . . . . 5 (𝑥 ∈ V → ∀𝑧((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) → (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ⊆ 𝑧))
69 ssintab 4464 . . . . 5 ((( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ⊆ {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} ↔ ∀𝑧((𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧) → (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ⊆ 𝑧))
7068, 69sylibr 224 . . . 4 (𝑥 ∈ V → (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥) ⊆ {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)})
7147, 70eqssd 3605 . . 3 (𝑥 ∈ V → {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)} = (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
7271mpteq2ia 4705 . 2 (𝑥 ∈ V ↦ {𝑧 ∣ (𝑥𝑧 ∧ ( I ↾ (dom 𝑧 ∪ ran 𝑧)) ⊆ 𝑧)}) = (𝑥 ∈ V ↦ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
731, 72eqtri 2648 1 r* = (𝑥 ∈ V ↦ (( I ↾ (dom 𝑥 ∪ ran 𝑥)) ∪ 𝑥))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384  wal 1478   = wceq 1480  wcel 1992  {cab 2612  {crab 2916  Vcvv 3191  cun 3558  cin 3559  wss 3560   cint 4445  cmpt 4678   I cid 4989  dom cdm 5079  ran crn 5080  cres 5081  r*crcl 37431
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-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-ral 2917  df-rex 2918  df-rab 2921  df-v 3193  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-int 4446  df-br 4619  df-opab 4679  df-mpt 4680  df-id 4994  df-xp 5085  df-rel 5086  df-cnv 5087  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-rcl 37432
This theorem is referenced by:  dfrcl3  37434
  Copyright terms: Public domain W3C validator