ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  relcoi1 GIF version

Theorem relcoi1 5135
Description: Composition with the identity relation restricted to a relation's field. (Contributed by FL, 8-May-2011.)
Assertion
Ref Expression
relcoi1 (Rel 𝑅 → (𝑅 ∘ ( I ↾ 𝑅)) = 𝑅)

Proof of Theorem relcoi1
StepHypRef Expression
1 relfld 5132 . . 3 (Rel 𝑅 𝑅 = (dom 𝑅 ∪ ran 𝑅))
2 resundi 4897 . . . . 5 ( I ↾ (dom 𝑅 ∪ ran 𝑅)) = (( I ↾ dom 𝑅) ∪ ( I ↾ ran 𝑅))
3 coeq2 4762 . . . . 5 (( I ↾ (dom 𝑅 ∪ ran 𝑅)) = (( I ↾ dom 𝑅) ∪ ( I ↾ ran 𝑅)) → (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ∘ (( I ↾ dom 𝑅) ∪ ( I ↾ ran 𝑅))))
4 coundi 5105 . . . . . . 7 (𝑅 ∘ (( I ↾ dom 𝑅) ∪ ( I ↾ ran 𝑅))) = ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅)))
5 resco 5108 . . . . . . . 8 ((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅))
6 coi1 5119 . . . . . . . . 9 (Rel 𝑅 → (𝑅 ∘ I ) = 𝑅)
7 reseq1 4878 . . . . . . . . . 10 ((𝑅 ∘ I ) = 𝑅 → ((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ↾ dom 𝑅))
8 resdm 4923 . . . . . . . . . . 11 (Rel 𝑅 → (𝑅 ↾ dom 𝑅) = 𝑅)
9 eqtr 2183 . . . . . . . . . . . . . 14 ((((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ↾ dom 𝑅) ∧ (𝑅 ↾ dom 𝑅) = 𝑅) → ((𝑅 ∘ I ) ↾ dom 𝑅) = 𝑅)
10 eqtr 2183 . . . . . . . . . . . . . . . . . 18 (((𝑅 ∘ ( I ↾ dom 𝑅)) = ((𝑅 ∘ I ) ↾ dom 𝑅) ∧ ((𝑅 ∘ I ) ↾ dom 𝑅) = 𝑅) → (𝑅 ∘ ( I ↾ dom 𝑅)) = 𝑅)
11 resco 5108 . . . . . . . . . . . . . . . . . . 19 ((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ∘ ( I ↾ ran 𝑅))
12 uneq1 3269 . . . . . . . . . . . . . . . . . . 19 ((𝑅 ∘ ( I ↾ dom 𝑅)) = 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))))
13 reseq1 4878 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑅 ∘ I ) = 𝑅 → ((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ↾ ran 𝑅))
14 eqtr 2183 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑅 ∘ ( I ↾ ran 𝑅)) = ((𝑅 ∘ I ) ↾ ran 𝑅) ∧ ((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ↾ ran 𝑅)) → (𝑅 ∘ ( I ↾ ran 𝑅)) = (𝑅 ↾ ran 𝑅))
1514uneq2d 3276 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑅 ∘ ( I ↾ ran 𝑅)) = ((𝑅 ∘ I ) ↾ ran 𝑅) ∧ ((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ↾ ran 𝑅)) → (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ↾ ran 𝑅)))
16 eqtr 2183 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) ∧ (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ↾ ran 𝑅)))
17 resss 4908 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑅 ↾ ran 𝑅) ⊆ 𝑅
18 ssequn2 3295 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑅 ↾ ran 𝑅) ⊆ 𝑅 ↔ (𝑅 ∪ (𝑅 ↾ ran 𝑅)) = 𝑅)
1917, 18mpbi 144 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑅 ∪ (𝑅 ↾ ran 𝑅)) = 𝑅
2019, 6eqtr4id 2218 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (Rel 𝑅 → (𝑅 ∪ (𝑅 ↾ ran 𝑅)) = (𝑅 ∘ I ))
21 eqeq1 2172 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ↾ ran 𝑅)) → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ) ↔ (𝑅 ∪ (𝑅 ↾ ran 𝑅)) = (𝑅 ∘ I )))
2220, 21syl5ibr 155 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ↾ ran 𝑅)) → (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))
2316, 22syl 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) ∧ (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ↾ ran 𝑅))) → (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))
2423ex 114 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → ((𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ↾ ran 𝑅)) → (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
2524com3l 81 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ↾ ran 𝑅)) → (Rel 𝑅 → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
2615, 25syl 14 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑅 ∘ ( I ↾ ran 𝑅)) = ((𝑅 ∘ I ) ↾ ran 𝑅) ∧ ((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ↾ ran 𝑅)) → (Rel 𝑅 → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
2726ex 114 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑅 ∘ ( I ↾ ran 𝑅)) = ((𝑅 ∘ I ) ↾ ran 𝑅) → (((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ↾ ran 𝑅) → (Rel 𝑅 → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))))
2827eqcoms 2168 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ∘ ( I ↾ ran 𝑅)) → (((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ↾ ran 𝑅) → (Rel 𝑅 → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))))
2928com3l 81 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ↾ ran 𝑅) → (Rel 𝑅 → (((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ∘ ( I ↾ ran 𝑅)) → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))))
3013, 29syl 14 . . . . . . . . . . . . . . . . . . . . 21 ((𝑅 ∘ I ) = 𝑅 → (Rel 𝑅 → (((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ∘ ( I ↾ ran 𝑅)) → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))))
316, 30mpcom 36 . . . . . . . . . . . . . . . . . . . 20 (Rel 𝑅 → (((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ∘ ( I ↾ ran 𝑅)) → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
3231com3l 81 . . . . . . . . . . . . . . . . . . 19 (((𝑅 ∘ I ) ↾ ran 𝑅) = (𝑅 ∘ ( I ↾ ran 𝑅)) → (((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) → (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
3311, 12, 32mpsyl 65 . . . . . . . . . . . . . . . . . 18 ((𝑅 ∘ ( I ↾ dom 𝑅)) = 𝑅 → (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))
3410, 33syl 14 . . . . . . . . . . . . . . . . 17 (((𝑅 ∘ ( I ↾ dom 𝑅)) = ((𝑅 ∘ I ) ↾ dom 𝑅) ∧ ((𝑅 ∘ I ) ↾ dom 𝑅) = 𝑅) → (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))
3534ex 114 . . . . . . . . . . . . . . . 16 ((𝑅 ∘ ( I ↾ dom 𝑅)) = ((𝑅 ∘ I ) ↾ dom 𝑅) → (((𝑅 ∘ I ) ↾ dom 𝑅) = 𝑅 → (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
3635eqcoms 2168 . . . . . . . . . . . . . . 15 (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅)) → (((𝑅 ∘ I ) ↾ dom 𝑅) = 𝑅 → (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
3736com3l 81 . . . . . . . . . . . . . 14 (((𝑅 ∘ I ) ↾ dom 𝑅) = 𝑅 → (Rel 𝑅 → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅)) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
389, 37syl 14 . . . . . . . . . . . . 13 ((((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ↾ dom 𝑅) ∧ (𝑅 ↾ dom 𝑅) = 𝑅) → (Rel 𝑅 → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅)) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
3938ex 114 . . . . . . . . . . . 12 (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ↾ dom 𝑅) → ((𝑅 ↾ dom 𝑅) = 𝑅 → (Rel 𝑅 → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅)) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))))
4039com3l 81 . . . . . . . . . . 11 ((𝑅 ↾ dom 𝑅) = 𝑅 → (Rel 𝑅 → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ↾ dom 𝑅) → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅)) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))))
418, 40mpcom 36 . . . . . . . . . 10 (Rel 𝑅 → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ↾ dom 𝑅) → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅)) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
427, 41syl5com 29 . . . . . . . . 9 ((𝑅 ∘ I ) = 𝑅 → (Rel 𝑅 → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅)) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))))
436, 42mpcom 36 . . . . . . . 8 (Rel 𝑅 → (((𝑅 ∘ I ) ↾ dom 𝑅) = (𝑅 ∘ ( I ↾ dom 𝑅)) → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))
445, 43mpi 15 . . . . . . 7 (Rel 𝑅 → ((𝑅 ∘ ( I ↾ dom 𝑅)) ∪ (𝑅 ∘ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))
454, 44syl5eq 2211 . . . . . 6 (Rel 𝑅 → (𝑅 ∘ (( I ↾ dom 𝑅) ∪ ( I ↾ ran 𝑅))) = (𝑅 ∘ I ))
46 eqeq1 2172 . . . . . 6 ((𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ∘ (( I ↾ dom 𝑅) ∪ ( I ↾ ran 𝑅))) → ((𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ∘ I ) ↔ (𝑅 ∘ (( I ↾ dom 𝑅) ∪ ( I ↾ ran 𝑅))) = (𝑅 ∘ I )))
4745, 46syl5ibr 155 . . . . 5 ((𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ∘ (( I ↾ dom 𝑅) ∪ ( I ↾ ran 𝑅))) → (Rel 𝑅 → (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ∘ I )))
482, 3, 47mp2b 8 . . . 4 (Rel 𝑅 → (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ∘ I ))
49 reseq2 4879 . . . . . 6 ( 𝑅 = (dom 𝑅 ∪ ran 𝑅) → ( I ↾ 𝑅) = ( I ↾ (dom 𝑅 ∪ ran 𝑅)))
5049coeq2d 4766 . . . . 5 ( 𝑅 = (dom 𝑅 ∪ ran 𝑅) → (𝑅 ∘ ( I ↾ 𝑅)) = (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))))
5150eqeq1d 2174 . . . 4 ( 𝑅 = (dom 𝑅 ∪ ran 𝑅) → ((𝑅 ∘ ( I ↾ 𝑅)) = (𝑅 ∘ I ) ↔ (𝑅 ∘ ( I ↾ (dom 𝑅 ∪ ran 𝑅))) = (𝑅 ∘ I )))
5248, 51syl5ibr 155 . . 3 ( 𝑅 = (dom 𝑅 ∪ ran 𝑅) → (Rel 𝑅 → (𝑅 ∘ ( I ↾ 𝑅)) = (𝑅 ∘ I )))
531, 52mpcom 36 . 2 (Rel 𝑅 → (𝑅 ∘ ( I ↾ 𝑅)) = (𝑅 ∘ I ))
5453, 6eqtrd 2198 1 (Rel 𝑅 → (𝑅 ∘ ( I ↾ 𝑅)) = 𝑅)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103   = wceq 1343  cun 3114  wss 3116   cuni 3789   I cid 4266  dom cdm 4604  ran crn 4605  cres 4606  ccom 4608  Rel wrel 4609
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-pow 4153  ax-pr 4187
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rex 2450  df-v 2728  df-un 3120  df-in 3122  df-ss 3129  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-br 3983  df-opab 4044  df-id 4271  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator