Comments (12)
It sounds like it is confusing the notation ''
used for function image with an empty character literal. Does import data.set.basic
work?
from mathlib.
Yes, it does work.
from mathlib.
Do you compile the most recent mathlib
using leanpkg build
?
It works for me without problem. Do you have any changes in mathlib
?
from mathlib.
Yes. I did exactly that:
leanpkg add https://github.com/leanprover/mathlib
then
leanpkg build
. I did no changes to mathlib
.
from mathlib.
If you just create a file test.lean with "import analysis.real" and then type lean test.lean
are there any problems? I am using lean linux nightly (my output of lean --version
is Lean (version 3.3.1, commit 07bb7d809b6b, Release)
) and mathlib HEAD and if I run this in a directory with an appropriate leanpkg.path then it works fine for me.
from mathlib.
Another idea -- why not try removing all .olean files in your mathlib (and then making them again with the current version of leanpkg if you want)? In the past .olean files compiled with previous versions of Lean have caused pretty random problems which were hard to debug.
from mathlib.
If you just create a file test.lean with "import analysis.real" and then type lean test.lean are there any problems? I am using lean linux nightly (my output of lean --version is Lean (version 3.3.1, commit 07bb7d809b6b, Release)) and mathlib HEAD and if I run this in a directory with an appropriate leanpkg.path then it works fine for me.
Indeed, running lean
(exactly the same version here) from the command line works fine (i.e. no errors)
from mathlib.
Do you mean "I can import analysis.real with no errors if I do it from the command line"? If so, then the issue is with your IDE set-up I guess. But if you mean "I can run lean --version no problem" then what happens if you try to import analysis.real from the command line?
from mathlib.
I meant the first thing: "I can import analysis.real with no errors if I do it from the command line". So it seams to be a problem in Visual Studio config.
from mathlib.
So in VS Code, File->Preferences->Settings will open user settings and you can see the value attached to "lean.executablePath" to check to see if you are using the right lean
. Another gotcha is that if you open a folder with File -> Open Folder and if this folder has a leanpkg.path
in then I think this overwrites any LEAN_PATH
system variable which you might have set, and in this case you might be using the wrong mathlib
. Try opening the root dir of your project with File -> Open Folder and see if this fixes it. These things are very fiddly to set up :-/
from mathlib.
Actually, the problem laid in the fact that running leanpkg build
in the top directory of the project did not compiled mathlib
. One needs to go to _target/deps/mathlib
and run it from there. So I think the issue can be closed now.
from mathlib.
Use lean --make instead of leanpkg build
from mathlib.
Related Issues (20)
- Refactor bilinear forms
- evaluate `int.floor` and `int.fract` with `norm_num` HOT 2
- Lean is unable to infer `ordered_smul` instance from `pi.ordered_smul'` HOT 1
- Basics of tempered distributions HOT 1
- backport remove with_cases
- backport remove `@[ext foo]`
- Diamond of complete boolean algebras on sets
- Generalize `lower_semicontinuous_supr` and variations to *conditionally* complete linear orders
- `polyrith` fails if expression is an equality of numerals
- Lean 3.49.0 compatibility HOT 6
- Q: LLM and/or an RL agent trained on mathlib and tests HOT 1
- Renaming `interval_oc` and `Ι a b` HOT 4
- `(a :: l ++ [b]).last'` does not simplify to `some b`
- mathlib/src/group_theory/presented_group.lean
- The Shapley-Folkman lemma HOT 2
- The ring of integers of a number field `K` is free of dimension `[K : ℚ]` / develop the theory of lattices HOT 3
- Tracking: attribute semireducible/irreducible
- Use a sensible sort order in multiset.repr
- Link broken HOT 1
- Proof that the unit group of a number field is finitely-generated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mathlib.