Skip to content

Find a rule from examples

Show the result you want.
Find a rule you can check.

Give a few examples. Duplex looks for a way to get that result and can ask for one more example when the answer isn’t clear.

A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.
A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.

From examples to a rule your team can check.

Finding the rule, checking it and using it again are three separate steps, and you see each one.

  1. 1

    Give examples

    A few inputs with the results your team expects: decisions, corrections, categories or calculated values.

  2. 2

    Duplex looks for a rule

    It looks for a rule that gives every one of those results.

  3. 3

    It’s checked on a new case

    Before anyone relies on it, the rule is tried on an example it didn’t see.

  4. 4

    Your team decides

    Keep it, with the examples and checks behind it, for the next job that fits.

Illustrative workflow
A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.

When two rules fit, it asks.

A few examples can be read more than one way. Duplex shows both readings and asks for the one example that tells them apart, instead of guessing.

2 → 4, 4 → 8, 6 → 12Rule 1: Double every quantityRule 2: Double only even quantities
What about 5?Rule 1: 10Rule 2: 5
The reviewer says 10Rule 1: FitsRule 2: Doesn’t fit
A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.

Every answer says what it is.

  • Found and checked

    Means
    A rule gives every example’s result and passed its check on a new case.
  • Candidate

    Means
    Worth reviewing. Kept out of reuse until your team confirms it.
  • Needs one more example

    Means
    Two rules fit. One more example would decide.

When the search stops without a clear answer, Duplex says why and what might help it go further. A long search can pick up where it stopped.

A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.

The kinds of work it can try.

Representative examples, not a promise that every rule can be found from any examples.

  • Numbers

    Thresholds, limits, corrections and calculated values.

  • Tables and records

    Rows, fields and the rules that connect them.

  • Text and lists

    Labels, categories, codes and sequences.

  • Dates and units

    Durations, conversions and constants worked out from examples.

A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.A row of satin-silver tokens feeds into a compact graphite machine, with a single cobalt-blue block at its output.

Bring the examples.

Bring a handful of cases your team already decided. We’ll show you the rule, the check and the question that settles it.