The CDV/DTI as Words v0.1
The CDV/DTI as Words v0.1
Theoretical foundations: Grant C. Sterling (Eastern Illinois University). Architecture and protocol design: Dave Kelly. Code: v0.5.2 by Gemini (Google); v0.5.3, v0.5.4 and v0.1 of the words by Claude (Anthropic). 2026.
The Beginning
Everyone wants happiness. Incomplete happiness is not worth accepting if complete happiness is available. Complete happiness must therefore lie wholly within our control. Only assent lies wholly within our control. Happiness is therefore correct assent, correct when it matches the truth about value: only virtue is good, only vice is evil, everything else is indifferent.
(Copied from the source of the CDV/DTI Reference Suite v0.5.4.)
Key
- v0.5.4 — the ratified CDV/DTI Reference Suite (R-2026-10-01-05), held unchanged in reference/. Its SHA-256 matches the published hash: 48156ca2…36b52840.
- SLE Prop n — a proposition of the Sterling Logic Engine v4.4, as quoted in v0.5.4. Props 1–58: Sterling, synthesized by Dave Kelly. Props 59–80: Dave Kelly, on Sterling’s foundations.
- Word — one named operation. A primitive is written in Python; a definition is written in words, in a .fs file.
- Vocabulary — one .fs file of related words.
- ( a -- b ) — a stack picture: what a word takes from the stack, and what it leaves.
Definitions
- Stack — the one place words pass values. A word takes its inputs from the top and leaves its result there. Words share nothing else.
- Rests on — a word rests on every word its definition uses. A definition can use only words already defined, so a word whose support is missing does not load.
- Decision — what a word settles about the content of a judgment already made and marked. No word assents, and none needs to: the person’s classifications are its input and the person’s assent is only recorded.
How It Is Built
- engine.py — The stack machine. Knows nothing of Stoicism. Rests on: nothing.
- case_words.py — The only words that know the case form’s layout. They read; they judge nothing. Rests on: engine.
- words/value.fs — EXTERNAL? MORAL? FALSE-VALUE? Rests on: case words.
- words/action.fs — FALSE-DEP? CONTAMINATED? AIM-OK? RESERVED? VICIOUS? FAILS? Rests on: value.
- words/facts.fs — UNVERIFIED-DEP? PENDING? Rests on: case words.
- words/precedence.fs — CAUSATION IRREVERSIBLE RESUMABLE DEPENDENCE GREATER-WRONG DEPENDENTS PRECEDENCE. Rests on: case words.
- words/standing.fs — LOSES? TIES? YIELDS? TIED? Rests on: precedence.
- words/outcome.fs — OUTCOME. Rests on: action, facts, standing.
- kernel.py — An application: asks the words in v0.5.4’s order and assembles v0.5.4’s result. Rests on: all of the above.
Each vocabulary quotes, in its comments, the propositions its words apply.
The Words, Read Aloud
: FALSE-VALUE? ( vid -- flag ) DUP EXTERNAL? IF MORAL? ELSE MORAL? NOT THEN ;
If it is external, the judgment is false when it is marked good or evil. Otherwise (it lies in one’s own choice), the judgment is false when it is marked anything else.
: FAILS? ( aid -- flag )
DUP CONTAMINATED? OVER AIM-OF AIM-OK? NOT OR
OVER RESERVED? NOT OR SWAP VICIOUS? OR ;
It fails if it rests on a false value judgment, or its aim is not a preferred indifferent, or it is not held with reservation, or it involves a vice.
: OUTCOME ( aid -- outcome )
DUP FAILS? IF DROP ' FAILS EXIT THEN
DUP PENDING? IF DROP ' PENDING EXIT THEN
DUP YIELDS? IF DROP ' SUBORDINATE EXIT THEN
TIED? IF ' EQUAL_PRECEDENCE EXIT THEN
' ASSENT_ELIGIBLE ;
Using One Word Alone
from engine import Machine
import case_words
m = Machine(); case_words.install(m)
m.load_file("words/value.fs") # nothing else is needed
m.ctx["case"] = my_case
m.ask("FALSE-VALUE?", "V_01") # True or False
What Was Tested
- The v0.5.4 battery, run with the words in place of v0.5.4’s kernel: all three cases, determinism, all ten malformed forms, all eleven mutants, and the L4 demonstration pass. It ends: CONFORMANCE: ALL CASES, FORMS AND MUTANTS DISCRIMINATED AS EXPECTED.
- Side by side. The words and v0.5.4 were run on the four battery cases and on 5,000 random cases. Every result was identical: findings, quoted propositions, conflicts, outcomes and decision notes. All five outcomes were reached.
- The test can fail. One wrong line in FALSE-VALUE? changed the result in 2,300 of the 5,000 cases.
- Coupling. Each vocabulary loads with only what it rests on. action.fs without value.fs does not load, and the error names FALSE-VALUE?.
- What rests on what:
- FALSE-VALUE? → FALSE-DEP?, CONTAMINATED?, FAILS?, OUTCOME
- PRECEDENCE → LOSES?, TIES?, YIELDS?, TIED?, OUTCOME
- UNVERIFIED-DEP? → PENDING?, OUTCOME
Run: python3 kernel.py (the v0.5.4 battery on the words) and python3 test_words.py (everything above). Python 3.7 or later, standard library only.
What Was Not Changed
- The form reader, the record and the DTI verifier are v0.5.4’s own.
- The verifier is deliberately not rebuilt from the words. It is the second, separate implementation; built from the same words, it would check the words against themselves.
Additions Made in Building, Ratified with This Version
- The engine and its syntax (: ; ' IF ELSE THEN EXIT, ANY, ANY-WITH).
- The word names, and the split into six vocabularies.
- The ordering guard in kernel.py: the words that decide (OUTCOME) and the findings that explain must agree, or the run stops.
- Nothing in what the instrument decides was changed or added.
Version Note
v0.1, built 24 November 2026: the v0.5.4 kernel broken into words. v0.5.4 recovered from the Reference Suite page in Project Knowledge, opened in full, and checked against its published hash. Ratified 24 November 2026 (R-2026-11-24-01). v0.5.4 remains the ratified release; this version decides exactly as it does.
Source of the Words
words/value.fs
\ VALUE -- is a judgment of what is at stake true?
\ v0.1, ratified 24 November 2026 (R-2026-11-24-01). Rests on case words only.
\ SLE Prop 16: "Only things directly related to virtue (beliefs, desires,
\ will/choice) are in our control."
\ SLE Prop 17: "Only virtue is genuinely good; only vice is genuinely evil."
\ SLE Prop 18: "All things not in our control (externals) are neither
\ genuinely good nor genuinely evil."
\ SLE Prop 20: "The belief that any external is good or evil is factually false."
: EXTERNAL? ( vid -- flag ) LOCUS ' EXTERNAL = ;
: MORAL? ( vid -- flag ) POLARITY DUP ' GOOD = SWAP ' EVIL = OR ;
\ An external marked good or evil is false (Props 18, 20).
\ Something in one's own choice marked anything else is false (Props 16, 17).
: FALSE-VALUE? ( vid -- flag )
DUP EXTERNAL? IF MORAL? ELSE MORAL? NOT THEN ;
words/action.fs
\ ACTION -- does an action fail its gates?
\ v0.1, ratified 24 November 2026 (R-2026-11-24-01). Rests on value.fs and case words.
\ SLE Prop 29: "Therefore, all desires for externals are based on false beliefs."
\ SLE Prop 22: "Preferred indifferents are appropriate objects to aim at,
\ though not genuinely good."
\ SLE Prop 60: "A rational goal is a preferred indifferent held as an
\ appropriate object of aim. It is not a desired outcome held as a genuine good."
\ SLE Prop 62: "Reservation is the constitutive framing of every rational act
\ of will. The agent aims at the goal if the control dichotomy allows -- not
\ unconditionally."
\ SLE Prop 61: "Rational means are those genuinely designed to realize the
\ rational goal, that are not themselves immoral, ..."
\ A dependency is false if it is a judgment at stake and that judgment is false.
: FALSE-DEP? ( id -- flag )
DUP STAKE? IF FALSE-VALUE? ELSE DROP 0 THEN ;
\ The action rests on a false value judgment (Props 20, 29; 16, 17).
: CONTAMINATED? ( aid -- flag ) DEPENDS-ON ' FALSE-DEP? ANY ;
\ The aim is a preferred indifferent (Props 22, 60).
: AIM-OK? ( aim -- flag ) AIM-POLARITY ' PREFERRED = ;
\ The action is held with reservation (Prop 62).
: RESERVED? ( aid -- flag ) RESERVATION ' TRUE = ;
\ The action involves one of the four vices (Props 17, 61).
: VICIOUS? ( aid -- flag ) VICES EMPTY? NOT ;
\ Any one of the four failures fails the action.
: FAILS? ( aid -- flag )
DUP CONTAMINATED?
OVER AIM-OF AIM-OK? NOT OR
OVER RESERVED? NOT OR
SWAP VICIOUS? OR ;
words/facts.fs
\ FACTS -- does an action wait on a fact not yet checked?
\ v0.1, ratified 24 November 2026 (R-2026-11-24-01). Rests on case words only.
\ The Occasion Router, Section VI: "When an occasion carries an unverified
\ fact, Route Two runs first."
: UNVERIFIED-DEP? ( id -- flag )
DUP FACT? IF FACT-STATUS ' VERIFIED = NOT ELSE DROP 0 THEN ;
: PENDING? ( aid -- flag ) DEPENDS-ON ' UNVERIFIED-DEP? ANY ;
words/precedence.fs
\ PRECEDENCE -- which of two roles is operative in a conflict?
\ v0.1, ratified 24 November 2026 (R-2026-11-24-01). Rests on case words only.
\ The Role-Precedence Decision Tree, SLE Expansion 1: six criteria in order,
\ the first decisive one ends it.
\ SLE Prop 70: "When roles conflict, the agent identifies which role is most
\ directly operative in this situation and discharges its duties first,
\ without abandoning the duties of the other roles entirely."
\ Each criterion leaves FIRST, SECOND, or 0 when it does not decide.
: FIRST-OR-SECOND ( answer -- FIRST|SECOND|0 )
DUP ' FIRST = OVER ' SECOND = OR IF EXIT THEN DROP 0 ;
\ 1. Which role's removal would end the conflict?
: CAUSATION ( cid -- FIRST|SECOND|0 )
DUP ' EXISTS_WITHOUT_FIRST ANSWER
SWAP ' EXISTS_WITHOUT_SECOND ANSWER
2DUP ' YES = SWAP ' NO = AND IF 2DROP ' FIRST EXIT THEN
' NO = SWAP ' YES = AND IF ' SECOND EXIT THEN
0 ;
\ 2. Would delay be irreversible for one duty and not the other?
: IRREVERSIBLE ( cid -- FIRST|SECOND|0 )
' DELAY_IRREVERSIBLE ANSWER FIRST-OR-SECOND ;
\ 3. Can one duty be done first and the other resumed?
: RESUMABLE ( cid -- FIRST|SECOND|0 )
' CAN_DO_FIRST_THEN_RESUME ANSWER FIRST-OR-SECOND ;
\ 4. Is one role held only because of the other? The other prevails.
: DEPENDENCE ( cid -- FIRST|SECOND|0 )
' HELD_BECAUSE_OF_OTHER ANSWER
DUP ' SECOND = IF DROP ' FIRST EXIT THEN
' FIRST = IF ' SECOND EXIT THEN
0 ;
\ 5. Which failure would be the greater wrong in his own will?
: GREATER-WRONG ( cid -- FIRST|SECOND|0 )
' GREATER_WRONG_IF_FAILED ANSWER FIRST-OR-SECOND ;
\ 6. Whose people depend on him more?
: DEPENDENTS ( cid -- FIRST|SECOND|0 )
' MORE_DEPENDENT_PEOPLE ANSWER FIRST-OR-SECOND ;
\ The tree: the result and the number of the deciding criterion, or EQUAL 0.
: PRECEDENCE ( cid -- FIRST|SECOND|EQUAL n )
DUP CAUSATION DUP IF NIP 1 EXIT THEN DROP
DUP IRREVERSIBLE DUP IF NIP 2 EXIT THEN DROP
DUP RESUMABLE DUP IF NIP 3 EXIT THEN DROP
DUP DEPENDENCE DUP IF NIP 4 EXIT THEN DROP
DUP GREATER-WRONG DUP IF NIP 5 EXIT THEN DROP
DUP DEPENDENTS DUP IF NIP 6 EXIT THEN DROP
DROP ' EQUAL 0 ;
words/standing.fs
\ STANDING -- where does an action's role stand in its conflicts?
\ v0.1, ratified 24 November 2026 (R-2026-11-24-01). Rests on precedence.fs and case words.
\ SLE Prop 70 (the yielding role's duties come after, not abandoned).
\ SLE Prop 69: "The determination rule is: all other things being equal,
\ maximize preferred indifferents across all roles simultaneously."
\ The role yields in this conflict: another role is operative.
: LOSES? ( role cid -- flag )
DUP PRECEDENCE DROP
DUP ' EQUAL = IF 2DROP DROP 0 EXIT THEN
OPERATIVE = NOT ;
\ No criterion decides this conflict.
: TIES? ( role cid -- flag ) NIP PRECEDENCE DROP ' EQUAL = ;
: YIELDS? ( aid -- flag ) ROLE-OF DUP CONFLICTS-OF ' LOSES? ANY-WITH ;
: TIED? ( aid -- flag ) ROLE-OF DUP CONFLICTS-OF ' TIES? ANY-WITH ;
words/outcome.fs
\ OUTCOME -- the one outcome of an action, in the order v0.5.4 gives them.
\ v0.1, ratified 24 November 2026 (R-2026-11-24-01). Rests on action.fs, facts.fs, standing.fs.
\ SLE Prop 11: "The act of assenting to (or rejecting) impressions is the
\ only thing in our control." ASSENT_ELIGIBLE says only that the action
\ passes; whether to assent is the person's alone.
: OUTCOME ( aid -- outcome )
DUP FAILS? IF DROP ' FAILS EXIT THEN
DUP PENDING? IF DROP ' PENDING EXIT THEN
DUP YIELDS? IF DROP ' SUBORDINATE EXIT THEN
TIED? IF ' EQUAL_PRECEDENCE EXIT THEN
' ASSENT_ELIGIBLE ;
The engine (engine.py), the case words (case_words.py), the kernel application (kernel.py) and the tests (test_words.py) are in the release zip, cdv_words_v0_1.zip, with v0.5.4 unchanged in reference/.
Theoretical foundations: Grant C. Sterling (Eastern Illinois University). Architecture and protocol design: Dave Kelly. Code: v0.5.2 by Gemini (Google); v0.5.3, v0.5.4 and v0.1 of the words by Claude (Anthropic). 2026.


0 Comments:
Post a Comment
<< Home