我有這樣一段代碼: Rect a = new Rect(0, 0, 4, 4);
Rect b = new Rect(0, 0, 4, 4);
print(Object.ReferenceEquals(a, b)); //prints false
print(Object.ReferenceEquals(a, a)); //prints false
b = a;
print(Object
看來,要證明記錄類型的兩個項目是等價的,我需要編寫一個幫助程序,它需要組件明智的證明並應用它們。 一個例子: postulate P : ℕ → Set
record Silly : Set (ℓsuc ℓ₀) where
constructor _#_#_
field
n : ℕ
pn : P n
f : Set → ℕ
open Silly
Sil
我仍然試圖在Isabelle中推理語義平等。 我想比較兩個公式並查看它們是否相等。我之前被告知,我需要這種商號。 所以我試圖給自己定義一個quotiernttype,但顯然我的定義並不完整,因爲在我的定義之後我似乎無法編寫任何代碼。 到目前爲止我的代碼是: theory Scratch
imports Main
begin
no_notation plus (infixl "+" 65)