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 Semantic Metamorphic Test Suite: Can a Meaning Engine Survive Thousands of Systematic Variations?

Three students in school uniforms work through open books at a classroom table, with textbooks and stationery nearby and study notes on the whiteboard behind them.

Edge Technology for Vocabulary must test whether a meaning survives systematic transformations, not just whether a few carefully selected examples pass. The Semantic Metamorphic Test Suite revisits eduKate’s finite-world quantifier engine, using an alternate small-world reference and relations that should hold when premises, counts or equivalent expressions change.

The original JavaScript suite in this article was actually executed: 21,600 of 21,600 generated assertions passed. These are related, bounded author-run software checks, not independent experiments, a deployed service or evidence of improved learning. The article records the reproduction code, tested domain and remaining limitations.

  • Test declared meaning across whole generated families.
  • Compare with explicit Boolean-world enumeration.
  • Verify returned witnesses and complementary expressions.
  • Distinguish assertion counts from independent evidence.
  • Publish actual code, observed results and limitations.

Contents

1. A small passing test suite is not the end of verification

Earlier Edge Technology articles turned vocabulary distinctions into executable rules. The finite-world quantifier engine demonstrated fourteen synthetic cases. Those examples were useful, but they were designed by the same author who wrote the engine. A stronger next step is to generate systematic variations and check properties that should remain true. This shifts the question from whether a few examples pass to whether the mechanism preserves its declared meaning across families of inputs.

For a Secondary learner, the same concept appears when a teacher asks why a rule still works after the numbers or names change. Recognising one worked answer is not the same as understanding the relationship. At the edge, the software must demonstrate that an equivalent expression or an irrelevant ordering change does not alter the result.

Back to contents

2. Established metamorphic testing and the local research design

Segura, Fraser, Sanchez and Ruiz-Cortés’ 2016 survey on metamorphic testing describes checking expected relations between outputs when inputs undergo specified transformations. Chen and colleagues’ 2018 review examines the method and its challenges. Metamorphic testing is established software engineering, not an invention of eduKate. The contribution proposed here is a vocabulary-specific selection of properties and executable fixtures.

The suite also uses an alternate explicit Boolean-world checker as a reference for a bounded subset of the domain. That is separate from the metamorphic relations. Both implementations and the tests were authored within this exercise; neither is independently reviewed. The two can share a misconception about the intended language semantics. The input expressions are structured, not extracted from English passages.

Back to contents

3. Declare the meanings before generating tests

ExpressionFormal count model
allc = n
somec ≥ 1
nonec = 0
not_allc < n
most2c > n
at_least kc ≥ k
at_most kc ≤ k
exactly kc = k

The model requires a nonempty fixed group and a single counted property. The original engine supports n from 1 to 12. The generated suite tests k from 0 through n. It treats some as existential and most as strict majority. Ordinary language can have pragmatic readings and contextual qualifications beyond these formal definitions. The model does not handle only, modal expressions, multiple properties or unspecified group identities. A formally correct result may be wrong if the original sentence was encoded incorrectly.

Back to contents

4. Seven systematically tested property families

FamilyRequired relationship
Bit-world status and count setThe engine agrees with an alternate enumeration of all Boolean assignments for a single premise.
Witness validityA returned supporting or refuting count is realised in a corresponding admissible assignment; null only when the corresponding set is empty.
Complement transformationReplace the counted property by its complement and transform both premise and claim. The verdict is unchanged; possible counts are reflected as n−c.
Majority thresholdMost is equivalent to at least floor(n/2)+1.
Not-all thresholdNot all is equivalent to at most n−1.
Premise order and duplicationChanging the order of premises or repeating an identical premise does not change the result.
Exact-count equivalenceAt least k together with at most k is equivalent to exactly k.

For complement transformation, all becomes none, some becomes not all, and at least k becomes at most n−k. A strict majority becomes at most ceil(n/2)−1 of the complement. The suite checks the verdict and reflected possible-count set, not equality of the first returned witnesses under reflection, because the order of candidate counts reverses. The alternate Boolean-world checker directly validates witness existence for the smaller domain.

Back to contents

5. Fencing a testable distinction into a lesson

Begin with not all eight students submitted. Represent the allowed counts from zero through seven. Construct a counterexample to none submitted by selecting a count of seven. Now restate the same relationship as at most seven submitted; the set of allowed counts must remain unchanged. Change the counted property to not submitted: at least one did not submit. Finally use a fresh group and ask the learner to explain the equivalence without the original example. The successive layers test meaning, not memorisation of the number seven.

The teaching question and software test have different outcomes. A learner who sees the machine’s counterexample has received support. An independently constructed counterexample on a fresh question is different evidence. The test program’s successful verdict does not measure either of those learner outcomes.

Back to contents

6. Target implementation and reproducible systematic suite

