Sorting.hascasl.hs revision dc2ce67f56f9d4507503cc2a24f2646c7f2adf6d
module Dummy where
import Prelude (undefined, Show, Eq, Ord, Bool)
import MyLogic
a___2_L_E_2 :: (Nat, Nat) -> Bool
elem :: (Nat, List_FNat_J) -> Bool
head :: List_FNat_J -> Nat
insert :: (Nat, List_FNat_J) -> List_FNat_J
insert_1sort :: List_FNat_J -> List_FNat_J
is_1ordered :: List_FNat_J -> Bool
permutation :: (List_FNat_J, List_FNat_J) -> Bool
permutation = undefined
prec :: Nat -> Nat
sorter :: List_FNat_J -> List_FNat_J
sorter = undefined
tail :: List_FNat_J -> List_FNat_J
prec (Succ x_11_11) = x_11_11
data Nat = A__0
| Succ !Nat
deriving (Show, Eq, Ord)
a___2_L_E_2 (A__0, x) = true
a___2_L_E_2 ((Succ x), A__0) = false
a___2_L_E_2 ((Succ x), (Succ y)) = a___2_L_E_2 (x, y)
a___2_L_E_2 (x, y)
= a___2when_2else_2 (true, a___2_E_2 (x, y), bottom)
head (Cons (x_11_11, x_11_12)) = x_11_11
tail (Cons (x_11_11, x_11_12)) = x_11_12
data List_FNat_J = Nil
| Cons !(Nat, List_FNat_J)
deriving (Show, Eq, Ord)
elem (x, Nil) = false
elem (x, (Cons (y, l)))
= a___2_B_S_2 (a___2_E_2 (x, y), elem (x, l))
is_1ordered Nil = true
is_1ordered (Cons (x, Nil)) = true
is_1ordered (Cons (x, (Cons (y, a__L))))
= a___2_S_B_2 (a___2_L_E_2 (x, y), is_1ordered (Cons (y, a__L)))
insert (x, Nil) = Cons (x, Nil)
insert (x, (Cons (y, a__L)))
= a___2when_2else_2
(Cons (x, insert (y, a__L)), a___2_L_E_2 (x, y),
Cons (y, insert (x, a__L)))
insert_1sort Nil = Nil
insert_1sort (Cons (x, a__L)) = insert (x, insert_1sort a__L)