伊莎贝尔class义务证明蓝色

Isabelle class obligation prove blue

在 Isabelle 中我有以下文件

theory Scratch
imports Main 
begin

class named =
  fixes getName :: "'a ⇒ string"

class node = named

datatype Node = node string

fun getName_Node :: "Node ⇒ string" where
  "getName_Node (node str) = str"

instantiation Node :: node
begin
instance proof
qed
end
end

'instance' 部分用蓝线下划线。当我将诅咒悬停在提供的信息上时:

Auto solve_direct: The current goal can be solved directly with
  Scratch.class.Scratch.node.of_class.intro: OFCLASS(?'a, node_class)

如何防止 'instance' 被加下划线?

这只是系统提示,可以放心忽略。通常,看到您要证明的命题已经存在于某个地方会很有帮助。

尽管如此,要禁用,请转到 jEdit 的 "Plugins" 菜单,然后选择 "Plugin Options"。在那里,转到树中的 "Isabelle / General" 项。你会看到一堆选项。在 "Automatically tried tools" 部分中,禁用 "Auto Solve Direct".