Signed occurrences through the relationalization layer (issue #14, Unit 6 — the D6 gate) #
The polarity bookkeeping of the graph translation, in three gates.
Gate 1 — the atomic calculus. Term graphs are positive-only: termGraphAux is built from
graph atoms by conjunction, einf, and existential blocks — all sign-preserving — so its negative
set is empty and its positive set is the whole graphRelSym-image. The graph axioms, by contrast,
do use their graph relations in both signs (functionality has one in an antecedent); what
matters is that they contribute no base-relation occurrence in either sign
(relationsInSigned_graphAxioms_inter_base), which is why the identities below are insensitive to
whether the axioms sit in a conjunction or an antecedent.
Gate 2 — base-polarity preservation (the stop/go equation).
relationsInSigned s (relationalizeFormula φ) ∩ Set.range (baseRelSym L)
= baseRelSym L '' relationsInSigned s φ
Relationalization preserves base-relation polarity on the nose, in the audit's exact
image/intersection form, with positiveRelationsIn/negativeRelationsIn corollaries and
preimage-shaped consumer lemmas.
Gate 3 — back-translation.
relationsInSigned s (backTranslateFormula θ) = baseRelSym L ⁻¹' relationsInSigned s θ
Here the key acceptance fact lands: a graph atom back-translates to an equality, whose signed
sets are empty in both signs. So graph relations may carry arbitrary polarity in the graph world
and still disappear harmlessly. Composing the two gates gives the exact base-polarity identities
for Craig's graph antecedent (graphAxioms F).and (relationalizeFormula r) and consequent
(graphAxioms F).imp (relationalizeFormula r).
Symbol-range disjointness #
A set of graph-relation images meets no base-relation image.
Gate 1: the atomic calculus — term graphs are positive-only #
The term-graph signed identity, both signs at once (the recursion needs both): positive
occurrences are the whole graphRelSym-image, negative occurrences are empty — term graphs are
built from graph atoms by conjunction, einf, and existential blocks, all sign-preserving.
Term graphs put every graph relation positively.
Term graphs put nothing negatively.
The equality atom's translation is positive-only, with exactly the two terms' graph relations.
The relation atom's translation is positive-only: the arguments' graph relations and the base symbol itself, all positive; nothing negative.
Preimage form of range-disjointness: no base symbol pulls back from a graph image.
The graph axioms have no base-relation occurrence in either sign — the fact that makes the base-polarity identities insensitive to which side the axioms sit on.
Gate 2: base-polarity preservation (the stop/go equation) #
The D6 stop/go equation, membership form — the workhorse. A base symbol occurs with sign
s in the relationalization exactly when it occurs with sign s in the original. Phrased as a
membership equivalence so the induction never touches set operations at the two (definitionally
equal but syntactically distinct) relation-symbol types.
The D6 stop/go equation, preimage form: pulling the translated signed occurrences back along the base embedding recovers the original signed occurrences exactly.
The D6 stop/go equation, in the audit's image/intersection form.
Gate 2, positive corollary (the audit's stated form).
Gate 2, negative corollary.
Gate 3: back-translation #
The back-translation signed identity, membership form: a base symbol occurs with sign s
in the back-translation exactly when its graph image occurs with sign s upstream. The graph
atom case is the acceptance fact: it back-translates to an equality, contributing to neither
sign, so graph relations may carry arbitrary polarity upstream and still vanish.
Gate 3: the signed occurrences of a back-translation are the base-embedding preimage of the graph formula's signed occurrences.
Gate 3, positive corollary.
Gate 3, negative corollary.
The base-polarity identities for Craig's graph roots #
The graph consequent (graphAxioms F).imp (relationalizeFormula r) likewise: the axioms
contribute nothing to the base part even though the implication flips their sign.
Preimage form of the graph-antecedent identity — the shape the endpoint consumes, so that no
Sigma/definitional-equality friction leaks into the assembly.
Preimage form of the graph-consequent identity: the axioms sit in an antecedent, so the implication flips their sign — and they still contribute nothing to the base part.