The following code reproduces the earlier finite-world evaluator as published in the prior design, followed by the new suite. The first loop enumerates all Boolean assignments for groups of 1–8 and tests every ordered pair of the selected single-premise and claim expressions. The second loop tests the declared equivalence and premise invariance properties for groups of 1–12. No random seed, network service or private data is required. The counts are assertions, not unique independent experiments.

function evaluate(n,premises,claim){
 if(!Number.isInteger(n)||n<1||n>12||!Array.isArray(premises)||!claim)return {status:"HOLD_INPUT"};
 const fixed=["all","some","none","not_all","most"],bounded=["at_least","at_most","exactly"];
 const valid=p=>p&&typeof p==="object"&&(fixed.includes(p.op)||(bounded.includes(p.op)&&Number.isInteger(p.k)&&p.k>=0));
 if(![...premises,claim].every(valid))return {status:"HOLD_EXPRESSION"};
 function holds(p,c){
  switch(p.op){
   case "all":return c===n;
   case "some":return c>=1;
   case "none":return c===0;
   case "not_all":return c<n;
   case "most":return 2*c>n;
   case "at_least":return c>=p.k;
   case "at_most":return c<=p.k;
   case "exactly":return c===p.k;
  }
 }
 const possible=Array.from({length:n+1},(_,c)=>c).filter(c=>premises.every(p=>holds(p,c)));
 if(!possible.length)return {status:"INCONSISTENT",possible};
 const supports=possible.filter(c=>holds(claim,c)),refutes=possible.filter(c=>!holds(claim,c));
 return {status:!refutes.length?"ENTAILED":!supports.length?"CONTRADICTED":"UNDETERMINED",possible,support:supports[0]??null,counterexample:refutes[0]??null};
}

function suite(engine){
 const P=(op,k)=>k===undefined?{op}:{op,k};
 const expressions=n=>[...["all","some","none","not_all","most"].map(op=>P(op)),...Array.from({length:n+1},(_,k)=>["at_least","at_most","exactly"].map(op=>P(op,k))).flat()];
 const ok=(p,bits)=>{
  const yes=bits.filter(Boolean).length,no=bits.length-yes;
  switch(p.op){
   case "all":return bits.every(Boolean);
   case "some":return bits.some(Boolean);
   case "none":return !bits.some(Boolean);
   case "not_all":return bits.some(b=>!b);
   case "most":return yes>no;
   case "at_least":return yes>=p.k;
   case "at_most":return yes<=p.k;
   case "exactly":return yes===p.k;
  }
 };
 const reflect=(p,n)=>{
  switch(p.op){
   case "all":return P("none");case "none":return P("all");
   case "some":return P("not_all");case "not_all":return P("some");
   case "most":return P("at_most",Math.ceil(n/2)-1);
   case "at_least":return P("at_most",n-p.k);
   case "at_most":return P("at_least",n-p.k);
   case "exactly":return P("exactly",n-p.k);
  }
 };
 const counts={},failures=[];
 const check=(family,test,context)=>{
  counts[family]??={total:0,passed:0};counts[family].total++;
  if(test)counts[family].passed++;else if(failures.length<20)failures.push({family,context});
 };
 const same=(a,b)=>JSON.stringify(a)===JSON.stringify(b);
 for(let n=1;n<=8;n++){
  const expr=expressions(n);
  const worlds=Array.from({length:2**n},(_,m)=>Array.from({length:n},(_,i)=>Boolean(m&(1<<i))));
  for(const p of expr){
   const possibleWorlds=worlds.filter(w=>ok(p,w));
   for(const c of expr){
    const supports=possibleWorlds.filter(w=>ok(c,w)),refutes=possibleWorlds.filter(w=>!ok(c,w));
    const expected=!possibleWorlds.length?"INCONSISTENT":!refutes.length?"ENTAILED":!supports.length?"CONTRADICTED":"UNDETERMINED";
    const possible=[...new Set(possibleWorlds.map(w=>w.filter(Boolean).length))].sort((a,b)=>a-b);
    const a=engine(n,[p],c);
    check("bit-world status and count set",a.status===expected&&same(a.possible,possible),{n,p,c});
    if(expected!=="INCONSISTENT"){
     const sw=supports.map(w=>w.filter(Boolean).length),rw=refutes.map(w=>w.filter(Boolean).length);
     check("support and counterexample witness", (sw.length?sw.includes(a.support):a.support===null)&&(rw.length?rw.includes(a.counterexample):a.counterexample===null),{n,p,c});
    }
    const b=engine(n,[reflect(p,n)],reflect(c,n));
    check("complement transformation",a.status===b.status&&same(a.possible?.map(x=>n-x).sort((x,y)=>x-y),b.possible),{n,p,c});
   }
  }
 }
 for(let n=1;n<=12;n++){
  const expr=expressions(n);
  for(const c of expr){
   check("majority threshold equivalence",same(engine(n,[P("most")],c),engine(n,[P("at_least",Math.floor(n/2)+1)],c)),{n,c});
   check("not-all threshold equivalence",same(engine(n,[P("not_all")],c),engine(n,[P("at_most",n-1)],c)),{n,c});
   for(let k=0;k<=n;k++){
    const lo=P("at_least",k),hi=P("at_most",k);
    const r=engine(n,[lo,hi],c);
    check("premise order invariance",same(r,engine(n,[hi,lo],c)),{n,k,c});
    check("premise duplication invariance",same(r,engine(n,[lo,hi,lo],c)),{n,k,c});
    check("exact-count equivalence",same(r,engine(n,[P("exactly",k)],c)),{n,k,c});
   }
  }
 }
 return {counts,failures};
}

