Isabelle 伊莎贝尔·霍尔芙不懂fixrec

Isabelle 伊莎贝尔·霍尔芙不懂fixrec,isabelle,Isabelle,下面是一个非常简单的理论: theory Test imports HOLCF begin fixrec down :: "'a u → 'a" where "down (up x) = x" end 它给出了以下错误: Type unification failed: Clash of types "_ ⇒ _" and "_ → _" Type error in application: operator not of function type Operator:

下面是一个非常简单的理论:

theory Test
  imports HOLCF
begin
  fixrec down :: "'a u → 'a"
    where "down (up x) = x"
end
它给出了以下错误:

Type unification failed: Clash of types "_ ⇒ _" and "_ → _"

Type error in application: operator not of function type

Operator:  up :: ??'a → ??'a⇩⊥
Operand:   x :: ??'b
我曾尝试声明不同的函数,但总是出现类似的错误。什么是问题以及如何解决

我试着替换→ 通过⇒, 但是它没有帮助。

单箭头→ 是连续函数的空间,而双箭头⇒ 表示所有总函数的空间。HOLCF中的所有软件包仅适用于连续功能。这就是为什么⇒ 在大多数HOLCF中不起作用。但是,连续函数的函数应用程序必须使用ASCII中缀运算符$or\显式编写。因此,以下工作:

fixrec down :: "'a u → 'a"
  where "down $ (up $ x) = x"
类似地,连续函数的lambda抽象使用大写∧而不是小的λ。

单箭头→ 是连续函数的空间,而双箭头⇒ 表示所有总函数的空间。HOLCF中的所有软件包仅适用于连续功能。这就是为什么⇒ 在大多数HOLCF中不起作用。但是,连续函数的函数应用程序必须使用ASCII中缀运算符$or\显式编写。因此,以下工作:

fixrec down :: "'a u → 'a"
  where "down $ (up $ x) = x"
类似地,连续函数的lambda抽象使用大写∧而不是小λ