MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  smndex1igid Structured version   Visualization version   GIF version

Theorem smndex1igid 18858
Description: The composition of the modulo function 𝐼 and a constant function (πΊβ€˜πΎ) results in (πΊβ€˜πΎ) itself. (Contributed by AV, 14-Feb-2024.)
Hypotheses
Ref Expression
smndex1ibas.m 𝑀 = (EndoFMndβ€˜β„•0)
smndex1ibas.n 𝑁 ∈ β„•
smndex1ibas.i 𝐼 = (π‘₯ ∈ β„•0 ↦ (π‘₯ mod 𝑁))
smndex1ibas.g 𝐺 = (𝑛 ∈ (0..^𝑁) ↦ (π‘₯ ∈ β„•0 ↦ 𝑛))
Assertion
Ref Expression
smndex1igid (𝐾 ∈ (0..^𝑁) β†’ (𝐼 ∘ (πΊβ€˜πΎ)) = (πΊβ€˜πΎ))
Distinct variable groups:   π‘₯,𝑁   𝑛,𝐾,π‘₯   𝑛,𝑁   π‘₯,𝑀
Allowed substitution hints:   𝐺(π‘₯,𝑛)   𝐼(π‘₯,𝑛)   𝑀(𝑛)

Proof of Theorem smndex1igid
StepHypRef Expression
1 fconstmpt 5734 . . . . 5 (β„•0 Γ— {𝐾}) = (π‘₯ ∈ β„•0 ↦ 𝐾)
21eqcomi 2734 . . . 4 (π‘₯ ∈ β„•0 ↦ 𝐾) = (β„•0 Γ— {𝐾})
32a1i 11 . . 3 (𝐾 ∈ (0..^𝑁) β†’ (π‘₯ ∈ β„•0 ↦ 𝐾) = (β„•0 Γ— {𝐾}))
43coeq2d 5859 . 2 (𝐾 ∈ (0..^𝑁) β†’ (𝐼 ∘ (π‘₯ ∈ β„•0 ↦ 𝐾)) = (𝐼 ∘ (β„•0 Γ— {𝐾})))
5 simpl 481 . . . . 5 ((𝑛 = 𝐾 ∧ π‘₯ ∈ β„•0) β†’ 𝑛 = 𝐾)
65mpteq2dva 5243 . . . 4 (𝑛 = 𝐾 β†’ (π‘₯ ∈ β„•0 ↦ 𝑛) = (π‘₯ ∈ β„•0 ↦ 𝐾))
7 smndex1ibas.g . . . 4 𝐺 = (𝑛 ∈ (0..^𝑁) ↦ (π‘₯ ∈ β„•0 ↦ 𝑛))
8 nn0ex 12506 . . . . 5 β„•0 ∈ V
98mptex 7230 . . . 4 (π‘₯ ∈ β„•0 ↦ 𝐾) ∈ V
106, 7, 9fvmpt 6999 . . 3 (𝐾 ∈ (0..^𝑁) β†’ (πΊβ€˜πΎ) = (π‘₯ ∈ β„•0 ↦ 𝐾))
1110coeq2d 5859 . 2 (𝐾 ∈ (0..^𝑁) β†’ (𝐼 ∘ (πΊβ€˜πΎ)) = (𝐼 ∘ (π‘₯ ∈ β„•0 ↦ 𝐾)))
12 smndex1ibas.i . . . . . . 7 𝐼 = (π‘₯ ∈ β„•0 ↦ (π‘₯ mod 𝑁))
13 oveq1 7422 . . . . . . . 8 (π‘₯ = 𝐾 β†’ (π‘₯ mod 𝑁) = (𝐾 mod 𝑁))
14 zmodidfzoimp 13896 . . . . . . . 8 (𝐾 ∈ (0..^𝑁) β†’ (𝐾 mod 𝑁) = 𝐾)
1513, 14sylan9eqr 2787 . . . . . . 7 ((𝐾 ∈ (0..^𝑁) ∧ π‘₯ = 𝐾) β†’ (π‘₯ mod 𝑁) = 𝐾)
16 elfzonn0 13707 . . . . . . 7 (𝐾 ∈ (0..^𝑁) β†’ 𝐾 ∈ β„•0)
1712, 15, 16, 16fvmptd2 7007 . . . . . 6 (𝐾 ∈ (0..^𝑁) β†’ (πΌβ€˜πΎ) = 𝐾)
1817eqcomd 2731 . . . . 5 (𝐾 ∈ (0..^𝑁) β†’ 𝐾 = (πΌβ€˜πΎ))
1918sneqd 4636 . . . 4 (𝐾 ∈ (0..^𝑁) β†’ {𝐾} = {(πΌβ€˜πΎ)})
2019xpeq2d 5702 . . 3 (𝐾 ∈ (0..^𝑁) β†’ (β„•0 Γ— {𝐾}) = (β„•0 Γ— {(πΌβ€˜πΎ)}))
2110, 2eqtrdi 2781 . . 3 (𝐾 ∈ (0..^𝑁) β†’ (πΊβ€˜πΎ) = (β„•0 Γ— {𝐾}))
22 ovex 7448 . . . . 5 (π‘₯ mod 𝑁) ∈ V
2322, 12fnmpti 6692 . . . 4 𝐼 Fn β„•0
24 fcoconst 7138 . . . 4 ((𝐼 Fn β„•0 ∧ 𝐾 ∈ β„•0) β†’ (𝐼 ∘ (β„•0 Γ— {𝐾})) = (β„•0 Γ— {(πΌβ€˜πΎ)}))
2523, 16, 24sylancr 585 . . 3 (𝐾 ∈ (0..^𝑁) β†’ (𝐼 ∘ (β„•0 Γ— {𝐾})) = (β„•0 Γ— {(πΌβ€˜πΎ)}))
2620, 21, 253eqtr4d 2775 . 2 (𝐾 ∈ (0..^𝑁) β†’ (πΊβ€˜πΎ) = (𝐼 ∘ (β„•0 Γ— {𝐾})))
274, 11, 263eqtr4d 2775 1 (𝐾 ∈ (0..^𝑁) β†’ (𝐼 ∘ (πΊβ€˜πΎ)) = (πΊβ€˜πΎ))
Colors of variables: wff setvar class
Syntax hints:   β†’ wi 4   = wceq 1533   ∈ wcel 2098  {csn 4624   ↦ cmpt 5226   Γ— cxp 5670   ∘ ccom 5676   Fn wfn 6537  β€˜cfv 6542  (class class class)co 7415  0cc0 11136  β„•cn 12240  β„•0cn0 12500  ..^cfzo 13657   mod cmo 13864  EndoFMndcefmnd 18822
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1905  ax-6 1963  ax-7 2003  ax-8 2100  ax-9 2108  ax-10 2129  ax-11 2146  ax-12 2166  ax-ext 2696  ax-rep 5280  ax-sep 5294  ax-nul 5301  ax-pow 5359  ax-pr 5423  ax-un 7737  ax-cnex 11192  ax-resscn 11193  ax-1cn 11194  ax-icn 11195  ax-addcl 11196  ax-addrcl 11197  ax-mulcl 11198  ax-mulrcl 11199  ax-mulcom 11200  ax-addass 11201  ax-mulass 11202  ax-distr 11203  ax-i2m1 11204  ax-1ne0 11205  ax-1rid 11206  ax-rnegex 11207  ax-rrecex 11208  ax-cnre 11209  ax-pre-lttri 11210  ax-pre-lttrn 11211  ax-pre-ltadd 11212  ax-pre-mulgt0 11213  ax-pre-sup 11214
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 846  df-3or 1085  df-3an 1086  df-tru 1536  df-fal 1546  df-ex 1774  df-nf 1778  df-sb 2060  df-mo 2528  df-eu 2557  df-clab 2703  df-cleq 2717  df-clel 2802  df-nfc 2877  df-ne 2931  df-nel 3037  df-ral 3052  df-rex 3061  df-rmo 3364  df-reu 3365  df-rab 3420  df-v 3465  df-sbc 3770  df-csb 3886  df-dif 3943  df-un 3945  df-in 3947  df-ss 3957  df-pss 3960  df-nul 4319  df-if 4525  df-pw 4600  df-sn 4625  df-pr 4627  df-op 4631  df-uni 4904  df-iun 4993  df-br 5144  df-opab 5206  df-mpt 5227  df-tr 5261  df-id 5570  df-eprel 5576  df-po 5584  df-so 5585  df-fr 5627  df-we 5629  df-xp 5678  df-rel 5679  df-cnv 5680  df-co 5681  df-dm 5682  df-rn 5683  df-res 5684  df-ima 5685  df-pred 6300  df-ord 6367  df-on 6368  df-lim 6369  df-suc 6370  df-iota 6494  df-fun 6544  df-fn 6545  df-f 6546  df-f1 6547  df-fo 6548  df-f1o 6549  df-fv 6550  df-riota 7371  df-ov 7418  df-oprab 7419  df-mpo 7420  df-om 7868  df-1st 7989  df-2nd 7990  df-frecs 8283  df-wrecs 8314  df-recs 8388  df-rdg 8427  df-er 8721  df-en 8961  df-dom 8962  df-sdom 8963  df-sup 9463  df-inf 9464  df-pnf 11278  df-mnf 11279  df-xr 11280  df-ltxr 11281  df-le 11282  df-sub 11474  df-neg 11475  df-div 11900  df-nn 12241  df-n0 12501  df-z 12587  df-uz 12851  df-rp 13005  df-fz 13515  df-fzo 13658  df-fl 13787  df-mod 13865
This theorem is referenced by:  smndex1mgm  18861  smndex1mndlem  18863
  Copyright terms: Public domain W3C validator