const result = suite(evaluate);
console.log(JSON.stringify(result, null, 2));

Back to contents

7. Actual local execution on 2 December 2026

The code above was executed locally. 21,600 of 21,600 generated assertions passed, with zero detected mismatches in these property families. The result is a bounded author-run software test, not an independent benchmark. The number of assertions must not be reported as the number of separate human learning tasks or independent test families.

Property familyAssertionsPassedFailed
bit-world status and count set407640760
support and counterexample witness407640760
complement transformation407640760
majority threshold equivalence3303300
not-all threshold equivalence3303300
premise order invariance290429040
premise duplication invariance290429040
exact-count equivalence290429040
Total21600216000
{
  "counts": {
    "bit-world status and count set": {
      "total": 4076,
      "passed": 4076
    },
    "support and counterexample witness": {
      "total": 4076,
      "passed": 4076
    },
    "complement transformation": {
      "total": 4076,
      "passed": 4076
    },
    "majority threshold equivalence": {
      "total": 330,
      "passed": 330
    },
    "not-all threshold equivalence": {
      "total": 330,
      "passed": 330
    },
    "premise order invariance": {
      "total": 2904,
      "passed": 2904
    },
    "premise duplication invariance": {
      "total": 2904,
      "passed": 2904
    },
    "exact-count equivalence": {
      "total": 2904,
      "passed": 2904
    }
  },
  "failures": []
}

The check includes full possible-count sets for the bit-world oracle and validity of both witnesses wherever the premises are consistent. The generated cases are highly related: many differ by one threshold or by a representation of the same condition. Report family coverage and the domain limits alongside the total. Passing all tested properties cannot prove the correctness of arbitrary natural language, unknown input handling or general logical reasoning. This suite does not execute a deployed website feature.

Back to contents

8. What the test still cannot establish

The domain of Boolean worlds is deliberately small and complete only for the declared single-property contract. The tests do not cover every malformed input, the thresholds above the group size, empty domains, multiple predicates, reference ambiguity or the difference between permission and actual action. Earlier hand-authored fixtures cover some invalid inputs; they are not counted again here. The two code paths were authored together, so a shared semantic assumption may remain undetected. The next step is to ask a separate reviewer to propose different test families and build an independently derived oracle.

A stronger operational evaluation would test an actual source-to-structured-meaning pipeline on authorised or synthetic passages. An extraction error could convert some into all before the evaluator receives it. The mathematical test would then calculate the wrong question consistently. Keep extraction, computation, release, permission and learning outcomes separate. The earlier Semantic Regression Gate can use results organised by error type and task family rather than a single score.

Back to contents

9. L0–L15: from vocabulary to executable verification

RungObservable learning task
L0Attend to the source claim
L1Identify the quantifier
L2Name its intended meaning
L3Explain a contrasting case
L4Recall the distinction later
L5Read and encode the count relationship
L6Relate equivalent statements
L7Combine a faithful explanation
L8Disambiguate contextual meanings
L9Transfer to a fresh group
L10Interpret a changed premise
L11Apply the formal definition
L12Trace source and rule versions
L13Critique a counterexample or invalid test
L14Maintain reviewed test families
L15Propose and test a needed new semantic relation

The eduKate ladder and Fencing Method are proposed teaching frameworks, not official school grades or validated measurement scales. The technical edge supports inspectable learning tasks; it does not require every student to program an exhaustive checker.

Back to contents

10. Four-week research laboratory

WeekActivityEvidence
1Review the declared semantic contract and independently derive several new properties.Reviewed meanings and boundaries.
2Reproduce the generated suite and record versions and counterexamples.Actual assertion counts and failures.
3Commission held-out test families and compare source extraction against reviewed annotations.Distinct error categories, valid holds and independent review.
4Use authorised fresh scope-reasoning exercises with a matched ordinary teaching baseline.Separate independent learner transfer and technical behaviour.

No human study has been performed. Research involving learners requires appropriate school permissions, consent or assent, privacy and access safeguards. The useful research outcome is better specified evidence, not an ever-larger count of related passing assertions.

Back to contents

11. References and connected research

Back to contents