Gödel (programming language)
Gödel is a declarative, general-purpose programming language that adheres to the logic programming paradigm.[src] It is a strongly typed language, the type system being based on many-sorted logic with parametric polymorphism.[src] It is named after logician Kurt Gödel.[src]
Gödel is a declarative, general-purpose programming language that adheres to the logic programming paradigm.[src] It is a strongly typed language, the type system being based on many-sorted logic with parametric polymorphism.[src] It is named after logician Kurt Gödel.[src] ==Features== Gödel has a module system, and it supports arbitrary precision integers, arbitrary precision rationals, and also floating-point numbers.[src] It can solve constraints over finite domains of integers and also linear rational constraints.[src] It supports processing of finite sets.[src] It also has a flexible computation rule and a pruning operator which generalises the commit of the concurrent logic programming languages.[src] Gödel's meta-logical facilities provide support for meta-programs that do analysis, transformation, compilation, verification, and debugging, among other tasks.[src] ==Sample code== The following Gödel module is a specification of the greatest common divisor (GCD) of two numbers.[src] It is intended to demonstrate the declarative nature of Gödel, not to be particularly efficient.[src] The CommonDivisor predicate says that if i and j are not zero, then d is a common divisor of i and j if it lies between 1 and the smaller of i and j and divides both i and j exactly.[src] The Gcd predicate says that d is a greatest common divisor of i and j if it is a common divisor of i and j , and there is no e that is also a common divisor of i and j and is greater than d .[src] MODULE GCD.[src] IMPORT Integers.[src] PREDICATE Gcd : Integer * Integer * Integer.[src] Gcd(i,j,d) d).[src] PREDICATE CommonDivisor : Integer * Integer * Integer.[src] CommonDivisor(i,j,d) <- IF (i = 0 \/ j = 0) THEN d = Max(Abs(i),Abs(j)) ELSE 1 =< d =< Min(Abs(i),Abs(j)) & i Mod d = 0 & j Mod d = 0.[src] ==External links== https://web.archive.org/web/20091207092823/http://www.scs.leeds.ac.uk/hill/GOEDEL/expgoedel.html https://mitpress.mit.edu/9780262519151/the-godel-programming-language/[src]
22 sentences · 22 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Gödel (programming language)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/g-del-programming-language. Accessed 04 December 2026.
Chicago
"Gödel (programming language)." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/g-del-programming-language.
APA
encyclopegia.org. (2025). Gödel (programming language). Retrieved December 4, 2026, from https://encyclopegia.org/wiki/g-del-programming-language
Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON