lawref.measure
Документ меры формализации law.formalization-measure/0.1 — оракул §33.1.
Errata E-0249 (DECISION-0383): мера глубины считается против единиц деления
закреплённой публикации, уровни, которых реализация не вычисляет, названы,
EXECUTABLE единицы — утверждение о наличии выводящего узла, а не о полноте,
свежесть входов — часть отчёта. Документ канонизируется §208 и сравнивается
байтово с крейтом law-measure (lawc measure) — differential ОТДЕЛЬНОГО
документа меры, evaluation-документ не затрагивается.
Что здесь НЕ решается: правовые вопросы. Текст режется объявленной либо
распознанной конвенцией из spec/unit-conventions.json (один файл на обе
реализации), CLIR читается структурно — fragment/locator, anchors, виды узлов,
принадлежность прочтению §152.
Выход — dict документа; canonical_measure_bytes даёт байты §208.
Attributes
| Name | Description |
|---|---|
ALGORITHM | No description. |
DEFAULT_PROFILE | No description. |
DERIVING_KINDS | No description. |
EXTERNAL_ANCHOR_RE | No description. |
FORMAT | No description. |
LEVELS_COMPUTED | No description. |
LEVELS_NOT_COMPUTED | No description. |
SPEC | No description. |
Classes
| Name | Description |
|---|---|
MeasureError | No description. |
Functions
| Name | Description |
|---|---|
canonical_measure_bytes | No description. |
conventions | No description. |
main | python -m lawref measure <ir.json> --text <файл> [--declaration <json>] [--params <json>] |
measure | No description. |
sha256 | No description. |
ALGORITHMattributemodule attribute#
ALGORITHM = 'formalization/1'DEFAULT_PROFILEattributemodule attribute#
DEFAULT_PROFILE = {'name': 'static', 'aggregatedMinBytes': 2000}DERIVING_KINDSattributemodule attribute#
DERIVING_KINDS = frozenset({'rule', 'priority_rule', 'closure_policy', 'norm_template', 'constraint'})EXTERNAL_ANCHOR_REattributemodule attribute#
EXTERNAL_ANCHOR_RE = re.compile('(?:ART-|ART)(\\d+(?:[-_]\\d+)?)(?:_P\\d+)?(?:_(?:RU|KK))?$')FORMATattributemodule attribute#
FORMAT = 'law.formalization-measure/0.1'LEVELS_COMPUTEDattributemodule attribute#
LEVELS_COMPUTED = ('SOURCE_ONLY', 'ANCHORED', 'EXECUTABLE')LEVELS_NOT_COMPUTEDattributemodule attribute#
LEVELS_NOT_COMPUTED = ('STRUCTURED', 'SEMANTIC')SPECattributemodule attribute#
SPEC = '0.1+E-0249'MeasureErrorclass#
class MeasureError(Exception)Bases: Exception
canonical_measure_bytesfunction#
def canonical_measure_bytes(measure_document: dict) -> bytesconventionsfunctioncached#
def conventions() -> dictmainfunction#
def main(argv: list[str]) -> intpython -m lawref measure <ir.json> –text <файл> [–declaration
measurefunction#
def measure(document: dict, texts: list[dict], params: dict | None = None) -> dictsha256function#
def sha256(data: bytes) -> strDocumentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.