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

Theorem odfval 19140
Description: Value of the order function. For a shorter proof using ax-rep 5209, see odfvalALT 19141. (Contributed by Mario Carneiro, 13-Jul-2014.) (Revised by AV, 5-Oct-2020.) Remove dependency on ax-rep 5209. (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 6774 . . . . . 6 (𝑔 = 𝐺 → (Base‘𝑔) = (Base‘𝐺))
3 odval.1 . . . . . 6 𝑋 = (Base‘𝐺)
42, 3eqtr4di 2796 . . . . 5 (𝑔 = 𝐺 → (Base‘𝑔) = 𝑋)
5 fveq2 6774 . . . . . . . . . 10 (𝑔 = 𝐺 → (.g𝑔) = (.g𝐺))
6 odval.2 . . . . . . . . . 10 · = (.g𝐺)
75, 6eqtr4di 2796 . . . . . . . . 9 (𝑔 = 𝐺 → (.g𝑔) = · )
87oveqd 7292 . . . . . . . 8 (𝑔 = 𝐺 → (𝑦(.g𝑔)𝑥) = (𝑦 · 𝑥))
9 fveq2 6774 . . . . . . . . 9 (𝑔 = 𝐺 → (0g𝑔) = (0g𝐺))
10 odval.3 . . . . . . . . 9 0 = (0g𝐺)
119, 10eqtr4di 2796 . . . . . . . 8 (𝑔 = 𝐺 → (0g𝑔) = 0 )
128, 11eqeq12d 2754 . . . . . . 7 (𝑔 = 𝐺 → ((𝑦(.g𝑔)𝑥) = (0g𝑔) ↔ (𝑦 · 𝑥) = 0 ))
1312rabbidv 3414 . . . . . 6 (𝑔 = 𝐺 → {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
1413csbeq1d 3836 . . . . 5 (𝑔 = 𝐺{𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )))
154, 14mpteq12dv 5165 . . . 4 (𝑔 = 𝐺 → (𝑥 ∈ (Base‘𝑔) ↦ {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
16 df-od 19136 . . . 4 od = (𝑔 ∈ V ↦ (𝑥 ∈ (Base‘𝑔) ↦ {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
173fvexi 6788 . . . . 5 𝑋 ∈ V
18 nn0ex 12239 . . . . 5 0 ∈ V
19 nnex 11979 . . . . . . . . 9 ℕ ∈ V
2019rabex 5256 . . . . . . . 8 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ∈ V
21 eqeq1 2742 . . . . . . . . 9 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → (𝑖 = ∅ ↔ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅))
22 infeq1 9235 . . . . . . . . 9 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → inf(𝑖, ℝ, < ) = inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ))
2321, 22ifbieq2d 4485 . . . . . . . 8 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < )))
2420, 23csbie 3868 . . . . . . 7 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ))
25 0nn0 12248 . . . . . . . . . 10 0 ∈ ℕ0
2625a1i 11 . . . . . . . . 9 ((⊤ ∧ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅) → 0 ∈ ℕ0)
27 df-ne 2944 . . . . . . . . . . . 12 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ ↔ ¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅)
28 ssrab2 4013 . . . . . . . . . . . . 13 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ ℕ
29 nnuz 12621 . . . . . . . . . . . . . . 15 ℕ = (ℤ‘1)
3028, 29sseqtri 3957 . . . . . . . . . . . . . 14 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ (ℤ‘1)
31 infssuzcl 12672 . . . . . . . . . . . . . 14 (({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ (ℤ‘1) ∧ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅) → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
3230, 31mpan 687 . . . . . . . . . . . . 13 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
3328, 32sselid 3919 . . . . . . . . . . . 12 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ)
3427, 33sylbir 234 . . . . . . . . . . 11 (¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ)
3534nnnn0d 12293 . . . . . . . . . 10 (¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ0)
3635adantl 482 . . . . . . . . 9 ((⊤ ∧ ¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅) → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ0)
3726, 36ifclda 4494 . . . . . . . 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 3076 . . . . 5 𝑥𝑋 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) ∈ ℕ0
4117, 18, 40mptexw 7795 . . . 4 (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) ∈ V
4215, 16, 41fvmpt 6875 . . 3 (𝐺 ∈ V → (od‘𝐺) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
43 fvprc 6766 . . . 4 𝐺 ∈ V → (od‘𝐺) = ∅)
44 fvprc 6766 . . . . . . 7 𝐺 ∈ V → (Base‘𝐺) = ∅)
453, 44eqtrid 2790 . . . . . 6 𝐺 ∈ V → 𝑋 = ∅)
4645mpteq1d 5169 . . . . 5 𝐺 ∈ V → (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = (𝑥 ∈ ∅ ↦ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
47 mpt0 6575 . . . . 5 (𝑥 ∈ ∅ ↦ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = ∅
4846, 47eqtrdi 2794 . . . 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 396   = wceq 1539  wtru 1540  wcel 2106  wne 2943  {crab 3068  Vcvv 3432  csb 3832  wss 3887  c0 4256  ifcif 4459  cmpt 5157  cfv 6433  (class class class)co 7275  infcinf 9200  cr 10870  0cc0 10871  1c1 10872   < clt 11009  cn 11973  0cn0 12233  cuz 12582  Basecbs 16912  0gc0g 17150  .gcmg 18700  odcod 19132
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-sup 9201  df-inf 9202  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-n0 12234  df-z 12320  df-uz 12583  df-od 19136
This theorem is referenced by:  odval  19142  odf  19145
  Copyright terms: Public domain W3C validator