Variance and formation rules for first-order operators #
Operator bodies may be monotone, antitone, or arbitrary. Positivity propagates through this variance, not just through negations: an arbitrary operator (for example, a parity quantifier) must not introduce a hidden negative dependency into a least fixed point.
Formula.checkPolarity is a decidable syntactic check. Formula.realize_checkPolarity proves
its semantic guarantee from the operator interpretation's variance law. Policy separately
specifies which locally bound relations must occur positively; Formula.wellFormed checks this
condition at every nested operator. Raw interpretation itself does not assume well-formedness.
Main definitions #
Variance,Interpretation.Respects: the semantic extension contract.Policy,Formula.wellFormed,CheckedFormula: formation rules and checked formulas.Formula.checkPolarity: syntactic dependence on a marked set of relation variables.
Main results #
Formula.realize_checkPolarity: syntactic polarity implies semantic monotonicity or antitonicity.Formula.wellFormed_relabel: free-variable renaming preserves formation conditions.
A Boolean marking of relation variables.
Instances For
The declared variance of every body of every operator.
Instances For
An interpretation obeys the declared body variances. Arbitrary bodies must be equivalent.
Instances For
Operator-specific formation conditions, separate from binding and interpretation.
- variance : Variances shape
How an operator depends on each body.
Locally bound relations required to occur positively in each body.
Instances For
Check positive (true) or negative (false) dependence on the marked relations.
Arbitrary operator slots require both checks, conservatively excluding marked dependencies.
Instances For
Every formula has both polarities when no relation variable is marked.
A checker's result does not depend on the names of free first-order variables.
Renaming free first-order variables preserves operator formation conditions.
A formula together with its checked operator formation conditions.
Instances For
The syntactic polarity check implies the corresponding semantic implication. This includes nested operators and does not assume that raw syntax is well-formed.