Zulip Chat Archive

Stream: lean4

Topic: What's ilean & olean


Locria Cyber (Feb 23 2023 at 06:49):

I was trying to build a lean file without lake.
What I got:

$ lean --deps EmptyProgram.lean
/home/user/.elan/toolchains/leanprover--lean4---nightly/lib/lean/Init.olean

Locria Cyber (Feb 23 2023 at 06:49):

What is that .olean file?

Andrés Goens (Feb 23 2023 at 08:06):

Locria Cyber said:

What is that .olean file?

it's the object file, basically a machine-readable version of the file (but it's based on the Lean core language and preserves the types, so it's not the same as the C object file that you get later down the compilation pipeline)

Sebastian Ullrich (Feb 23 2023 at 08:07):

It's the data loaded by import

Locria Cyber (Feb 23 2023 at 14:33):

What's ilean then?

Floris van Doorn (Feb 23 2023 at 16:08):

The .ilean file contains information related to jump-to-definition. For every declaration (or command?) it contains the locations where it is used and where it is defined. You can open it in a text editor to get an idea what is in it.


Last updated: Dec 20 2023 at 11:08 UTC