Zulip Chat Archive

Stream: general

Topic: projects as dependencies


Jared green (Oct 16 2021 at 22:36):

how do i make 'leanprover/super', which i have downloaded, one of the dependencies of my file? i'm using VSCode.

Scott Morrison (Oct 17 2021 at 01:46):

leanpkg add <url> [branch] is probably what you're looking for.

Jared green (Oct 17 2021 at 03:56):

my file isnt on github.

Scott Morrison (Oct 17 2021 at 04:17):

But your dependency is. The url should be the url of the git repository you want to depend on.

Jared green (Oct 17 2021 at 04:18):

what does 'branch' refer to?

Scott Morrison (Oct 17 2021 at 04:20):

It's optional; typically you just want the master branch, in which case you can just leave it off.

Jared green (Oct 17 2021 at 04:20):

how do i link it to my file, specifically?

Johan Commelin (Oct 17 2021 at 06:10):

@Jared green individual Lean files can't have dependencies. So you want to start your own new project, and add super as dependency to that project.

Jared green (Oct 21 2021 at 22:02):

i have had to port super2 to the version of lean i am using.(both super and super2 are incompatible, and super had an error i couldnt fix at all) in my version of lean, by_contradiction expects a 'name' as input. at lines 150-159 of prover.lean, (nothing else of consequence has changed) i gave 'better_contradiction' the input type 'option name', then gave 'none' to its only call. it type checks, but i'm pretty sure its wrong. im addressing Gabriel Ebner: what did better_contradiction do, and is the call to tactic.by_contradiction absolutely necessary?

Eric Wieser (Oct 21 2021 at 22:18):

@Gabriel Ebner ^

Gabriel Ebner (Oct 22 2021 at 07:07):

super2 is a half-finished rewrite of super, but I've given up on any further work in Lean 3 due to performance issues. It should still be able to do some easy stuff. I've updated super2 to Lean 3.34 now.


Last updated: Dec 20 2023 at 11:08 UTC