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

Theorem znval 21896
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 21809 . . . . 5 ℤring ∈ Ring
32a1i 11 . . . 4 (𝑛 = 𝑁 → ℤring ∈ Ring)
4 ovexd 7486 . . . . 5 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) ∈ V)
5 id 23 . . . . . . 7 (𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) → 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))))
6 simpr 490 . . . . . . . . 9 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → 𝑧 = ℤring)
76fveq2d 6920 . . . . . . . . . . . 12 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (RSpan‘𝑧) = (RSpan‘ℤring))
8 znval.s . . . . . . . . . . . 12 𝑆 = (RSpan‘ℤring)
97, 8eqtr4di 2816 . . . . . . . . . . 11 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (RSpan‘𝑧) = 𝑆)
10 simpl 488 . . . . . . . . . . . 12 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → 𝑛 = 𝑁)
1110sneqd 4596 . . . . . . . . . . 11 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → {𝑛} = {𝑁})
129, 11fveq12d 6923 . . . . . . . . . 10 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → ((RSpan‘𝑧)‘{𝑛}) = (𝑆‘{𝑁}))
136, 12oveq12d 7469 . . . . . . . . 9 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})) = (ℤring ~QG (𝑆‘{𝑁})))
146, 13oveq12d 7469 . . . . . . . 8 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) = (ℤring /s (ℤring ~QG (𝑆‘{𝑁}))))
15 znval.u . . . . . . . 8 𝑈 = (ℤring /s (ℤring ~QG (𝑆‘{𝑁})))
1614, 15eqtr4di 2816 . . . . . . 7 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) = 𝑈)
175, 16sylan9eqr 2820 . . . . . 6 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → 𝑠 = 𝑈)
18 fvex 6929 . . . . . . . . . 10 (ℤRHom‘𝑠) ∈ V
1918resex 6036 . . . . . . . . 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 6920 . . . . . . . . . . . . . 14 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (ℤRHom‘𝑠) = (ℤRHom‘𝑈))
23 simpll 779 . . . . . . . . . . . . . . . . 17 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → 𝑛 = 𝑁)
2423eqeq1d 2765 . . . . . . . . . . . . . . . 16 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (𝑛 = 0 ↔ 𝑁 = 0))
2523oveq2d 7467 . . . . . . . . . . . . . . . 16 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (0..^𝑛) = (0..^𝑁))
2624, 25ifbieq2d 4512 . . . . . . . . . . . . . . 15 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → if(𝑛 = 0, ℤ, (0..^𝑛)) = if(𝑁 = 0, ℤ, (0..^𝑁)))
27 znval.w . . . . . . . . . . . . . . 15 𝑊 = if(𝑁 = 0, ℤ, (0..^𝑁))
2826, 27eqtr4di 2816 . . . . . . . . . . . . . 14 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → if(𝑛 = 0, ℤ, (0..^𝑛)) = 𝑊)
2922, 28reseq12d 5987 . . . . . . . . . . . . 13 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) = ((ℤRHom‘𝑈) ↾ 𝑊))
30 znval.f . . . . . . . . . . . . 13 𝐹 = ((ℤRHom‘𝑈) ↾ 𝑊)
3129, 30eqtr4di 2816 . . . . . . . . . . . 12 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) = 𝐹)
3221, 31sylan9eqr 2820 . . . . . . . . . . 11 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → 𝑓 = 𝐹)
3332coeq1d 5850 . . . . . . . . . 10 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → (𝑓 ∘ ≤ ) = (𝐹 ∘ ≤ ))
3432cnveqd 5865 . . . . . . . . . 10 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → ◡𝑓 = ◡𝐹)
3533, 34coeq12d 5853 . . . . . . . . 9 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → ((𝑓 ∘ ≤ ) ∘ ◡𝑓) = ((𝐹 ∘ ≤ ) ∘ ◡𝐹))
36 znval.l . . . . . . . . 9 ≤ = ((𝐹 ∘ ≤ ) ∘ ◡𝐹)
3735, 36eqtr4di 2816 . . . . . . . 8 ((((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → ((𝑓 ∘ ≤ ) ∘ ◡𝑓) = ≤ )
3820, 37csbied 3887 . . . . . . 7 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓) = ≤ )
3938opeq2d 4852 . . . . . 6 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩ = ⟨(le‘ndx), ≤ ⟩)
4017, 39oveq12d 7469 . . . . 5 (((𝑛 = 𝑁 ∧ 𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
414, 40csbied 3887 . . . 4 ((𝑛 = 𝑁 ∧ 𝑧 = ℤring) → ⦋(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠⦌(𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
423, 41csbied 3887 . . 3 (𝑛 = 𝑁 → ⦋ℤring / 𝑧⦌⦋(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠⦌(𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
43 df-zn 21867 . . 3 ℤ/nℤ = (𝑛 ∈ ℕ0 ↦ ⦋ℤring / 𝑧⦌⦋(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠⦌(𝑠 sSet ⟨(le‘ndx), ⦋((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓⦌((𝑓 ∘ ≤ ) ∘ ◡𝑓)⟩))
44 ovex 7484 . . 3 (𝑈 sSet ⟨(le‘ndx), ≤ ⟩) ∈ V
4542, 43, 44fvmpt 7024 . 2 (𝑁 ∈ ℕ0 → (ℤ/nℤ‘𝑁) = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
461, 45eqtrid 2810 1 (𝑁 ∈ ℕ0 → 𝑌 = (𝑈 sSet ⟨(le‘ndx), ≤ ⟩))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2147  Vcvv 3454  ⦋csb 3851  ifcif 4485  {csn 4588  ⟨cop 4840  ◡ccnv 5657   ↾ cres 5660   ∘ ccom 5662  ‘cfv 6566  (class class class)co 7451  0cc0 11239   ≤ cle 11383  ℕ0cn0 12646  ℤcz 12733  ..^cfzo 13828   sSet csts 17385  ndxcnx 17415  lecple 17479   /s cqus 17727   ~QG cqg 19382  Ringcrg 20510  RSpancrsp 21536  ℤringczring 21806  ℤRHomczrh 21860  ℤ/nℤczn 21863
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783  ax-cnex 11295  ax-resscn 11296  ax-1cn 11297  ax-icn 11298  ax-addcl 11299  ax-addrcl 11300  ax-mulcl 11301  ax-mulrcl 11302  ax-mulcom 11303  ax-addass 11304  ax-mulass 11305  ax-distr 11306  ax-i2m1 11307  ax-1ne0 11308  ax-1rid 11309  ax-rnegex 11310  ax-rrecex 11311  ax-cnre 11312  ax-pre-lttri 11313  ax-pre-lttrn 11314  ax-pre-ltadd 11315  ax-pre-mulgt0 11316  ax-addf 11318
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-tp 4593  df-op 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7408  df-ov 7454  df-oprab 7455  df-mpo 7456  df-om 7912  df-1st 8035  df-2nd 8036  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-1o 8514  df-er 8755  df-en 9012  df-dom 9013  df-sdom 9014  df-fin 9015  df-pnf 11384  df-mnf 11385  df-xr 11386  df-ltxr 11387  df-le 11388  df-sub 11582  df-neg 11583  df-nn 12376  df-2 12445  df-3 12446  df-4 12447  df-5 12448  df-6 12449  df-7 12450  df-8 12451  df-9 12452  df-n0 12647  df-z 12734  df-dec 12855  df-uz 13006  df-fz 13680  df-struct 17369  df-sets 17386  df-slot 17404  df-ndx 17416  df-base 17432  df-ress 17453  df-plusg 17486  df-mulr 17487  df-starv 17488  df-tset 17492  df-ple 17493  df-ds 17495  df-unif 17496  df-euf 17499  df-0g 17662  df-mgm 18866  df-sgrp 18958  df-mnd 18974  df-grp 19197  df-minusg 19198  df-subg 19383  df-cmn 20047  df-abl 20048  df-mgp 20412  df-rng 20426  df-ur 20459  df-ring 20512  df-cring 20513  df-subrng 20849  df-subrg 20873  df-cnfld 21730  df-zring 21807  df-zn 21867
This theorem is used by:  znle  21897  znval2  21898
  Copyright terms: Public domain W3C validator