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
- 2. Established three-valued logic and the additional review policy
- 3. A condition is different from permission
- 4. Fencing an instruction into a small expression
- 5. Original executable interpreter
- 6. Actual local execution: eighteen synthetic cases
- 7. Worked cases across school subjects
- 8. Centre-to-edge learning operations
- 9. Connecting conditions to the edge runtime
- 10. Test the extraction boundary, not just the truth table
- 11. Four-week condition laboratory
- 12. References and connected research
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.
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.
| A | B | A AND B | A OR B |
|---|---|---|---|
| TRUE | TRUE | TRUE | TRUE |
| TRUE | FALSE | FALSE | TRUE |
| TRUE | UNKNOWN | UNKNOWN | TRUE |
| FALSE | FALSE | FALSE | FALSE |
| FALSE | UNKNOWN | FALSE | UNKNOWN |
| UNKNOWN | UNKNOWN | UNKNOWN | UNKNOWN |
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.
3. A condition is different from permission
| Record or result | Meaning |
|---|---|
| TRUE / FALSE | The relevant fact has been encoded as established or denied. |
| UNKNOWN | The fact has not been established in either direction. |
| CONFLICT | The reviewed record flags a relevant disagreement. |
| CONDITION_MET | The declared Boolean condition evaluates true under the encoded facts. |
| CONDITION_NOT_MET | It evaluates false. |
| HOLD_UNKNOWN / HOLD_CONFLICT | Resolve 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.
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.
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.
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.
| Case | Expected | Observed | Test purpose |
|---|---|---|---|
| C01 | CONDITION_MET | CONDITION_MET | Every stated requirement is supported. |
| C02 | HOLD_UNKNOWN | HOLD_UNKNOWN | Missing approval remains unknown. |
| C03 | HOLD_UNKNOWN | HOLD_UNKNOWN | Absence of a cancellation record is not proof of no cancellation. |
| C04 | CONDITION_NOT_MET | CONDITION_NOT_MET | A false required condition defeats the conjunction. |
| C05 | CONDITION_NOT_MET | CONDITION_NOT_MET | Known cancellation defeats this rule. |
| C06 | HOLD_CONFLICT | HOLD_CONFLICT | Conflicting reviewed facts require review. |
| C07 | CONDITION_MET | CONDITION_MET | One supported alternative suffices for the disjunction. |
| C08 | HOLD_UNKNOWN | HOLD_UNKNOWN | The remaining alternative is unresolved. |
| C09 | CONDITION_NOT_MET | CONDITION_NOT_MET | Both alternatives are false. |
| C10 | HOLD_UNKNOWN | HOLD_UNKNOWN | Negating unknown does not establish true. |
| C11 | HOLD_UNKNOWN | HOLD_UNKNOWN | Double negation preserves unknown. |
| C12 | HOLD_CONFLICT | HOLD_CONFLICT | Conservative policy holds any referenced conflict. |
| C13 | HOLD_RULE | HOLD_RULE | Unexpected fact encoding rejected. |
| C14 | HOLD_RULE | HOLD_RULE | Uncompiled natural-language operator. |
| C15 | HOLD_RULE | HOLD_RULE | Empty conjunction is outside this teaching contract. |
| C16 | HOLD_RULE | HOLD_RULE | A true branch cannot hide malformed syntax. |
| C17 | CONDITION_MET | CONDITION_MET | Unreferenced conflict does not affect this rule. |
| C18 | HOLD_INPUT | HOLD_INPUT | Missing 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);
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.
8. Centre-to-edge learning operations
| Rung | Observable learning task |
|---|---|
| L0 | Attend to the source and purpose |
| L1 | Identify the relevant condition |
| L2 | Name the operator or status |
| L3 | Explain the condition in plain language |
| L4 | Recall the distinction later |
| L5 | Read and write the expression |
| L6 | Relate the required facts |
| L7 | Combine conditions faithfully |
| L8 | Disambiguate not known from known not |
| L9 | Transfer to a fresh rule |
| L10 | Interpret the consequence of missing evidence |
| L11 | Apply the specified formal definition |
| L12 | Trace changes in a rule or fact |
| L13 | Critique an unsupported inference |
| L14 | Maintain a reviewed condition and evidence register |
| L15 | Propose 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.
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.
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.
11. Four-week condition laboratory
| Phase | Activity | Evidence |
|---|---|---|
| Week 1 | Review synthetic notices and explicitly identify required facts. | Reviewed condition trees and source boundaries. |
| Week 2 | Reproduce the eighteen cases and add independent fixtures. | Expected and observed verdicts kept separate. |
| Week 3 | Compare alternative interpretations and identify missing facts. | Extraction errors, unresolved meanings and review decisions. |
| Week 4 | Use 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.
12. References and connected research
- PostgreSQL 18 logical operators
- Secondary 1: Negative statements and obligation
- Finite-World Counterexample Generator
- Executable Time Window
- Clarification Selector
- VCE: Semantic Precondition Witness
- L0–L15 ladder
- Fencing Method
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.
