VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Edge Technology for Vocabulary | The Three-Valued Condition Engine: Why Unknown Must Never Silently Become False

Three secondary students review open books and notes together in a classroom.

Edge Technology for Vocabulary needs a language for uncertainty that can actually survive execution. A learner reads that an activity may proceed if the room is approved and the session has not been cancelled. The learner sees no cancellation notice and concludes that the activity is approved to proceed. An AI can make the same error if it treats every missing fact as false. The proposed Three-Valued Condition Engine keeps true, false and unknown distinct, then applies a conservative review policy for conflicting evidence.

This original eduKate Vocabulary Coding and Engineering demonstrator connects the classroom vocabulary of if, and, or, not and unless with a bounded logical interpreter. The three-valued truth tables are established technology; the educational contract and local review gate are the proposed extension. The JavaScript was executed locally against eighteen authored synthetic fixtures. It is neither a general English parser nor an authorisation system, independently validated benchmark or finding about student learning.

  • Preserve true, false and unknown through logical operations.
  • Hold conflicting evidence separately from ordinary uncertainty.
  • Execute bounded conditions only after reviewing the source meaning.
  • Inspect eighteen actual synthetic results and reproduction inputs.
  • Connect classroom conditional vocabulary to the edge runtime.

Contents

1. Unknown is not the opposite of true

In an ordinary school notice, a proposed session can be unconfirmed without having been rejected. No recorded cancellation does not prove there was no cancellation. This distinction matters to both vocabulary and workflow. Treating the absence of a record as a negative fact can produce a plausible sentence that supports the wrong action. The same problem appears in a scientific report: a measurement not yet supplied is not a measured zero. A system needs a representation for information that has not been established.

At the centre, the teacher can compare two fictional notices: ‘The session is not cancelled’ and ‘No information about cancellation has been supplied.’ The first explicitly supports a negative proposition under the stated source contract; the second does not. At the edge, the runtime must preserve that difference through negation and combination. If the action has several prerequisites, it must not turn a partial result into approval.

Back to contents

2. Established three-valued logic and the additional review policy

The PostgreSQL 18 logical-operator documentation illustrates three-valued SQL logic, where an unknown value remains unknown under negation and conjunction or disjunction can sometimes be determined despite an unknown input. This article implements the same truth-table pattern using Boolean values and null internally, rather than copying a SQL engine.

ABA AND BA OR B
TRUETRUETRUETRUE
TRUEFALSEFALSETRUE
TRUEUNKNOWNUNKNOWNTRUE
FALSEFALSEFALSEFALSE
FALSEUNKNOWNFALSEUNKNOWN
UNKNOWNUNKNOWNUNKNOWNUNKNOWN

The table omits symmetric duplicates. NOT TRUE is FALSE; NOT FALSE is TRUE; NOT UNKNOWN is UNKNOWN. The local policy adds a separate conflict marker. Conflict means the supplied reviewed register reports an unresolved disagreement. For this teaching prototype, a referenced conflict holds release even if a truth-table operation might otherwise determine the value. That is an application policy, not a fourth truth value in SQL, and it may hold cases that a less conservative policy could safely decide. The code does not discover the conflict itself.

Back to contents

3. A condition is different from permission

Record or resultMeaning
TRUE / FALSEThe relevant fact has been encoded as established or denied.
UNKNOWNThe fact has not been established in either direction.
CONFLICTThe reviewed record flags a relevant disagreement.
CONDITION_METThe declared Boolean condition evaluates true under the encoded facts.
CONDITION_NOT_METIt evaluates false.
HOLD_UNKNOWN / HOLD_CONFLICTResolve missing or inconsistent evidence as appropriate.

A condition being met is not the same as an action being authorised. An actual school rule may have additional requirements, restrictions, roles and authority. This code neither proves that the supplied rule is complete nor grants permission. A real handover must carry the source, applicable version, actor, scope and separate authorisation. In the toy model, all facts refer to the same reviewed case. Do not mix facts from different students, groups or dates without an explicit contract.

Back to contents

