A canonical representation of zero is necessarily empty.
ProvedNegabinary.canonical_value_eq_zeroaether-catalogapplications
A canonical representation of zero is necessarily empty.
theorem Negabinary.canonical_value_eq_zero{l : List Bool} (hc : Canonical l)
(hv : value l = 0) : l = [] := 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.canonical_value_eq_zero{l : List Bool} (hc : Canonical l)
(hv : value l = 0) : l = [] := by sorrySource