相关疑难解决方法(0)

那么:有什么意义呢?

这种So类型的目的是什么?音译到Agda:

data So : Bool ? Set where
  oh : So true
Run Code Online (Sandbox Code Playgroud)

So将布尔命题提升为逻辑命题.Oury和Swierstra的介绍性论文"Pi的力量"给出了一个由表格列索引的关系代数的例子.取两个表的产品要求它们具有不同的列,他们使用这些列So:

Schema = List (String × U)  -- U is the universe of SQL types

-- false iff the schemas share any column names
disjoint : Schema -> Schema -> Bool
disjoint = ...

data RA : Schema ? Set where
  -- ...
  Product : ? {s s'} ? {So (disjoint s s')} ? RA s ? RA s' ? RA …
Run Code Online (Sandbox Code Playgroud)

functional-programming agda dependent-type idris

26
推荐指数
1
解决办法
1621
查看次数