From: "Roger H." <s57076@hotmail.com>
Hello,
how can i prove
(THE x. x + 1 = 3) = 2 ?
After
"apply (rule the_equality, simp)"
i get:
⋀x. x + 1 = 3 ⟹ x = 2
I think i have to prove that the solution is unique.
how do i continue?
Thank you!
From: Lawrence Paulson <lp15@cam.ac.uk>
You need a type constraint:
lemma "(THE x::int. x + 1 = 3) = 2"
by auto
Otherwise, Isabelle doesn’t know what sort of numbers you are talking about. Numerals are polymorphic.
Larry Paulson
From: "C. Diekmann" <diekmann@in.tum.de>
What is the type of x? Did you try x::nat?
Last updated: Nov 21 2024 at 12:39 UTC