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

Theorem znval 21842
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 21756 . . . . 5 ℤring ∈ Ring
32a1i 11 . . . 4 (𝑛 = 𝑁 → ℤring ∈ Ring)
4 ovexd 7456 . . . . 5 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) ∈ V)
5 id 23 . . . . . . 7 (𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) → 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))))
6 simpr 490 . . . . . . . . 9 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → 𝑧 = ℤring)
76fveq2d 6890 . . . . . . . . . . . 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 6893 . . . . . . . . . 10 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → ((RSpan‘𝑧)‘{𝑛}) = (𝑆‘{𝑁}))
136, 12oveq12d 7439 . . . . . . . . 9 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})) = (ℤring ~QG (𝑆‘{𝑁})))
146, 13oveq12d 7439 . . . . . . . 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 6899 . . . . . . . . . 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 6890 . . . . . . . . . . . . . 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 7437 . . . . . . . . . . . . . . . 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 7439 . . . . 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 21813 . . 3 ℤ/nℤ = (𝑛 ∈ ℕ0 ↦ ⦋ℤring / 𝑧⦌⦋(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠⦌(𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩))
44 ovex 7454 . . 3 (𝑈 sSet ⟨(le‘ndx), ≤ ⟩) ∈ V
4542, 43, 44fvmpt 6994 . 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 6539  (class class class)co 7421  0cc0 11201   ≤ cle 11345  ℕ0cn0 12607  ℤcz 12694  ..^cfzo 13789   sSet csts 17342  ndxcnx 17372  lecple 17436   /s cqus 17678   ~QG cqg 19333  Ringcrg 20460  RSpancrsp 21486  ℤringczring 21753  ℤRHomczrh 21806  ℤ/nℤczn 21809
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 7752  ax-cnex 11257  ax-resscn 11258  ax-1cn 11259  ax-icn 11260  ax-addcl 11261  ax-addrcl 11262  ax-mulcl 11263  ax-mulrcl 11264  ax-mulcom 11265  ax-addass 11266  ax-mulass 11267  ax-distr 11268  ax-i2m1 11269  ax-1ne0 11270  ax-1rid 11271  ax-rnegex 11272  ax-rrecex 11273  ax-cnre 11274  ax-pre-lttri 11275  ax-pre-lttrn 11276  ax-pre-ltadd 11277  ax-pre-mulgt0 11278  ax-addf 11280
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 3900  df-un 3902  df-in 3904  df-ss 3915  df-pss 4035  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 6305  df-ord 6366  df-on 6367  df-lim 6368  df-suc 6369  df-iota 6495  df-fun 6541  df-fn 6542  df-f 6543  df-f1 6544  df-fo 6545  df-f1o 6546  df-fv 6547  df-riota 7378  df-ov 7424  df-oprab 7425  df-mpo 7426  df-om 7879  df-1st 8002  df-2nd 8003  df-frecs 8300  df-wrecs 8331  df-recs 8380  df-rdg 8419  df-1o 8477  df-er 8718  df-en 8975  df-dom 8976  df-sdom 8977  df-fin 8978  df-pnf 11346  df-mnf 11347  df-xr 11348  df-ltxr 11349  df-le 11350  df-sub 11544  df-neg 11545  df-nn 12337  df-2 12406  df-3 12407  df-4 12408  df-5 12409  df-6 12410  df-7 12411  df-8 12412  df-9 12413  df-n0 12608  df-z 12695  df-dec 12816  df-uz 12967  df-fz 13641  df-struct 17326  df-sets 17343  df-slot 17361  df-ndx 17373  df-base 17389  df-ress 17410  df-plusg 17442  df-mulr 17443  df-starv 17444  df-tset 17448  df-ple 17449  df-ds 17451  df-unif 17452  df-0g 17613  df-mgm 18817  df-sgrp 18909  df-mnd 18925  df-grp 19148  df-minusg 19149  df-subg 19334  df-cmn 19997  df-abl 19998  df-mgp 20362  df-rng 20376  df-ur 20409  df-ring 20462  df-cring 20463  df-subrng 20799  df-subrg 20823  df-cnfld 21680  df-zring 21754  df-zn 21813
This theorem is used by:  znle  21843  znval2  21844
  Copyright terms: Public domain W3C validator