HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefin-0.3.2Haskell2010

Data.Type.Nat.LT

  • 1 type
  • 1 class
  • 4 values
  • Packagefin-0.3.2
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceLT.hs
classclass LT (n :: Nat) (m :: Nat) where
#

Less-Than-or. <. Well-founded relation on Nat.

GHC can solve this for us!

Example1 expression
ltProof :: LTProof Nat0 Nat4LESucc LEZero
Example1 expression
ltProof :: LTProof Nat2 Nat4LESucc (LESucc (LESucc LEZero))
Example1 expression
ltProof :: LTProof Nat3 Nat3......error......

Methods

Instances1LT
  • LE ('S n) m => LT n mDefined in fin-0.3.2 · Data.Type.Nat.LT
typetype LTProof (n :: Nat) (m :: Nat) = LEProof ('S n) m
#

An evidence n < m which is the same as (1 + n le m).

Lemmas

3 declarations