Zulip Chat Archive

Stream: general

Topic: LEAN3


Mohamamd Awheeo (Feb 11 2024 at 09:36):

How to represent different numbers in LEAN3 I know that I can use \nat for natrual numbers but what about irrational numbers, real numbers and prime and others?

Yaël Dillies (Feb 11 2024 at 09:39):

Irrational number will be {x : ℝ | irrational x}. See docs3#irrational

Mohamamd Awheeo (Feb 11 2024 at 10:02):

but it does not work:
image.png

Eric Wieser (Feb 11 2024 at 10:10):

You will need import data.real.irrational

Eric Wieser (Feb 11 2024 at 10:11):

@Kevin Buzzard, is the Lean 4 version of https://github.com/ImperialCollegeLondon/M40001_lean available, or did your FLT funding result in it being canned?

Kim Morrison (Feb 11 2024 at 10:32):

@Mohamamd Awheeo, unless there is some particular reason you need to be using Lean 3, it might be helpful to learn that Lean 3 is obsolete, and everyone is using Lean 4 now.

Kevin Buzzard (Feb 11 2024 at 10:46):

IIRC I didn't make a lean 4 version of that repo

Eric Wieser (Feb 11 2024 at 12:08):

Perhaps it's worth removing the promise in the readme that you were going to

Eric Wieser (Feb 11 2024 at 12:08):

(relatedly, https://github.com/ImperialCollegeLondon/formalising-mathematics-2023/pull/2 adds a link to the lean4 version of your other course)

Yury G. Kudryashov (Feb 12 2024 at 04:14):

BTW, the theorem you formulated is incorrect: 2\sqrt{2} and 1/21/\sqrt{2} are irrational and their product is 11.


Last updated: May 02 2025 at 03:31 UTC