我最近開始使用Isabelle定理證明。因爲我想證明另一個引理,所以我想使用與在「HOL庫」中找到的引理「det_linear_row_setsum」中使用的不同的符號。更具體地說,我想用「χi j notation」而不是「χi」。我一直在嘗試制定一個等價的表達式,但還沒有弄明白。 (* ORIGINAL lemma from library *)
(* from HOL/Multivaria
定義歸納謂詞時,我可以選擇哪些參數是固定的,哪些不是。對於一個人爲的例子考慮: inductive foo for P where
"foo P True (Inl x) (Inl x)"
是它在某種程度上可能把它變成一個電感組定義與一個固定的和一個非固定的參數? inductive_set Foo for P where
"(Inl x, Inl x) : Foo P T
我有一個伊莎貝爾證明結構如下: proof (cases "n = 0")
case True
(* lots of stuff here *)
show ?thesis sorry
next
case False
(* lots of stuff here too *)
show ?thesis sorry
qed
第一種情況實
大約2-3周前,我開始學習定理證明者Isabelle。我仍然是一個絕對的初學者,我到目前爲止一直在教程「編程和證明Isabelle/HOL」。 目前我發現的矩陣唯一的幫助是看source code in the HOL library。 現在我想學習如何證明矩陣的性質。矩陣的lambda語法對我來說仍然是新的。 在Isabelle中有沒有關於使用矩陣的教程或基本/中間例子?
在我的伊莎貝爾理論上我有一個常數因子矩陣: ...
k :: 'n and c :: 'a
(χ i j. if j = k then c * (A $ i $ j) else A $ i $ j)
我可以計算轉置矩陣: (transpose (χ i j. if j = k then c * (A $ i $ j) else A $ i $ j))
在我眼裏後者應相當於 (χ i j
我做了一個叫做的記錄類型,並且我定義了一個合適的「是關係的子圖」。我想說明一組圖和子圖關係形成一個順序,即是類的一個實例。但我無法讓它工作。這是我最小的工作例如: theory John imports
Main
begin
typedecl node
record graph =
nodes :: "node set"
edges :: "(node ×
我希望爲Isabelle理論(例如HOL會話)生成HTML文檔,但不包含的校樣。 也就是說,我想產生像http://isabelle.in.tum.de/library/HOL/Nat.html 而是,例如網頁, lemma diff_induct: "(!!x. P x 0) ==> (!!y. P 0 (Suc y)) ==>
(!!x y. P x y ==> P (Suc x)