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 38227
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 38228. (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 5445 . . 3 ( I ↾ (dom 𝐴 ∪ ran 𝐴)) = (( I ↾ dom 𝐴) ∪ ( I ↾ ran 𝐴))
21sseq1i 3662 . 2 (( I ↾ (dom 𝐴 ∪ ran 𝐴)) ⊆ 𝐵 ↔ (( I ↾ dom 𝐴) ∪ ( I ↾ ran 𝐴)) ⊆ 𝐵)
3 unss 3820 . 2 ((( I ↾ dom 𝐴) ⊆ 𝐵 ∧ ( I ↾ ran 𝐴) ⊆ 𝐵) ↔ (( I ↾ dom 𝐴) ∪ ( I ↾ ran 𝐴)) ⊆ 𝐵)
4 relres 5461 . . . . . 6 Rel ( I ↾ dom 𝐴)
5 ssrel 5241 . . . . . 6 (Rel ( I ↾ dom 𝐴) → (( I ↾ dom 𝐴) ⊆ 𝐵 ↔ ∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) → ⟨𝑥, 𝑧⟩ ∈ 𝐵)))
64, 5ax-mp 5 . . . . 5 (( I ↾ dom 𝐴) ⊆ 𝐵 ↔ ∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) → ⟨𝑥, 𝑧⟩ ∈ 𝐵))
7 df-br 4686 . . . . . . . . . 10 (𝑥 I 𝑧 ↔ ⟨𝑥, 𝑧⟩ ∈ I )
8 vex 3234 . . . . . . . . . . 11 𝑧 ∈ V
98ideq 5307 . . . . . . . . . 10 (𝑥 I 𝑧𝑥 = 𝑧)
107, 9bitr3i 266 . . . . . . . . 9 (⟨𝑥, 𝑧⟩ ∈ I ↔ 𝑥 = 𝑧)
11 vex 3234 . . . . . . . . . 10 𝑥 ∈ V
1211eldm 5353 . . . . . . . . 9 (𝑥 ∈ dom 𝐴 ↔ ∃𝑦 𝑥𝐴𝑦)
1310, 12anbi12i 733 . . . . . . . 8 ((⟨𝑥, 𝑧⟩ ∈ I ∧ 𝑥 ∈ dom 𝐴) ↔ (𝑥 = 𝑧 ∧ ∃𝑦 𝑥𝐴𝑦))
148opelres 5436 . . . . . . . 8 (⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) ↔ (⟨𝑥, 𝑧⟩ ∈ I ∧ 𝑥 ∈ dom 𝐴))
15 19.42v 1921 . . . . . . . 8 (∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) ↔ (𝑥 = 𝑧 ∧ ∃𝑦 𝑥𝐴𝑦))
1613, 14, 153bitr4i 292 . . . . . . 7 (⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) ↔ ∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦))
17 df-br 4686 . . . . . . . 8 (𝑥𝐵𝑧 ↔ ⟨𝑥, 𝑧⟩ ∈ 𝐵)
1817bicomi 214 . . . . . . 7 (⟨𝑥, 𝑧⟩ ∈ 𝐵𝑥𝐵𝑧)
1916, 18imbi12i 339 . . . . . 6 ((⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) → ⟨𝑥, 𝑧⟩ ∈ 𝐵) ↔ (∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
20192albii 1788 . . . . 5 (∀𝑥𝑧(⟨𝑥, 𝑧⟩ ∈ ( I ↾ dom 𝐴) → ⟨𝑥, 𝑧⟩ ∈ 𝐵) ↔ ∀𝑥𝑧(∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
21 19.23v 1911 . . . . . . . 8 (∀𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ (∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
2221bicomi 214 . . . . . . 7 ((∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
23222albii 1788 . . . . . 6 (∀𝑥𝑧(∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑥𝑧𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
24 alcom 2077 . . . . . . . 8 (∀𝑧𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑦𝑧((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧))
25 ancomst 467 . . . . . . . . . . . 12 (((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ((𝑥𝐴𝑦𝑥 = 𝑧) → 𝑥𝐵𝑧))
26 impexp 461 . . . . . . . . . . . 12 (((𝑥𝐴𝑦𝑥 = 𝑧) → 𝑥𝐵𝑧) ↔ (𝑥𝐴𝑦 → (𝑥 = 𝑧𝑥𝐵𝑧)))
2725, 26bitri 264 . . . . . . . . . . 11 (((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ (𝑥𝐴𝑦 → (𝑥 = 𝑧𝑥𝐵𝑧)))
2827albii 1787 . . . . . . . . . 10 (∀𝑧((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑧(𝑥𝐴𝑦 → (𝑥 = 𝑧𝑥𝐵𝑧)))
29 19.21v 1908 . . . . . . . . . 10 (∀𝑧(𝑥𝐴𝑦 → (𝑥 = 𝑧𝑥𝐵𝑧)) ↔ (𝑥𝐴𝑦 → ∀𝑧(𝑥 = 𝑧𝑥𝐵𝑧)))
30 equcom 1991 . . . . . . . . . . . . . 14 (𝑥 = 𝑧𝑧 = 𝑥)
3130imbi1i 338 . . . . . . . . . . . . 13 ((𝑥 = 𝑧𝑥𝐵𝑧) ↔ (𝑧 = 𝑥𝑥𝐵𝑧))
3231albii 1787 . . . . . . . . . . . 12 (∀𝑧(𝑥 = 𝑧𝑥𝐵𝑧) ↔ ∀𝑧(𝑧 = 𝑥𝑥𝐵𝑧))
33 breq2 4689 . . . . . . . . . . . . 13 (𝑧 = 𝑥 → (𝑥𝐵𝑧𝑥𝐵𝑥))
3433equsalvw 1977 . . . . . . . . . . . 12 (∀𝑧(𝑧 = 𝑥𝑥𝐵𝑧) ↔ 𝑥𝐵𝑥)
3532, 34bitri 264 . . . . . . . . . . 11 (∀𝑧(𝑥 = 𝑧𝑥𝐵𝑧) ↔ 𝑥𝐵𝑥)
3635imbi2i 325 . . . . . . . . . 10 ((𝑥𝐴𝑦 → ∀𝑧(𝑥 = 𝑧𝑥𝐵𝑧)) ↔ (𝑥𝐴𝑦𝑥𝐵𝑥))
3728, 29, 363bitri 286 . . . . . . . . 9 (∀𝑧((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ (𝑥𝐴𝑦𝑥𝐵𝑥))
3837albii 1787 . . . . . . . 8 (∀𝑦𝑧((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
3924, 38bitri 264 . . . . . . 7 (∀𝑧𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
4039albii 1787 . . . . . 6 (∀𝑥𝑧𝑦((𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
4123, 40bitri 264 . . . . 5 (∀𝑥𝑧(∃𝑦(𝑥 = 𝑧𝑥𝐴𝑦) → 𝑥𝐵𝑧) ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
426, 20, 413bitri 286 . . . 4 (( I ↾ dom 𝐴) ⊆ 𝐵 ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥))
43 relres 5461 . . . . . 6 Rel ( I ↾ ran 𝐴)
44 ssrel 5241 . . . . . 6 (Rel ( I ↾ ran 𝐴) → (( I ↾ ran 𝐴) ⊆ 𝐵 ↔ ∀𝑦𝑧(⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) → ⟨𝑦, 𝑧⟩ ∈ 𝐵)))
4543, 44ax-mp 5 . . . . 5 (( I ↾ ran 𝐴) ⊆ 𝐵 ↔ ∀𝑦𝑧(⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) → ⟨𝑦, 𝑧⟩ ∈ 𝐵))
46 df-br 4686 . . . . . . . . . 10 (𝑦 I 𝑧 ↔ ⟨𝑦, 𝑧⟩ ∈ I )
478ideq 5307 . . . . . . . . . 10 (𝑦 I 𝑧𝑦 = 𝑧)
4846, 47bitr3i 266 . . . . . . . . 9 (⟨𝑦, 𝑧⟩ ∈ I ↔ 𝑦 = 𝑧)
49 vex 3234 . . . . . . . . . 10 𝑦 ∈ V
5049elrn 5398 . . . . . . . . 9 (𝑦 ∈ ran 𝐴 ↔ ∃𝑥 𝑥𝐴𝑦)
5148, 50anbi12i 733 . . . . . . . 8 ((⟨𝑦, 𝑧⟩ ∈ I ∧ 𝑦 ∈ ran 𝐴) ↔ (𝑦 = 𝑧 ∧ ∃𝑥 𝑥𝐴𝑦))
528opelres 5436 . . . . . . . 8 (⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) ↔ (⟨𝑦, 𝑧⟩ ∈ I ∧ 𝑦 ∈ ran 𝐴))
53 19.42v 1921 . . . . . . . 8 (∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) ↔ (𝑦 = 𝑧 ∧ ∃𝑥 𝑥𝐴𝑦))
5451, 52, 533bitr4i 292 . . . . . . 7 (⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) ↔ ∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦))
55 df-br 4686 . . . . . . . 8 (𝑦𝐵𝑧 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐵)
5655bicomi 214 . . . . . . 7 (⟨𝑦, 𝑧⟩ ∈ 𝐵𝑦𝐵𝑧)
5754, 56imbi12i 339 . . . . . 6 ((⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) → ⟨𝑦, 𝑧⟩ ∈ 𝐵) ↔ (∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
58572albii 1788 . . . . 5 (∀𝑦𝑧(⟨𝑦, 𝑧⟩ ∈ ( I ↾ ran 𝐴) → ⟨𝑦, 𝑧⟩ ∈ 𝐵) ↔ ∀𝑦𝑧(∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
59 19.23v 1911 . . . . . . . 8 (∀𝑥((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ (∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
6059bicomi 214 . . . . . . 7 ((∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑥((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
61602albii 1788 . . . . . 6 (∀𝑦𝑧(∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑦𝑧𝑥((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
62 alrot3 2078 . . . . . 6 (∀𝑥𝑦𝑧((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑦𝑧𝑥((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧))
63 ancomst 467 . . . . . . . . . 10 (((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ((𝑥𝐴𝑦𝑦 = 𝑧) → 𝑦𝐵𝑧))
64 impexp 461 . . . . . . . . . 10 (((𝑥𝐴𝑦𝑦 = 𝑧) → 𝑦𝐵𝑧) ↔ (𝑥𝐴𝑦 → (𝑦 = 𝑧𝑦𝐵𝑧)))
6563, 64bitri 264 . . . . . . . . 9 (((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ (𝑥𝐴𝑦 → (𝑦 = 𝑧𝑦𝐵𝑧)))
6665albii 1787 . . . . . . . 8 (∀𝑧((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑧(𝑥𝐴𝑦 → (𝑦 = 𝑧𝑦𝐵𝑧)))
67 19.21v 1908 . . . . . . . 8 (∀𝑧(𝑥𝐴𝑦 → (𝑦 = 𝑧𝑦𝐵𝑧)) ↔ (𝑥𝐴𝑦 → ∀𝑧(𝑦 = 𝑧𝑦𝐵𝑧)))
68 equcom 1991 . . . . . . . . . . . 12 (𝑦 = 𝑧𝑧 = 𝑦)
6968imbi1i 338 . . . . . . . . . . 11 ((𝑦 = 𝑧𝑦𝐵𝑧) ↔ (𝑧 = 𝑦𝑦𝐵𝑧))
7069albii 1787 . . . . . . . . . 10 (∀𝑧(𝑦 = 𝑧𝑦𝐵𝑧) ↔ ∀𝑧(𝑧 = 𝑦𝑦𝐵𝑧))
71 breq2 4689 . . . . . . . . . . 11 (𝑧 = 𝑦 → (𝑦𝐵𝑧𝑦𝐵𝑦))
7271equsalvw 1977 . . . . . . . . . 10 (∀𝑧(𝑧 = 𝑦𝑦𝐵𝑧) ↔ 𝑦𝐵𝑦)
7370, 72bitri 264 . . . . . . . . 9 (∀𝑧(𝑦 = 𝑧𝑦𝐵𝑧) ↔ 𝑦𝐵𝑦)
7473imbi2i 325 . . . . . . . 8 ((𝑥𝐴𝑦 → ∀𝑧(𝑦 = 𝑧𝑦𝐵𝑧)) ↔ (𝑥𝐴𝑦𝑦𝐵𝑦))
7566, 67, 743bitri 286 . . . . . . 7 (∀𝑧((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ (𝑥𝐴𝑦𝑦𝐵𝑦))
76752albii 1788 . . . . . 6 (∀𝑥𝑦𝑧((𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦))
7761, 62, 763bitr2i 288 . . . . 5 (∀𝑦𝑧(∃𝑥(𝑦 = 𝑧𝑥𝐴𝑦) → 𝑦𝐵𝑧) ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦))
7845, 58, 773bitri 286 . . . 4 (( I ↾ ran 𝐴) ⊆ 𝐵 ↔ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦))
7942, 78anbi12i 733 . . 3 ((( I ↾ dom 𝐴) ⊆ 𝐵 ∧ ( I ↾ ran 𝐴) ⊆ 𝐵) ↔ (∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥) ∧ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦)))
80 19.26-2 1839 . . 3 (∀𝑥𝑦((𝑥𝐴𝑦𝑥𝐵𝑥) ∧ (𝑥𝐴𝑦𝑦𝐵𝑦)) ↔ (∀𝑥𝑦(𝑥𝐴𝑦𝑥𝐵𝑥) ∧ ∀𝑥𝑦(𝑥𝐴𝑦𝑦𝐵𝑦)))
81 pm4.76 928 . . . 4 (((𝑥𝐴𝑦𝑥𝐵𝑥) ∧ (𝑥𝐴𝑦𝑦𝐵𝑦)) ↔ (𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
82812albii 1788 . . 3 (∀𝑥𝑦((𝑥𝐴𝑦𝑥𝐵𝑥) ∧ (𝑥𝐴𝑦𝑦𝐵𝑦)) ↔ ∀𝑥𝑦(𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
8379, 80, 823bitr2i 288 . 2 ((( I ↾ dom 𝐴) ⊆ 𝐵 ∧ ( I ↾ ran 𝐴) ⊆ 𝐵) ↔ ∀𝑥𝑦(𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
842, 3, 833bitr2i 288 1 (( I ↾ (dom 𝐴 ∪ ran 𝐴)) ⊆ 𝐵 ↔ ∀𝑥𝑦(𝑥𝐴𝑦 → (𝑥𝐵𝑥𝑦𝐵𝑦)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 383  wal 1521  wex 1744  wcel 2030  cun 3605  wss 3607  cop 4216   class class class wbr 4685   I cid 5052  dom cdm 5143  ran crn 5144  cres 5145  Rel wrel 5148
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-sep 4814  ax-nul 4822  ax-pr 4936
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ral 2946  df-rex 2947  df-rab 2950  df-v 3233  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-nul 3949  df-if 4120  df-sn 4211  df-pr 4213  df-op 4217  df-br 4686  df-opab 4746  df-id 5053  df-xp 5149  df-rel 5150  df-cnv 5151  df-dm 5153  df-rn 5154  df-res 5155
This theorem is referenced by:  reflexg  38228
  Copyright terms: Public domain W3C validator