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

Theorem znval 20676
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 20614 . . . . 5 ring ∈ Ring
32a1i 11 . . . 4 (𝑛 = 𝑁 → ℤring ∈ Ring)
4 ovexd 7185 . . . . 5 ((𝑛 = 𝑁𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) ∈ V)
5 id 22 . . . . . . 7 (𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) → 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))))
6 simpr 487 . . . . . . . . 9 ((𝑛 = 𝑁𝑧 = ℤring) → 𝑧 = ℤring)
76fveq2d 6669 . . . . . . . . . . . 12 ((𝑛 = 𝑁𝑧 = ℤring) → (RSpan‘𝑧) = (RSpan‘ℤring))
8 znval.s . . . . . . . . . . . 12 𝑆 = (RSpan‘ℤring)
97, 8syl6eqr 2874 . . . . . . . . . . 11 ((𝑛 = 𝑁𝑧 = ℤring) → (RSpan‘𝑧) = 𝑆)
10 simpl 485 . . . . . . . . . . . 12 ((𝑛 = 𝑁𝑧 = ℤring) → 𝑛 = 𝑁)
1110sneqd 4573 . . . . . . . . . . 11 ((𝑛 = 𝑁𝑧 = ℤring) → {𝑛} = {𝑁})
129, 11fveq12d 6672 . . . . . . . . . 10 ((𝑛 = 𝑁𝑧 = ℤring) → ((RSpan‘𝑧)‘{𝑛}) = (𝑆‘{𝑁}))
136, 12oveq12d 7168 . . . . . . . . 9 ((𝑛 = 𝑁𝑧 = ℤring) → (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})) = (ℤring ~QG (𝑆‘{𝑁})))
146, 13oveq12d 7168 . . . . . . . 8 ((𝑛 = 𝑁𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) = (ℤring /s (ℤring ~QG (𝑆‘{𝑁}))))
15 znval.u . . . . . . . 8 𝑈 = (ℤring /s (ℤring ~QG (𝑆‘{𝑁})))
1614, 15syl6eqr 2874 . . . . . . 7 ((𝑛 = 𝑁𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) = 𝑈)
175, 16sylan9eqr 2878 . . . . . 6 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → 𝑠 = 𝑈)
18 fvex 6678 . . . . . . . . . 10 (ℤRHom‘𝑠) ∈ V
1918resex 5894 . . . . . . . . 9 ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) ∈ V
2019a1i 11 . . . . . . . 8 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) ∈ V)
21 id 22 . . . . . . . . . . . 12 (𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) → 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))))
2217fveq2d 6669 . . . . . . . . . . . . . 14 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (ℤRHom‘𝑠) = (ℤRHom‘𝑈))
23 simpll 765 . . . . . . . . . . . . . . . . 17 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → 𝑛 = 𝑁)
2423eqeq1d 2823 . . . . . . . . . . . . . . . 16 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (𝑛 = 0 ↔ 𝑁 = 0))
2523oveq2d 7166 . . . . . . . . . . . . . . . 16 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (0..^𝑛) = (0..^𝑁))
2624, 25ifbieq2d 4492 . . . . . . . . . . . . . . 15 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → if(𝑛 = 0, ℤ, (0..^𝑛)) = if(𝑁 = 0, ℤ, (0..^𝑁)))
27 znval.w . . . . . . . . . . . . . . 15 𝑊 = if(𝑁 = 0, ℤ, (0..^𝑁))
2826, 27syl6eqr 2874 . . . . . . . . . . . . . 14 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → if(𝑛 = 0, ℤ, (0..^𝑛)) = 𝑊)
2922, 28reseq12d 5849 . . . . . . . . . . . . 13 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) = ((ℤRHom‘𝑈) ↾ 𝑊))
30 znval.f . . . . . . . . . . . . 13 𝐹 = ((ℤRHom‘𝑈) ↾ 𝑊)
3129, 30syl6eqr 2874 . . . . . . . . . . . 12 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) = 𝐹)
3221, 31sylan9eqr 2878 . . . . . . . . . . 11 ((((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → 𝑓 = 𝐹)
3332coeq1d 5727 . . . . . . . . . 10 ((((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → (𝑓 ∘ ≤ ) = (𝐹 ∘ ≤ ))
3432cnveqd 5741 . . . . . . . . . 10 ((((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → 𝑓 = 𝐹)
3533, 34coeq12d 5730 . . . . . . . . 9 ((((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → ((𝑓 ∘ ≤ ) ∘ 𝑓) = ((𝐹 ∘ ≤ ) ∘ 𝐹))
36 znval.l . . . . . . . . 9 = ((𝐹 ∘ ≤ ) ∘ 𝐹)
3735, 36syl6eqr 2874 . . . . . . . 8 ((((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) ∧ 𝑓 = ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛)))) → ((𝑓 ∘ ≤ ) ∘ 𝑓) = )
3820, 37csbied 3919 . . . . . . 7 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓((𝑓 ∘ ≤ ) ∘ 𝑓) = )
3938opeq2d 4804 . . . . . 6 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → ⟨(le‘ndx), ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓((𝑓 ∘ ≤ ) ∘ 𝑓)⟩ = ⟨(le‘ndx), ⟩)
4017, 39oveq12d 7168 . . . . 5 (((𝑛 = 𝑁𝑧 = ℤring) ∧ 𝑠 = (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛})))) → (𝑠 sSet ⟨(le‘ndx), ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓((𝑓 ∘ ≤ ) ∘ 𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ⟩))
414, 40csbied 3919 . . . 4 ((𝑛 = 𝑁𝑧 = ℤring) → (𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠(𝑠 sSet ⟨(le‘ndx), ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓((𝑓 ∘ ≤ ) ∘ 𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ⟩))
423, 41csbied 3919 . . 3 (𝑛 = 𝑁ring / 𝑧(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠(𝑠 sSet ⟨(le‘ndx), ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓((𝑓 ∘ ≤ ) ∘ 𝑓)⟩) = (𝑈 sSet ⟨(le‘ndx), ⟩))
43 df-zn 20648 . . 3 ℤ/nℤ = (𝑛 ∈ ℕ0ring / 𝑧(𝑧 /s (𝑧 ~QG ((RSpan‘𝑧)‘{𝑛}))) / 𝑠(𝑠 sSet ⟨(le‘ndx), ((ℤRHom‘𝑠) ↾ if(𝑛 = 0, ℤ, (0..^𝑛))) / 𝑓((𝑓 ∘ ≤ ) ∘ 𝑓)⟩))
44 ovex 7183 . . 3 (𝑈 sSet ⟨(le‘ndx), ⟩) ∈ V
4542, 43, 44fvmpt 6763 . 2 (𝑁 ∈ ℕ0 → (ℤ/nℤ‘𝑁) = (𝑈 sSet ⟨(le‘ndx), ⟩))
461, 45syl5eq 2868 1 (𝑁 ∈ ℕ0𝑌 = (𝑈 sSet ⟨(le‘ndx), ⟩))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1533  wcel 2110  Vcvv 3495  csb 3883  ifcif 4467  {csn 4561  cop 4567  ccnv 5549  cres 5552  ccom 5554  cfv 6350  (class class class)co 7150  0cc0 10531  cle 10670  0cn0 11891  cz 11975  ..^cfzo 13027  ndxcnx 16474   sSet csts 16475  lecple 16566   /s cqus 16772   ~QG cqg 18269  Ringcrg 19291  RSpancrsp 19937  ringzring 20611  ℤRHomczrh 20641  ℤ/nczn 20644
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5322  ax-un 7455  ax-cnex 10587  ax-resscn 10588  ax-1cn 10589  ax-icn 10590  ax-addcl 10591  ax-addrcl 10592  ax-mulcl 10593  ax-mulrcl 10594  ax-mulcom 10595  ax-addass 10596  ax-mulass 10597  ax-distr 10598  ax-i2m1 10599  ax-1ne0 10600  ax-1rid 10601  ax-rnegex 10602  ax-rrecex 10603  ax-cnre 10604  ax-pre-lttri 10605  ax-pre-lttrn 10606  ax-pre-ltadd 10607  ax-pre-mulgt0 10608  ax-addf 10610  ax-mulf 10611
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3497  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-pss 3954  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4562  df-pr 4564  df-tp 4566  df-op 4568  df-uni 4833  df-int 4870  df-iun 4914  df-br 5060  df-opab 5122  df-mpt 5140  df-tr 5166  df-id 5455  df-eprel 5460  df-po 5469  df-so 5470  df-fr 5509  df-we 5511  df-xp 5556  df-rel 5557  df-cnv 5558  df-co 5559  df-dm 5560  df-rn 5561  df-res 5562  df-ima 5563  df-pred 6143  df-ord 6189  df-on 6190  df-lim 6191  df-suc 6192  df-iota 6309  df-fun 6352  df-fn 6353  df-f 6354  df-f1 6355  df-fo 6356  df-f1o 6357  df-fv 6358  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7575  df-1st 7683  df-2nd 7684  df-wrecs 7941  df-recs 8002  df-rdg 8040  df-1o 8096  df-oadd 8100  df-er 8283  df-en 8504  df-dom 8505  df-sdom 8506  df-fin 8507  df-pnf 10671  df-mnf 10672  df-xr 10673  df-ltxr 10674  df-le 10675  df-sub 10866  df-neg 10867  df-nn 11633  df-2 11694  df-3 11695  df-4 11696  df-5 11697  df-6 11698  df-7 11699  df-8 11700  df-9 11701  df-n0 11892  df-z 11976  df-dec 12093  df-uz 12238  df-fz 12887  df-struct 16479  df-ndx 16480  df-slot 16481  df-base 16483  df-sets 16484  df-ress 16485  df-plusg 16572  df-mulr 16573  df-starv 16574  df-tset 16578  df-ple 16579  df-ds 16581  df-unif 16582  df-0g 16709  df-mgm 17846  df-sgrp 17895  df-mnd 17906  df-grp 18100  df-minusg 18101  df-subg 18270  df-cmn 18902  df-mgp 19234  df-ur 19246  df-ring 19293  df-cring 19294  df-subrg 19527  df-cnfld 20540  df-zring 20612  df-zn 20648
This theorem is referenced by:  znle  20677  znval2  20678
  Copyright terms: Public domain W3C validator