lawref.evaluator.proof
Реестр proof-узлов — SPEC §180.
support-id → proof-node-id, детерминированно и однократно: один и тот же assertion даёт один и тот же узел при любом числе обращений.
Classes
| Name | Description |
|---|---|
ProofRegistry | Единый реестр proof-узлов: support-id → proof-node-id (детерминированно). |
ProofRegistryclass#
class ProofRegistry(assertions: dict[str, dict])Единый реестр proof-узлов: support-id → proof-node-id (детерминированно).
assertionsattributeinstance attribute#
assertions = assertionsby_supportattributeinstance attribute#
by_support: dict[str, str] = {}last_application_idattributeinstance attribute#
last_application_id: str | None = Nonenodesattributeinstance attribute#
nodes: list[dict] = []add_applicationmethod#
def add_application(rule_id: str, seq: int, subst: dict[str, dict], conclusion: dict, premises: list[str]) -> strannotate_a3_applicationmethod#
def annotate_a3_application(rule: dict, calls: Iterable[dict] = ()) -> NoneAttach A3 row provenance to the just-created ordinary rule proof.
annotate_definition_applicationmethod#
def annotate_definition_application(rule: dict) -> NoneDECISION-0151 / §180: применение правила, порождённого определением
§144, несёт attributes.definition — понятие (символ-цель ребра
provenance), режим, половину и номер альтернативы. Объяснение §183
читает это поле и говорит «по определению», а не «по правилу».
В content-id узла §180 поле не входит: тождество применения —
правило, подстановка, посылки и вывод.
for_supportmethod#
def for_support(support_id: str) -> strDocumentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.