| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > hash3tpexb | Structured version Visualization version GIF version | ||
| Description: A set of size three is an unordered triple if and only if it contains three different elements. (Contributed by AV, 21-Jul-2025.) |
| Ref | Expression |
|---|---|
| hash3tpexb | ⊢ (𝑉 ∈ 𝑊 → ((♯‘𝑉) = 3 ↔ ∃𝑎∃𝑏∃𝑐((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) ∧ 𝑉 = {𝑎, 𝑏, 𝑐}))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | hash3tpde 14665 | . . 3 ⊢ ((𝑉 ∈ 𝑊 ∧ (♯‘𝑉) = 3) → ∃𝑎∃𝑏∃𝑐((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) ∧ 𝑉 = {𝑎, 𝑏, 𝑐})) | |
| 2 | 1 | ex 418 | . 2 ⊢ (𝑉 ∈ 𝑊 → ((♯‘𝑉) = 3 → ∃𝑎∃𝑏∃𝑐((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) ∧ 𝑉 = {𝑎, 𝑏, 𝑐}))) |
| 3 | fveq2 6908 | . . . . . 6 ⊢ (𝑉 = {𝑎, 𝑏, 𝑐} → (♯‘𝑉) = (♯‘{𝑎, 𝑏, 𝑐})) | |
| 4 | df-tp 4593 | . . . . . . . . 9 ⊢ {𝑎, 𝑏, 𝑐} = ({𝑎, 𝑏} ∪ {𝑐}) | |
| 5 | 4 | a1i 11 | . . . . . . . 8 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → {𝑎, 𝑏, 𝑐} = ({𝑎, 𝑏} ∪ {𝑐})) |
| 6 | 5 | fveq2d 6912 | . . . . . . 7 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → (♯‘{𝑎, 𝑏, 𝑐}) = (♯‘({𝑎, 𝑏} ∪ {𝑐}))) |
| 7 | prfi 9343 | . . . . . . . 8 ⊢ {𝑎, 𝑏} ∈ Fin | |
| 8 | snfi 9099 | . . . . . . . 8 ⊢ {𝑐} ∈ Fin | |
| 9 | disjprsn 4675 | . . . . . . . . 9 ⊢ ((𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → ({𝑎, 𝑏} ∩ {𝑐}) = ∅) | |
| 10 | 9 | 3adant1 1148 | . . . . . . . 8 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → ({𝑎, 𝑏} ∩ {𝑐}) = ∅) |
| 11 | hashun 14553 | . . . . . . . 8 ⊢ (({𝑎, 𝑏} ∈ Fin ∧ {𝑐} ∈ Fin ∧ ({𝑎, 𝑏} ∩ {𝑐}) = ∅) → (♯‘({𝑎, 𝑏} ∪ {𝑐})) = ((♯‘{𝑎, 𝑏}) + (♯‘{𝑐}))) | |
| 12 | 7, 8, 10, 11 | mp3an12i 1495 | . . . . . . 7 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → (♯‘({𝑎, 𝑏} ∪ {𝑐})) = ((♯‘{𝑎, 𝑏}) + (♯‘{𝑐}))) |
| 13 | hashprg 14566 | . . . . . . . . . . . 12 ⊢ ((𝑎 ∈ V ∧ 𝑏 ∈ V) → (𝑎 ≠ 𝑏 ↔ (♯‘{𝑎, 𝑏}) = 2)) | |
| 14 | 13 | el2v 3461 | . . . . . . . . . . 11 ⊢ (𝑎 ≠ 𝑏 ↔ (♯‘{𝑎, 𝑏}) = 2) |
| 15 | 14 | biimpi 219 | . . . . . . . . . 10 ⊢ (𝑎 ≠ 𝑏 → (♯‘{𝑎, 𝑏}) = 2) |
| 16 | 15 | 3ad2ant1 1151 | . . . . . . . . 9 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → (♯‘{𝑎, 𝑏}) = 2) |
| 17 | hashsng 14540 | . . . . . . . . . . 11 ⊢ (𝑐 ∈ V → (♯‘{𝑐}) = 1) | |
| 18 | 17 | elv 3459 | . . . . . . . . . 10 ⊢ (♯‘{𝑐}) = 1 |
| 19 | 18 | a1i 11 | . . . . . . . . 9 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → (♯‘{𝑐}) = 1) |
| 20 | 16, 19 | oveq12d 7461 | . . . . . . . 8 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → ((♯‘{𝑎, 𝑏}) + (♯‘{𝑐})) = (2 + 1)) |
| 21 | 2p1e3 12511 | . . . . . . . 8 ⊢ (2 + 1) = 3 | |
| 22 | 20, 21 | eqtrdi 2814 | . . . . . . 7 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → ((♯‘{𝑎, 𝑏}) + (♯‘{𝑐})) = 3) |
| 23 | 6, 12, 22 | 3eqtrd 2802 | . . . . . 6 ⊢ ((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) → (♯‘{𝑎, 𝑏, 𝑐}) = 3) |
| 24 | 3, 23 | sylan9eqr 2820 | . . . . 5 ⊢ (((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) ∧ 𝑉 = {𝑎, 𝑏, 𝑐}) → (♯‘𝑉) = 3) |
| 25 | 24 | a1i 11 | . . . 4 ⊢ (𝑉 ∈ 𝑊 → (((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) ∧ 𝑉 = {𝑎, 𝑏, 𝑐}) → (♯‘𝑉) = 3)) |
| 26 | 25 | exlimdv 1968 | . . 3 ⊢ (𝑉 ∈ 𝑊 → (∃𝑐((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) ∧ 𝑉 = {𝑎, 𝑏, 𝑐}) → (♯‘𝑉) = 3)) |
| 27 | 26 | exlimdvv 1969 | . 2 ⊢ (𝑉 ∈ 𝑊 → (∃𝑎∃𝑏∃𝑐((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) ∧ 𝑉 = {𝑎, 𝑏, 𝑐}) → (♯‘𝑉) = 3)) |
| 28 | 2, 27 | impbid 215 | 1 ⊢ (𝑉 ∈ 𝑊 → ((♯‘𝑉) = 3 ↔ ∃𝑎∃𝑏∃𝑐((𝑎 ≠ 𝑏 ∧ 𝑎 ≠ 𝑐 ∧ 𝑏 ≠ 𝑐) ∧ 𝑉 = {𝑎, 𝑏, 𝑐}))) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 ↔ wb 209 ∧ wa 401 ∧ w3a 1103 = wceq 1570 ∃wex 1812 ∈ wcel 2147 ≠ wne 2959 Vcvv 3454 ∩ cin 4092 ∪ cun 4152 ∅c0 4281 {csn 4588 {cpr 4590 {ctp 4592 ‘cfv 6558 (class class class)co 7443 Fincfn 9001 1c1 11228 + caddc 11230 2c2 12424 3c3 12425 ♯chash 14501 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1945 ax-6 2002 ax-7 2043 ax-8 2149 ax-9 2157 ax-10 2180 ax-11 2197 ax-12 2216 ax-ext 2735 ax-sep 5252 ax-nul 5263 ax-pow 5331 ax-pr 5395 ax-un 7775 ax-cnex 11283 ax-resscn 11284 ax-1cn 11285 ax-icn 11286 ax-addcl 11287 ax-addrcl 11288 ax-mulcl 11289 ax-mulrcl 11290 ax-mulcom 11291 ax-addass 11292 ax-mulass 11293 ax-distr 11294 ax-i2m1 11295 ax-1ne0 11296 ax-1rid 11297 ax-rnegex 11298 ax-rrecex 11299 ax-cnre 11300 ax-pre-lttri 11301 ax-pre-lttrn 11302 ax-pre-ltadd 11303 ax-pre-mulgt0 11304 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3or 1104 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1813 df-nf 1817 df-sb 2102 df-mo 2567 df-eu 2597 df-clab 2742 df-cleq 2755 df-clel 2839 df-nfc 2913 df-ne 2960 df-nel 3066 df-ral 3081 df-rex 3091 df-reu 3370 df-rab 3417 df-v 3456 df-sbc 3743 df-csb 3852 df-ss 3901 df-pss 4017 df-dif 4050 df-in 4094 df-un 4154 df-nul 4282 df-if 4486 df-pw 4562 df-sn 4589 df-pr 4591 df-tp 4593 df-op 4839 df-uni 4871 df-int 4911 df-iun 4956 df-br 5107 df-opab 5171 df-mpt 5190 df-tr 5216 df-id 5550 df-eprel 5555 df-po 5563 df-so 5564 df-fr 5608 df-we 5610 df-xp 5661 df-rel 5662 df-cnv 5663 df-co 5664 df-dm 5665 df-rn 5666 df-res 5667 df-ima 5668 df-pred 6322 df-ord 6383 df-on 6384 df-lim 6385 df-suc 6386 df-iota 6512 df-fun 6560 df-fn 6561 df-f 6562 df-f1 6563 df-fo 6564 df-f1o 6565 df-fv 6566 df-riota 7400 df-ov 7446 df-oprab 7447 df-mpo 7448 df-om 7902 df-1st 8025 df-2nd 8026 df-frecs 8327 df-wrecs 8358 df-recs 8407 df-rdg 8446 df-1o 8504 df-2o 8505 df-3o 8506 df-oadd 8508 df-er 8745 df-en 9002 df-dom 9003 df-sdom 9004 df-fin 9005 df-dju 10009 df-card 10047 df-pnf 11372 df-mnf 11373 df-xr 11374 df-ltxr 11375 df-le 11376 df-sub 11570 df-neg 11571 df-nn 12363 df-2 12432 df-3 12433 df-n0 12634 df-xnn0 12707 df-z 12721 df-uz 12993 df-fz 13667 df-hash 14502 |
| This theorem is used by: hash3tpb 14667 |
| Copyright terms: Public domain | W3C validator |