-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIssue11.agda
34 lines (25 loc) · 860 Bytes
/
Issue11.agda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
------------------------------------------------------------------------------
-- All parameters are required in an ATP definition
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --without-K #-}
module Issue11 where
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 Issue11.agda
-- apia: tptp4X found an error in the file /tmp/Issue11/29-bar.tptp