Preservation of the quantifier classes under embeddings (issue #15, Unit 1) #
The semantic content of the signed quantifier traversal of Lomega1omega/QuantifierClass.lean:
along an embedding e : A ↪[L] B,
- universal formulas transport downwards — from
BtoA, and - existential formulas transport upwards — from
AtoB.
realize_of_embedding_signed e φ v xs :
(IsUniversal φ → φ.Realize (e ∘ v) (e ∘ xs) → φ.Realize v xs) ∧
(IsExistential φ → φ.Realize v xs → φ.Realize (e ∘ v) (e ∘ xs))
The statement is valuation-aware: it quantifies over free-variable valuations v : α → A and
bound-variable tuples xs : Fin n → A, with the two structures' data related only through e.
That is what makes the induction go through — the all case instantiates the B-side quantifier at
e a and must then recognise Fin.snoc (e ∘ xs) (e a) as e ∘ Fin.snoc xs a, which is a statement
about tuples, not about sentences.
The two directions are proved simultaneously, as a conjunction, for the same reason that
universalSigned is a single signed recursion: the imp case transports the antecedent by the
other direction, so neither implication is provable on its own.
all is where the sign convention is tested. Its universal half is the substructure argument; its
existential half is discharged because IsExistential φ.all is outright false — an existential
quantifier in this syntax is a .not (.all (.not _)), so it is handled by the imp recursion, and
isExistential_ex records that the encoding lands in the right class.
Neither the general theorem nor the sentence corollaries need the carriers to be nonempty; the
_of_nonempty corollary carries the instance binders only so it matches the nonempty convention of
Sentenceω.Entails and of the relative-preservation statements built on top of it.
Preservation of the quantifier classes under embeddings (the Unit-1 acceptance gate). Universal formulas reflect from the codomain to the domain; existential formulas transport from the domain to the codomain. Both halves are stated for arbitrary valuations and bound-variable tuples, and are proved by one simultaneous induction.
Universal formulas reflect along an embedding.
Existential formulas transport along an embedding.
A universal sentence true in an extension is true in the substructure.
An existential sentence true in a structure is true in every extension.
The shape consumed by relative-preservation statements, whose semantics — like that of
Sentenceω.Entails — quantifies over nonempty structures. The nonemptiness instances are
carried for interface compatibility only; the proof above does not use them.