4. Fencing an instruction into a small expression

Suppose a synthetic practice notice specifies three jointly required conditions for a room-use application: the learner is registered, the room has been approved and the session is not cancelled. The source and scope have been deliberately stipulated. Start by naming the action. Add each prerequisite. Explain that all three are needed. Then identify whether each relevant fact has been established. Only after interpreting the original sentence should the machine evaluate its structured equivalent.

{
  "rule": {
    "op": "and",
    "args": [
      {
        "op": "fact",
        "id": "registered"
      },
      {
        "op": "fact",
        "id": "room-approved"
      },
      {
        "op": "not",
        "arg": {
          "op": "fact",
          "id": "cancelled"
        }
      }
    ]
  },
  "facts": {
    "registered": "TRUE",
    "room-approved": "UNKNOWN",
    "cancelled": "FALSE"
  }
}

This example returns HOLD_UNKNOWN. Replacing unknown room approval with false would assert a rejection not established by the source. Replacing it with true would invent an approval. If registration is explicitly false, the conjunction is false despite unknown room approval. That is a property of this particular required condition, not proof about every possible reason for rejection.

Back to contents

5. Original executable interpreter

The function accepts pre-authored expression trees containing fact, not, and and or. It evaluates every branch, limits recursion and expression size, rejects unknown operators and keeps the separate conflict flag. A missing fact key becomes UNKNOWN. The output is a status string only. Source extraction, authority verification, explanation and external action remain outside the function.

function conditionCheck(rule,facts){
 if(!facts||typeof facts!=="object"||Array.isArray(facts))return "HOLD_INPUT";
 let count=0,conflict=false;
 function read(n,depth){
  if(!n||typeof n!=="object"||depth>12||++count>100)throw Error("rule");
  if(n.op==="fact"){
   if(typeof n.id!=="string"||!n.id)throw Error("fact id");
   const v=Object.hasOwn(facts,n.id)?facts[n.id]:"UNKNOWN";
   if(!["TRUE","FALSE","UNKNOWN","CONFLICT"].includes(v))throw Error("fact value");
   if(v==="CONFLICT"){conflict=true;return null}
   return v==="TRUE"?true:v==="FALSE"?false:null;
  }
  if(n.op==="not"){const x=read(n.arg,depth+1);return x===null?null:!x;}
  if(!["and","or"].includes(n.op)||!Array.isArray(n.args)||!n.args.length)throw Error("operator");
  const a=n.args.map(x=>read(x,depth+1));
  if(n.op==="and")return a.includes(false)?false:a.includes(null)?null:true;
  return a.includes(true)?true:a.includes(null)?null:false;
 }
 try{const value=read(rule,0);return conflict?"HOLD_CONFLICT":value===null?"HOLD_UNKNOWN":value?"CONDITION_MET":"CONDITION_NOT_MET";}catch{return "HOLD_RULE";}
}

The rule grammar is intentionally small. Unless can have a context-dependent reading; it must be interpreted and compiled into the appropriate structure before execution. Expressions about time, obligation, exceptions and nested institutional permissions may need richer models. The function does not validate complete object schemas, source provenance or all possible additional fields.

Back to contents

6. Actual local execution: eighteen synthetic cases

On 2 December 2026, 18 of 18 expected status strings matched the observed function output. Expectations were authored before execution. Holds and rejected expressions are intended outcomes, not failed tests. This is a local regression suite, not a measurement of general language accuracy.

