Polarities of generated size annotations (Lemma 3, existing model)
ProvedNishtAbel2024.lemma3_encoding_polaritiesLet polarized signature encoding with target polarity negative and initial polarity positive transform a type into and generate size declarations , in a context . For each generated size name , write for the existence of a negative inductive-fixpoint occurrence of in , and for the existence of a positive coinductive-fixpoint occurrence. Occurrences are judged in extended by . Then
This classifies the generated size annotations by the specified inductive or coinductive occurrence and excludes the opposing case.
Formalization Note This is exactly the second conjunct of the existing bundled Theorems 7–9 and Lemmas 3–5 statement. It adds no context uniqueness, kinding, or freshness premises. The occurrence predicates assert existence of a derivation; this is not an all-occurrences uniform-polarity theorem. The published encoding relation includes extra target-kinding and disjointness premises relative to the printed presentation; source encoding completeness and global freshness remain separate obligations. This result does not establish Lemmas 4–5 or semantic soundness.
import Definitions.Def_NishtAbel2024_Inference
namespace NishtAbel2024
theorem lemma3_encoding_polarities :
(∀ (Δ : KindingCtx) (A A' : TypeExpr) (Ψ : SizeCtx),
EncodeType .neg .pos Δ A Ψ A' →
∀ i ∈ Ψ.dom,
(SizeOccursFixPol (Δ.extSizes Ψ) .mu i .neg A' ∧
¬ SizeOccursFixPol (Δ.extSizes Ψ) .nu i .pos A') ∨
(SizeOccursFixPol (Δ.extSizes Ψ) .nu i .pos A' ∧
¬ SizeOccursFixPol (Δ.extSizes Ψ) .mu i .neg A')) := by sorry
end NishtAbel2024