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

Theorem odfval 19055
Description: Value of the order function. For a shorter proof using ax-rep 5205, see odfvalALT 19056. (Contributed by Mario Carneiro, 13-Jul-2014.) (Revised by AV, 5-Oct-2020.) Remove dependency on ax-rep 5205. (Revised by Rohan Ridenour, 17-Aug-2023.)
Hypotheses
Ref Expression
odval.1 𝑋 = (Base‘𝐺)
odval.2 · = (.g𝐺)
odval.3 0 = (0g𝐺)
odval.4 𝑂 = (od‘𝐺)
Assertion
Ref Expression
odfval 𝑂 = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )))
Distinct variable groups:   𝑦,𝑖,𝑥   𝑥,𝐺,𝑦   𝑥, · ,𝑖,𝑦   𝑥, 0 ,𝑦,𝑖   𝑥,𝑋
Allowed substitution hints:   𝐺(𝑖)   𝑂(𝑥,𝑦,𝑖)   𝑋(𝑦,𝑖)

Proof of Theorem odfval
Dummy variable 𝑔 is distinct from all other variables.
StepHypRef Expression
1 odval.4 . 2 𝑂 = (od‘𝐺)
2 fveq2 6756 . . . . . 6 (𝑔 = 𝐺 → (Base‘𝑔) = (Base‘𝐺))
3 odval.1 . . . . . 6 𝑋 = (Base‘𝐺)
42, 3eqtr4di 2797 . . . . 5 (𝑔 = 𝐺 → (Base‘𝑔) = 𝑋)
5 fveq2 6756 . . . . . . . . . 10 (𝑔 = 𝐺 → (.g𝑔) = (.g𝐺))
6 odval.2 . . . . . . . . . 10 · = (.g𝐺)
75, 6eqtr4di 2797 . . . . . . . . 9 (𝑔 = 𝐺 → (.g𝑔) = · )
87oveqd 7272 . . . . . . . 8 (𝑔 = 𝐺 → (𝑦(.g𝑔)𝑥) = (𝑦 · 𝑥))
9 fveq2 6756 . . . . . . . . 9 (𝑔 = 𝐺 → (0g𝑔) = (0g𝐺))
10 odval.3 . . . . . . . . 9 0 = (0g𝐺)
119, 10eqtr4di 2797 . . . . . . . 8 (𝑔 = 𝐺 → (0g𝑔) = 0 )
128, 11eqeq12d 2754 . . . . . . 7 (𝑔 = 𝐺 → ((𝑦(.g𝑔)𝑥) = (0g𝑔) ↔ (𝑦 · 𝑥) = 0 ))
1312rabbidv 3404 . . . . . 6 (𝑔 = 𝐺 → {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
1413csbeq1d 3832 . . . . 5 (𝑔 = 𝐺{𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )))
154, 14mpteq12dv 5161 . . . 4 (𝑔 = 𝐺 → (𝑥 ∈ (Base‘𝑔) ↦ {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
16 df-od 19051 . . . 4 od = (𝑔 ∈ V ↦ (𝑥 ∈ (Base‘𝑔) ↦ {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
173fvexi 6770 . . . . 5 𝑋 ∈ V
18 nn0ex 12169 . . . . 5 0 ∈ V
19 nnex 11909 . . . . . . . . 9 ℕ ∈ V
2019rabex 5251 . . . . . . . 8 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ∈ V
21 eqeq1 2742 . . . . . . . . 9 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → (𝑖 = ∅ ↔ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅))
22 infeq1 9165 . . . . . . . . 9 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → inf(𝑖, ℝ, < ) = inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ))
2321, 22ifbieq2d 4482 . . . . . . . 8 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < )))
2420, 23csbie 3864 . . . . . . 7 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ))
25 0nn0 12178 . . . . . . . . . 10 0 ∈ ℕ0
2625a1i 11 . . . . . . . . 9 ((⊤ ∧ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅) → 0 ∈ ℕ0)
27 df-ne 2943 . . . . . . . . . . . 12 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ ↔ ¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅)
28 ssrab2 4009 . . . . . . . . . . . . 13 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ ℕ
29 nnuz 12550 . . . . . . . . . . . . . . 15 ℕ = (ℤ‘1)
3028, 29sseqtri 3953 . . . . . . . . . . . . . 14 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ (ℤ‘1)
31 infssuzcl 12601 . . . . . . . . . . . . . 14 (({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ (ℤ‘1) ∧ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅) → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
3230, 31mpan 686 . . . . . . . . . . . . 13 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
3328, 32sselid 3915 . . . . . . . . . . . 12 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ)
3427, 33sylbir 234 . . . . . . . . . . 11 (¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ)
3534nnnn0d 12223 . . . . . . . . . 10 (¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ0)
3635adantl 481 . . . . . . . . 9 ((⊤ ∧ ¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅) → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ0)
3726, 36ifclda 4491 . . . . . . . 8 (⊤ → if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < )) ∈ ℕ0)
3837mptru 1546 . . . . . . 7 if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < )) ∈ ℕ0
3924, 38eqeltri 2835 . . . . . 6 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) ∈ ℕ0
4039rgenw 3075 . . . . 5 𝑥𝑋 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) ∈ ℕ0
4117, 18, 40mptexw 7769 . . . 4 (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) ∈ V
4215, 16, 41fvmpt 6857 . . 3 (𝐺 ∈ V → (od‘𝐺) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
43 fvprc 6748 . . . 4 𝐺 ∈ V → (od‘𝐺) = ∅)
44 fvprc 6748 . . . . . . 7 𝐺 ∈ V → (Base‘𝐺) = ∅)
453, 44eqtrid 2790 . . . . . 6 𝐺 ∈ V → 𝑋 = ∅)
4645mpteq1d 5165 . . . . 5 𝐺 ∈ V → (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = (𝑥 ∈ ∅ ↦ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
47 mpt0 6559 . . . . 5 (𝑥 ∈ ∅ ↦ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = ∅
4846, 47eqtrdi 2795 . . . 4 𝐺 ∈ V → (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = ∅)
4943, 48eqtr4d 2781 . . 3 𝐺 ∈ V → (od‘𝐺) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
5042, 49pm2.61i 182 . 2 (od‘𝐺) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )))
511, 50eqtri 2766 1 𝑂 = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 395   = wceq 1539  wtru 1540  wcel 2108  wne 2942  {crab 3067  Vcvv 3422  csb 3828  wss 3883  c0 4253  ifcif 4456  cmpt 5153  cfv 6418  (class class class)co 7255  infcinf 9130  cr 10801  0cc0 10802  1c1 10803   < clt 10940  cn 11903  0cn0 12163  cuz 12511  Basecbs 16840  0gc0g 17067  .gcmg 18615  odcod 19047
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-sup 9131  df-inf 9132  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164  df-z 12250  df-uz 12512  df-od 19051
This theorem is referenced by:  odval  19057  odf  19060
  Copyright terms: Public domain W3C validator