TOC Toolkit API - v0.1.0
    Preparing search index...

    toc-toolkit/decisions

    Defines the questions, answers, certificates and verdicts of the decision procedures, and the budgeted scheduler that answers a question. It covers equivalence, inclusion, emptiness, universality, finiteness, membership and ambiguity. Procedure packages discover evidence, certificates checks it, and toc supplies the registry that binds them.

    • Budgeted scheduling. Opens a session for one question and runs the screened procedures lane by lane under a budget. The lanes are Structural, Early, Class, General and Final. A session returns a verdict, or Unknown with the exhaustion and the facts it learned. (open, fixedPlan)
    • Witness selection. Picks the counterexample word to keep from the candidates of several procedures, by taking any, the shortest or the shortest of each language. (selectWitnesses)
    • Retry classification. Says from the stopped resource whether a procedure should retry with more budget, a larger cap, a deeper search or never. (Retry, retryOf)
    • First-attempt Fuel limit. A procedure's metadata can name maximumFirstFuel. The scheduler caps the first attempt at the lower of that and the lane's ceiling, and grants no second attempt, so a procedure whose extra Fuel rarely decides cannot take the Fuel of the lanes after it. (ProcedureMeta)
    • Trust combination. Gives the weakest trust of a chain of premises, so one unchecked premise makes the result unchecked. (combineTrust)
    • Event dump. Prints the events of a session as stable lines of ordinal, kind and fields. (dumpEvents)
    • Fixed plan. Orders the procedures of a question into lanes with a base reserve of 0.25. (fixedPlan, FIXED_RESERVE)
    • Measured plan. Orders each fixed lane by caller-supplied success counts for the question kind. Ties keep the fixed order, and an empty table uses the fixed plan. (measuredPlan, ProcedureSuccess)
    • Encoders. Write facts, features, plans, events and verdicts as plain data. (encodeFact, encodeFeatures, encodePlan, encodeDecideEvent, encodeVerdict)
    • Question and answer. The seven question kinds with their ordered operands and their positive and negative answers. Question is a type and the namespace of its functions, which are Question.decoder and Question.operands. (Question, Answer, QuestionKind)

    • Certificate. A plain-data proof in one of 23 families, each with a body type. They are Census, Word, Isomorphism, Derivation, Run, Composite, Bisimulation, Enumeration, TwoTrees, Semilinear, ParikhSeparation, Valuation, Induction, RegularSeparation, LlTable, LrTable, RegularInvariant, Antichain, TypeClosure, BlockExponents, Pump, PairInvariant and RegularDisjointness. (Certificate, CertificateKind)

    • Parser transport. Carries the original and converted claims, an earlier premise and a complete LL(1) or LR(1) table inside a composite proof. (CompositeParserTranslation, CompositeRule.ParserTranslation)

    • Shared image transport. Carries one total injective letter map and two earlier equality premises that bind both renamed originals to the complete converted targets. The registry proposes the image evidence, and the independent checker verifies it before a positive decision passes through an image route. An ordered equality premise also establishes inclusion. (CompositeRule.Encoding, CompositeRule.InclusionOfEqual, Registry.imageProof)

    • Verdict. A decision with checker evidence and trust, an unchecked regular unambiguity answer with its original question and recheck basis, or Unknown. (Verdict, Decided, Trust, UncheckedDecisionBasis)

    • Knowledge store. Keeps the facts learned during a session in stable order, and replaces a fact by a stronger one on the same key. (KnowledgeStore, Fact)

    • Registry and procedure. A procedure screens, prepares and runs one question kind. The registry supplies the procedures, operand identities and translations to the scheduler. (registerProcedure, Registry, Procedure)

    • Certificate codec. Reads and writes certificates and verdicts as JSON through injected model decoders. (certificateCodec, verdictDecoder, encodeVerdict)

    • Session. An append-only session that open returns, advanced under caller-funded budgets, with its events and its checked orbit-proof cache. (Session)

    • Plan. The lanes with their procedures and shares, a reserve and per-procedure floors, with the features of the operands that a policy reads. (Plan, PlanLane, Lane, Policy, Features, OperandFeatures, Candidate)

    • Event log. The ordered events of a session and the record of an exhaustion. (DecideEvent, EventKind, ExhaustionRecord)

    • Procedure outcome. The screen, the outcome and the reduction of a procedure attempt, with the services that it receives. (Screen, Outcome, Reduction, Resume, Env, Inapplicable)

    • Identities. Brands for the canonical key of an operand and the namespaced id of a procedure, with their sole constructors. (OperandKey, operandKey, ProcedureId, procedureId)

    • Expression and Greibach evidence. The isomorphism form carries a terminal bijection, and the bisimulation form carries a finite relation on variable sequences. (ExpressionIsomorphismBody, GreibachBisimulation)

    • Certificate bodies. The plain-data bodies of the active certificate families and their parts, such as word, derivation, run, isomorphism, grammar rewrite, bisimulation, composite, two trees, semilinear, Parikh and regular separation, valuation, induction, LL(1) and LR(1) table, regular invariant, antichain, type closure, block exponents and pump bodies. (CensusBody, CensusUnambiguity, WordBody, DerivationBody, RunBody, IsomorphismBody, GrammarRewriteStep, BisimulationBody, CompositeBody, TwoTreesBody, SemilinearBody, ParikhSeparationBody, ValuationBody, InductionBody, RegularSeparationBody, LlTableBody, LrTableBody, RegularInvariantBody, AntichainBody, TypeClosureBody, BlockExponentsBody, EnumerationBody, PumpBody)

    • Bounded agreement fact. Records checked agreement through a length bound for scheduler knowledge. It does not decide full equivalence. (FactEvidenceKind.BoundedAgreement, BoundedAgreementBody, BoundedAgreementFactEvidence)

    • A caller can recheck a regular path-search result with recheckRegularUnambiguity from toc-toolkit/verification.

    • Word minimum form. An independently checked lower bound on both directions of an original DFA difference, as rows over the product. (WordMinimumForm, DfaProductMinimum, DfaMinimumRow)

    • Decoders. Read questions, claims, certificates, verdicts, facts, plans, screens, events, procedure metadata and the closed vocabularies back from plain data. (Question.decoder, claimDecoder, certificateDecoder, verdictDecoder, decidedDecoder, factDecoder, planDecoder, screenDecoder, decideEventDecoder, procedureMetaDecoder, wordMinimumFormDecoder, trustDecoder, certificateKindDecoder, questionKindDecoder, ambiguityAnswerDecoder, anyAnswerDecoder, appliesDecoder, bisimulationFormDecoder, candidateDecoder, closureStepKindDecoder, compositeLeafKindDecoder, compositeRuleDecoder, decideStatusDecoder, derivationNodeKindDecoder, emptinessAnswerDecoder, equivalenceAnswerDecoder, eventKindDecoder, exhaustionRecordDecoder, factKindDecoder, featuresDecoder, finitenessAnswerDecoder, grammarRewriteStepKindDecoder, inapplicableCodeDecoder, inclusionAnswerDecoder, isomorphismFormDecoder, laneDecoder, membershipAnswerDecoder, operandKeyDecoder, planLaneDecoder, policyIdDecoder, procedureIdDecoder, rejectedDecoder, rejectionCodeDecoder, retryDecoder, semilinearEncodingKindDecoder, sideDecoder, universalityAnswerDecoder, witnessPolicyDecoder, wordAcceptanceDecoder)

    • Enumerations. Name the closed sets of strings that the types and the wire data of the package use. (AmbiguityAnswer, Applies, BisimulationForm, ClosureStepKind, CompositeLeafKind, CompositeRule, DecideStatus, DerivationNodeKind, EmptinessAnswer, EquivalenceAnswer, FactEvidenceKind, FactKind, FinitenessAnswer, GrammarRewriteStepKind, InapplicableCode, InclusionAnswer, IsomorphismForm, MembershipAnswer, PolicyId, RejectionCode, SemilinearEncodingKind, SemilinearRule, Side, UncheckedDecisionBasis, UniversalityAnswer, WitnessPolicy, WordAcceptance)

    • Position pair evidence. Carries original production identities and a closed set of flagged positions that excludes conflicting completions. (PairInvariantBody, PositionPair)

    • Regular overlap evidence. Carries closed finite word summaries, every original alternative or split obligation and a regular-invariant emptiness body for each overlap. (RegularDisjointnessBody, RegularOverlap, VariableSummaries, OverlapKind)