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

Theorem znval 21841
Description: The value of the ℤ/nℤ structure. It is defined as the quotient ring ℤ / 𝑛ℤ, with an "artificial" ordering added to make it a Toset. (In other words, ℤ/nℤ is a ring with an order , but it is not an ordered ring , which as a term implies that the order is compatible with the ring operations in some way.) (Contributed by Mario Carneiro, 14-Jun-2015.) (Revised by Mario Carneiro, 2-May-2016.) (Revised by AV, 13-Jun-2019.)
Hypotheses
Ref Expression
znval.s 𝑆 = (RSpan‘ℤring)
znval.u 𝑈 = (ℤring /s (ℤring ~QG (𝑆‘{𝑁})))
znval.y 𝑌 = (ℤ/nℤ‘𝑁)
znval.f 𝐹 = ((ℤRHom‘𝑈) ↾ 𝑊)
znval.w 𝑊 = if(𝑁 = 0, ℤ, (0..^𝑁))
znval.l ≤ = ((𝐹 ∘ ≤ ) ∘ ◡𝐹)
Assertion
Ref Expression
znval (𝑁 ∈ ℕ0 → 𝑌 = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))

Proof of Theorem znval
Dummy variables 𝑓 𝑛 𝑠 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 znval.y . 2 𝑌 = (ℤ/nℤ‘𝑁)
2 zringring 21755 . . . . 5 ℤring ∈ Ring
32a1i 11 . . . 4 (𝑛 = 𝑁 → ℤring ∈ Ring)
4 ovexd 7455 . . . . 5 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) ∈ V)
5 id 23 . . . . . . 7 (𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) → 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))))
6 simpr 490 . . . . . . . . 9 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → 𝑧 = ℤring)
76fveq2d 6889 . . . . . . . . . . . 12 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (RSpan‘𝑧) = (RSpan‘ℤring))
8 znval.s . . . . . . . . . . . 12 𝑆 = (RSpan‘ℤring)
97, 8eqtr4di 2814 . . . . . . . . . . 11 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (RSpan‘𝑧) = 𝑆)
10 simpl 488 . . . . . . . . . . . 12 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → 𝑛 = 𝑁)
1110sneqd 4596 . . . . . . . . . . 11 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → {𝑛} = {𝑁})
129, 11fveq12d 6892 . . . . . . . . . 10 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → ((RSpan‘𝑧)‘{𝑛}) = (𝑆‘{𝑁}))
136, 12oveq12d 7438 . . . . . . . . 9 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})) = (ℤring ~QG (𝑆‘{𝑁})))
146, 13oveq12d 7438 . . . . . . . 8 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) = (ℤring /s (ℤring ~QG (𝑆‘{𝑁}))))
15 znval.u . . . . . . . 8 𝑈 = (ℤring /s (ℤring ~QG (𝑆‘{𝑁})))
1614, 15eqtr4di 2814 . . . . . . 7 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) = 𝑈)
175, 16sylan9eqr 2818 . . . . . 6 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → 𝑠 = 𝑈)
18 fvex 6898 . . . . . . . . . 10 (ℤRHom‘𝑠) ∈ V
1918resex 6018 . . . . . . . . 9 ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) ∈ V
2019a1i 11 . . . . . . . 8 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) ∈ V)
21 id 23 . . . . . . . . . . . 12 (𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) → 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))))
2217fveq2d 6889 . . . . . . . . . . . . . 14 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (ℤRHom‘𝑠) = (ℤRHom‘𝑈))
23 simpll 779 . . . . . . . . . . . . . . . . 17 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → 𝑛 = 𝑁)
2423eqeq1d 2763 . . . . . . . . . . . . . . . 16 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (𝑛 = 0 ↔ 𝑁 = 0))
2523oveq2d 7436 . . . . . . . . . . . . . . . 16 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (0..^𝑛) = (0..^𝑁))
2624, 25ifbieq2d 4509 . . . . . . . . . . . . . . 15 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → if(𝑛 = 0, ℤ, (0..^𝑛)) = if(𝑁 = 0, ℤ, (0..^𝑁)))
27 znval.w . . . . . . . . . . . . . . 15 𝑊 = if(𝑁 = 0, ℤ, (0..^𝑁))
2826, 27eqtr4di 2814 . . . . . . . . . . . . . 14 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → if(𝑛 = 0, ℤ, (0..^𝑛)) = 𝑊)
2922, 28reseq12d 5971 . . . . . . . . . . . . 13 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) = ((ℤRHom‘𝑈) ↾ 𝑊))
30 znval.f . . . . . . . . . . . . 13 𝐹 = ((ℤRHom‘𝑈) ↾ 𝑊)
3129, 30eqtr4di 2814 . . . . . . . . . . . 12 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) = 𝐹)
3221, 31sylan9eqr 2818 . . . . . . . . . . 11 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → 𝑓 = 𝐹)
3332coeq1d 5839 . . . . . . . . . 10 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → (𝑓 ∘ ≤ ) = (𝐹 ∘ ≤ ))
3432cnveqd 5853 . . . . . . . . . 10 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → ◡𝑓 = ◡𝐹)
3533, 34coeq12d 5842 . . . . . . . . 9 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → ((𝑓 ∘ ≤ ) ∘ ◡𝑓) = ((𝐹 ∘ ≤ ) ∘ ◡𝐹))
36 znval.l . . . . . . . . 9 ≤ = ((𝐹 ∘ ≤ ) ∘ ◡𝐹)
3735, 36eqtr4di 2814 . . . . . . . 8 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → ((𝑓 ∘ ≤ ) ∘ ◡𝑓) = ≤ )
3820, 37csbied 3883 . . . . . . 7 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓) = ≤ )
3938opeq2d 4840 . . . . . 6 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩ = ⟨(le‘ndx), ≤ ⟩)
4017, 39oveq12d 7438 . . . . 5 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
414, 40csbied 3883 . . . 4 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → ⦋(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠⦌(𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
423, 41csbied 3883 . . 3 (𝑛 = 𝑁 → ⦋ℤring / 𝑧⦌⦋(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠⦌(𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
43 df-zn 21812 . . 3 ℤ/nℤ = (𝑛 ∈ ℕ0 ↦ ⦋ℤring / 𝑧⦌⦋(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠⦌(𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩))
44 ovex 7453 . . 3 (𝑈 sSet ⟨(le‘ndx), ≤ ⟩) ∈ V
4542, 43, 44fvmpt 6993 . 2 (𝑁 ∈ ℕ0 → (ℤ/nℤ‘𝑁) = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
461, 45eqtrid 2808 1 (𝑁 ∈ ℕ0 → 𝑌 = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145  Vcvv 3451  ⦋csb 3847  ifcif 4482  {csn 4584  ⟨cop 4590  ◡ccnv 5650   ↾ cres 5653   ∘ ccom 5655  ‘cfv 6538  (class class class)co 7420  0cc0 11200   ≤ cle 11344  ℕ0cn0 12606  ℤcz 12693  ..^cfzo 13788   sSet csts 17341  ndxcnx 17371  lecple 17435   /s cqus 17677   ~QG cqg 19332  Ringcrg 20459  RSpancrsp 21485  ℤringczring 21752  ℤRHomczrh 21805  ℤ/nℤczn 21808
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7751  ax-cnex 11256  ax-resscn 11257  ax-1cn 11258  ax-icn 11259  ax-addcl 11260  ax-addrcl 11261  ax-mulcl 11262  ax-mulrcl 11263  ax-mulcom 11264  ax-addass 11265  ax-mulass 11266  ax-distr 11267  ax-i2m1 11268  ax-1ne0 11269  ax-1rid 11270  ax-rnegex 11271  ax-rrecex 11272  ax-cnre 11273  ax-pre-lttri 11274  ax-pre-lttrn 11275  ax-pre-ltadd 11276  ax-pre-mulgt0 11277  ax-addf 11279
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-tp 4589  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6304  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-riota 7377  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7878  df-1st 8001  df-2nd 8002  df-frecs 8299  df-wrecs 8330  df-recs 8379  df-rdg 8418  df-1o 8476  df-er 8717  df-en 8974  df-dom 8975  df-sdom 8976  df-fin 8977  df-pnf 11345  df-mnf 11346  df-xr 11347  df-ltxr 11348  df-le 11349  df-sub 11543  df-neg 11544  df-nn 12336  df-2 12405  df-3 12406  df-4 12407  df-5 12408  df-6 12409  df-7 12410  df-8 12411  df-9 12412  df-n0 12607  df-z 12694  df-dec 12815  df-uz 12966  df-fz 13640  df-struct 17325  df-sets 17342  df-slot 17360  df-ndx 17372  df-base 17388  df-ress 17409  df-plusg 17441  df-mulr 17442  df-starv 17443  df-tset 17447  df-ple 17448  df-ds 17450  df-unif 17451  df-0g 17612  df-mgm 18816  df-sgrp 18908  df-mnd 18924  df-grp 19147  df-minusg 19148  df-subg 19333  df-cmn 19996  df-abl 19997  df-mgp 20361  df-rng 20375  df-ur 20408  df-ring 20461  df-cring 20462  df-subrng 20798  df-subrg 20822  df-cnfld 21679  df-zring 21753  df-zn 21812
This theorem is used by:  znle  21842  znval2  21843
  Copyright terms: Public domain W3C validator