Proof of Theorem prel12g
Step | Hyp | Ref
| Expression |
1 | | preq12nebg 4793 |
. 2
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
2 | | prid1g 4696 |
. . . . . . . . 9
⊢ (𝐴 ∈ 𝑉 → 𝐴 ∈ {𝐴, 𝐷}) |
3 | 2 | 3ad2ant1 1132 |
. . . . . . . 8
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → 𝐴 ∈ {𝐴, 𝐷}) |
4 | 3 | adantr 481 |
. . . . . . 7
⊢ (((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐴, 𝐷}) |
5 | | preq1 4669 |
. . . . . . . 8
⊢ (𝐴 = 𝐶 → {𝐴, 𝐷} = {𝐶, 𝐷}) |
6 | 5 | adantl 482 |
. . . . . . 7
⊢ (((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) ∧ 𝐴 = 𝐶) → {𝐴, 𝐷} = {𝐶, 𝐷}) |
7 | 4, 6 | eleqtrd 2841 |
. . . . . 6
⊢ (((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) ∧ 𝐴 = 𝐶) → 𝐴 ∈ {𝐶, 𝐷}) |
8 | 7 | ex 413 |
. . . . 5
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (𝐴 = 𝐶 → 𝐴 ∈ {𝐶, 𝐷})) |
9 | | prid2g 4697 |
. . . . . . 7
⊢ (𝐵 ∈ 𝑊 → 𝐵 ∈ {𝐶, 𝐵}) |
10 | 9 | 3ad2ant2 1133 |
. . . . . 6
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → 𝐵 ∈ {𝐶, 𝐵}) |
11 | | preq2 4670 |
. . . . . . 7
⊢ (𝐵 = 𝐷 → {𝐶, 𝐵} = {𝐶, 𝐷}) |
12 | 11 | eleq2d 2824 |
. . . . . 6
⊢ (𝐵 = 𝐷 → (𝐵 ∈ {𝐶, 𝐵} ↔ 𝐵 ∈ {𝐶, 𝐷})) |
13 | 10, 12 | syl5ibcom 244 |
. . . . 5
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (𝐵 = 𝐷 → 𝐵 ∈ {𝐶, 𝐷})) |
14 | 8, 13 | anim12d 609 |
. . . 4
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}))) |
15 | | prid2g 4697 |
. . . . . . 7
⊢ (𝐴 ∈ 𝑉 → 𝐴 ∈ {𝐶, 𝐴}) |
16 | 15 | 3ad2ant1 1132 |
. . . . . 6
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → 𝐴 ∈ {𝐶, 𝐴}) |
17 | | preq2 4670 |
. . . . . . 7
⊢ (𝐴 = 𝐷 → {𝐶, 𝐴} = {𝐶, 𝐷}) |
18 | 17 | eleq2d 2824 |
. . . . . 6
⊢ (𝐴 = 𝐷 → (𝐴 ∈ {𝐶, 𝐴} ↔ 𝐴 ∈ {𝐶, 𝐷})) |
19 | 16, 18 | syl5ibcom 244 |
. . . . 5
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (𝐴 = 𝐷 → 𝐴 ∈ {𝐶, 𝐷})) |
20 | | prid1g 4696 |
. . . . . . 7
⊢ (𝐵 ∈ 𝑊 → 𝐵 ∈ {𝐵, 𝐷}) |
21 | 20 | 3ad2ant2 1133 |
. . . . . 6
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → 𝐵 ∈ {𝐵, 𝐷}) |
22 | | preq1 4669 |
. . . . . . 7
⊢ (𝐵 = 𝐶 → {𝐵, 𝐷} = {𝐶, 𝐷}) |
23 | 22 | eleq2d 2824 |
. . . . . 6
⊢ (𝐵 = 𝐶 → (𝐵 ∈ {𝐵, 𝐷} ↔ 𝐵 ∈ {𝐶, 𝐷})) |
24 | 21, 23 | syl5ibcom 244 |
. . . . 5
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (𝐵 = 𝐶 → 𝐵 ∈ {𝐶, 𝐷})) |
25 | 19, 24 | anim12d 609 |
. . . 4
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}))) |
26 | 14, 25 | jaod 856 |
. . 3
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) → (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}))) |
27 | | elprg 4582 |
. . . . . 6
⊢ (𝐴 ∈ 𝑉 → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶 ∨ 𝐴 = 𝐷))) |
28 | 27 | 3ad2ant1 1132 |
. . . . 5
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (𝐴 ∈ {𝐶, 𝐷} ↔ (𝐴 = 𝐶 ∨ 𝐴 = 𝐷))) |
29 | | elprg 4582 |
. . . . . 6
⊢ (𝐵 ∈ 𝑊 → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷))) |
30 | 29 | 3ad2ant2 1133 |
. . . . 5
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (𝐵 ∈ {𝐶, 𝐷} ↔ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷))) |
31 | 28, 30 | anbi12d 631 |
. . . 4
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) ↔ ((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)))) |
32 | | eqtr3 2764 |
. . . . . . . 8
⊢ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐶) → 𝐴 = 𝐵) |
33 | | eqneqall 2954 |
. . . . . . . 8
⊢ (𝐴 = 𝐵 → (𝐴 ≠ 𝐵 → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
34 | 32, 33 | syl 17 |
. . . . . . 7
⊢ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐶) → (𝐴 ≠ 𝐵 → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
35 | | olc 865 |
. . . . . . . 8
⊢ ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶))) |
36 | 35 | a1d 25 |
. . . . . . 7
⊢ ((𝐴 = 𝐷 ∧ 𝐵 = 𝐶) → (𝐴 ≠ 𝐵 → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
37 | | orc 864 |
. . . . . . . 8
⊢ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶))) |
38 | 37 | a1d 25 |
. . . . . . 7
⊢ ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) → (𝐴 ≠ 𝐵 → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
39 | | eqtr3 2764 |
. . . . . . . 8
⊢ ((𝐴 = 𝐷 ∧ 𝐵 = 𝐷) → 𝐴 = 𝐵) |
40 | 39, 33 | syl 17 |
. . . . . . 7
⊢ ((𝐴 = 𝐷 ∧ 𝐵 = 𝐷) → (𝐴 ≠ 𝐵 → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
41 | 34, 36, 38, 40 | ccase 1035 |
. . . . . 6
⊢ (((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)) → (𝐴 ≠ 𝐵 → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
42 | 41 | com12 32 |
. . . . 5
⊢ (𝐴 ≠ 𝐵 → (((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)) → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
43 | 42 | 3ad2ant3 1134 |
. . . 4
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (((𝐴 = 𝐶 ∨ 𝐴 = 𝐷) ∧ (𝐵 = 𝐶 ∨ 𝐵 = 𝐷)) → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
44 | 31, 43 | sylbid 239 |
. . 3
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ((𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}) → ((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)))) |
45 | 26, 44 | impbid 211 |
. 2
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → (((𝐴 = 𝐶 ∧ 𝐵 = 𝐷) ∨ (𝐴 = 𝐷 ∧ 𝐵 = 𝐶)) ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}))) |
46 | 1, 45 | bitrd 278 |
1
⊢ ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({𝐴, 𝐵} = {𝐶, 𝐷} ↔ (𝐴 ∈ {𝐶, 𝐷} ∧ 𝐵 ∈ {𝐶, 𝐷}))) |