postulate
D : Set
false true : D
data Bool : D → Set where
btrue : Bool true
bfalse : Bool false
OkBit : D → Set
OkBit b = Bool b
{-# ATP definition OkBit #-}
postulate foo : ∀ b → OkBit b → OkBit b
{-# ATP prove foo #-}
WrongBit : D → Set
WrongBit = Bool
{-# ATP definition WrongBit #-}
postulate bar : ∀ b → WrongBit b → WrongBit b
{-# ATP prove bar #-}
-- $ apia --check Bug.agda
-- apia: tptp4X found an error/warning in the file /tmp/Bug/20-bar.fof
-- Please report this as a bug
--
-- ERROR: Line 12 Char 83 Token ")" continuing with ")).
-- "
From @asr on February 24, 2013 22:7