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

Theorem undmrnresiss 41212
Description: Two ways of saying the identity relation restricted to the union of the domain and range of a relation is a subset of a relation. Generalization of reflexg 41213. (Contributed by RP, 26-Sep-2020.)
Assertion
Ref Expression
undmrnresiss (( I ↾ (dom 𝐴 ∪ ran 𝐴)) ⊆ 𝐵 ↔ ∀𝑥𝑦(𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑥,𝐵,𝑦

Proof of Theorem undmrnresiss
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 resundi 5905 . . 3 ( I ↾ (dom 𝐴 ∪ ran 𝐴)) = (( I ↾ dom 𝐴) ∪ ( I ↾ ran 𝐴))
21sseq1i 3949 . 2 (( I ↾ (dom 𝐴 ∪ ran 𝐴)) ⊆ 𝐵 ↔ (( I ↾ dom 𝐴) ∪ ( I ↾ ran 𝐴)) ⊆ 𝐵)
3 unss 4118 . 2 ((( I ↾ dom 𝐴) ⊆ 𝐵 ∧ ( I ↾ ran 𝐴) ⊆ 𝐵) ↔ (( I ↾ dom 𝐴) ∪ ( I ↾ ran 𝐴)) ⊆ 𝐵)
4 relres 5920 . . . . . 6 Rel ( I ↾ dom 𝐴)
5 ssrel 5693 . . . . . 6 (Rel ( I ↾ dom 𝐴) → (( I ↾ dom 𝐴) ⊆ 𝐵 ↔ ∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) → ⟨𝑥, 𝑧⟩ ∈ 𝐵)))
64, 5ax-mp 5 . . . . 5 (( I ↾ dom 𝐴) ⊆ 𝐵 ↔ ∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) → ⟨𝑥, 𝑧⟩ ∈ 𝐵))
7 vex 3436 . . . . . . . . . 10 𝑥 ∈ V
87eldm 5809 . . . . . . . . 9 (𝑥 ∈ dom 𝐴 ↔ ∃𝑦 𝑥𝐴𝑦)
9 df-br 5075 . . . . . . . . . 10 (𝑥 I 𝑧 ↔ ⟨𝑥, 𝑧⟩ ∈ I )
10 vex 3436 . . . . . . . . . . 11 𝑧 ∈ V
1110ideq 5761 . . . . . . . . . 10 (𝑥 I 𝑧𝑥 = 𝑧)
129, 11bitr3i 276 . . . . . . . . 9 (⟨𝑥, 𝑧⟩ ∈ I ↔ 𝑥 = 𝑧)
138, 12anbi12ci 628 . . . . . . . 8 ((𝑥 ∈ dom 𝐴 ∧ ⟨𝑥, 𝑧⟩ ∈ I ) ↔ (𝑥 = 𝑧 ∧ ∃𝑦 𝑥𝐴𝑦))
1410opelresi 5899 . . . . . . . 8 (⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) ↔ (𝑥 ∈ dom 𝐴 ∧ ⟨𝑥, 𝑧⟩ ∈ I ))
15 19.42v 1957 . . . . . . . 8 (∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) ↔ (𝑥 = 𝑧 ∧ ∃𝑦 𝑥𝐴𝑦))
1613, 14, 153bitr4i 303 . . . . . . 7 (⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) ↔ ∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦))
17 df-br 5075 . . . . . . . 8 (𝑥𝐵𝑧 ↔ ⟨𝑥, 𝑧⟩ ∈ 𝐵)
1817bicomi 223 . . . . . . 7 (⟨𝑥, 𝑧⟩ ∈ 𝐵𝑥𝐵𝑧)
1916, 18imbi12i 351 . . . . . 6 ((⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) → ⟨𝑥, 𝑧⟩ ∈ 𝐵) ↔ (∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
20192albii 1823 . . . . 5 (∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) → ⟨𝑥, 𝑧⟩ ∈ 𝐵) ↔ ∀𝑥𝑧(∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
21 19.23v 1945 . . . . . . . 8 (∀𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ (∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
2221bicomi 223 . . . . . . 7 ((∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
23222albii 1823 . . . . . 6 (∀𝑥𝑧(∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑥𝑧𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
24 alcom 2156 . . . . . . . 8 (∀𝑧𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑦𝑧((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
25 ancomst 465 . . . . . . . . . . . 12 (((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ((𝑥𝐴𝑦𝑥 = 𝑧) → 𝑥𝐵𝑧))
26 impexp 451 . . . . . . . . . . . 12 (((𝑥𝐴𝑦𝑥 = 𝑧) → 𝑥𝐵𝑧) ↔ (𝑥𝐴𝑦 → (𝑥 = 𝑧𝑥𝐵𝑧)))
2725, 26bitri 274 . . . . . . . . . . 11 (((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ (𝑥𝐴𝑦 → (𝑥 = 𝑧𝑥𝐵𝑧)))
2827albii 1822 . . . . . . . . . 10 (∀𝑧((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑧(𝑥𝐴𝑦 → (𝑥 = 𝑧𝑥𝐵𝑧)))
29 19.21v 1942 . . . . . . . . . 10 (∀𝑧(𝑥𝐴𝑦 → (𝑥 = 𝑧𝑥𝐵𝑧)) ↔ (𝑥𝐴𝑦 → ∀𝑧(𝑥 = 𝑧𝑥𝐵𝑧)))
30 equcom 2021 . . . . . . . . . . . . . 14 (𝑥 = 𝑧𝑧 = 𝑥)
3130imbi1i 350 . . . . . . . . . . . . 13 ((𝑥 = 𝑧𝑥𝐵𝑧) ↔ (𝑧 = 𝑥𝑥𝐵𝑧))
3231albii 1822 . . . . . . . . . . . 12 (∀𝑧(𝑥 = 𝑧𝑥𝐵𝑧) ↔ ∀𝑧(𝑧 = 𝑥𝑥𝐵𝑧))
33 breq2 5078 . . . . . . . . . . . . 13 (𝑧 = 𝑥 → (𝑥𝐵𝑧𝑥𝐵𝑥))
3433equsalvw 2007 . . . . . . . . . . . 12 (∀𝑧(𝑧 = 𝑥𝑥𝐵𝑧) ↔ 𝑥𝐵𝑥)
3532, 34bitri 274 . . . . . . . . . . 11 (∀𝑧(𝑥 = 𝑧𝑥𝐵𝑧) ↔ 𝑥𝐵𝑥)
3635imbi2i 336 . . . . . . . . . 10 ((𝑥𝐴𝑦 → ∀𝑧(𝑥 = 𝑧𝑥𝐵𝑧)) ↔ (𝑥𝐴𝑦𝑥𝐵𝑥))
3728, 29, 363bitri 297 . . . . . . . . 9 (∀𝑧((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ (𝑥𝐴𝑦𝑥𝐵𝑥))
3837albii 1822 . . . . . . . 8 (∀𝑦𝑧((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
3924, 38bitri 274 . . . . . . 7 (∀𝑧𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
4039albii 1822 . . . . . 6 (∀𝑥𝑧𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
4123, 40bitri 274 . . . . 5 (∀𝑥𝑧(∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
426, 20, 413bitri 297 . . . 4 (( I ↾ dom 𝐴) ⊆ 𝐵 ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
43 relres 5920 . . . . . 6 Rel ( I ↾ ran 𝐴)
44 ssrel 5693 . . . . . 6 (Rel ( I ↾ ran 𝐴) → (( I ↾ ran 𝐴) ⊆ 𝐵 ↔ ∀𝑦𝑧(⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) → ⟨𝑦, 𝑧⟩ ∈ 𝐵)))
4543, 44ax-mp 5 . . . . 5 (( I ↾ ran 𝐴) ⊆ 𝐵 ↔ ∀𝑦𝑧(⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) → ⟨𝑦, 𝑧⟩ ∈ 𝐵))
46 vex 3436 . . . . . . . . . 10 𝑦 ∈ V
4746elrn 5802 . . . . . . . . 9 (𝑦 ∈ ran 𝐴 ↔ ∃𝑥 𝑥𝐴𝑦)
48 df-br 5075 . . . . . . . . . 10 (𝑦 I 𝑧 ↔ ⟨𝑦, 𝑧⟩ ∈ I )
4910ideq 5761 . . . . . . . . . 10 (𝑦 I 𝑧𝑦 = 𝑧)
5048, 49bitr3i 276 . . . . . . . . 9 (⟨𝑦, 𝑧⟩ ∈ I ↔ 𝑦 = 𝑧)
5147, 50anbi12ci 628 . . . . . . . 8 ((𝑦 ∈ ran 𝐴 ∧ ⟨𝑦, 𝑧⟩ ∈ I ) ↔ (𝑦 = 𝑧 ∧ ∃𝑥 𝑥𝐴𝑦))
5210opelresi 5899 . . . . . . . 8 (⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) ↔ (𝑦 ∈ ran 𝐴 ∧ ⟨𝑦, 𝑧⟩ ∈ I ))
53 19.42v 1957 . . . . . . . 8 (∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) ↔ (𝑦 = 𝑧 ∧ ∃𝑥 𝑥𝐴𝑦))
5451, 52, 533bitr4i 303 . . . . . . 7 (⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) ↔ ∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦))
55 df-br 5075 . . . . . . . 8 (𝑦𝐵𝑧 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐵)
5655bicomi 223 . . . . . . 7 (⟨𝑦, 𝑧⟩ ∈ 𝐵𝑦𝐵𝑧)
5754, 56imbi12i 351 . . . . . 6 ((⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) → ⟨𝑦, 𝑧⟩ ∈ 𝐵) ↔ (∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
58572albii 1823 . . . . 5 (∀𝑦𝑧(⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) → ⟨𝑦, 𝑧⟩ ∈ 𝐵) ↔ ∀𝑦𝑧(∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
59 19.23v 1945 . . . . . . . 8 (∀𝑥((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ (∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
6059bicomi 223 . . . . . . 7 ((∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑥((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
61602albii 1823 . . . . . 6 (∀𝑦𝑧(∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑦𝑧𝑥((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
62 alrot3 2157 . . . . . 6 (∀𝑥𝑦𝑧((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑦𝑧𝑥((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
63 ancomst 465 . . . . . . . . . 10 (((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ((𝑥𝐴𝑦𝑦 = 𝑧) → 𝑦𝐵𝑧))
64 impexp 451 . . . . . . . . . 10 (((𝑥𝐴𝑦𝑦 = 𝑧) → 𝑦𝐵𝑧) ↔ (𝑥𝐴𝑦 → (𝑦 = 𝑧𝑦𝐵𝑧)))
6563, 64bitri 274 . . . . . . . . 9 (((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ (𝑥𝐴𝑦 → (𝑦 = 𝑧𝑦𝐵𝑧)))
6665albii 1822 . . . . . . . 8 (∀𝑧((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑧(𝑥𝐴𝑦 → (𝑦 = 𝑧𝑦𝐵𝑧)))
67 19.21v 1942 . . . . . . . 8 (∀𝑧(𝑥𝐴𝑦 → (𝑦 = 𝑧𝑦𝐵𝑧)) ↔ (𝑥𝐴𝑦 → ∀𝑧(𝑦 = 𝑧𝑦𝐵𝑧)))
68 equcom 2021 . . . . . . . . . . . 12 (𝑦 = 𝑧𝑧 = 𝑦)
6968imbi1i 350 . . . . . . . . . . 11 ((𝑦 = 𝑧𝑦𝐵𝑧) ↔ (𝑧 = 𝑦𝑦𝐵𝑧))
7069albii 1822 . . . . . . . . . 10 (∀𝑧(𝑦 = 𝑧𝑦𝐵𝑧) ↔ ∀𝑧(𝑧 = 𝑦𝑦𝐵𝑧))
71 breq2 5078 . . . . . . . . . . 11 (𝑧 = 𝑦 → (𝑦𝐵𝑧𝑦𝐵𝑦))
7271equsalvw 2007 . . . . . . . . . 10 (∀𝑧(𝑧 = 𝑦𝑦𝐵𝑧) ↔ 𝑦𝐵𝑦)
7370, 72bitri 274 . . . . . . . . 9 (∀𝑧(𝑦 = 𝑧𝑦𝐵𝑧) ↔ 𝑦𝐵𝑦)
7473imbi2i 336 . . . . . . . 8 ((𝑥𝐴𝑦 → ∀𝑧(𝑦 = 𝑧𝑦𝐵𝑧)) ↔ (𝑥𝐴𝑦𝑦𝐵𝑦))
7566, 67, 743bitri 297 . . . . . . 7 (∀𝑧((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ (𝑥𝐴𝑦𝑦𝐵𝑦))
76752albii 1823 . . . . . 6 (∀𝑥𝑦𝑧((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦))
7761, 62, 763bitr2i 299 . . . . 5 (∀𝑦𝑧(∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦))
7845, 58, 773bitri 297 . . . 4 (( I ↾ ran 𝐴) ⊆ 𝐵 ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦))
7942, 78anbi12i 627 . . 3 ((( I ↾ dom 𝐴) ⊆ 𝐵 ∧ ( I ↾ ran 𝐴) ⊆ 𝐵) ↔ (∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥) ∧ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦)))
80 19.26-2 1874 . . 3 (∀𝑥𝑦((𝑥𝐴𝑦𝑥𝐵𝑥) ∧ (𝑥𝐴𝑦𝑦𝐵𝑦)) ↔ (∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥) ∧ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦)))
81 pm4.76 519 . . . 4 (((𝑥𝐴𝑦𝑥𝐵𝑥) ∧ (𝑥𝐴𝑦𝑦𝐵𝑦)) ↔ (𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
82812albii 1823 . . 3 (∀𝑥𝑦((𝑥𝐴𝑦𝑥𝐵𝑥) ∧ (𝑥𝐴𝑦𝑦𝐵𝑦)) ↔ ∀𝑥𝑦(𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
8379, 80, 823bitr2i 299 . 2 ((( I ↾ dom 𝐴) ⊆ 𝐵 ∧ ( I ↾ ran 𝐴) ⊆ 𝐵) ↔ ∀𝑥𝑦(𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
842, 3, 833bitr2i 299 1 (( I ↾ (dom 𝐴 ∪ ran 𝐴)) ⊆ 𝐵 ↔ ∀𝑥𝑦(𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wal 1537  wex 1782  wcel 2106  cun 3885  wss 3887  cop 4567   class class class wbr 5074   I cid 5488  dom cdm 5589  ran crn 5590  cres 5591  Rel wrel 5594
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-11 2154  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
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-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  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-sn 4562  df-pr 4564  df-op 4568  df-br 5075  df-opab 5137  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-dm 5599  df-rn 5600  df-res 5601
This theorem is referenced by:  reflexg  41213
  Copyright terms: Public domain W3C validator