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

Theorem smndex2dlinvh 18851
Description: The halving functions 𝐻 are left inverses of the doubling function 𝐷. (Contributed by AV, 18-Feb-2024.)
Hypotheses
Ref Expression
smndex2dbas.m 𝑀 = (EndoFMnd‘ℕ0)
smndex2dbas.b 𝐵 = (Base‘𝑀)
smndex2dbas.0 0 = (0g𝑀)
smndex2dbas.d 𝐷 = (𝑥 ∈ ℕ0 ↦ (2 · 𝑥))
smndex2hbas.n 𝑁 ∈ ℕ0
smndex2hbas.h 𝐻 = (𝑥 ∈ ℕ0 ↦ if(2 ∥ 𝑥, (𝑥 / 2), 𝑁))
Assertion
Ref Expression
smndex2dlinvh (𝐻𝐷) = 0
Distinct variable group:   𝑥,𝑁
Allowed substitution hints:   𝐵(𝑥)   𝐷(𝑥)   𝐻(𝑥)   𝑀(𝑥)   0 (𝑥)

Proof of Theorem smndex2dlinvh
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 2nn0 12466 . . 3 2 ∈ ℕ0
2 nn0mulcl 12485 . . . 4 ((2 ∈ ℕ0𝑦 ∈ ℕ0) → (2 · 𝑦) ∈ ℕ0)
3 smndex2dbas.d . . . . . 6 𝐷 = (𝑥 ∈ ℕ0 ↦ (2 · 𝑥))
4 oveq2 7398 . . . . . . 7 (𝑥 = 𝑦 → (2 · 𝑥) = (2 · 𝑦))
54cbvmptv 5214 . . . . . 6 (𝑥 ∈ ℕ0 ↦ (2 · 𝑥)) = (𝑦 ∈ ℕ0 ↦ (2 · 𝑦))
63, 5eqtri 2753 . . . . 5 𝐷 = (𝑦 ∈ ℕ0 ↦ (2 · 𝑦))
76a1i 11 . . . 4 (2 ∈ ℕ0𝐷 = (𝑦 ∈ ℕ0 ↦ (2 · 𝑦)))
8 smndex2hbas.h . . . . 5 𝐻 = (𝑥 ∈ ℕ0 ↦ if(2 ∥ 𝑥, (𝑥 / 2), 𝑁))
98a1i 11 . . . 4 (2 ∈ ℕ0𝐻 = (𝑥 ∈ ℕ0 ↦ if(2 ∥ 𝑥, (𝑥 / 2), 𝑁)))
10 breq2 5114 . . . . 5 (𝑥 = (2 · 𝑦) → (2 ∥ 𝑥 ↔ 2 ∥ (2 · 𝑦)))
11 oveq1 7397 . . . . 5 (𝑥 = (2 · 𝑦) → (𝑥 / 2) = ((2 · 𝑦) / 2))
1210, 11ifbieq1d 4516 . . . 4 (𝑥 = (2 · 𝑦) → if(2 ∥ 𝑥, (𝑥 / 2), 𝑁) = if(2 ∥ (2 · 𝑦), ((2 · 𝑦) / 2), 𝑁))
132, 7, 9, 12fmptco 7104 . . 3 (2 ∈ ℕ0 → (𝐻𝐷) = (𝑦 ∈ ℕ0 ↦ if(2 ∥ (2 · 𝑦), ((2 · 𝑦) / 2), 𝑁)))
141, 13ax-mp 5 . 2 (𝐻𝐷) = (𝑦 ∈ ℕ0 ↦ if(2 ∥ (2 · 𝑦), ((2 · 𝑦) / 2), 𝑁))
15 nn0z 12561 . . . . . 6 (𝑦 ∈ ℕ0𝑦 ∈ ℤ)
16 eqidd 2731 . . . . . 6 (𝑦 ∈ ℕ0 → (2 · 𝑦) = (2 · 𝑦))
17 2teven 16332 . . . . . 6 ((𝑦 ∈ ℤ ∧ (2 · 𝑦) = (2 · 𝑦)) → 2 ∥ (2 · 𝑦))
1815, 16, 17syl2anc 584 . . . . 5 (𝑦 ∈ ℕ0 → 2 ∥ (2 · 𝑦))
1918iftrued 4499 . . . 4 (𝑦 ∈ ℕ0 → if(2 ∥ (2 · 𝑦), ((2 · 𝑦) / 2), 𝑁) = ((2 · 𝑦) / 2))
2019mpteq2ia 5205 . . 3 (𝑦 ∈ ℕ0 ↦ if(2 ∥ (2 · 𝑦), ((2 · 𝑦) / 2), 𝑁)) = (𝑦 ∈ ℕ0 ↦ ((2 · 𝑦) / 2))
21 nn0cn 12459 . . . . . 6 (𝑦 ∈ ℕ0𝑦 ∈ ℂ)
22 2cnd 12271 . . . . . 6 (𝑦 ∈ ℕ0 → 2 ∈ ℂ)
23 2ne0 12297 . . . . . . 7 2 ≠ 0
2423a1i 11 . . . . . 6 (𝑦 ∈ ℕ0 → 2 ≠ 0)
2521, 22, 24divcan3d 11970 . . . . 5 (𝑦 ∈ ℕ0 → ((2 · 𝑦) / 2) = 𝑦)
2625mpteq2ia 5205 . . . 4 (𝑦 ∈ ℕ0 ↦ ((2 · 𝑦) / 2)) = (𝑦 ∈ ℕ0𝑦)
27 smndex2dbas.0 . . . . 5 0 = (0g𝑀)
28 nn0ex 12455 . . . . . 6 0 ∈ V
29 smndex2dbas.m . . . . . . 7 𝑀 = (EndoFMnd‘ℕ0)
3029efmndid 18822 . . . . . 6 (ℕ0 ∈ V → ( I ↾ ℕ0) = (0g𝑀))
3128, 30ax-mp 5 . . . . 5 ( I ↾ ℕ0) = (0g𝑀)
32 mptresid 6025 . . . . 5 ( I ↾ ℕ0) = (𝑦 ∈ ℕ0𝑦)
3327, 31, 323eqtr2ri 2760 . . . 4 (𝑦 ∈ ℕ0𝑦) = 0
3426, 33eqtri 2753 . . 3 (𝑦 ∈ ℕ0 ↦ ((2 · 𝑦) / 2)) = 0
3520, 34eqtri 2753 . 2 (𝑦 ∈ ℕ0 ↦ if(2 ∥ (2 · 𝑦), ((2 · 𝑦) / 2), 𝑁)) = 0
3614, 35eqtri 2753 1 (𝐻𝐷) = 0
Colors of variables: wff setvar class
Syntax hints:   = wceq 1540  wcel 2109  wne 2926  Vcvv 3450  ifcif 4491   class class class wbr 5110  cmpt 5191   I cid 5535  cres 5643  ccom 5645  cfv 6514  (class class class)co 7390  0cc0 11075   · cmul 11080   / cdiv 11842  2c2 12248  0cn0 12449  cz 12536  cdvds 16229  Basecbs 17186  0gc0g 17409  EndoFMndcefmnd 18802
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2008  ax-8 2111  ax-9 2119  ax-10 2142  ax-11 2158  ax-12 2178  ax-ext 2702  ax-rep 5237  ax-sep 5254  ax-nul 5264  ax-pow 5323  ax-pr 5390  ax-un 7714  ax-cnex 11131  ax-resscn 11132  ax-1cn 11133  ax-icn 11134  ax-addcl 11135  ax-addrcl 11136  ax-mulcl 11137  ax-mulrcl 11138  ax-mulcom 11139  ax-addass 11140  ax-mulass 11141  ax-distr 11142  ax-i2m1 11143  ax-1ne0 11144  ax-1rid 11145  ax-rnegex 11146  ax-rrecex 11147  ax-cnre 11148  ax-pre-lttri 11149  ax-pre-lttrn 11150  ax-pre-ltadd 11151  ax-pre-mulgt0 11152
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2534  df-eu 2563  df-clab 2709  df-cleq 2722  df-clel 2804  df-nfc 2879  df-ne 2927  df-nel 3031  df-ral 3046  df-rex 3055  df-rmo 3356  df-reu 3357  df-rab 3409  df-v 3452  df-sbc 3757  df-csb 3866  df-dif 3920  df-un 3922  df-in 3924  df-ss 3934  df-pss 3937  df-nul 4300  df-if 4492  df-pw 4568  df-sn 4593  df-pr 4595  df-tp 4597  df-op 4599  df-uni 4875  df-iun 4960  df-br 5111  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5536  df-eprel 5541  df-po 5549  df-so 5550  df-fr 5594  df-we 5596  df-xp 5647  df-rel 5648  df-cnv 5649  df-co 5650  df-dm 5651  df-rn 5652  df-res 5653  df-ima 5654  df-pred 6277  df-ord 6338  df-on 6339  df-lim 6340  df-suc 6341  df-iota 6467  df-fun 6516  df-fn 6517  df-f 6518  df-f1 6519  df-fo 6520  df-f1o 6521  df-fv 6522  df-riota 7347  df-ov 7393  df-oprab 7394  df-mpo 7395  df-om 7846  df-1st 7971  df-2nd 7972  df-frecs 8263  df-wrecs 8294  df-recs 8343  df-rdg 8381  df-1o 8437  df-er 8674  df-map 8804  df-en 8922  df-dom 8923  df-sdom 8924  df-fin 8925  df-pnf 11217  df-mnf 11218  df-xr 11219  df-ltxr 11220  df-le 11221  df-sub 11414  df-neg 11415  df-div 11843  df-nn 12194  df-2 12256  df-3 12257  df-4 12258  df-5 12259  df-6 12260  df-7 12261  df-8 12262  df-9 12263  df-n0 12450  df-z 12537  df-uz 12801  df-fz 13476  df-dvds 16230  df-struct 17124  df-slot 17159  df-ndx 17171  df-base 17187  df-plusg 17240  df-tset 17246  df-0g 17411  df-efmnd 18803
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator