Canonical negabinary evaluation is injective.
ProvedNegabinary.value_injectiveaether-catalogapplications
Canonical negabinary evaluation is injective.
theorem Negabinary.value_injective{l₁ l₂ : List Bool} (h₁ : Canonical l₁)
(h₂ : Canonical l₂) (hv : value l₁ = value l₂) : l₁ = 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.value_injective{l₁ l₂ : List Bool} (h₁ : Canonical l₁)
(h₂ : Canonical l₂) (hv : value l₁ = value l₂) : l₁ = l₂ := by sorrySource