Cauchy sequence and Logic programming: Difference between pages
(Difference between pages)
imported>Franc.reg No edit summary |
imported>Eptalon m (removed Category:Mathematical logic; added Category:Logic using HotCat) |
||
Line 1: | Line 1: | ||
'''Logic programming''' is using [[mathematical logic]] to write [[computer program]]s. There are specialized [[programming language]]s where the user can directly enter logical statements. Probably the best-known of these languages is called [[Prolog]]. [[Alonzo Church]] used a form of logic programming in what is known as [[lambda calculus]] today. Logic programming has also been used in [[LISP]]. | |||
Programs consist of a set of rules and facts. In most cases, logic programming uses what is called [[negation as failure]] or ''weak negation:'' This means that if it is not possible to derive some clause <math>p</math> from the facts and rules, the system will assume that its negation is true. | |||
[[Category:Logic]] | |||
Latest revision as of 11:12, 7 October 2014
Logic programming is using mathematical logic to write computer programs. There are specialized programming languages where the user can directly enter logical statements. Probably the best-known of these languages is called Prolog. Alonzo Church used a form of logic programming in what is known as lambda calculus today. Logic programming has also been used in LISP.
Programs consist of a set of rules and facts. In most cases, logic programming uses what is called negation as failure or weak negation: This means that if it is not possible to derive some clause [math]\displaystyle{ p }[/math] from the facts and rules, the system will assume that its negation is true.