Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > reps | Structured version Visualization version GIF version |
Description: Construct a function mapping a half-open range of nonnegative integers to a constant. (Contributed by AV, 4-Nov-2018.) |
Ref | Expression |
---|---|
reps | ⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝑆 repeatS 𝑁) = (𝑥 ∈ (0..^𝑁) ↦ 𝑆)) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | elex 3455 | . . 3 ⊢ (𝑆 ∈ 𝑉 → 𝑆 ∈ V) | |
2 | 1 | adantr 482 | . 2 ⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → 𝑆 ∈ V) |
3 | simpr 486 | . 2 ⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → 𝑁 ∈ ℕ0) | |
4 | ovex 7340 | . . 3 ⊢ (0..^𝑁) ∈ V | |
5 | mptexg 7129 | . . 3 ⊢ ((0..^𝑁) ∈ V → (𝑥 ∈ (0..^𝑁) ↦ 𝑆) ∈ V) | |
6 | 4, 5 | mp1i 13 | . 2 ⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝑥 ∈ (0..^𝑁) ↦ 𝑆) ∈ V) |
7 | oveq2 7315 | . . . . 5 ⊢ (𝑛 = 𝑁 → (0..^𝑛) = (0..^𝑁)) | |
8 | 7 | adantl 483 | . . . 4 ⊢ ((𝑠 = 𝑆 ∧ 𝑛 = 𝑁) → (0..^𝑛) = (0..^𝑁)) |
9 | simpll 765 | . . . 4 ⊢ (((𝑠 = 𝑆 ∧ 𝑛 = 𝑁) ∧ 𝑥 ∈ (0..^𝑛)) → 𝑠 = 𝑆) | |
10 | 8, 9 | mpteq12dva 5170 | . . 3 ⊢ ((𝑠 = 𝑆 ∧ 𝑛 = 𝑁) → (𝑥 ∈ (0..^𝑛) ↦ 𝑠) = (𝑥 ∈ (0..^𝑁) ↦ 𝑆)) |
11 | df-reps 14531 | . . 3 ⊢ repeatS = (𝑠 ∈ V, 𝑛 ∈ ℕ0 ↦ (𝑥 ∈ (0..^𝑛) ↦ 𝑠)) | |
12 | 10, 11 | ovmpoga 7459 | . 2 ⊢ ((𝑆 ∈ V ∧ 𝑁 ∈ ℕ0 ∧ (𝑥 ∈ (0..^𝑁) ↦ 𝑆) ∈ V) → (𝑆 repeatS 𝑁) = (𝑥 ∈ (0..^𝑁) ↦ 𝑆)) |
13 | 2, 3, 6, 12 | syl3anc 1371 | 1 ⊢ ((𝑆 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝑆 repeatS 𝑁) = (𝑥 ∈ (0..^𝑁) ↦ 𝑆)) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ∧ wa 397 = wceq 1539 ∈ wcel 2104 Vcvv 3437 ↦ cmpt 5164 (class class class)co 7307 0cc0 10921 ℕ0cn0 12283 ..^cfzo 13432 repeatS creps 14530 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1795 ax-4 1809 ax-5 1911 ax-6 1969 ax-7 2009 ax-8 2106 ax-9 2114 ax-10 2135 ax-11 2152 ax-12 2169 ax-ext 2707 ax-rep 5218 ax-sep 5232 ax-nul 5239 ax-pr 5361 |
This theorem depends on definitions: df-bi 206 df-an 398 df-or 846 df-3an 1089 df-tru 1542 df-fal 1552 df-ex 1780 df-nf 1784 df-sb 2066 df-mo 2538 df-eu 2567 df-clab 2714 df-cleq 2728 df-clel 2814 df-nfc 2886 df-ne 2941 df-ral 3062 df-rex 3071 df-reu 3332 df-rab 3333 df-v 3439 df-sbc 3722 df-csb 3838 df-dif 3895 df-un 3897 df-in 3899 df-ss 3909 df-nul 4263 df-if 4466 df-sn 4566 df-pr 4568 df-op 4572 df-uni 4845 df-iun 4933 df-br 5082 df-opab 5144 df-mpt 5165 df-id 5500 df-xp 5606 df-rel 5607 df-cnv 5608 df-co 5609 df-dm 5610 df-rn 5611 df-res 5612 df-ima 5613 df-iota 6410 df-fun 6460 df-fn 6461 df-f 6462 df-f1 6463 df-fo 6464 df-f1o 6465 df-fv 6466 df-ov 7310 df-oprab 7311 df-mpo 7312 df-reps 14531 |
This theorem is referenced by: repsconst 14534 repsf 14535 repswsymb 14536 repswswrd 14546 repswccat 14548 repswrevw 14549 repsco 14602 |
Copyright terms: Public domain | W3C validator |