raispace
โ† back to blog

GEC Formal Spec Part 1 - Basics

ยท 30 min gecslothink

tThis is a formal specification for the basics of gGated eEpistemic cCalculus (gecGEC) for those interested in jumping into the math.

tThe pPrimitive

tThe primitive belief object is:

๐‘…=(๐‘…๐‘‡,๐‘…๐น,๐‘…๐‘‰,๐‘…๐ธ).
$$ R = (R_T,R_F,R_V,R_E). $$
  • R_T: evidence that the proposition is true, conditional on being evaluable
  • R_F: evidence that the proposition is false, conditional on being evaluable
  • R_V: evidence that the proposition is vague, ill-posed, or not evaluable as stated
  • R_E: evidence that the proposition is evaluable as stated

tThe zero vector:

0๐‘…=(0,0,0,0)
$$ 0_R = (0,0,0,0) $$

means no evidence has been supplied on either channel.

cChannel pPairs

tThe inner, directional channel is:

๐‘…๐‘™=(๐‘…๐‘‡,๐‘…๐น).
$$ R_l=(R_T,R_F). $$

tThe outer, evaluability channel is:

๐‘…๐‘ฃ=(๐‘…๐‘‰,๐‘…๐ธ).
$$ R_v=(R_V,R_E). $$

fFor a generic channel pair:

(๐‘…+,๐‘…โˆ’)
$$ (R_+,R_-) $$

define:

๐‘=๐‘…++๐‘…โˆ’.
$$ N = R_+ + R_-. $$

tThe corresponding offset-bBeta parameters are:

๐›ผ=๐‘…++1,๐›ฝ=๐‘…โˆ’+1.
$$ \alpha = R_+ + 1,\qquad \beta = R_- + 1. $$

tThe offset by one is part of the canonical model. eEvidence is stored as pseudocount mass beyond the uniform prior.

tThe sSemantic iInterpretation

tThe semantic interpretation is:

๐‘(๐‘…)=(๐‘™,๐‘›๐‘™,๐‘ฃ,๐‘›๐‘ฃ).
$$ b(R) = (l,n_l,v,n_v). $$

tThe strengths are:

๐‘›๐‘™=๐‘…๐‘‡+๐‘…๐น,๐‘›๐‘ฃ=๐‘…๐‘‰+๐‘…๐ธ,
$$ n_l = R_T+R_F, \qquad n_v = R_V+R_E, $$

tThe coordinates are:

๐‘™={๐‘…๐‘‡๐‘…๐‘‡+๐‘…๐น,๐‘…๐‘‡+๐‘…๐น>012,๐‘…๐‘‡+๐‘…๐น=0
$$ l = \begin{cases} \dfrac{R_T}{R_T+R_F}, & R_T+R_F>0 \\ \dfrac{1}{2}, & R_T+R_F=0 \end{cases} $$
๐‘ฃ={๐‘…๐‘‰๐‘…๐‘‰+๐‘…๐ธ,๐‘…๐‘‰+๐‘…๐ธ>012,๐‘…๐‘‰+๐‘…๐ธ=0.
$$ v = \begin{cases} \dfrac{R_V}{R_V+R_E}, & R_V+R_E>0 \\ \dfrac{1}{2}, & R_V+R_E=0. \end{cases} $$

bBeta cChart

tThe bBeta chart is derived:

๐›ผ๐‘™=๐‘…๐‘‡+1,๐›ฝ๐‘™=๐‘…๐น+1,๐›ผ๐‘ฃ=๐‘…๐‘‰+1,๐›ฝ๐‘ฃ=๐‘…๐ธ+1.
$$ \alpha_l = R_T+1,\quad \beta_l = R_F+1, \qquad \alpha_v = R_V+1,\quad \beta_v = R_E+1. $$

tThe inner channel is:

๐œƒ๐‘™โˆผBeta(๐‘…๐‘‡+1,๐‘…๐น+1).
$$ \theta_l \sim \mathrm{Beta}(R_T+1,R_F+1). $$

tThe outer channel is:

๐œƒ๐‘ฃโˆผBeta(๐‘…๐‘‰+1,๐‘…๐ธ+1).
$$ \theta_v \sim \mathrm{Beta}(R_V+1,R_E+1). $$

tThe two channels can be adjusted independently, but recall that ๐‘…๐ธ=๐‘…๐‘‡+๐‘…๐น$R_E = R_T + R_F$

tThe predictive channel means are:

ยฏ๐‘™=๐‘…๐‘‡+1๐‘…๐‘‡+๐‘…๐น+2,ยฏ๐‘ฃ=๐‘…๐‘‰+1๐‘…๐‘‰+๐‘…๐ธ+2.
$$ \bar l = \frac{R_T+1}{R_T+R_F+2}, \qquad \bar v = \frac{R_V+1}{R_V+R_E+2}. $$

rRepresentative, predictive, and density layers

gecGEC has three canonical readout layers:

  • rRepresentative layer
    ๐‘rep(๐‘…)=((1โˆ’๐‘ฃ)๐‘™,(1โˆ’๐‘ฃ)(1โˆ’๐‘™),๐‘ฃ)
    $$ p^{\mathrm{rep}}(R)=((1-v)l,(1-v)(1-l),v) $$
  • pPredictive layer
    ๐‘pred(๐‘…)=((1โˆ’ยฏ๐‘ฃ)ยฏ๐‘™,(1โˆ’ยฏ๐‘ฃ)(1โˆ’ยฏ๐‘™),ยฏ๐‘ฃ)
    $$ p^{\mathrm{pred}}(R)=((1-\bar v)\bar l,(1-\bar v)(1-\bar l),\bar v) $$
  • dDensity layer
    ๐‘ždens(๐‘…)=Beta(๐‘…๐‘‰+1,๐‘…๐ธ+1)โŠ—Beta(๐‘…๐‘‡+1,๐‘…๐น+1)
    $$ q^{\mathrm{dens}}(R)= \mathrm{Beta}(R_V+1,R_E+1) \otimes \mathrm{Beta}(R_T+1,R_F+1) $$

tThe predictive projection is a readout, not an automatic evidence generator.

aAny rule that converts a predictive reading into target-side rR evidence must specify an activation or conservation rule.

tThe required invariant is:

๐‘…work(๐ด)=0๐‘…โŸนAct๐‘งโก(๐ด)=0forallย ๐‘งโˆˆ{๐‘‡,๐น,๐‘‰}.
$$ R_{\mathrm{work}}(A)=0_R \implies \operatorname{Act}_z(A)=0 \quad \text{for all } z \in \{T,F,V\}. $$