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

Theorem odfval 18655
 Description: Value of the order function. For a shorter proof using ax-rep 5154, see odfvalALT 18656. (Contributed by Mario Carneiro, 13-Jul-2014.) (Revised by AV, 5-Oct-2020.) Remove depedency on ax-rep 5154. (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 6645 . . . . . 6 (𝑔 = 𝐺 → (Base‘𝑔) = (Base‘𝐺))
3 odval.1 . . . . . 6 𝑋 = (Base‘𝐺)
42, 3eqtr4di 2851 . . . . 5 (𝑔 = 𝐺 → (Base‘𝑔) = 𝑋)
5 fveq2 6645 . . . . . . . . . 10 (𝑔 = 𝐺 → (.g𝑔) = (.g𝐺))
6 odval.2 . . . . . . . . . 10 · = (.g𝐺)
75, 6eqtr4di 2851 . . . . . . . . 9 (𝑔 = 𝐺 → (.g𝑔) = · )
87oveqd 7152 . . . . . . . 8 (𝑔 = 𝐺 → (𝑦(.g𝑔)𝑥) = (𝑦 · 𝑥))
9 fveq2 6645 . . . . . . . . 9 (𝑔 = 𝐺 → (0g𝑔) = (0g𝐺))
10 odval.3 . . . . . . . . 9 0 = (0g𝐺)
119, 10eqtr4di 2851 . . . . . . . 8 (𝑔 = 𝐺 → (0g𝑔) = 0 )
128, 11eqeq12d 2814 . . . . . . 7 (𝑔 = 𝐺 → ((𝑦(.g𝑔)𝑥) = (0g𝑔) ↔ (𝑦 · 𝑥) = 0 ))
1312rabbidv 3427 . . . . . 6 (𝑔 = 𝐺 → {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
1413csbeq1d 3832 . . . . 5 (𝑔 = 𝐺{𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )))
154, 14mpteq12dv 5115 . . . 4 (𝑔 = 𝐺 → (𝑥 ∈ (Base‘𝑔) ↦ {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
16 df-od 18651 . . . 4 od = (𝑔 ∈ V ↦ (𝑥 ∈ (Base‘𝑔) ↦ {𝑦 ∈ ℕ ∣ (𝑦(.g𝑔)𝑥) = (0g𝑔)} / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
173fvexi 6659 . . . . 5 𝑋 ∈ V
18 nn0ex 11893 . . . . 5 0 ∈ V
19 nnex 11633 . . . . . . . . 9 ℕ ∈ V
2019rabex 5199 . . . . . . . 8 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ∈ V
21 eqeq1 2802 . . . . . . . . 9 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → (𝑖 = ∅ ↔ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅))
22 infeq1 8926 . . . . . . . . 9 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → inf(𝑖, ℝ, < ) = inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ))
2321, 22ifbieq2d 4450 . . . . . . . 8 (𝑖 = {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } → if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < )))
2420, 23csbie 3863 . . . . . . 7 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) = if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ))
25 0nn0 11902 . . . . . . . . . 10 0 ∈ ℕ0
2625a1i 11 . . . . . . . . 9 ((⊤ ∧ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅) → 0 ∈ ℕ0)
27 df-ne 2988 . . . . . . . . . . . 12 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ ↔ ¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅)
28 ssrab2 4007 . . . . . . . . . . . . 13 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ ℕ
29 nnuz 12271 . . . . . . . . . . . . . . 15 ℕ = (ℤ‘1)
3028, 29sseqtri 3951 . . . . . . . . . . . . . 14 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ (ℤ‘1)
31 infssuzcl 12322 . . . . . . . . . . . . . 14 (({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ⊆ (ℤ‘1) ∧ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅) → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
3230, 31mpan 689 . . . . . . . . . . . . 13 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 })
3328, 32sseldi 3913 . . . . . . . . . . . 12 ({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } ≠ ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ)
3427, 33sylbir 238 . . . . . . . . . . 11 (¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ)
3534nnnn0d 11945 . . . . . . . . . 10 (¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅ → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ0)
3635adantl 485 . . . . . . . . 9 ((⊤ ∧ ¬ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅) → inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < ) ∈ ℕ0)
3726, 36ifclda 4459 . . . . . . . 8 (⊤ → if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < )) ∈ ℕ0)
3837mptru 1545 . . . . . . 7 if({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } = ∅, 0, inf({𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 }, ℝ, < )) ∈ ℕ0
3924, 38eqeltri 2886 . . . . . 6 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) ∈ ℕ0
4039rgenw 3118 . . . . 5 𝑥𝑋 {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )) ∈ ℕ0
4117, 18, 40mptexw 7638 . . . 4 (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) ∈ V
4215, 16, 41fvmpt 6745 . . 3 (𝐺 ∈ V → (od‘𝐺) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
43 fvprc 6638 . . . 4 𝐺 ∈ V → (od‘𝐺) = ∅)
44 fvprc 6638 . . . . . . 7 𝐺 ∈ V → (Base‘𝐺) = ∅)
453, 44syl5eq 2845 . . . . . 6 𝐺 ∈ V → 𝑋 = ∅)
4645mpteq1d 5119 . . . . 5 𝐺 ∈ V → (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = (𝑥 ∈ ∅ ↦ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
47 mpt0 6462 . . . . 5 (𝑥 ∈ ∅ ↦ {𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = ∅
4846, 47eqtrdi 2849 . . . 4 𝐺 ∈ V → (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))) = ∅)
4943, 48eqtr4d 2836 . . 3 𝐺 ∈ V → (od‘𝐺) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < ))))
5042, 49pm2.61i 185 . 2 (od‘𝐺) = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )))
511, 50eqtri 2821 1 𝑂 = (𝑥𝑋{𝑦 ∈ ℕ ∣ (𝑦 · 𝑥) = 0 } / 𝑖if(𝑖 = ∅, 0, inf(𝑖, ℝ, < )))
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   ∧ wa 399   = wceq 1538  ⊤wtru 1539   ∈ wcel 2111   ≠ wne 2987  {crab 3110  Vcvv 3441  ⦋csb 3828   ⊆ wss 3881  ∅c0 4243  ifcif 4425   ↦ cmpt 5110  ‘cfv 6324  (class class class)co 7135  infcinf 8891  ℝcr 10527  0cc0 10528  1c1 10529   < clt 10666  ℕcn 11627  ℕ0cn0 11887  ℤ≥cuz 12233  Basecbs 16477  0gc0g 16707  .gcmg 18219  odcod 18647 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7443  ax-cnex 10584  ax-resscn 10585  ax-1cn 10586  ax-icn 10587  ax-addcl 10588  ax-addrcl 10589  ax-mulcl 10590  ax-mulrcl 10591  ax-mulcom 10592  ax-addass 10593  ax-mulass 10594  ax-distr 10595  ax-i2m1 10596  ax-1ne0 10597  ax-1rid 10598  ax-rnegex 10599  ax-rrecex 10600  ax-cnre 10601  ax-pre-lttri 10602  ax-pre-lttrn 10603  ax-pre-ltadd 10604  ax-pre-mulgt0 10605 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7563  df-wrecs 7932  df-recs 7993  df-rdg 8031  df-er 8274  df-en 8495  df-dom 8496  df-sdom 8497  df-sup 8892  df-inf 8893  df-pnf 10668  df-mnf 10669  df-xr 10670  df-ltxr 10671  df-le 10672  df-sub 10863  df-neg 10864  df-nn 11628  df-n0 11888  df-z 11972  df-uz 12234  df-od 18651 This theorem is referenced by:  odval  18657  odf  18660
 Copyright terms: Public domain W3C validator