Quantifier rank of infinitary formulas #
The quantifier rank of an infinitary formula is 0 on atoms, the maximum on implication, the
successor under a quantifier, and the supremum of the branches at an infinitary conjunction or
disjunction.
The supremum ranges over the branching carrier ι, so the rank is valued in Ordinal.{uι}, the
carrier's own ordinal universe; at ι := ℕ this is Ordinal.{0}. Ranks at different carriers live
in different universes, and are compared after Ordinal.lift into a common one: carrier transport
preserves rank up to this lift. Padding does not raise the rank, since the padding branches ⊤
and ⊥ have rank 0; this includes an empty source carrier, where every branch is padding.
Main definitions #
FirstOrder.Language.BoundedFormulaInf.qrank: the quantifier rank.
Main results #
FirstOrder.Language.BoundedFormulaInf.qrank_allsandFirstOrder.Language.BoundedFormulaInf.qrank_exs: closing allnbound-variable slots addsn.FirstOrder.Language.BoundedFormulaInf.qrank_reindex: carrier transport preserves rank, up toOrdinal.lift.FirstOrder.Language.BoundedFormulaInf.qrank_toInf: the rank of a finitary formula does not depend on the carrier, up toOrdinal.lift.FirstOrder.Language.BoundedFormulaInf.qrank_toInf_lt_omega0: the rank of a finitary formula is finite.
References #
- Ported from
cameronfreer/infinitary-logicat commit9f82bd572af2d79a043c6bc3f1b745f14e0bcaa4, whose quantifier rank isMathlib/ModelTheory/Infinitary/QuantifierRank.leanincameronfreer/mathlib4at commit346a4bd3f95e8591976c91259badc6d2c300f638. - Divergences from these sources: the body of
qrankis not exposed and is used through its constructor equations, and the proofs use only the public equations of the syntax and of carrier transport.
The quantifier rank of an infinitary formula, valued in the carrier's ordinal universe:
0 on atoms, the maximum on implication, the successor under ∀, and the supremum of the
branches at an infinitary node.
Instances For
Universal quantification raises the rank by one.
Existential quantification raises the rank by one.
Carrier transport preserves quantifier rank, up to Ordinal.lift into a common universe,
for every coding, including from an empty carrier.
The rank of a finitary formula does not depend on the carrier, up to Ordinal.lift.
The rank of a finitary formula is finite.