Zulip Chat Archive

Stream: general

Topic: Init not importing


Frederick Pu (Dec 11 2024 at 05:32):

It seems that Init isn't being imported properly when I don't have Mathlib or Batteries installed. Is that normal?

object file 'c:\Users\pufre\.elan\toolchains\leanprover--lean4---stable\lib\lean\Init\Data\Vector\Basic.olean' of module Init.Data.Vector.Basic does not exist

Kim Morrison (Dec 11 2024 at 11:28):

No, something is wrong. Can you post your lakefile and/or a link to a repo demonstrating this?

Frederick Pu (Dec 11 2024 at 18:13):

https://github.com/FrederickPu/TeryGrad/blob/main/TeryGrad/Minimal/Types.lean

Kim Morrison (Dec 12 2024 at 01:07):

Oh! There is no need to import anything in Init, it is all automatically imported for you.

Frederick Pu (Dec 12 2024 at 01:18):

im getting this tho: #check Vector

/-

unknown identifier 'Vector'
-/

Kim Morrison (Dec 12 2024 at 01:45):

Vector only arrived in Lean (core) in v4.15.0-rc1.

Kim Morrison (Dec 12 2024 at 01:45):

Put leanprover/lean4:v4.15.0-rc1 in your lean-toolchain.


Last updated: May 02 2025 at 03:31 UTC