Zulip Chat Archive

Stream: mathlib4

Topic: unknown identifier 'ℚ'


Attila Vajda (Mar 03 2025 at 07:15):

Hello, pls help, I made new project with Project: Make Project With Mathlib. But for

example :  := 1

there is error unknown identifier 'ℚ'

I would like to learn theorem solving from one of the tutorials, and I am using VS Code.

Attila Vajda (Mar 03 2025 at 07:17):

in Proj.lean importing import Mathlib.Data.Rat doesn't find the file, and I'm not sure which module to import for ℚ, if any at all

Johan Commelin (Mar 03 2025 at 07:19):

import Mathlib.Data.Rat.Init

should help. That's where the notation for Rat is defined.

Attila Vajda (Mar 03 2025 at 07:20):

Thank you @Johan Commelin

Patrick Massot (Mar 03 2025 at 16:56):

Which tutorial are you reading? It probably requires an update.


Last updated: May 02 2025 at 03:31 UTC