Code Monkey home page Code Monkey logo

Comments (6)

aqjune avatar aqjune commented on September 7, 2024

There is a tutorial for HOL Light (https://www.cl.cam.ac.uk/~jrh13/hol-light/tutorial.pdf). Its installation instruction is a bit outdated, but the remaining sections are still valid.
I typically use HOL Light VSCode plugin (https://github.com/monadius/vscode-hol-light) to edit a proof.

from hol-light.

YoungShrank avatar YoungShrank commented on September 7, 2024

thank you, it's really helpful.i have almost finished

vscode

I have already download vscode in my window system, and it says I needn't to download an aditional one in wsl, which have caused a collision.I ran the vscode in my wsl by a "$code" command(a error about unc host was encoutered and i fixed it by adding wsl.localhost to allowed hosts in settings).

hol-light plug-in

i installed the hol-light extension,and configured the hol-light path. then I create a hl file named "hello_world.hl" in vscode. as the extension suggest, the file can be recognised and the completion hover is offerred (but no highlight) as i'm typing.

interactive way in the CLI

i find in the pdf you offerred that i can access the hol-light in the ocaml CLI, with ocaml as the toplevel basics and hol-light being a library, just through a single use command.but i come across a sequence of errors such like "Error: Unbound module Num" ,which seems miss of num lib, caused by incomplete dependency building or something.

problems

i want to use hol-light in a script, and the only thing left is how to excute or parse it.
the uncommon highlight and the error of "use command" is irrelevant but may indicate something wrong with my deployment

from hol-light.

aqjune avatar aqjune commented on September 7, 2024

interactive way in the CLI

For installation, probably you will want to read README of this HOL Light repository. You can use make switch to install dependent packages.

from hol-light.

YoungShrank avatar YoungShrank commented on September 7, 2024

thank you. i solved the "unbound module num" problem by installing the "num" module .and eventually i have my first hol-light term defined in the interactive way.
image
what about the vscode-plugin. how to parse it supposing i create a file named "hello_world.hl" containing one line "x+1;;" in vscode

from hol-light.

YoungShrank avatar YoungShrank commented on September 7, 2024

alright, i find the solution in the extension's introduction about commands ,Alt + E can Sends selected text to HOL Light. thanks, the problems are solved

from hol-light.

aqjune avatar aqjune commented on September 7, 2024

Could you close this issue if the problem is resolved?

from hol-light.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.