Signed quantifier occurrence (issue #15, budget gate 1) #
QuantifierClass.lean answers "is every quantifier of this sign admissible?"; Feferman's
separator budgets need the dual, positive question: "does a quantifier of this sign occur?".
Defining occurrence as ¬ IsUniversal / ¬ IsExistential would work extensionally but makes every
budget calculation a double-negation exercise. So occurrence is given its own signed recursion, with
exact constructor equations, and the two are then related by an exact bridge:
universalSigned s φ ↔ ¬ hasQuantSigned (!s) φ
IsUniversal φ ↔ ¬ HasExistential φ IsExistential φ ↔ ¬ HasUniversal φ
The sign discipline is the same as in QuantifierClass.lean and Polarity.lean: an antecedent
flips, iSup/iInf preserve and are not quantifiers, and all is a universal occurrence at the
positive sign only. Nothing here mentions interpolation; the set-level versions at the end are what
the separator budgets are stated against.
Signed quantifier occurrence. hasQuantSigned true φ says a quantifier occurs
universally in φ; hasQuantSigned false φ says one occurs existentially (a negatively
occurring all).
Equations
- FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ FirstOrder.Language.BoundedFormulaω.falsum = False
- FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ (FirstOrder.Language.BoundedFormulaω.equal t₁ t₂) = False
- FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ (FirstOrder.Language.BoundedFormulaω.rel R ts) = False
- FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ (φ.imp ψ) = (FirstOrder.Language.BoundedFormulaω.hasQuantSigned (!x✝) φ ∨ FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ ψ)
- FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ φ.all = (x✝ = true ∨ FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ φ)
- FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ (FirstOrder.Language.BoundedFormulaω.iSup φs) = ∃ (i : ℕ), FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ (φs i)
- FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ (FirstOrder.Language.BoundedFormulaω.iInf φs) = ∃ (i : ℕ), FirstOrder.Language.BoundedFormulaω.hasQuantSigned x✝ (φs i)
Instances For
A universal quantifier occurs in φ.
Instances For
An existential quantifier occurs in φ.
Instances For
Constructor equations #
Negation exchanges the two occurrence notions.
The exact bridge to the quantifier classes #
The bridge. Being of a class is exactly the absence of an occurrence of the opposite sign.
Stability under the variable operations #
Set-level occurrence: the budget sources #
A quantifier of sign s occurs somewhere in the set — the source of a separator budget.
Equations
Instances For
A universal quantifier occurs somewhere in T.
Equations
Instances For
An existential quantifier occurs somewhere in T.
Equations
Instances For
Non-growth: inserting a sentence whose s-occurrences are already licensed does not enlarge
the budget. This is the shape every consistency-property branch step needs.