Every integer has a canonical negabinary representation.
ProvedNegabinary.exists_canonicalaether-catalogapplications
Every integer has a canonical negabinary representation.
theorem Negabinary.exists_canonical(z : ℤ) :
∃ l : List Bool, Canonical l ∧ value l = z := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Applications/AlienNumberSystems/Negabinary.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Applications/AlienNumberSystems/Negabinary.lean import Mathlib import Definitions.Def_Applications_AlienNumberSystems_Negabinary /-! # Negabinary: unique finite representations of all integers This file proves that evaluation in radix `-2` gives a bijection between canonical finite bit strings and the integers. Digits are stored least-significant first. -/ open Negabinary
Formal statement
theorem Negabinary.exists_canonical(z : ℤ) :
∃ l : List Bool, Canonical l ∧ value l = z := by sorrySource