The signed occurrence calculus (issue #14, Unit 0 layer 2) #
The Methods-level half of Unit 0: the bridge from the signed traversal of
Lomega1omega/Polarity.lean to the unsigned relationsIn, and the signed twin of every
occurrence law the interpolation kernel consumes — language maps, relabelling, casting,
substitution, quantifier blocks, the constant-expansion machinery (abstractConst, genEx,
instConst, stripConsts), and the baseRelationsIn calculus.
Layering: the Core file knows nothing of relationsIn, baseRelationsIn, or the Henkin
machinery; everything that mentions them lives here.
Acceptance gates of Unit 0 (all in this file or its Core companion):
positiveRelationsIn_not/negativeRelationsIn_not— the negation swaps (Core);relationsIn_eq_signed_union—relationsIn = positive ∪ negative, which is what turns Lyndon into Craig at the occurrence level;- exact constructor equations for
imp,all,iInf,iSup(Core); - the exact image law
relationsInSigned_mapLanguage.
No semantics and no inseparability notions appear in Unit 0.
The bridge to the unsigned occurrence set #
Acceptance gate: the relation symbols of a formula are exactly those occurring with one of the two signs. This is what makes Craig interpolation a corollary of Lyndon interpolation at the occurrence level.
Language maps, relabelling, casting, substitution #
Acceptance gate (exact image law): a language map moves the signed occurrence sets by the symbol map, sign by sign.
Finite quantifier blocks #
The constant-expansion machinery #
Constant abstraction does not move the signed occurrence sets.
The existential generalization of a constant does not move the signed occurrence sets.
Instantiating a universal at a constant does not move the signed occurrence sets.
The base signed occurrence sets #
The base signed occurrence sets of a constant-expansion formula (the constant layer contributes no relation symbols).
Equations
Instances For
The relation symbols occurring positively in a constant-expansion formula, read in the base language.
Instances For
The relation symbols occurring negatively in a constant-expansion formula, read in the base language.
Equations
Instances For
The base occurrence set splits by sign, exactly as the ambient one does.
Negation swaps the base signs.
Alias gate: positive base occurrences of ¬φ are the negative ones of φ.
Alias gate: negative base occurrences of ¬φ are the positive ones of φ.
Base signed occurrences of the kernel's atomic sentences #
A constant equality has no signed base occurrences, in either sign — the syntactic form of "equality is logical".
Universal instantiation does not enlarge the base signed sets.
Existential generalization of a constant does not move the base signed sets.
Alias form of the constant-expansion image law, positive sign (matches the abbrev shape, so
rw fires on goals stated with basePositiveRelations).
Alias form of the constant-expansion image law, negative sign.
Stripping a constant-free formula keeps the signed occurrences inside the base signed set.