Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Agda 不减不减_Agda - Fatal编程技术网

Agda 不减不减

Agda 不减不减,agda,Agda,当要求Agda对以下程序进行标准化测试时: data Bool : Set where T : Bool F : Bool {-# BUILTIN BOOL Bool #-} {-# BUILTIN TRUE T #-} {-# BUILTIN FALSE F #-} postulate String : Set postulate primStringEquality : String → String → Bool {-# BUILTIN STRING String #-}

当要求Agda对以下程序进行标准化测试时:

data Bool : Set where
  T : Bool
  F : Bool
{-# BUILTIN BOOL  Bool  #-}
{-# BUILTIN TRUE  T #-}
{-# BUILTIN FALSE F #-}

postulate String : Set
postulate primStringEquality : String → String → Bool
{-# BUILTIN STRING String #-}

test : Bool
test = primStringEquality "bar" "foo"

它返回
primStringEquality“bar”“foo”
而不是
F
。为什么?

这是平等的
原语
,而不是
假设
。我们还必须在原语之前声明
内置字符串

postulate String : Set
{-# BUILTIN STRING String #-}

primitive primStringEquality : String → String → Bool

谢谢我们有一个文档错误。我应该报告agda的主要回购吗?@MaiaVictor是的,那会很有帮助。