← tools

CEL TRANSLATION UNITS

CEL verifier →

Each translation unit is a CEL predicate over one shared, typed event schema, naming the CSP event it maps to. The verifier proves that no event in the domain satisfies two units at once, and that every event in the domain lands somewhere — in one unit or the generated fallback — so the translation from concrete events to the CSP alphabet is a function. CEL's own runtime translates concrete events.

name:type — the variables of every query

CEL bool; conjoined into every proof

TRANSLATION UNITS
  • ↦
  • ↦
  • ↦
  • ↦
  • ↦
  • ↦
  • otherwise↦

    generated, not editable: !(read_local || read_system || write || fetch || pay_small || pay_large) — in-domain events no unit matches. Ambiguous events, errors and events outside the assumption never go here.

CONCRETE EVENTS

one CEL literal per field, type-checked against the schema: 'read_file', 42, ['pii']

  • e1
  • e2
  • e3
  • e4
  • e5
  • e6
COVERAGEautomatic

loading the verifier — coverage is checked as soon as it's up

DISJOINTNESS

nothing proven yet

TRANSLATION

nothing translated yet

EXAMPLES
WHAT IS PROVEN

For units P and Q the verifier is asked whether (A) && (P) && (Q) is satisfiable over the schema's variables, A being the domain assumption. Not satisfiable is a proof that no event in the domain is translated by both; satisfiable comes with a concrete witness; anything inconclusive (an approximated theory, a list longer than the unroll limit, a solver unknown or a timeout) is shown as not proven, never as disjoint. The diagonal asks the same of each unit alone: a unit no event can reach is vacuously disjoint from everything, which is usually a bug.

Disjointness is about the predicates, not the output names: two units emitting the same CSP event still have to be disjoint here, and two units with different names can still overlap. With every pair disjoint, each in-domain event maps to at most one CSP event.

The fallback is generated as !(P1 || … || Pn) and checked automatically after each edit: isSatisfiable((A) && fallback) says whether the explicit units alone leave gaps (with an example event), isAlwaysTrue(!(A) || P1 || … || Pn || fallback) whether every in-domain event lands somewhere. That isn't a tautology in CEL: a predicate that errors (say 1000 / amount at 0) is neither true nor false, the verifier reports the event as a counterexample, and the runtime reports it as an error rather than sending it to the fallback. Exhaustive says nothing about the explicit units overlapping each other — only together with every pair disjoint is each in-domain event mapped to exactly one CSP event. An unsatisfiable assumption makes all of this vacuous and is flagged. This is CEL analysed by Google's cel-java verifier and Z3; no CSP tool is looking at the CEL.

Translating a concrete event doesn't use the solver: each field's literal is compiled against its declared type and every predicate is evaluated by cel-java's runtime, in the same environment the proofs compile in, and the runtime's value of the generated fallback has to agree. Events outside the assumption aren't translated — the proofs don't cover them.