CaseExpectedObservedTest purpose
C01CONDITION_METCONDITION_METEvery stated requirement is supported.
C02HOLD_UNKNOWNHOLD_UNKNOWNMissing approval remains unknown.
C03HOLD_UNKNOWNHOLD_UNKNOWNAbsence of a cancellation record is not proof of no cancellation.
C04CONDITION_NOT_METCONDITION_NOT_META false required condition defeats the conjunction.
C05CONDITION_NOT_METCONDITION_NOT_METKnown cancellation defeats this rule.
C06HOLD_CONFLICTHOLD_CONFLICTConflicting reviewed facts require review.
C07CONDITION_METCONDITION_METOne supported alternative suffices for the disjunction.
C08HOLD_UNKNOWNHOLD_UNKNOWNThe remaining alternative is unresolved.
C09CONDITION_NOT_METCONDITION_NOT_METBoth alternatives are false.
C10HOLD_UNKNOWNHOLD_UNKNOWNNegating unknown does not establish true.
C11HOLD_UNKNOWNHOLD_UNKNOWNDouble negation preserves unknown.
C12HOLD_CONFLICTHOLD_CONFLICTConservative policy holds any referenced conflict.
C13HOLD_RULEHOLD_RULEUnexpected fact encoding rejected.
C14HOLD_RULEHOLD_RULEUncompiled natural-language operator.
C15HOLD_RULEHOLD_RULEEmpty conjunction is outside this teaching contract.
C16HOLD_RULEHOLD_RULEA true branch cannot hide malformed syntax.
C17CONDITION_METCONDITION_METUnreferenced conflict does not affect this rule.
C18HOLD_INPUTHOLD_INPUTMissing evidence register.

Reproduction fixture

