Concept Architecture
Quantifier (Logic) in Eligibility Rules and Ontologies
A quantifier is the part of a logical formula that says how widely a condition applies, to every individual in the domain or to at least one of them. The universal quantifier , read "for every", and the existential quantifier , read "there exists", turn an open condition such as "x had a treatment that failed" into a sentence that is true or false. Health economists meet quantifiers whenever a reimbursement rule or an ontology axiom says "every", "some", "only" or "at least two". The choice between them decides which patients a rule covers, and so how many people a budget impact estimate counts.
Who uses the term and how
The term belongs to logic and computer science. John Sowa's tutorial Mathematical Background calls the universal quantifier, read "for every" or "for all", and the existential quantifier, read "there exists an x such that". With Boolean operators, variables and predicates they make up the notation of first-order predicate logic. Gabriel Uzquiano, in the Stanford Encyclopedia of Philosophy, describes quantifier expressions as marks of generality and traces modern quantificational logic to George Boole and to Gottlob Frege's work of 1879. The OWL 2 Primer uses the names existential quantification and universal quantification for two kinds of property restriction in the Web Ontology Language.
Binding, scope and the shape of a restricted claim
Sowa defines the occurrences of a variable inside an atom as free, and a quantifier placed before a formula binds the free occurrences of its variable there. Uzquiano calls the formula that follows a quantifier its scope. English sentences such as "every A is B" restrict the quantifier to a class, and in Uzquiano's account Frege and Russell wrote them with the unary quantifiers and a connective.
where is a variable over the domain, says that belongs to the restricting class and says that has the property claimed. The first formula says every A is B and the second says some A is B. Swapping the connectives changes the claim, because claims that everything in the domain is both A and B, and is true as soon as one thing is not an A.
Following Uzquiano, can be defined as . This duality gives the exact negation of a rule, so "not every earlier treatment failed" is equivalent to "some earlier treatment did not fail".
Truth over a domain
In the model theory Uzquiano sets out, a model pairs a non-empty domain with an interpretation of each predicate, and is satisfied when is satisfied for every member of taken as the value of . Through the definition of , a formula is satisfied when at least one member works. Sowa gives the same truth conditions through game-theoretical semantics, a contest in which a sceptic picks an individual at each universal quantifier and a proposer one at each existential quantifier.
A restricted universal claim is true of an individual with nothing in the restricting class, because every case the sceptic can pick makes the "if" part false. The OWL 2 Primer warns that in OWL any individual with no values for a property belongs to every class defined by universal quantification over that property. Classical logic also excludes the empty domain, so is valid, and Uzquiano reports that Quine's inclusive logic drops this by making universal formulas vacuously true and existential formulas false in an empty domain.
Counting and generalised quantifiers
Uzquiano gives cardinality quantifiers for "at least n objects" and "exactly n objects" and notes that both are definable from the standard quantifiers. With identity, "at least two" can be written as follows.
where and are variables over the domain, says that they pick out different individuals and is the property counted, such as "is a previous line of therapy that failed".
Uzquiano explains that the method of Frege and Russell cannot cover "most" or "few", which are better read as binary quantifiers, and gives as true when more things are both A and B than A and not B. Dag Westerståhl reports that a quantifier for "more than half" cannot be defined in first-order logic even on finite domains. A rule such as "funded if most patients in the subgroup responded", written once for subgroups of any size, therefore needs counting beyond plain first-order logic. OWL counts through cardinality restrictions, which the OWL 2 Direct Semantics defines by the number of values an individual has for a property.
Quantifiers inside RHEO
The Real Health Economics Ontology (RHEO), release 0.5.1, gives its class model run (RHEO_0000031) two restrictions. Each model run executes some economic model version (RHEO_0000028), and it has at most one value of the property executes model version. Read through the Direct Semantics, the second axiom becomes the following sentence, translated for this page.
where , and are individuals, says that is a model run and abbreviates the RHEO property executes model version. Together the two axioms say that every model run executes exactly one economic model version. The Primer adds that OWL follows the open world assumption, so a run recorded without its version does not contradict the axioms, since the data may omit it. Checking that each run records its version needs a closed world check, such as a minimum count constraint in the Shapes Constraint Language.
Worked example with an illustrative second-line rule
All rules, patients and figures here are illustrative. A payer funds a drug for patients "whose previous treatments have failed". Reading E is existential, at least one previous treatment failed. Reading U is universal, every previous treatment failed. Reading U+ adds that there was at least one.
A register has four patient types. P1 had two treatments that both failed, P2 had one that failed and one that worked, P3 had one that worked and P4 is treatment-naive. Under reading U the sceptic picks the treatment that worked for P2 and wins, while for P4 no pick is a treatment P4 had, so U is vacuously true. A cohort of 1,000 splits 400, 250, 200 and 150 across the four types. The drug costs GBP 10,000 per patient per year, and every eligible patient is assumed to be treated.
| Reading | Types covered | Patients | Annual cost (GBP) |
|---|---|---|---|
| E, at least one failed | P1, P2 | 400 + 250 = 650 | 6,500,000 |
| U, every one failed | P1, P4 | 400 + 150 = 550 | 5,500,000 |
| U+, every one failed and at least one | P1 | 400 | 4,000,000 |
The readings differ by up to 250 patients and GBP 2.5 million a year, and reading U funds 150 treatment-naive patients under a rule written for second line. Writing the rule with explicit quantifiers exposes the choice before the budget impact model is built.
Boundaries and common misreadings
Propositional logic has no quantifiers, so a rule about every patient or some treatment needs predicate logic. Sowa notes that first-order quantifiers range only over individuals, while higher-order logic also quantifies over predicates. The logical quantifier is distinct from quantifying an amount, such as uncertainty. Sowa's glossary records Quine's criterion, to be is to be the value of a quantified variable. Under the closed world assumption a database reads "every recorded treatment failed" over the rows it holds, which is safe only when the register lists every treatment each patient received.
Sources
- Sowa JF. Mathematical Background. Web tutorial, copyright 1999, 2016. Sections 9, 10 and 13. http://www.jfsowa.com/logic/math.htm (accessed 22 November 2026)
- Sowa JF. Glossary. jfsowa.com, no date, read 22 November 2026. http://www.jfsowa.com/ontology/gloss.htm
- Uzquiano G. Quantifiers and Quantification. In: Stanford Encyclopedia of Philosophy. Substantive revision 18 December 2022. Introduction and sections 1.1, 2.1 and 3.1. https://plato.stanford.edu/entries/quantification/ (accessed 22 November 2026)
- Westerståhl D. Generalized Quantifiers. In: Stanford Encyclopedia of Philosophy. Substantive revision 5 September 2024. Sections 4 and 8. https://plato.stanford.edu/entries/generalized-quantifiers/ (accessed 22 November 2026)
- Hitzler P, Krötzsch M, Parsia B, Patel-Schneider PF, Rudolph S, editors. OWL 2 Web Ontology Language Primer (Second Edition). W3C Recommendation, 11 December 2012. Sections 2 and 5.2. https://www.w3.org/TR/owl2-primer/
- Motik B, Patel-Schneider PF, Cuenca Grau B, editors. OWL 2 Web Ontology Language Direct Semantics (Second Edition). W3C Recommendation, 11 December 2012. Sections 2.2.3 and 2.3.1, tables 4 and 5. https://www.w3.org/TR/owl2-direct-semantics/
- Knublauch H, Kontokostas D, editors. Shapes Constraint Language (SHACL). W3C Recommendation, 20 July 2017. Section 4.2.1. https://www.w3.org/TR/shacl/
- Baines D, Ashley M. Real Health Economics Ontology (RHEO), version 0.5.1, release file rheo.owl. Intelligent Parameters Ltd; 21 November 2026. Release file read locally; the same two model run axioms are in the published version 0.4.0, Zenodo, https://doi.org/10.5281/zenodo.24057151
Related Concepts (1)
Frequently Asked Questions (6)
What is Quantifier?
A quantifier in logic is a symbol, read for every or there exists, that binds a variable and says for how many individuals in a domain a formula holds.
Source: Sowa 2016
What is the difference between the universal quantifier and the existential quantifier in logic?
The universal quantifier, read for every or for all, makes a formula true only when its condition holds for each individual in the domain. The existential quantifier, read there exists, makes a formula true when its condition holds for at least one individual. John Sowa gives both readings in his tutorial Mathematical Background and notes that the two quantifiers, with Boolean operators, variables and predicates, make up the notation of first-order logic. In a funding rule, every previous treatment failed and at least one previous treatment failed are therefore different conditions that cover different patients.
Source: Sowa 2016
Why can a universal quantifier make an eligibility rule true for a patient with no relevant history?
A restricted universal statement, such as every previous treatment of a patient failed, is written as an if-then condition inside the universal quantifier. When the patient has no previous treatment, the if part is false in every case, so the statement counts as true. The OWL 2 Primer warns of the same effect in the Web Ontology Language, where an individual with no values for a property belongs to every class defined by universal quantification over that property. Unless it also requires at least one previous treatment, a second-line rule written with the universal quantifier alone would admit treatment-naive patients.
Source: Hitzler et al. 2012
How is a statement with a quantifier negated, and why does that matter for exclusion rules?
Gabriel Uzquiano notes that the existential quantifier can be defined from the universal one, so that saying something has a property is the same as denying that everything lacks it. The same duality gives the exact negation of a quantified rule. The negation of every earlier treatment failed is some earlier treatment did not fail, and the negation of some earlier treatment failed is no earlier treatment failed. An exclusion branch in a model that negates the words of an inclusion rule one by one, without turning the quantifier round, would exclude the wrong patients.
Source: Uzquiano 2022
Can a quantifier such as most be expressed in first-order logic?
Dag Westerståhl treats the universal and existential quantifiers as two instances of generalised quantifiers, a family with infinitely many other members. He reports that first-order logic cannot say that a set holds more than half of the elements of a domain, even when the domain is finite, and that most, applied to a whole domain, gives exactly that more than half quantifier. A quantifier such as most therefore lies outside plain first-order logic. A health economic rule such as funding a drug if most patients in a subgroup responded, applied to subgroups of any size, needs a counting step, for example in a query or a calculation, rather than a first-order formula alone.
Source: Westerståhl 2024
How does the Real Health Economics Ontology use quantifiers in its axioms?
The Real Health Economics Ontology (RHEO), release 0.5.1 (the same axioms are in the published release 0.4.0), is written in OWL, where quantifiers appear as property restrictions on classes. Its class model run carries an existential restriction, saying that each model run executes some economic model version, and a cardinality restriction, saying that a model run has at most one value for the property executes model version. Read together, the two axioms state that every model run executes exactly one economic model version. The class parameter assignment follows the same pattern, since each parameter assignment assigns some economic model parameter and has at most one value for the property assigns parameter.
Source: Baines and Ashley 2026
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 22 Nov 2026
Content version: 1.0.1
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/quantifier-logic
- Term code
- HS-HP-DH-191
Stable URI · Machine-readable · Resolvable · CC BY 4.0
