HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulebin-0.1.4Haskell2010

Data.Type.BinP

Positive binary natural numbers. DataKinds stuff.

  • 10 types
  • 1 class
  • 9 values
  • Packagebin-0.1.4
  • Exports26
  • LanguageHaskell2010
  • LicenceGPL-2.0-or-later
  • SourceBinP.hs

Singleton

3 declarations
datadata SBinP (b :: BinP) where
#

Singleton of BinP.

Constructors

Instances10TestEquality, EqP, GEq, GNFData, GShow, Eq, …

Implicit

5 declarations

Type equality

2 declarations

Induction

1 declaration
valueinduction
  1. :: SBinPI b
  2. => f 'BE

    P(1)

  3. -> (forall (bb :: BinP). SBinPI bb => f bb -> f ('B0 bb))

    \forall b. P(b) \to P(2b)

  4. -> (forall (bb :: BinP). SBinPI bb => f bb -> f ('B1 bb))

    \forall b. P(b) \to P(2b + 1)

  5. -> f b
#

Induction on BinP.

Arithmetic

0 declarations

Successor

Addition

Conversions

0 declarations

To GHC Nat

To fin Nat

Aliases

9 declarations