Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > nn0le2is012 | Structured version Visualization version GIF version |
Description: A nonnegative integer which is less than or equal to 2 is either 0 or 1 or 2. (Contributed by AV, 16-Mar-2019.) |
Ref | Expression |
---|---|
nn0le2is012 | ⊢ ((𝑁 ∈ ℕ0 ∧ 𝑁 ≤ 2) → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2)) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | nn0re 11988 | . . . 4 ⊢ (𝑁 ∈ ℕ0 → 𝑁 ∈ ℝ) | |
2 | 2re 11793 | . . . . 5 ⊢ 2 ∈ ℝ | |
3 | 2 | a1i 11 | . . . 4 ⊢ (𝑁 ∈ ℕ0 → 2 ∈ ℝ) |
4 | 1, 3 | leloed 10864 | . . 3 ⊢ (𝑁 ∈ ℕ0 → (𝑁 ≤ 2 ↔ (𝑁 < 2 ∨ 𝑁 = 2))) |
5 | nn0z 12089 | . . . . . . . . 9 ⊢ (𝑁 ∈ ℕ0 → 𝑁 ∈ ℤ) | |
6 | 2z 12098 | . . . . . . . . 9 ⊢ 2 ∈ ℤ | |
7 | zltlem1 12119 | . . . . . . . . 9 ⊢ ((𝑁 ∈ ℤ ∧ 2 ∈ ℤ) → (𝑁 < 2 ↔ 𝑁 ≤ (2 − 1))) | |
8 | 5, 6, 7 | sylancl 589 | . . . . . . . 8 ⊢ (𝑁 ∈ ℕ0 → (𝑁 < 2 ↔ 𝑁 ≤ (2 − 1))) |
9 | 2m1e1 11845 | . . . . . . . . . 10 ⊢ (2 − 1) = 1 | |
10 | 9 | a1i 11 | . . . . . . . . 9 ⊢ (𝑁 ∈ ℕ0 → (2 − 1) = 1) |
11 | 10 | breq2d 5043 | . . . . . . . 8 ⊢ (𝑁 ∈ ℕ0 → (𝑁 ≤ (2 − 1) ↔ 𝑁 ≤ 1)) |
12 | 8, 11 | bitrd 282 | . . . . . . 7 ⊢ (𝑁 ∈ ℕ0 → (𝑁 < 2 ↔ 𝑁 ≤ 1)) |
13 | 1red 10723 | . . . . . . . . 9 ⊢ (𝑁 ∈ ℕ0 → 1 ∈ ℝ) | |
14 | 1, 13 | leloed 10864 | . . . . . . . 8 ⊢ (𝑁 ∈ ℕ0 → (𝑁 ≤ 1 ↔ (𝑁 < 1 ∨ 𝑁 = 1))) |
15 | nn0lt10b 12128 | . . . . . . . . . . . 12 ⊢ (𝑁 ∈ ℕ0 → (𝑁 < 1 ↔ 𝑁 = 0)) | |
16 | 3mix1 1331 | . . . . . . . . . . . 12 ⊢ (𝑁 = 0 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2)) | |
17 | 15, 16 | syl6bi 256 | . . . . . . . . . . 11 ⊢ (𝑁 ∈ ℕ0 → (𝑁 < 1 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
18 | 17 | com12 32 | . . . . . . . . . 10 ⊢ (𝑁 < 1 → (𝑁 ∈ ℕ0 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
19 | 3mix2 1332 | . . . . . . . . . . 11 ⊢ (𝑁 = 1 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2)) | |
20 | 19 | a1d 25 | . . . . . . . . . 10 ⊢ (𝑁 = 1 → (𝑁 ∈ ℕ0 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
21 | 18, 20 | jaoi 856 | . . . . . . . . 9 ⊢ ((𝑁 < 1 ∨ 𝑁 = 1) → (𝑁 ∈ ℕ0 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
22 | 21 | com12 32 | . . . . . . . 8 ⊢ (𝑁 ∈ ℕ0 → ((𝑁 < 1 ∨ 𝑁 = 1) → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
23 | 14, 22 | sylbid 243 | . . . . . . 7 ⊢ (𝑁 ∈ ℕ0 → (𝑁 ≤ 1 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
24 | 12, 23 | sylbid 243 | . . . . . 6 ⊢ (𝑁 ∈ ℕ0 → (𝑁 < 2 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
25 | 24 | com12 32 | . . . . 5 ⊢ (𝑁 < 2 → (𝑁 ∈ ℕ0 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
26 | 3mix3 1333 | . . . . . 6 ⊢ (𝑁 = 2 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2)) | |
27 | 26 | a1d 25 | . . . . 5 ⊢ (𝑁 = 2 → (𝑁 ∈ ℕ0 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
28 | 25, 27 | jaoi 856 | . . . 4 ⊢ ((𝑁 < 2 ∨ 𝑁 = 2) → (𝑁 ∈ ℕ0 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
29 | 28 | com12 32 | . . 3 ⊢ (𝑁 ∈ ℕ0 → ((𝑁 < 2 ∨ 𝑁 = 2) → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
30 | 4, 29 | sylbid 243 | . 2 ⊢ (𝑁 ∈ ℕ0 → (𝑁 ≤ 2 → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2))) |
31 | 30 | imp 410 | 1 ⊢ ((𝑁 ∈ ℕ0 ∧ 𝑁 ≤ 2) → (𝑁 = 0 ∨ 𝑁 = 1 ∨ 𝑁 = 2)) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ↔ wb 209 ∧ wa 399 ∨ wo 846 ∨ w3o 1087 = wceq 1542 ∈ wcel 2114 class class class wbr 5031 (class class class)co 7173 ℝcr 10617 0cc0 10618 1c1 10619 < clt 10756 ≤ cle 10757 − cmin 10951 2c2 11774 ℕ0cn0 11979 ℤcz 12065 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1802 ax-4 1816 ax-5 1917 ax-6 1975 ax-7 2020 ax-8 2116 ax-9 2124 ax-10 2145 ax-11 2162 ax-12 2179 ax-ext 2711 ax-sep 5168 ax-nul 5175 ax-pow 5233 ax-pr 5297 ax-un 7482 ax-resscn 10675 ax-1cn 10676 ax-icn 10677 ax-addcl 10678 ax-addrcl 10679 ax-mulcl 10680 ax-mulrcl 10681 ax-mulcom 10682 ax-addass 10683 ax-mulass 10684 ax-distr 10685 ax-i2m1 10686 ax-1ne0 10687 ax-1rid 10688 ax-rnegex 10689 ax-rrecex 10690 ax-cnre 10691 ax-pre-lttri 10692 ax-pre-lttrn 10693 ax-pre-ltadd 10694 ax-pre-mulgt0 10695 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 847 df-3or 1089 df-3an 1090 df-tru 1545 df-fal 1555 df-ex 1787 df-nf 1791 df-sb 2075 df-mo 2541 df-eu 2571 df-clab 2718 df-cleq 2731 df-clel 2812 df-nfc 2882 df-ne 2936 df-nel 3040 df-ral 3059 df-rex 3060 df-reu 3061 df-rab 3063 df-v 3401 df-sbc 3682 df-csb 3792 df-dif 3847 df-un 3849 df-in 3851 df-ss 3861 df-pss 3863 df-nul 4213 df-if 4416 df-pw 4491 df-sn 4518 df-pr 4520 df-tp 4522 df-op 4524 df-uni 4798 df-iun 4884 df-br 5032 df-opab 5094 df-mpt 5112 df-tr 5138 df-id 5430 df-eprel 5435 df-po 5443 df-so 5444 df-fr 5484 df-we 5486 df-xp 5532 df-rel 5533 df-cnv 5534 df-co 5535 df-dm 5536 df-rn 5537 df-res 5538 df-ima 5539 df-pred 6130 df-ord 6176 df-on 6177 df-lim 6178 df-suc 6179 df-iota 6298 df-fun 6342 df-fn 6343 df-f 6344 df-f1 6345 df-fo 6346 df-f1o 6347 df-fv 6348 df-riota 7130 df-ov 7176 df-oprab 7177 df-mpo 7178 df-om 7603 df-wrecs 7979 df-recs 8040 df-rdg 8078 df-er 8323 df-en 8559 df-dom 8560 df-sdom 8561 df-pnf 10758 df-mnf 10759 df-xr 10760 df-ltxr 10761 df-le 10762 df-sub 10953 df-neg 10954 df-nn 11720 df-2 11782 df-n0 11980 df-z 12066 |
This theorem is referenced by: xnn0le2is012 12725 2sq2 26172 exple2lt6 45264 |
Copyright terms: Public domain | W3C validator |