我想inductive在locale. 如果没有locale一切正常:
definition "P a b = True"
inductive test :: "'a ⇒ 'a ⇒ bool" where
"test a a" |
"test a b ⟹ P b c ⟹ test a c"
code_pred test .
但是,当我在 a 中尝试相同的操作时locale,它不起作用:
locale localTest
begin
definition "P' a b = True"
inductive test' :: "'a ⇒ 'a ⇒ bool" where
"test' a a" |
"test' a b ⟹ P' b c ⟹ test' a c"
code_pred test'
end
语言环境中的code_pred行返回以下错误:
Not a constant: test'