const cases = [
  {
    "id": "C01",
    "rule": {
      "op": "and",
      "args": [
        {
          "op": "fact",
          "id": "registered"
        },
        {
          "op": "fact",
          "id": "room-approved"
        },
        {
          "op": "not",
          "arg": {
            "op": "fact",
            "id": "cancelled"
          }
        }
      ]
    },
    "facts": {
      "registered": "TRUE",
      "room-approved": "TRUE",
      "cancelled": "FALSE"
    },
    "expected": "CONDITION_MET"
  },
  {
    "id": "C02",
    "rule": {
      "op": "and",
      "args": [
        {
          "op": "fact",
          "id": "registered"
        },
        {
          "op": "fact",
          "id": "room-approved"
        },
        {
          "op": "not",
          "arg": {
            "op": "fact",
            "id": "cancelled"
          }
        }
      ]
    },
    "facts": {
      "registered": "TRUE",
      "room-approved": "UNKNOWN",
      "cancelled": "FALSE"
    },
    "expected": "HOLD_UNKNOWN"
  },
  {
    "id": "C03",
    "rule": {
      "op": "and",
      "args": [
        {
          "op": "fact",
          "id": "registered"
        },
        {
          "op": "fact",
          "id": "room-approved"
        },
        {
          "op": "not",
          "arg": {
            "op": "fact",
            "id": "cancelled"
          }
        }
      ]
    },
    "facts": {
      "registered": "TRUE",
      "room-approved": "TRUE"
    },
    "expected": "HOLD_UNKNOWN"
  },
  {
    "id": "C04",
    "rule": {
      "op": "and",
      "args": [
        {
          "op": "fact",
          "id": "registered"
        },
        {
          "op": "fact",
          "id": "room-approved"
        },
        {
          "op": "not",
          "arg": {
            "op": "fact",
            "id": "cancelled"
          }
        }
      ]
    },
    "facts": {
      "registered": "FALSE",
      "room-approved": "UNKNOWN",
      "cancelled": "FALSE"
    },
    "expected": "CONDITION_NOT_MET"
  },
  {
    "id": "C05",
    "rule": {
      "op": "and",
      "args": [
        {
          "op": "fact",
          "id": "registered"
        },
        {
          "op": "fact",
          "id": "room-approved"
        },
        {
          "op": "not",
          "arg": {
            "op": "fact",
            "id": "cancelled"
          }
        }
      ]
    },
    "facts": {
      "registered": "TRUE",
      "room-approved": "TRUE",
      "cancelled": "TRUE"
    },
    "expected": "CONDITION_NOT_MET"
  },
  {
    "id": "C06",
    "rule": {
      "op": "and",
      "args": [
        {
          "op": "fact",
          "id": "registered"
        },
        {
          "op": "fact",
          "id": "room-approved"
        },
        {
          "op": "not",
          "arg": {
            "op": "fact",
            "id": "cancelled"
          }
        }
      ]
    },
    "facts": {
      "registered": "TRUE",
      "room-approved": "CONFLICT",
      "cancelled": "FALSE"
    },
    "expected": "HOLD_CONFLICT"
  },
  {
    "id": "C07",
    "rule": {
      "op": "or",
      "args": [
        {
          "op": "fact",
          "id": "library"
        },
        {
          "op": "fact",
          "id": "classroom"
        }
      ]
    },
    "facts": {
      "library": "TRUE",
      "classroom": "UNKNOWN"
    },
    "expected": "CONDITION_MET"
  },
  {
    "id": "C08",
    "rule": {
      "op": "or",
      "args": [
        {
          "op": "fact",
          "id": "library"
        },
        {
          "op": "fact",
          "id": "classroom"
        }
      ]
    },
    "facts": {
      "library": "FALSE",
      "classroom": "UNKNOWN"
    },
    "expected": "HOLD_UNKNOWN"
  },
  {
    "id": "C09",
    "rule": {
      "op": "or",
      "args": [
        {
          "op": "fact",
          "id": "library"
        },
        {
          "op": "fact",
          "id": "classroom"
        }
      ]
    },
    "facts": {
      "library": "FALSE",
      "classroom": "FALSE"
    },
    "expected": "CONDITION_NOT_MET"
  },
  {
    "id": "C10",
    "rule": {
      "op": "not",
      "arg": {
        "op": "fact",
        "id": "cancelled"
      }
    },
    "facts": {
      "cancelled": "UNKNOWN"
    },
    "expected": "HOLD_UNKNOWN"
  },
  {
    "id": "C11",
    "rule": {
      "op": "not",
      "arg": {
        "op": "not",
        "arg": {
          "op": "fact",
          "id": "registered"
        }
      }
    },
    "facts": {
      "registered": "UNKNOWN"
    },
    "expected": "HOLD_UNKNOWN"
  },
  {
    "id": "C12",
    "rule": {
      "op": "or",
      "args": [
        {
          "op": "fact",
          "id": "library"
        },
        {
          "op": "fact",
          "id": "classroom"
        }
      ]
    },
    "facts": {
      "library": "TRUE",
      "classroom": "CONFLICT"
    },
    "expected": "HOLD_CONFLICT"
  },
  {
    "id": "C13",
    "rule": {
      "op": "fact",
      "id": "approved"
    },
    "facts": {
      "approved": "yes"
    },
    "expected": "HOLD_RULE"
  },
  {
    "id": "C14",
    "rule": {
      "op": "unless",
      "args": [
        {
          "op": "fact",
          "id": "approved"
        }
      ]
    },
    "facts": {
      "approved": "TRUE"
    },
    "expected": "HOLD_RULE"
  },
  {
    "id": "C15",
    "rule": {
      "op": "and",
      "args": []
    },
    "facts": {},
    "expected": "HOLD_RULE"
  },
  {
    "id": "C16",
    "rule": {
      "op": "or",
      "args": [
        {
          "op": "fact",
          "id": "library"
        },
        {
          "op": "invalid"
        }
      ]
    },
    "facts": {
      "library": "TRUE"
    },
    "expected": "HOLD_RULE"
  },
  {
    "id": "C17",
    "rule": {
      "op": "and",
      "args": [
        {
          "op": "fact",
          "id": "registered"
        },
        {
          "op": "fact",
          "id": "approved"
        }
      ]
    },
    "facts": {
      "registered": "TRUE",
      "approved": "TRUE",
      "unrelated": "CONFLICT"
    },
    "expected": "CONDITION_MET"
  },
  {
    "id": "C18",
    "rule": {
      "op": "fact",
      "id": "registered"
    },
    "facts": null,
    "expected": "HOLD_INPUT"
  }
];
for (const c of cases) console.log(c.id,conditionCheck(c.rule,c.facts),c.expected);

Back to contents

7. Worked cases across school subjects

The missing negative

A fictional source says a workshop proceeds only if approval has been granted and the workshop has not been cancelled. If cancellation information is unavailable, NOT UNKNOWN remains unknown. A learner can explain this in ordinary words: we do not yet know whether it was cancelled. That response differs from both ‘it was cancelled’ and ‘it was not cancelled’. Compare this example with an explicit authorised statement that the workshop remains scheduled.

Alternative routes

A hypothetical task defines access as possible through either of two specifically authorised alternatives. If one alternative is established true, the declared disjunction is true even if the second is unresolved. But the system must not claim both alternatives are available. A real venue might involve more conditions. The machine’s truth result only concerns the encoded rule, and the teacher can ask the student which information establishes the particular branch.

Science and evidence

A student reads that two observed conditions are necessary for a particular conclusion in a teacher-provided model. The first is established and the second has not been observed. A conjunction does not become true just because the first measurement is correct. Distinguish a missing observation from evidence that a condition is absent. Teach using the actual subject definition and authorised school material. The examples here are logical exercises, not experimental procedures.

Back to contents

8. Centre-to-edge learning operations

RungObservable learning task
L0Attend to the source and purpose
L1Identify the relevant condition
L2Name the operator or status
L3Explain the condition in plain language
L4Recall the distinction later
L5Read and write the expression
L6Relate the required facts
L7Combine conditions faithfully
L8Disambiguate not known from known not
L9Transfer to a fresh rule
L10Interpret the consequence of missing evidence
L11Apply the specified formal definition
L12Trace changes in a rule or fact
L13Critique an unsupported inference
L14Maintain a reviewed condition and evidence register
L15Propose and test a needed new distinction

The L0–L15 ladder is an original teaching framework. It is not an official grade scale. A learner can demonstrate an accurate conditional interpretation without writing code. Fencing starts with a secure base, adds a relevant prerequisite, then tests an unknown or conflicting case. A fresh example checks independent understanding separately from tool assistance.

Back to contents

9. Connecting conditions to the edge runtime

The time-window component can return an interval status, the quantity checker can hold a comparison and the clarification selector can identify a missing decision-relevant fact. An adapter may convert a reviewed output into the appropriate fact value only under a documented contract. For example, an exact within-window comparison is not automatically evidence of complete submission or approval. Preserve the operation, context, evidence and version. A held result must never be flattened into false by default. A composed gate will need to distinguish these outputs rather than simply collect Boolean flags.

Back to contents

10. Test the extraction boundary, not just the truth table

A future test suite should include independent source annotations, malformed expressions, disputed evidence, mismatched scopes, repeated facts, omitted requirements and expressions with alternative legitimate readings. Compare the interpreter against independently derived truth-table expectations; separately test whether an extractor accurately identifies the intended conditions. The eighteen fixtures do not validate language interpretation or the completeness of an institutional rule. Measure false releases, appropriate holds, unnecessary holds, reviewer time and the costs of conservative conflict handling.

A learning study would instead compare a matched ordinary explanation with a conditional example activity, using fresh source families and delayed independent explanations. Research with learners requires appropriate permissions, consent or assent and safeguards. Keep identifiable records private and retain appropriate access arrangements. No human outcome data were collected for this article.

Back to contents

11. Four-week condition laboratory

PhaseActivityEvidence
Week 1Review synthetic notices and explicitly identify required facts.Reviewed condition trees and source boundaries.
Week 2Reproduce the eighteen cases and add independent fixtures.Expected and observed verdicts kept separate.
Week 3Compare alternative interpretations and identify missing facts.Extraction errors, unresolved meanings and review decisions.
Week 4Use a fresh authorised lesson and inspect the reasoning independently.Separate learner evidence, software results and workload.

A paper version may be sufficient for a teenager: mark each condition as known true, known false or unknown and explain the overall result. The technical edge helps preserve that reasoning when AI systems pass meaning to each other. It does not replace the teacher’s judgement or the actual authority responsible for an action.

Back to contents

12. References and connected research

The truth tables are established logic. The local interpreter, conflict policy, example rules and authored test suite are original demonstrations. No deployed application, independently established reliability or official examination format is claimed.

Back to contents