ArticleslgStudy

computer science

HOL (proof assistant)

HOL (proof assistant) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand HOL (proof assistant) rather than just read about it. In short: HOL (Higher Order Logic) denotes a family of interactive theorem proving systems using similar (higher-order) logics and implementation strategies. Systems in this family follow the LCF (Logic for Computable Functions) approach as they are implemented as a library which defines an abstract data type of proven theorems such that new objects of this type can only be created using the functions in the library which cor…

Key takeaways

  • HOL (proof assistant) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect HOL (proof assistant) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of HOL (proof assistant) from memory before moving on to harder problems.

Reference excerpt

HOL (Higher Order Logic) denotes a family of interactive theorem proving systems using similar (higher-order) logics and implementation strategies. Systems in this family follow the LCF (Logic for Computable Functions) approach as they are implemented as a library which defines an abstract data type of proven theorems such that new objects of this type can only be created using the functions in the library which correspond to inference rules in higher-order logic. As long as these functions are correctly implemented, all theorems proven in the system must be valid. As such, a large system can be built on top of a small trusted kernel. Systems in the HOL family use ML or its successors. ML was originally developed along with LCF as a meta-language for theorem proving systems; in fact, the name stands for "Meta-Language".

Underlying logic

HOL systems use variants of classical higher-order logic, which has simple axiomatic foundations with few axioms and well-understood semantics. The logic used in HOL provers is closely related to Isabelle/HOL, the most widely used logic of Isabelle.

HOL implementations A number of HOL systems (sharing essentially the same logic) remain active and in use:

HOL4 — the only presently maintained and developed system stemming from the HOL88 system, which was the culmination of the original HOL implementation effort, led by Mike Gordon. HOL88 included its own ML implementation, which was in turn implemented on top of Common Lisp. The systems that followed HOL88 (HOL90, hol98 and HOL4) were all implemented in Standard ML; while hol98 is coupled to Moscow ML, HOL4 can be built with either Moscow ML or Poly/ML. All come with large libraries of theorem proving code which implement extra automation on top of the very simple core code. HOL4 is BSD licensed. HOL Light — an experimental "minimalist" version of HOL which has since grown into another mainstream HOL variant; its logical foundations remain unusually simple. HOL Light, originally implemented in Caml Light, now uses OCaml. HOL Light is available under the new BSD license. ProofPower — a collection of six tools designed to provide special support grounded in HOL for working with the Z notation for formal specification. The tool PPDaz supporting specification and verification of programs written in a subset of Ada was previously only supplied under a proprietary licence. All the tools are now available under the GNU GPL v2 license. HOL Zero — a minimalist implementation focused on trustworthiness. HOL Zero is GNU GPL 3+ licensed. Candle — An end-to-end verified HOL Light implementation on top of CakeML.

Formal proof developments

The CakeML project developed a formally proven compiler for ML. Previously, HOL was used to develop a formally proven Lisp implementation running on ARM, x86 and PowerPC. HOL was also used to formalize the semantics of x86 multiprocessors as well as the machine code for Power ISA and ARM architectures.

References

Further reading Gordon, Michael J. C. (1996). "From LCF to HOL: A Short History". Retrieved 2007-10-11.

External links Official website Documents specifying HOL's basic logic HOL4 Description manual, includes system logic specification Virtual library formal methods information

Worked examples

Example 1 — a first encounter with HOL (proof assistant)

Start with the simplest possible case. Write down what HOL (proof assistant) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to HOL (proof assistant) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about HOL (proof assistant) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of HOL (proof assistant)

In research
HOL (proof assistant) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses HOL (proof assistant) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
HOL (proof assistant) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Logic in computer science, Proof assistants, Software using the BSD license, so understanding it makes those chapters shorter.
In everyday life
Look for HOL (proof assistant) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “HOL (proof assistant)” →

How to study HOL (proof assistant) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what HOL (proof assistant) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain HOL (proof assistant) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is HOL (proof assistant) in simple terms?

HOL (Higher Order Logic) denotes a family of interactive theorem proving systems using similar (higher-order) logics and implementation strategies. Systems in this family follow the LCF (Logic for Computable Functions) approach as they are implemented as a library which defines an abstract data typ…

Why does HOL (proof assistant) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study HOL (proof assistant)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on HOL (proof assistant).

Tags

  • Logic in computer science
  • Proof assistants
  • Software using the BSD license

Keep exploring