Skip to content

cmu-l3/llmlean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLMLean

You can use an LLM running on your laptop, or an LLM from the OpenAI API or Together.ai API.

LLM on your laptop:

  1. Install ollama.

  2. Pull a language model:

ollama pull solobsd/llemma-7b
  1. Add llmlean to lakefile:
require llmlean from git
  "https://github.com/cmu-l3/llmlean.git"
  1. Import:
import LLMlean

Now use a tactic described below.

LLM in the cloud (OpenAI):

  1. Get an OpenAI API key.

  2. Set 2 environment variables:

export LLMLEAN_API=openai
export LLMLEAN_API_KEY=your-openai-api-key

Then do steps (3) and (4) above. Now use a tactic described below.

LLM in the cloud (together.ai):

  1. Get a together.ai API key.

  2. Set 2 environment variables:

export LLMLEAN_API=together
export LLMLEAN_API_KEY=your-together-api-key

Then do steps (3) and (4) above. Now use a tactic described below.


llmstep tactic

Next-tactic suggestions via llmstep "{prefix}". Examples:

  • llmstep ""

  • llmstep "apply "

The suggestions are checked in Lean.

llmqed tactic

Complete the current proof via llmqed. Examples:

The suggestions are checked in Lean.


Customization

Please see the following:

  1. Customization

About

LLMs + Lean, on your laptop or in the cloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages