Open formula
An open formula is a formula that contains at least one free variable.[src]
An open formula is a formula that contains at least one free variable.[src] ==Definition and uses== An open formula does not have a truth value assigned to it, in contrast with a closed formula which constitutes a proposition and thus can have a truth value like true or false.[src] An open formula can be transformed into a closed formula by applying a quantifier for each free variable.[src] This transformation is called capture of the free variables to make them bound variables.[src] For example, when reasoning about natural numbers, the formula "x+2 > y" is open, since it contains the free variables x and y.[src] In contrast, the formula "∃y ∀x: x+2 > y" is closed, and has truth value true.[src] Open formulas are often used in rigorous mathematical definitions of properties, like "x is an aunt of y if, for some person z, z is a parent of y, and x is a sister of z" (with free variables x, y, and bound variable z) defining the notion of "aunt" in terms of "parent" and "sister".[src] Another, more formal example, which defines the property of being a prime number, is "P(x) if ∀m,n∈ \mathbb{N} : m>1 ∧ n>1 → x≠ m⋅n", (with free variable x and bound variables m,n).[src] ==Fermat example== An example of a closed formula with truth value false involves the sequence of Fermat numbers F_{n} = 2^{2^n} + 1, studied by Fermat in connection to the primality.[src] The attachment of the predicate letter P (is prime) to each number from the Fermat sequence gives a set of closed formulae.[src] While they are true for n = 0,...,4, no larger value of n is known that obtains a true formula, ; for example, F_5 = 4 \,294 \,967 \,297 = 641 \cdot 6\,700\,417 is not a prime.[src] Thus the closed formula ∀n P(F n ) is false.[src] In database theory, when expressing a query as an open first-order formula, the free variables represent the ones that in an SQL query would occur in the SELECT clause.[src] For example, a formula like: \varphi(son) = birthYear(son,2020) \land \exists mom\textbf{.}(motherOf(mom,son) \land birthYear(mom,1999)) where son is the only free variable, could be expressed in SQL as follows: SELECT y1.person AS son FROM birth_year y1 WHERE y1.year = 2020 AND EXISTS ( SELECT * FROM mother_of m1 JOIN birth_year y2 ON m1.mother = y2.person WHERE m1.son = y1.person AND y2.year = 1999 ) which selects all the people born in 2020 and having a mother born in 1999.[src] Formally, executing the above SQL query over a database is equivalent to look for all the substitutions \sigma of the free variables of \varphi with constants such that the Herbrand interpretation of \mathcal{D} satisfies \sigma(\varphi) , where \mathcal{D} is the set of ground atoms representing the database.[src]
16 sentences · 16 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Open formula." encyclopegia.org, 2026, https://encyclopegia.org/wiki/open-formula. Accessed 29 November 2026.
Chicago
"Open formula." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/open-formula.
APA
encyclopegia.org. (2026). Open formula. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/open-formula
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| date of birth | 2020 | Wikipedia |