Mathbox for Alexander van der Vekens |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > Mathboxes > elfz2z | Structured version Visualization version GIF version |
Description: Membership of an integer in a finite set of sequential integers starting at 0. (Contributed by Alexander van der Vekens, 25-May-2018.) |
Ref | Expression |
---|---|
elfz2z | ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ∈ (0...𝑁) ↔ (0 ≤ 𝐾 ∧ 𝐾 ≤ 𝑁))) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | elfz2nn0 13052 | . . 3 ⊢ (𝐾 ∈ (0...𝑁) ↔ (𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0 ∧ 𝐾 ≤ 𝑁)) | |
2 | df-3an 1086 | . . 3 ⊢ ((𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0 ∧ 𝐾 ≤ 𝑁) ↔ ((𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0) ∧ 𝐾 ≤ 𝑁)) | |
3 | 1, 2 | bitri 278 | . 2 ⊢ (𝐾 ∈ (0...𝑁) ↔ ((𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0) ∧ 𝐾 ≤ 𝑁)) |
4 | nn0ge0 11964 | . . . . . 6 ⊢ (𝐾 ∈ ℕ0 → 0 ≤ 𝐾) | |
5 | 4 | adantr 484 | . . . . 5 ⊢ ((𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0) → 0 ≤ 𝐾) |
6 | simpll 766 | . . . . . . . . 9 ⊢ (((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ≤ 𝑁) → 𝐾 ∈ ℤ) | |
7 | 6 | anim1i 617 | . . . . . . . 8 ⊢ ((((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ≤ 𝑁) ∧ 0 ≤ 𝐾) → (𝐾 ∈ ℤ ∧ 0 ≤ 𝐾)) |
8 | elnn0z 12038 | . . . . . . . 8 ⊢ (𝐾 ∈ ℕ0 ↔ (𝐾 ∈ ℤ ∧ 0 ≤ 𝐾)) | |
9 | 7, 8 | sylibr 237 | . . . . . . 7 ⊢ ((((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ≤ 𝑁) ∧ 0 ≤ 𝐾) → 𝐾 ∈ ℕ0) |
10 | 0red 10687 | . . . . . . . . . . 11 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 0 ∈ ℝ) | |
11 | zre 12029 | . . . . . . . . . . . 12 ⊢ (𝐾 ∈ ℤ → 𝐾 ∈ ℝ) | |
12 | 11 | adantr 484 | . . . . . . . . . . 11 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝐾 ∈ ℝ) |
13 | zre 12029 | . . . . . . . . . . . 12 ⊢ (𝑁 ∈ ℤ → 𝑁 ∈ ℝ) | |
14 | 13 | adantl 485 | . . . . . . . . . . 11 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝑁 ∈ ℝ) |
15 | letr 10777 | . . . . . . . . . . 11 ⊢ ((0 ∈ ℝ ∧ 𝐾 ∈ ℝ ∧ 𝑁 ∈ ℝ) → ((0 ≤ 𝐾 ∧ 𝐾 ≤ 𝑁) → 0 ≤ 𝑁)) | |
16 | 10, 12, 14, 15 | syl3anc 1368 | . . . . . . . . . 10 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((0 ≤ 𝐾 ∧ 𝐾 ≤ 𝑁) → 0 ≤ 𝑁)) |
17 | elnn0z 12038 | . . . . . . . . . . . 12 ⊢ (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℤ ∧ 0 ≤ 𝑁)) | |
18 | 17 | simplbi2 504 | . . . . . . . . . . 11 ⊢ (𝑁 ∈ ℤ → (0 ≤ 𝑁 → 𝑁 ∈ ℕ0)) |
19 | 18 | adantl 485 | . . . . . . . . . 10 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (0 ≤ 𝑁 → 𝑁 ∈ ℕ0)) |
20 | 16, 19 | syld 47 | . . . . . . . . 9 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((0 ≤ 𝐾 ∧ 𝐾 ≤ 𝑁) → 𝑁 ∈ ℕ0)) |
21 | 20 | expcomd 420 | . . . . . . . 8 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ≤ 𝑁 → (0 ≤ 𝐾 → 𝑁 ∈ ℕ0))) |
22 | 21 | imp31 421 | . . . . . . 7 ⊢ ((((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ≤ 𝑁) ∧ 0 ≤ 𝐾) → 𝑁 ∈ ℕ0) |
23 | 9, 22 | jca 515 | . . . . . 6 ⊢ ((((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ≤ 𝑁) ∧ 0 ≤ 𝐾) → (𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0)) |
24 | 23 | ex 416 | . . . . 5 ⊢ (((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ≤ 𝑁) → (0 ≤ 𝐾 → (𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0))) |
25 | 5, 24 | impbid2 229 | . . . 4 ⊢ (((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ 𝐾 ≤ 𝑁) → ((𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0) ↔ 0 ≤ 𝐾)) |
26 | 25 | ex 416 | . . 3 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ≤ 𝑁 → ((𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0) ↔ 0 ≤ 𝐾))) |
27 | 26 | pm5.32rd 581 | . 2 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (((𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0) ∧ 𝐾 ≤ 𝑁) ↔ (0 ≤ 𝐾 ∧ 𝐾 ≤ 𝑁))) |
28 | 3, 27 | syl5bb 286 | 1 ⊢ ((𝐾 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐾 ∈ (0...𝑁) ↔ (0 ≤ 𝐾 ∧ 𝐾 ≤ 𝑁))) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ↔ wb 209 ∧ wa 399 ∧ w3a 1084 ∈ wcel 2111 class class class wbr 5035 (class class class)co 7155 ℝcr 10579 0cc0 10580 ≤ cle 10719 ℕ0cn0 11939 ℤcz 12025 ...cfz 12944 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1797 ax-4 1811 ax-5 1911 ax-6 1970 ax-7 2015 ax-8 2113 ax-9 2121 ax-10 2142 ax-11 2158 ax-12 2175 ax-ext 2729 ax-sep 5172 ax-nul 5179 ax-pow 5237 ax-pr 5301 ax-un 7464 ax-cnex 10636 ax-resscn 10637 ax-1cn 10638 ax-icn 10639 ax-addcl 10640 ax-addrcl 10641 ax-mulcl 10642 ax-mulrcl 10643 ax-mulcom 10644 ax-addass 10645 ax-mulass 10646 ax-distr 10647 ax-i2m1 10648 ax-1ne0 10649 ax-1rid 10650 ax-rnegex 10651 ax-rrecex 10652 ax-cnre 10653 ax-pre-lttri 10654 ax-pre-lttrn 10655 ax-pre-ltadd 10656 ax-pre-mulgt0 10657 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 845 df-3or 1085 df-3an 1086 df-tru 1541 df-fal 1551 df-ex 1782 df-nf 1786 df-sb 2070 df-mo 2557 df-eu 2588 df-clab 2736 df-cleq 2750 df-clel 2830 df-nfc 2901 df-ne 2952 df-nel 3056 df-ral 3075 df-rex 3076 df-reu 3077 df-rab 3079 df-v 3411 df-sbc 3699 df-csb 3808 df-dif 3863 df-un 3865 df-in 3867 df-ss 3877 df-pss 3879 df-nul 4228 df-if 4424 df-pw 4499 df-sn 4526 df-pr 4528 df-tp 4530 df-op 4532 df-uni 4802 df-iun 4888 df-br 5036 df-opab 5098 df-mpt 5116 df-tr 5142 df-id 5433 df-eprel 5438 df-po 5446 df-so 5447 df-fr 5486 df-we 5488 df-xp 5533 df-rel 5534 df-cnv 5535 df-co 5536 df-dm 5537 df-rn 5538 df-res 5539 df-ima 5540 df-pred 6130 df-ord 6176 df-on 6177 df-lim 6178 df-suc 6179 df-iota 6298 df-fun 6341 df-fn 6342 df-f 6343 df-f1 6344 df-fo 6345 df-f1o 6346 df-fv 6347 df-riota 7113 df-ov 7158 df-oprab 7159 df-mpo 7160 df-om 7585 df-1st 7698 df-2nd 7699 df-wrecs 7962 df-recs 8023 df-rdg 8061 df-er 8304 df-en 8533 df-dom 8534 df-sdom 8535 df-pnf 10720 df-mnf 10721 df-xr 10722 df-ltxr 10723 df-le 10724 df-sub 10915 df-neg 10916 df-nn 11680 df-n0 11940 df-z 12026 df-uz 12288 df-fz 12945 |
This theorem is referenced by: (None) |
Copyright terms: Public domain | W3C validator |