Logical formula

An expression in the language of formal logic. An exact definition of a logical formula is given for each specific logical language. As a rule, the definition of a formula has an inductive character: one distinguishes a class of statements, called atomic formulas, and states rules that make it possible to construct new formulas from formulas already constructed, using the symbols for logical operations (cf. Logical operation). For example, the formulas of propositional logic are defined as follows. Any propositional variable is an (atomic) formula. If \$A\$ and \$B\$ are formulas, then \$(A\mathbin\&B)\$, \$(A\lor B)\$, \$(A\supset B)\$, \$(\neg A)\$ are formulas. The formulas of predicate logic are constructed from propositional, predicate and object variables by using logical connectives, quantifiers and auxiliary symbols (brackets and commas). Atomic formulas are propositional variables and expressions of the form \$P(y_1,\ldots,y_n)\$, where \$P\$ is an \$n\$-place predicate variable and \$y_1,\ldots,y_n\$ are object variables. The formulas of predicate calculus are defined as follows: a) any atomic formula is a formula; and b) if \$A\$ and \$B\$ are formulas and \$y\$ is an object variable, then \$(\neg A)\$, \$(A\mathbin\&B)\$, \$(A\lor B)\$, \$(A\supset B)\$, \$(\forall y\ A)\$, \$(\exists y\ A)\$ are formulas.