Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/57.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
Isabelle Isar虚拟机输出中的深度指的是什么?_Isabelle_Vm Implementation_Isar - Fatal编程技术网

Isabelle Isar虚拟机输出中的深度指的是什么?

Isabelle Isar虚拟机输出中的深度指的是什么?,isabelle,vm-implementation,isar,Isabelle,Vm Implementation,Isar,这是一个证明: theory Example imports Main begin datatype natural = Zero | Succ natural lemma "⋀ n. n = Succ m ⟹ n ≠ Zero" proof - fix n assume "n = Succ m" from this show "n ≠ Zero" by (metis natural.distinct(2)) qed end depth值在整个证明过程中为0,但在 show

这是一个证明:

theory Example

imports Main

begin

datatype natural = Zero | Succ natural

lemma "⋀ n. n = Succ m ⟹ n ≠ Zero"
proof -
 fix n
 assume "n = Succ m" 
 from this show "n ≠ Zero" by (metis natural.distinct(2))
qed

end
depth
值在整个证明过程中为0,但在

show "n ≠ Zero"
它变为

proof (prove): depth 1

深度在这里是什么意思?进行校样时它是否重要?

简而言之,它指的是当前的校样嵌套级别。在您的例子中,它是1,因为
show
会在校样中打开一个新校样

回答你的第二个问题:不,这一点都不重要。有些人用它来衡量一个证明有多复杂,但对系统来说,这没有什么区别