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

Theorem bitsf1 15095
Description: The bits function is an injection from to 𝒫 ℕ0. It is obviously not a bijection (by Cantor's theorem canth2 8060), and in fact its range is the set of finite and cofinite subsets of 0. (Contributed by Mario Carneiro, 22-Sep-2016.)
Assertion
Ref Expression
bitsf1 bits:ℤ–1-1→𝒫 ℕ0

Proof of Theorem bitsf1
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 bitsf 15076 . 2 bits:ℤ⟶𝒫 ℕ0
2 simpl 473 . . . . . . . 8 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → 𝑥 ∈ ℤ)
32zcnd 11430 . . . . . . 7 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → 𝑥 ∈ ℂ)
43adantr 481 . . . . . 6 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → 𝑥 ∈ ℂ)
5 simpr 477 . . . . . . . 8 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → 𝑦 ∈ ℤ)
65zcnd 11430 . . . . . . 7 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → 𝑦 ∈ ℂ)
76adantr 481 . . . . . 6 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → 𝑦 ∈ ℂ)
84negcld 10326 . . . . . . 7 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → -𝑥 ∈ ℂ)
97negcld 10326 . . . . . . 7 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → -𝑦 ∈ ℂ)
10 1cnd 10003 . . . . . . 7 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → 1 ∈ ℂ)
11 simprr 795 . . . . . . . . . . 11 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (bits‘𝑥) = (bits‘𝑦))
1211difeq2d 3708 . . . . . . . . . 10 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (ℕ0 ∖ (bits‘𝑥)) = (ℕ0 ∖ (bits‘𝑦)))
13 bitscmp 15087 . . . . . . . . . . 11 (𝑥 ∈ ℤ → (ℕ0 ∖ (bits‘𝑥)) = (bits‘(-𝑥 − 1)))
1413ad2antrr 761 . . . . . . . . . 10 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (ℕ0 ∖ (bits‘𝑥)) = (bits‘(-𝑥 − 1)))
15 bitscmp 15087 . . . . . . . . . . 11 (𝑦 ∈ ℤ → (ℕ0 ∖ (bits‘𝑦)) = (bits‘(-𝑦 − 1)))
1615ad2antlr 762 . . . . . . . . . 10 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (ℕ0 ∖ (bits‘𝑦)) = (bits‘(-𝑦 − 1)))
1712, 14, 163eqtr3d 2663 . . . . . . . . 9 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (bits‘(-𝑥 − 1)) = (bits‘(-𝑦 − 1)))
18 nnm1nn0 11281 . . . . . . . . . . 11 (-𝑥 ∈ ℕ → (-𝑥 − 1) ∈ ℕ0)
1918ad2antrl 763 . . . . . . . . . 10 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (-𝑥 − 1) ∈ ℕ0)
20 fvres 6166 . . . . . . . . . 10 ((-𝑥 − 1) ∈ ℕ0 → ((bits ↾ ℕ0)‘(-𝑥 − 1)) = (bits‘(-𝑥 − 1)))
2119, 20syl 17 . . . . . . . . 9 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → ((bits ↾ ℕ0)‘(-𝑥 − 1)) = (bits‘(-𝑥 − 1)))
22 ominf 8119 . . . . . . . . . . . . . . . . 17 ¬ ω ∈ Fin
23 nn0ennn 12721 . . . . . . . . . . . . . . . . . . 19 0 ≈ ℕ
24 nnenom 12722 . . . . . . . . . . . . . . . . . . 19 ℕ ≈ ω
2523, 24entr2i 7958 . . . . . . . . . . . . . . . . . 18 ω ≈ ℕ0
26 enfii 8124 . . . . . . . . . . . . . . . . . 18 ((ℕ0 ∈ Fin ∧ ω ≈ ℕ0) → ω ∈ Fin)
2725, 26mpan2 706 . . . . . . . . . . . . . . . . 17 (ℕ0 ∈ Fin → ω ∈ Fin)
2822, 27mto 188 . . . . . . . . . . . . . . . 16 ¬ ℕ0 ∈ Fin
29 difinf 8177 . . . . . . . . . . . . . . . 16 ((¬ ℕ0 ∈ Fin ∧ (bits‘𝑥) ∈ Fin) → ¬ (ℕ0 ∖ (bits‘𝑥)) ∈ Fin)
3028, 29mpan 705 . . . . . . . . . . . . . . 15 ((bits‘𝑥) ∈ Fin → ¬ (ℕ0 ∖ (bits‘𝑥)) ∈ Fin)
31 bitsfi 15086 . . . . . . . . . . . . . . . . 17 ((-𝑥 − 1) ∈ ℕ0 → (bits‘(-𝑥 − 1)) ∈ Fin)
3219, 31syl 17 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (bits‘(-𝑥 − 1)) ∈ Fin)
3314, 32eqeltrd 2698 . . . . . . . . . . . . . . 15 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (ℕ0 ∖ (bits‘𝑥)) ∈ Fin)
3430, 33nsyl3 133 . . . . . . . . . . . . . 14 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → ¬ (bits‘𝑥) ∈ Fin)
3511, 34eqneltrrd 2718 . . . . . . . . . . . . 13 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → ¬ (bits‘𝑦) ∈ Fin)
36 bitsfi 15086 . . . . . . . . . . . . 13 (𝑦 ∈ ℕ0 → (bits‘𝑦) ∈ Fin)
3735, 36nsyl 135 . . . . . . . . . . . 12 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → ¬ 𝑦 ∈ ℕ0)
385znegcld 11431 . . . . . . . . . . . . . . . 16 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → -𝑦 ∈ ℤ)
39 elznn 11340 . . . . . . . . . . . . . . . . 17 (-𝑦 ∈ ℤ ↔ (-𝑦 ∈ ℝ ∧ (-𝑦 ∈ ℕ ∨ --𝑦 ∈ ℕ0)))
4039simprbi 480 . . . . . . . . . . . . . . . 16 (-𝑦 ∈ ℤ → (-𝑦 ∈ ℕ ∨ --𝑦 ∈ ℕ0))
4138, 40syl 17 . . . . . . . . . . . . . . 15 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (-𝑦 ∈ ℕ ∨ --𝑦 ∈ ℕ0))
426negnegd 10330 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → --𝑦 = 𝑦)
4342eleq1d 2683 . . . . . . . . . . . . . . . 16 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (--𝑦 ∈ ℕ0𝑦 ∈ ℕ0))
4443orbi2d 737 . . . . . . . . . . . . . . 15 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → ((-𝑦 ∈ ℕ ∨ --𝑦 ∈ ℕ0) ↔ (-𝑦 ∈ ℕ ∨ 𝑦 ∈ ℕ0)))
4541, 44mpbid 222 . . . . . . . . . . . . . 14 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (-𝑦 ∈ ℕ ∨ 𝑦 ∈ ℕ0))
4645adantr 481 . . . . . . . . . . . . 13 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (-𝑦 ∈ ℕ ∨ 𝑦 ∈ ℕ0))
4746ord 392 . . . . . . . . . . . 12 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (¬ -𝑦 ∈ ℕ → 𝑦 ∈ ℕ0))
4837, 47mt3d 140 . . . . . . . . . . 11 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → -𝑦 ∈ ℕ)
49 nnm1nn0 11281 . . . . . . . . . . 11 (-𝑦 ∈ ℕ → (-𝑦 − 1) ∈ ℕ0)
5048, 49syl 17 . . . . . . . . . 10 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (-𝑦 − 1) ∈ ℕ0)
51 fvres 6166 . . . . . . . . . 10 ((-𝑦 − 1) ∈ ℕ0 → ((bits ↾ ℕ0)‘(-𝑦 − 1)) = (bits‘(-𝑦 − 1)))
5250, 51syl 17 . . . . . . . . 9 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → ((bits ↾ ℕ0)‘(-𝑦 − 1)) = (bits‘(-𝑦 − 1)))
5317, 21, 523eqtr4d 2665 . . . . . . . 8 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → ((bits ↾ ℕ0)‘(-𝑥 − 1)) = ((bits ↾ ℕ0)‘(-𝑦 − 1)))
54 bitsf1o 15094 . . . . . . . . . . 11 (bits ↾ ℕ0):ℕ01-1-onto→(𝒫 ℕ0 ∩ Fin)
55 f1of1 6095 . . . . . . . . . . 11 ((bits ↾ ℕ0):ℕ01-1-onto→(𝒫 ℕ0 ∩ Fin) → (bits ↾ ℕ0):ℕ01-1→(𝒫 ℕ0 ∩ Fin))
5654, 55ax-mp 5 . . . . . . . . . 10 (bits ↾ ℕ0):ℕ01-1→(𝒫 ℕ0 ∩ Fin)
57 f1fveq 6476 . . . . . . . . . 10 (((bits ↾ ℕ0):ℕ01-1→(𝒫 ℕ0 ∩ Fin) ∧ ((-𝑥 − 1) ∈ ℕ0 ∧ (-𝑦 − 1) ∈ ℕ0)) → (((bits ↾ ℕ0)‘(-𝑥 − 1)) = ((bits ↾ ℕ0)‘(-𝑦 − 1)) ↔ (-𝑥 − 1) = (-𝑦 − 1)))
5856, 57mpan 705 . . . . . . . . 9 (((-𝑥 − 1) ∈ ℕ0 ∧ (-𝑦 − 1) ∈ ℕ0) → (((bits ↾ ℕ0)‘(-𝑥 − 1)) = ((bits ↾ ℕ0)‘(-𝑦 − 1)) ↔ (-𝑥 − 1) = (-𝑦 − 1)))
5919, 50, 58syl2anc 692 . . . . . . . 8 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (((bits ↾ ℕ0)‘(-𝑥 − 1)) = ((bits ↾ ℕ0)‘(-𝑦 − 1)) ↔ (-𝑥 − 1) = (-𝑦 − 1)))
6053, 59mpbid 222 . . . . . . 7 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → (-𝑥 − 1) = (-𝑦 − 1))
618, 9, 10, 60subcan2d 10381 . . . . . 6 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → -𝑥 = -𝑦)
624, 7, 61neg11d 10351 . . . . 5 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (-𝑥 ∈ ℕ ∧ (bits‘𝑥) = (bits‘𝑦))) → 𝑥 = 𝑦)
6362expr 642 . . . 4 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ -𝑥 ∈ ℕ) → ((bits‘𝑥) = (bits‘𝑦) → 𝑥 = 𝑦))
643negnegd 10330 . . . . . . 7 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → --𝑥 = 𝑥)
6564eleq1d 2683 . . . . . 6 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (--𝑥 ∈ ℕ0𝑥 ∈ ℕ0))
6665biimpa 501 . . . . 5 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ --𝑥 ∈ ℕ0) → 𝑥 ∈ ℕ0)
67 simprr 795 . . . . . . . 8 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → (bits‘𝑥) = (bits‘𝑦))
68 fvres 6166 . . . . . . . . 9 (𝑥 ∈ ℕ0 → ((bits ↾ ℕ0)‘𝑥) = (bits‘𝑥))
6968ad2antrl 763 . . . . . . . 8 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → ((bits ↾ ℕ0)‘𝑥) = (bits‘𝑥))
7015ad2antlr 762 . . . . . . . . . . . . 13 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → (ℕ0 ∖ (bits‘𝑦)) = (bits‘(-𝑦 − 1)))
71 bitsfi 15086 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℕ0 → (bits‘𝑥) ∈ Fin)
7271ad2antrl 763 . . . . . . . . . . . . . . 15 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → (bits‘𝑥) ∈ Fin)
7367, 72eqeltrrd 2699 . . . . . . . . . . . . . 14 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → (bits‘𝑦) ∈ Fin)
74 difinf 8177 . . . . . . . . . . . . . 14 ((¬ ℕ0 ∈ Fin ∧ (bits‘𝑦) ∈ Fin) → ¬ (ℕ0 ∖ (bits‘𝑦)) ∈ Fin)
7528, 73, 74sylancr 694 . . . . . . . . . . . . 13 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → ¬ (ℕ0 ∖ (bits‘𝑦)) ∈ Fin)
7670, 75eqneltrrd 2718 . . . . . . . . . . . 12 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → ¬ (bits‘(-𝑦 − 1)) ∈ Fin)
77 bitsfi 15086 . . . . . . . . . . . 12 ((-𝑦 − 1) ∈ ℕ0 → (bits‘(-𝑦 − 1)) ∈ Fin)
7876, 77nsyl 135 . . . . . . . . . . 11 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → ¬ (-𝑦 − 1) ∈ ℕ0)
7978, 49nsyl 135 . . . . . . . . . 10 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → ¬ -𝑦 ∈ ℕ)
8045adantr 481 . . . . . . . . . . 11 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → (-𝑦 ∈ ℕ ∨ 𝑦 ∈ ℕ0))
8180ord 392 . . . . . . . . . 10 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → (¬ -𝑦 ∈ ℕ → 𝑦 ∈ ℕ0))
8279, 81mpd 15 . . . . . . . . 9 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → 𝑦 ∈ ℕ0)
83 fvres 6166 . . . . . . . . 9 (𝑦 ∈ ℕ0 → ((bits ↾ ℕ0)‘𝑦) = (bits‘𝑦))
8482, 83syl 17 . . . . . . . 8 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → ((bits ↾ ℕ0)‘𝑦) = (bits‘𝑦))
8567, 69, 843eqtr4d 2665 . . . . . . 7 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → ((bits ↾ ℕ0)‘𝑥) = ((bits ↾ ℕ0)‘𝑦))
86 simprl 793 . . . . . . . 8 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → 𝑥 ∈ ℕ0)
87 f1fveq 6476 . . . . . . . . 9 (((bits ↾ ℕ0):ℕ01-1→(𝒫 ℕ0 ∩ Fin) ∧ (𝑥 ∈ ℕ0𝑦 ∈ ℕ0)) → (((bits ↾ ℕ0)‘𝑥) = ((bits ↾ ℕ0)‘𝑦) ↔ 𝑥 = 𝑦))
8856, 87mpan 705 . . . . . . . 8 ((𝑥 ∈ ℕ0𝑦 ∈ ℕ0) → (((bits ↾ ℕ0)‘𝑥) = ((bits ↾ ℕ0)‘𝑦) ↔ 𝑥 = 𝑦))
8986, 82, 88syl2anc 692 . . . . . . 7 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → (((bits ↾ ℕ0)‘𝑥) = ((bits ↾ ℕ0)‘𝑦) ↔ 𝑥 = 𝑦))
9085, 89mpbid 222 . . . . . 6 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ (𝑥 ∈ ℕ0 ∧ (bits‘𝑥) = (bits‘𝑦))) → 𝑥 = 𝑦)
9190expr 642 . . . . 5 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ 𝑥 ∈ ℕ0) → ((bits‘𝑥) = (bits‘𝑦) → 𝑥 = 𝑦))
9266, 91syldan 487 . . . 4 (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) ∧ --𝑥 ∈ ℕ0) → ((bits‘𝑥) = (bits‘𝑦) → 𝑥 = 𝑦))
932znegcld 11431 . . . . 5 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → -𝑥 ∈ ℤ)
94 elznn 11340 . . . . . 6 (-𝑥 ∈ ℤ ↔ (-𝑥 ∈ ℝ ∧ (-𝑥 ∈ ℕ ∨ --𝑥 ∈ ℕ0)))
9594simprbi 480 . . . . 5 (-𝑥 ∈ ℤ → (-𝑥 ∈ ℕ ∨ --𝑥 ∈ ℕ0))
9693, 95syl 17 . . . 4 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (-𝑥 ∈ ℕ ∨ --𝑥 ∈ ℕ0))
9763, 92, 96mpjaodan 826 . . 3 ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → ((bits‘𝑥) = (bits‘𝑦) → 𝑥 = 𝑦))
9897rgen2a 2971 . 2 𝑥 ∈ ℤ ∀𝑦 ∈ ℤ ((bits‘𝑥) = (bits‘𝑦) → 𝑥 = 𝑦)
99 dff13 6469 . 2 (bits:ℤ–1-1→𝒫 ℕ0 ↔ (bits:ℤ⟶𝒫 ℕ0 ∧ ∀𝑥 ∈ ℤ ∀𝑦 ∈ ℤ ((bits‘𝑥) = (bits‘𝑦) → 𝑥 = 𝑦)))
1001, 98, 99mpbir2an 954 1 bits:ℤ–1-1→𝒫 ℕ0
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 383  wa 384   = wceq 1480  wcel 1987  wral 2907  cdif 3553  cin 3555  𝒫 cpw 4132   class class class wbr 4615  cres 5078  wf 5845  1-1wf1 5846  1-1-ontowf1o 5848  cfv 5849  (class class class)co 6607  ωcom 7015  cen 7899  Fincfn 7902  cc 9881  cr 9882  1c1 9884  cmin 10213  -cneg 10214  cn 10967  0cn0 11239  cz 11324  bitscbits 15068
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4733  ax-sep 4743  ax-nul 4751  ax-pow 4805  ax-pr 4869  ax-un 6905  ax-inf2 8485  ax-cnex 9939  ax-resscn 9940  ax-1cn 9941  ax-icn 9942  ax-addcl 9943  ax-addrcl 9944  ax-mulcl 9945  ax-mulrcl 9946  ax-mulcom 9947  ax-addass 9948  ax-mulass 9949  ax-distr 9950  ax-i2m1 9951  ax-1ne0 9952  ax-1rid 9953  ax-rnegex 9954  ax-rrecex 9955  ax-cnre 9956  ax-pre-lttri 9957  ax-pre-lttrn 9958  ax-pre-ltadd 9959  ax-pre-mulgt0 9960  ax-pre-sup 9961
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-fal 1486  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rmo 2915  df-rab 2916  df-v 3188  df-sbc 3419  df-csb 3516  df-dif 3559  df-un 3561  df-in 3563  df-ss 3570  df-pss 3572  df-nul 3894  df-if 4061  df-pw 4134  df-sn 4151  df-pr 4153  df-tp 4155  df-op 4157  df-uni 4405  df-int 4443  df-iun 4489  df-disj 4586  df-br 4616  df-opab 4676  df-mpt 4677  df-tr 4715  df-eprel 4987  df-id 4991  df-po 4997  df-so 4998  df-fr 5035  df-se 5036  df-we 5037  df-xp 5082  df-rel 5083  df-cnv 5084  df-co 5085  df-dm 5086  df-rn 5087  df-res 5088  df-ima 5089  df-pred 5641  df-ord 5687  df-on 5688  df-lim 5689  df-suc 5690  df-iota 5812  df-fun 5851  df-fn 5852  df-f 5853  df-f1 5854  df-fo 5855  df-f1o 5856  df-fv 5857  df-isom 5858  df-riota 6568  df-ov 6610  df-oprab 6611  df-mpt2 6612  df-om 7016  df-1st 7116  df-2nd 7117  df-wrecs 7355  df-recs 7416  df-rdg 7454  df-1o 7508  df-2o 7509  df-oadd 7512  df-er 7690  df-map 7807  df-pm 7808  df-en 7903  df-dom 7904  df-sdom 7905  df-fin 7906  df-sup 8295  df-inf 8296  df-oi 8362  df-card 8712  df-cda 8937  df-pnf 10023  df-mnf 10024  df-xr 10025  df-ltxr 10026  df-le 10027  df-sub 10215  df-neg 10216  df-div 10632  df-nn 10968  df-2 11026  df-3 11027  df-n0 11240  df-xnn0 11311  df-z 11325  df-uz 11635  df-rp 11780  df-fz 12272  df-fzo 12410  df-fl 12536  df-mod 12612  df-seq 12745  df-exp 12804  df-hash 13061  df-cj 13776  df-re 13777  df-im 13778  df-sqrt 13912  df-abs 13913  df-clim 14156  df-sum 14354  df-dvds 14911  df-bits 15071
This theorem is referenced by:  bitsuz  15123  eulerpartlemmf  30230
  Copyright terms: Public domain W3C validator