diff --git a/.github/workflows/mathlib.yml b/.github/workflows/mathlib.yml new file mode 100644 index 0000000000..32ca36e2e7 --- /dev/null +++ b/.github/workflows/mathlib.yml @@ -0,0 +1,77 @@ +# The Mathlib demos (SPEC.md §28.6), in a workflow of their own. +# +# A demo is a project that needs a Lean library fetched with `lexlean deps +# fetch` (§10.4). Fetching is the one operation that reaches the network, so no +# default gate runs a demo: the acceptance gate of ci.yml (§9.4) is a clean +# checkout with only Rust and the pinned Lean toolchain, and its sweeps of +# `examples/` discover nothing that needs a library (EX-10). This workflow is +# where a demo is verified, and it is not part of that gate: the gate's +# evidence says nothing about it, and this run's says nothing about the gate. +# +# Like the gate it starts from a clean checkout with no build cache (§9.4): the +# library is fetched on every run (about five minutes and seven gigabytes, of +# the fourteen the runner has free), so a stale cache cannot stand in for the +# pinned revision. +name: mathlib + +on: + push: { branches: [main, "release/**"] } + pull_request: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: mathlib-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +env: + CARGO_TERM_COLOR: always + +jobs: + mathlib: + name: mathlib demos + runs-on: ubuntu-24.04 + timeout-minutes: 120 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Install the pinned Rust toolchain + run: rustup toolchain install + - name: Install elan and the pinned Lean toolchain + run: | + set -euo pipefail + curl https://elan.lean-lang.org/elan-init.sh -sSf | sh -s -- -y --default-toolchain none + echo "$HOME/.elan/bin" >> "$GITHUB_PATH" + "$HOME/.elan/bin/elan" toolchain install "$(cat lean-toolchain)" + - name: Build the executable + run: cargo build --locked -p lexlean --bin lexlean + # The only step that reaches the network (I15): `lexlean deps fetch` runs + # `lake exe cache get` in each demo's Lake workspace, which clones the + # library at the revision pinned in `lexlean.toml` and downloads its + # built `.olean` files. Nothing is rebuilt. The host library of the demo + # is built after it, because `verify` never builds one (§13.13). + - name: Fetch the pinned Mathlib and build the host library + shell: bash + run: | + set -euo pipefail + df -h "$GITHUB_WORKSPACE" + for demo in demos/*/; do + (cd "$demo" && "$GITHUB_WORKSPACE/target/debug/lexlean" deps fetch) + (cd "$demo" && lake build) + done + df -h "$GITHUB_WORKSPACE" + - name: Verify the demos + shell: bash + run: | + set -euo pipefail + mkdir -p ci-evidence + cargo xtask verify-demos 2>&1 | tee ci-evidence/verify-demos.txt + grep -F "verify-examples: mathlib-blake3-g verified (attestation " ci-evidence/verify-demos.txt + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + if: ${{ !cancelled() }} + with: + name: mathlib-demos-evidence + path: ci-evidence + if-no-files-found: error + retention-days: 14 diff --git a/.gitignore b/.gitignore index a69bae0677..3d39b03c4f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,10 @@ # LexLean build roots inside examples and fixture projects. The committed # artifacts are the expected/ oracles, never a live build directory. examples/**/.lexlean/ +# Fetched Lean libraries and Lake build products of an example (SPEC.md §10.4). +examples/**/.lake/ +demos/**/.lake/ +demos/**/.lexlean/ tests/**/.lexlean/ compiler/.lexlean/ diff --git a/CHANGELOG.md b/CHANGELOG.md index ee17050111..d29e1f3569 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,21 @@ versions. `v0.1.0` is tagged, and `v0.4.0` is tagged at the commit that carries this changelog; the sections for `0.1.1`, `0.2.0`, and `0.3.0` record what the workspace carried at those versions without a tag. +## Unreleased + +- Specialisation wrappers (`GL-21`, SPEC.md §13.13). A class-polymorphic Lean + declaration is written at a concrete type as one `public` declaration of the host + library, `LexLeanSpec..`, whose type is `type_of%` the + application `@declaration arguments` and whose value is that application: a term, + with every name qualified from the root. `lexlean::wrappers::{parse_request, emit}` + and `cargo xtask emit-wrappers` take a `lexlean/wrappers/1` request and write the + host module; a request outside the closed term grammar is `LLT4018`. +- The external-interface probe (`VR-24`, §18.8) holds an entry that denotes a + wrapper to `example : () = (type_of% @) := rfl`, so that its + signature is definitionally the type of the wrapper. A signature that differs is + `LLT4017`; a wrapper that is absent stays `LLT4003`. Every other entry's probe line + is unchanged. The register is 459 IDs. + ## 0.4.0 Release `0.4.0` is cut at the downstream boundary (#92, 2026-10-25): what the diff --git a/CONFORMANCE.md b/CONFORMANCE.md index 21140e917e..09d8e7bc07 100644 --- a/CONFORMANCE.md +++ b/CONFORMANCE.md @@ -108,6 +108,7 @@ the error registry does not sanction (R5, `ERRORS.md`). | `CL-22` | `build` | A host that embeds the library ends every child process group the library started and has not seen exit through the public function `lexlean::verify::end_live_children`, which installs no signal handler, alters no signal disposition, never signals the host's own process or group, reports each group as ended, already gone, or failing with the OS error, and refuses a later child start with LLV7018 until the host re-enables it, and the `lexlean` executable ends its interrupted children through the same function. | | `CL-23` | `build` | lexlean production targets prints the canonical target-descriptor document in either output mode, production build --request publishes the bundle its request names and reports the bundle and the project's source, semantic, build, and attestation IDs in its command result, production verify-artifact replays a bundle with no project, and each maps a malformed request, a refused request, and a rejected replay to the exact exit code of its registered class. | | `CL-24` | `build` | lexlean migrate --to 1.2 migrates a language-1.1 data-form project to language 1.2 in one command: it rewrites every module to the authoring notation through lexlean::sdk::to_notation with the same declarations, names, statements, and axiom policies, moves the builtin glossary references of every source and the imports of every path lexicon package to 1.2.0, rewrites the language row, and regenerates the lock as lexlean/lock/2, so the result checks, has a current lock, and is canonical; --check proves the migration and writes nothing; and a project that is not language 1.1 is refused with LLC0103 and a module that is not a language-1.1 data-form semantic module, a data form that is not canonical JSON included, with LLP2003, each leaving every file of the project unchanged. | +| `CL-25` | `build` | lexlean deps glossary runs the pinned Lean over the requested modules or declarations and writes a lexicon package of kind-lean entries and a coverage report, takes exactly one of --modules and --names and a valid package identity, needs no project, refuses an empty or doubled selection with LLC0002 and malformed usage with LLC0001, and under --strict exits with the registered class of the first refusal. | ## configuration-lock @@ -168,6 +169,7 @@ the error registry does not sanction (R5, `ERRORS.md`). | `EX-07` | `build` | The negative fixture suite covers every required rejection class and prescribed diagnostic family. | | `EX-08` | `build` | Every example directory is discovered automatically and must satisfy the full example gate. | | `EX-09` | `build` | The `helpdesk` example is a text application written entirely from language-1.2 source and the three source packages `std`, `std-models`, and `std-reasoning` that its lock pins: its production roots `classify`, `plan`, and `dispatch : Bytes -> Bytes` use the model alone, the reasoner alone, and both together, `dispatch` trimming the request with `LexLeanStd.Text`, scoring it with an integer feed-forward model whose weights are content-addressed artifacts and which is applied through its required precondition check, abstaining with `decideOr`, committing through the generic `GateModel` of `std-models`, and planning the reply with the `Drain` reasoner of `std-reasoning`; the example holds no handwritten Lean or Rust, verifies under the pinned Lean, its roots export through `lexlean production build` with the packages committed under `tests/production-export/helpdesk/`, and a changed byte or version of a package is `LLC0105`, an import of a module of an undeclared package `LLR3009`, a tampered artifact `LLR3007`, and a model applied without its required check `LLT4008`. | +| `EX-10` | `build` | A project that needs a fetched Lean library is a demo, not an example: it lives under `demos/` and no directory under `examples/` declares a `[[lean_library]]`, so that the sweeps of `examples/` (`verify-examples`, `check-golden`, `check-reproducibility`, the formatter property test) need no network and no library; `cargo xtask verify-demos` formats, locks, checks, builds, and verifies every demo against its `expected/` records and golden build, and builds it twice to the same bytes, and `.github/workflows/mathlib.yml` runs it after `lexlean deps fetch` in a job of its own, outside the acceptance gate, with no build cache. | ## extraction @@ -320,6 +322,19 @@ the error registry does not sanction (R5, `ERRORS.md`). | `GL-16` | `build` | Package and entry bytes participate in lock and semantic closure hashes exactly as specified. | | `GL-17` | `build` | Language 1.2 resolves the exact 1.2 builtin package closure and enforces 1.2 lexicon semantics. | | `GL-18` | `build` | Cross-version package, lexicon, and lock combinations fail closed before backend execution. | +| `GL-19` | `build` | A generated external-Lean glossary is a lexicon package of kind-lean entries that the package loader accepts: each signature is the LSE translation of the Lean type with implicit and instance binders kept as binders and left out of applications, each identifier, surface, category, and render follows the documented naming scheme, an inductive type carries an eliminator descriptor over its constructor entries, and two runs over one extraction produce byte-identical packages and reports. | +| `GL-20` | `build` | A Lean declaration the translation cannot express is refused with the registered diagnostic code of its reason and never emitted with a weakened signature, a declaration that depends on a refused one is refused with the root reason, and the coverage report counts requested declarations as translated, refused by reason, and excluded by kind, with counts that sum to the request. | +| `GL-21` | `build` | A specialisation request names a class-polymorphic Lean declaration, its kind (`theorem` or `def`), a tag, and the arguments of its application at a concrete type, each a closed term of identifiers, numerals, holes, and applications; the wrapper emitter writes one `public` declaration for each under the reserved root `LexLeanSpec`, whose type is `type_of%` the application and whose value is the application, with every constant `_root_`-qualified and no tactic and no axiom, in sorted order and byte for byte the same on every run, and a request with a duplicate tag, a name outside the conservative grammar, or an argument outside the term grammar is refused with LLT4018. | + +## mathlib + +| ID | Level | Statement | +| --- | --- | --- | +| `ML-01` | `build` | A language-1.2 project declares an external Lean library once, as a `[[lean_library]]` table of its `lexlean.toml` with a `name`, an HTTPS `url`, and an exact 40-lowercase-hex `revision`, sorted and unique by `name`, and the configuration reads back to the bytes written; a project without one keeps its bytes, and a URL that is not HTTPS, a revision that is not a 40-lowercase-hex commit, a branch, a tag, or any other field, a name that is not a package identifier, a repeated or unsorted table, and a declaration in another language are each refused with LLC0109. | +| `ML-02` | `build` | The lock pins each declared Lean library by a `[[lean_library]]` row of its name, URL, exact revision, the SHA-256 of the library's own `lake-manifest.json`, and the SHA-256 of its generated glossary, the tree digest of the lexicon package `lean.` of the project or of the empty tree when the project has none; the Lake workspace's `lake-manifest.json` must require the library at the declared URL and revision, rows sort by name, and the lock reads back to the bytes written; a project without a library keeps its lock bytes, and a library, a manifest digest, a glossary, or a workspace requirement that is not the one the lock pins is refused with LLC0110 naming both values. | +| `ML-03` | `build` | `lexlean deps fetch` is the only command that acquires a declared Lean library: it checks the declaration against the Lake workspace, runs `lake exe cache get` in the Lake workspace under the pinned toolchain through the checked child runner, and confirms the library is present at the declared revision with its built artifacts; with no library declared it fetches nothing and succeeds, a missing or failing `lake` and a library that is not at the declared revision afterward are LLV7020, and the command writes nothing of the project outside the Lake workspace. | +| `ML-04` | `build` | `lock`, `check`, `build`, `fmt`, and `verify` never fetch a declared Lean library: when the library is not present in the Lake workspace at the declared revision with its built artifacts, each fails offline with LLV7019 naming the library and `lexlean deps fetch`, before any Lean process runs and without a network connection. | +| `ML-05` | `build` | `fmt` rewrites the sources of a project that declares a Lean library: the scratch copy in which the formatter proves preservation of the linked IR holds the library's presence markers (the checkout's `HEAD`, its manifest, and the directory of built artifacts) and not the library, so a present library is recognised without being copied and an absent one is still LLV7019. | ## models @@ -473,6 +488,17 @@ the error registry does not sanction (R5, `ERRORS.md`). | `RS-13` | `build` | GNAF requests over forward-chaining plans of the clinical rule base charge rule search as execution in calculus steps and are answered over their declared plans, each plan computes on every patient of the request's domain the level the oracle's Triage derives from the same findings as the kernel decides, and a request whose search is charged nothing or whose universe is the candidates a search discovered is refused. | | `RS-14` | `build` | The committed reasoning example verifies a multi-step clinical forward derivation with its invariant and termination, a generic terminating countdown, a deduplicating breadth-first planner, a depth-first search and a generate-and-verify reasoner over model-generated candidates, and an answer proved correct with its check erased, with every generated theorem kernel-checked, and planting a rule-threshold mutation in it is refused by verification. | +## replay-cache + +| ID | Level | Statement | +| --- | --- | --- | +| `RC-01` | `build` | A replay key is a PrismPM ADR-015 DigestSet, a `sha256` and a `blake3` of the same bytes in lowercase hexadecimal, labelled `blake3:` and the 64 digits of the `blake3` value, over the one canonical serialisation of a declaration's name, universe parameters, kind attributes and type, the DigestSet of its value or proof term, the keys of the declarations it names, the Lean toolchain, and the Mathlib revision; equal inputs give equal keys, and a change to any one of those inputs gives a different key. | +| `RC-02` | `build` | A declaration changed in a dependency graph changes the key of every declaration above it and of none beside or below it, declarations that name one another, an inductive type with its constructors and recursor, are keyed as one group, and facts that repeat a declaration, name a declaration neither declared nor anchored by a given key, or do not parse are refused (`LLV7022`). | +| `RC-03` | `build` | A warm replay reuses the recorded result of every unit whose key is unchanged and replays only the others, whether a unit is one declaration or one module; only a replay that succeeded is recorded, each entry names the digest of the executable that produced it, and an entry that an executable other than the current one produced is not reused. | +| `RC-04` | `build` | A cache entry whose bytes changed while its key was kept, an entry stored under a key other than the one it records, and an entry that does not parse as an entry, are each rejected with `LLV7021`, never reused, and not silently replaced. | +| `RC-05` | `build` | A changed Lean toolchain or a changed Mathlib revision gives every unit a new key, so no result recorded under the previous environment is reused, and the entries of the previous environment are left unread and intact. | +| `RC-06` | `build` | Facts exported by the pinned Lean from compiled modules, keyed and replayed through the pinned `leanchecker` cold and then warm, reuse every module whose key is unchanged: after a one-line edit to one declaration, only the modules whose declarations reach it are replayed again, and the warm verdicts equal the cold ones. | + ## repository | ID | Level | Statement | @@ -640,6 +666,10 @@ the error registry does not sanction (R5, `ERRORS.md`). | `VR-21` | `build` | A multi-module project whose imports form nontrivial frontiers verifies at width 1 and at a larger width to byte-identical verified directories and the same attestation identity, observed axiom sets, and policy rows, and no completion order orders a record or changes which failure is reported. | | `VR-22` | `build` | Performance telemetry is written only to the CI evidence directory the environment names, a verification with telemetry on publishes byte-identical artifacts to one without, and telemetry planted in a verified artifact fails the gate. | | `VR-23` | `build` | A project verified as the parts of one run, each shard running the processes its plan names with the oleans of the shards it needs and the join reading every shard's records, publishes a verified directory byte-identical to the whole verification's with the same attestation identity, and a shard whose plan leaves a module without its imports, a join missing a record, or a join reading a record of an executable other than its own, is refused. | +| `VR-24` | `build` | An external entry whose Lean name is under the reserved root `LexLeanSpec` is probed by `example : () = (type_of% @) := rfl`, so that its linked signature is definitionally the Lean type of the wrapper and not merely inhabited by it; an entry whose signature differs from that type is refused with LLT4017 naming the entry, a wrapper that does not exist stays LLT4003, and an entry outside the reserved root is probed exactly as before. | +| `VR-27` | `build` | The external-interface probe writes an instance binder that no later binder or the result mentions without a name, so that pinned Lean's unused-variable linter has nothing to report for an entry such as `HXor.hXor`, and ascribes the type a callee declares to a numeral argument only when that type is closed in the caller's scope, with the callee's own binders renamed apart, so that a caller binder named like a callee binder (`a`, the type parameter of `Eq`) is never taken for it; a generated entry with an instance binder and a numeral argument elaborates without output. | +| `VR-25` | `build` | A used external entry whose Lean module is outside the pinned toolchain's own libraries `Init`, `Std`, `Lean` and `Lake` is an imported declaration: the probe module prints its axioms with `#print axioms`, the attestation records its observed set, and an import that depends on `sorryAx` is refused with LLV7023, on `Lean.ofReduceBool` with LLV7024, and on `Lean.trustCompiler` or on an axiom that `native_decide` generated with LLV7025, each naming the entry, unless an axiom policy of the document names that axiom, in which case the import is accepted and every generated declaration is still held to its own policy. | +| `VR-26` | `build` | The status of an imported declaration in the attestation is `replayed in the pinned environment`, and no output about an import says `proved`, `verified` or `kernel-checked`, words that §5.3 reserves for the generated declarations of the document and that §4.2 forbids for an imported library. | ## Cited authorities diff --git a/Cargo.lock b/Cargo.lock index 70907213a2..6d398036aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,6 +58,18 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + [[package]] name = "autocfg" version = "1.5.1" @@ -85,6 +97,19 @@ version = "2.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" +[[package]] +name = "blake3" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", +] + [[package]] name = "block-buffer" version = "0.10.4" @@ -100,6 +125,16 @@ version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d" +[[package]] +name = "cc" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0" +dependencies = [ + "find-msvc-tools", + "shlex", +] + [[package]] name = "cfg-if" version = "1.0.4" @@ -152,6 +187,12 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" +[[package]] +name = "constant_time_eq" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" + [[package]] name = "cpufeatures" version = "0.2.17" @@ -222,6 +263,12 @@ dependencies = [ "libc", ] +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + [[package]] name = "flate2" version = "1.1.9" @@ -319,6 +366,7 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" name = "lexlean" version = "0.4.0" dependencies = [ + "blake3", "camino", "clap", "fs4", @@ -621,6 +669,12 @@ dependencies = [ "digest", ] +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + [[package]] name = "signal-hook" version = "0.3.18" diff --git a/Cargo.toml b/Cargo.toml index 7a8fbf91b2..29bdf75935 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ same-file = "1.0" semver = "1.0" serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["unbounded_depth"] } +blake3 = { version = "=1.5.5", default-features = false, features = ["std", "pure"] } sha2 = "0.10" signal-hook = { version = "0.3", default-features = false, features = ["iterator"] } tempfile = "3" @@ -60,6 +61,11 @@ codegen-units = 1 [profile.dev.package.sha2] opt-level = 3 +# The replay cache hashes with BLAKE3 beside SHA-256 (ADR-015), and the `pure` +# build has no SIMD; unoptimized it would be the slower of the two by far. +[profile.dev.package.blake3] +opt-level = 3 + # Backtraces keep their file and line, which is all a failing gate needs from # debug information. Full variable-level information doubled the size of every # test binary (the conformance binary: 279 MB, 136 MB with this) and a cold diff --git a/ERRORS.md b/ERRORS.md index 9a995e313f..72511d79d1 100644 --- a/ERRORS.md +++ b/ERRORS.md @@ -112,6 +112,18 @@ A project that declares a source package is outside any workspace or is not a me Class: `cli-configuration`. Exit code: 2. +## `LLC0109` --- Lean library declaration invalid + +A `[[lean_library]]` table is not a closed declaration of a language-1.2 project: a URL that is not HTTPS, a revision that is not an exact 40-lowercase-hex commit, a branch, a tag, or any other field, a name that is not a package identifier, a table repeated or out of order, or a declaration in another language. + +Class: `cli-configuration`. Exit code: 2. + +## `LLC0110` --- Lean library is not the library the lock pins + +A declared Lean library's URL, revision, Lake manifest digest, or glossary digest differs from the lock's row, or the Lake workspace's `lake-manifest.json` does not require the library at the declared URL and revision, naming both values. + +Class: `cli-configuration`. Exit code: 2. + ## `LLC0201` --- Production request malformed A production request is not a closed `lexlean/production-request/1` document: an unknown or missing field, another spec, roots, targets, or evidence that are empty, unsorted, or repeated, a root, package, or path that is not of its form, or a package name used twice for one target. @@ -406,6 +418,60 @@ A text declaration does not state the bound it must: a context window with capac Class: `language`. Exit code: 1. +## `LLT4017` --- External specialisation signature is not the type of the wrapper + +External specialisation signature is not the type of the wrapper. + +Class: `language`. Exit code: 1. + +## `LLT4018` --- Specialisation request refused + +Specialisation request refused. + +Class: `language`. Exit code: 1. + +## `LLT4101` --- Lean declaration uses a sort LSE cannot express + +A Lean declaration's type contains a sort that is neither Prop nor Type u for a universe expression u, such as Sort u for a universe variable u, so the glossary generator refuses it instead of weakening its signature (§13.12). + +Class: `language`. Exit code: 1. + +## `LLT4102` --- Lean declaration uses a binder LSE cannot express + +A Lean declaration's type contains a strict-implicit binder, which has no LSE binder mode, so the glossary generator refuses it instead of weakening its signature (§13.12). + +Class: `language`. Exit code: 1. + +## `LLT4103` --- Lean declaration uses an expression form LSE cannot express + +A Lean declaration's type contains a primitive projection, a string literal, or another expression form outside LSE, so the glossary generator refuses it (§13.12). + +Class: `language`. Exit code: 1. + +## `LLT4104` --- Core constant at a level the core entry does not cover + +A Lean declaration's type applies a constant that a core lexicon entry denotes, such as Eq or Exists, at a universe level the core entry does not cover, so the glossary generator refuses it (§13.12). + +Class: `language`. Exit code: 1. + +## `LLT4105` --- Lean name outside the conservative grammar + +A Lean declaration's name is outside the conservative ASCII Lean-name grammar of §13.6, so the glossary generator cannot carry it as a denotation (§13.12). + +Class: `language`. Exit code: 1. + +## `LLT4106` --- Lean declaration depends on a declaration without an entry + +A Lean declaration's type mentions a constant that has no entry because the constant was refused, excluded, or absent, so the glossary generator refuses the dependent declaration with the reason of the root (§13.12). + +Class: `language`. Exit code: 1. + +## `LLT4107` --- Generated entry rejected by the entry and signature checks + +An entry the glossary generator derived from a Lean declaration fails the entry validation or the conservative signature check of §13.7, so it is refused instead of emitted (§13.12). + +Class: `language`. Exit code: 1. + ## `LLV7001` --- Lean/Lake/leanchecker version or executable mismatch Lean/Lake/leanchecker version or executable mismatch. @@ -514,6 +580,48 @@ A child process could not be started because the host ended the live children of Class: `environment`. Exit code: 3. +## `LLV7019` --- Lean library not fetched + +A project declares a Lean library that is not present in its Lake workspace at the declared revision with its built artifacts; `lock`, `check`, `build`, `fmt`, and `verify` never fetch, so the library must first be acquired with `lexlean deps fetch`. + +Class: `environment`. Exit code: 3. + +## `LLV7020` --- Lean library fetch failed + +`lexlean deps fetch` could not acquire a declared Lean library: the `lake` executable could not be resolved or run, `lake exe cache get` failed, or the library is not at the declared revision with its built artifacts afterward. + +Class: `environment`. Exit code: 3. + +## `LLV7021` --- Replay cache entry rejected + +A replay cache entry does not parse as an entry, its entry digest is not the digest of its other members, its recorded key is not the key it was looked up under, or its environment is not the caller's, so it is neither reused nor replaced. + +Class: `language`. Exit code: 1. + +## `LLV7022` --- Replay facts refused + +The facts a replay key is computed from repeat a declaration, name a declaration that is neither declared nor anchored by a given key, or do not parse. + +Class: `language`. Exit code: 1. + +## `LLV7023` --- Imported declaration depends on sorryAx + +A Lean declaration that a used entry denotes, from outside the pinned toolchain's own libraries, depends on `sorryAx`, a proof hole, and no axiom policy of the document names `sorryAx`. + +Class: `language`. Exit code: 1. + +## `LLV7024` --- Imported declaration depends on Lean.ofReduceBool + +A Lean declaration that a used entry denotes, from outside the pinned toolchain's own libraries, depends on `Lean.ofReduceBool`, a claim the compiler's evaluator made, and no axiom policy of the document names `Lean.ofReduceBool`. + +Class: `language`. Exit code: 1. + +## `LLV7025` --- Imported declaration trusts the compiler + +A Lean declaration that a used entry denotes, from outside the pinned toolchain's own libraries, depends on `Lean.trustCompiler` or on an axiom that `native_decide` generated, and no axiom policy of the document names that axiom. + +Class: `language`. Exit code: 1. + ## `LLV7101` --- Certificate evidence does not certify the root Certificate evidence a production request supplies is not the certificate whose identity it pins, earns a refused verdict for its request, or is for a request whose reference program is not the root's lowered program. diff --git a/README.md b/README.md index a95327bb0b..1938bbbf81 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,44 @@ Every capability is a claim in [`model/ids.toml`](model/ids.toml) at honesty lev Every directory under [examples/](examples/) must format, lock, check, build, and verify with Lean 4.32.1. Other suites cover arithmetic, logic, induction, recursion, collections, production, models, reasoning, fold laws, helpdesk, and uor atlas. [compiler/](compiler/), [stdlib/](stdlib/), and [bootstrap/](bootstrap/) are written in LexLean itself. +| Capability | IDs | Level | +| --- | --- | --- | +| Exact repository identity, layout, generated documents, release gate, total classification of every closed enum by every consumer, and the devcontainer pinned to the toolchains | `RP-01`..`RP-18` | `build` | +| Closed project configuration, canonical lock file, and offline dependency policy | `CF-01`..`CF-18` | `build` | +| Total lexical closure: every accepted atom is covered by exactly one declared origin | `LX-01`..`LX-14` | `build` | +| Versioned lexicon packages with closed schemas, denotations, and renderer tokens | `GL-01`..`GL-21` | `build` | +| Fixed structural, mathematical, and proposition grammar with closed ambiguity handling | `GR-01`..`GR-16` | `build` | +| Typed closed IR with canonical serialization, native core modules (and the second schema of them that lossless migration of the proof library needs), portable language-1.1 application data and operations, versioned language-1.2 semantic modules, products, first-class functions, and widening conversions, ordered collections and graphs, semantic snapshots, alpha identities, recursion evidence, a split on a document term or a Boolean in a proof, and content identities | `SM-01`..`SM-36` | `build` | +| Document and generic semantic declarations with exact self-application, type checking, structural recursion, recursive and mutual language-1.2 data, generic and executable higher-order definitions, mutual and well-founded recursion with semantic evidence, explicit state threading, and acyclicity rules | `DF-01`..`DF-18` | `build` | +| The structured proof language with pinned Lean lowerings, including closed linear arithmetic, integer order, and the fold laws | `PF-01`..`PF-23` | `build` | +| Prose-free deterministic generated Lean with complete token traceability | `LN-01`..`LN-12` | `build` | +| Canonical LaTeX regeneration and the optional hash-checked PDF provider | `TX-01`..`TX-12` | `build` | +| Canonical diagnostics, source maps, coverage, manifests, and reproducible builds | `AR-01`..`AR-14` | `build` | +| Sixteen-stage verification with leanchecker replay and exact axiom audit | `VR-01`..`VR-26` | `build` | +| The exact CLI contract, the stable seven-method Rust `Engine` API, the host-driven end of the children the library started, the `production` subcommands, and the `migrate` command | `CL-01`..`CL-25` | `build` | +| Filesystem confinement, no shell, no hidden network, closed failure model | `SE-01`..`SE-12` | `build` | +| The literal `nat-add-zero` example, the Lean-verified feature examples, and the complete negative fixture suite | `EX-01`..`EX-09` | `build` | +| Language-1.2 production eligibility: closed targets, effects, and construct dispositions; runtime closures; target-dependent, fail-closed root analysis; deterministic eligibility reports; an exhaustiveness audit; measured stack bounds for every recursive root a harness runs | `PD-01`..`PD-08` | `build` | +| Named-root extraction through Lean's compiler front end: an adapter that is a closed tooling module over a registry derived from the pinned Lean and probed on every extraction, checked against a handwritten oracle; a closed, canonical, root-independent compiler input; fail-closed rejection; and an exact closure cross-check against production eligibility | `NE-01`..`NE-06` | `build` | +| The production realization calculus: a closed target syntax with canonical identity, a kernel-checked denotation, a realization library agreeing with LexLean's own collection primitives, complete realization coverage of the production registry, and a differentially tested Rust profile | `TC-01`..`TC-07` | `build` | +| The canonical Rust backend: a closed, checked Rust AST whose every construct corresponds to the calculus; hygienic identifiers, single ownership with last-use and component moves, exact failure typing, and no hidden allocation; contiguous lists with constant-work cells; a closed runtime library boundary of stated machine primitives; deterministic packages with checked exports, a lint gate and crate attributes read from one embedded language module, and provenance that states the realization's effects | `RB-01`..`RB-21` | `build` | +| GNAF requests over the calculus: an optimizer-independent complete-system universe, a machine contract that accounts every action, scalar and Pareto orders without weighting, fail-closed validation, and kernel-checked answers and authority vectors | `GN-01`..`GN-08` | `build` | +| GNAF certification: certificates that prove a global optimum, an argmin, or a complete Pareto frontier over the request's declared universe (a grammar of systems, never all calculus or Rust programs) from a premise for every system, a library proving the checker sound, closed transformation schemas, local normality kept distinct from optimality, a bridge from a representation metric to execution cost, and honest non-global statuses | `GC-01`..`GC-11` | `build` | +| Semantic preservation from the source to the calculus: a validated lowering of every production root, a kernel-checked certificate per root relating the lowered program to the source denotation with exact width predicates, a differential evaluator, a proof library that is LexLean source (native core modules migrated once from the Lean it replaces, its Lean generated by the compiler) pinned by exact axioms, certificate checking in verification, a declared Rust machine on which every rendering is evaluated, certificate B relating every rendering to its program, certificate E composing them end to end on the declared Rust machine (the printer, export wrappers, and `rustc` are outside it and are measured by the rustc differential), boundary validators, a rustc differential of the declared machine, and certificates A and B as kernel-term data built by the production compiler, which carries no Lean text template | `SP-01`..`SP-29` | `build` | +| Language-1.2 models: content-addressed typed artifacts, contracts with sound validators, exact deterministic, rule, statistical, neural (integer kernels), and composite realizations, generated evidence obligations restated in Lean, checked runtime boundaries, and their identity, production, and verification | `MD-01`..`MD-13` | `build` | +| Language-1.2 reasoning machines: logics, guarded inference rules, verifiers, and forward, search, and generate-and-verify reasoners elaborated to ordinary declarations, with exact obligations, fixed-template theorems over the axiom-free reasoning runtime, a closed runtime boundary, resource ledgers, and their production and calculus realization, with GNAF requests over the clinical rule base's forward-chaining plans | `RS-01`..`RS-14` | `build` | +| The differential validation oracle: `lean4-prod` pinned by commit and content hash as validation evidence only, a corpus of every production root and one probe per runtime construct, a comparison of acceptance, contract, behavior, and resources that never compares bytes, versioned tables of known differences and of constructs outside the overlap, planted discrepancies detected, failures that are unavailable rather than validated, and its isolation from every identity | `OR-01`..`OR-08` | `build` | +| The production export contract: a stable, versioned `lexlean::api::production` façade and its CLI through which a consumer compiles production roots to certified Rust packages; closed requests refused before Lean on every root, target, pin, evidence, path, and package defect; results binding every output to the source, semantic, compiler-semantics, target, compiler-input, preservation, and certificate identities with unforgeable certification; deterministic, confined, offline bundles; source-free replay; versioned schemas; each output's effects and what `recursion` asks of the host | `PX-01`..`PX-13` | `build` | +| Language-1.2 compiler-tooling modules: a closed, typed program over a registry of the external Lean interface (types with exact constructors and index requirements, calls with exact signatures), with flat index-exhaustive matching, licensed partial and mutual recursion, complete recursive traversal, command registration, invocation and evaluation as semantic data, both backends from one linked value, and no member that holds Lean text | `TL-01`..`TL-11` | `build` | +| The language-1.2 authoring notation: a readable `.lex.tex` text for a semantic module, in bijection with its canonical JSON, whose every position and variant is read from the schema, with readable forms for types and terms and a generic form for every other value, formatted canonically by `fmt` failing closed, the only form in which a language-1.2 source of the product is written (the data form is refused under language 1.2, and `lexlean::sdk` is the explicit conversion), the same for the compiler-tooling modules in the generic notation, with no compiler-semantics ID that depends on which form an embedded module is written in, with no product source owned by a generator but five named records, read and written by programs only through the authoring API (`lexlean::sdk`), and, for a native core module, a readable program over the shared table of kernel terms whose numbering is the order of its text | `AU-01`..`AU-13` | `build` | +| The runtime of generated Lean as native modules: the portable, collection, model, and reasoning runtimes of language 1.2 are LexLean source that every generated module imports, migrated losslessly and audited against their exact axioms, the released runtime text of languages 1.0 and 1.1 is frozen data equal to their released output, and no other Lean runtime text remains in the compiler but the decoder of core module 2 | `RT-01`..`RT-04` | `build` | +| The standard library: language-1.2 source beside the compiler whose members are certified production roots, each validated against its oracle by a seeded differential of its evaluator and rustc realizations; bytes and text over `Bytes`, an output buffer of a given capacity written in order; SHA-256 against FIPS 180-4, the NIST CAVP vectors, and the `sha2` crate; and the `std-models` and `std-reasoning` source packages, generic over types, whose laws are kernel-checked theorems and whose application is the `helpdesk` example | `SL-01`..`SL-05` | `build` | +| The bootstrap project: the compiler's own components as language-1.2 source compiled by LexLean's production pipeline to certified Rust packages, the exact axiom-output parser and its closed Lean-name check, the primitive scanner of §12.2, the preservation lexer and token audit, the target calculus's checker, the Rust crate validator, and the Rust printer, each held to the Rust it replaces (the stage-0 oracle) by the committed vectors and a seeded differential of its evaluator and rustc realizations, with planted defects detected and the production export committed | `BS-01`..`BS-09` | `build` | +| Source packages: a language-1.2 project imports the modules of a locked, content-addressed package of its workspace: `[[source_package]]` and `lexlean-workspace.toml`, the pins in `lexlean.lock` recomputed by every command, imports closed at link, no re-export of a package's production roots, and the package's modules replayed by the importer's `verify` with their origin in the records | `PK-01`..`PK-05` | `build` | +| Language-1.2 text components, first slice: tokenizers and their round-trip laws, with the laws carried as one native core module the generated modules import rather than authored Lean text | `LM-01`..`LM-13` | `build` | +| Mathlib import, pinning: a language-1.2 project declares an external Lean library once, the lock pins it by exact revision, and only `lexlean deps fetch` acquires it; every other command stays offline | `ML-01`..`ML-05` | `build` | +| Mathlib import, replay cache: replayed declarations keyed by a content-addressed Merkle DAG of ADR-015 digest sets, with tampered or stale entries rejected | `RC-01`..`RC-06` | `build` | + ## Gate Prerequisites: Rust 1.97.1, [just](https://github.com/casey/just), `cargo-deny`, and Lean 4.32.1 through `elan`. The dev container provides all of them. @@ -104,7 +142,7 @@ just vv just release ``` -All 457 registered conformance IDs are implemented and pass. `just vv` runs the complete normative acceptance gate (SPEC.md §9.2). `just release` runs `vv` and the §30 criterion; it is refused until 1.0.0. +All 477 registered conformance IDs are implemented and pass. `just vv` runs the complete normative acceptance gate (SPEC.md §9.2). `just release` runs `vv` and the §30 criterion; it is refused until 1.0.0. The [`lean4-prod`](https://github.com/UOR-Foundation/lean4-prod) differential is validation evidence only. A missing oracle fails on Linux x86 64 and prints `NOT VALIDATED` elsewhere. Releases live on `release/vX.Y`, and a tag before 1.0.0 does not claim the §30 criterion. diff --git a/SPEC.md b/SPEC.md index a120758bd6..8ae2a618d5 100644 --- a/SPEC.md +++ b/SPEC.md @@ -196,9 +196,11 @@ LexLean distinguishes: The words “proved”, “verified”, “kernel-checked”, and equivalent status markers MUST NOT be emitted for a merely checked or built result. +An **imported** declaration is the Lean constant a used external entry denotes (§13.6) when its Lean module is outside the pinned toolchain's own libraries `Init`, `Std`, `Lean`, and `Lake`. Its status is the words `replayed in the pinned environment`: the compiled module of the locked workspace (§5.1, item 5) was loaded by the pinned Lean, and the axioms it was observed to depend on were audited (§22.6). The words `proved`, `verified`, and `kernel-checked` are reserved for the generated declarations of the document and are never used for an import, and LexLean never says that an import is proved by LexLean (§4.2): its guarantees belong to its upstream repository. The status does not assert that `leanchecker` re-checked the declaration in this run; §22.4 replays the generated modules only. + ### 5.4 Axiom audit scope -LexLean's axiom audit is specifically an **axiom-dependency** audit. It reports the transitive axioms returned by Lean's `#print axioms`. It is not a general dependency graph, a source provenance proof, or an independent semantic interpretation of imported code. +LexLean's axiom audit is specifically an **axiom-dependency** audit. It reports the transitive axioms returned by Lean's `#print axioms`. It is not a general dependency graph, a source provenance proof, or an independent semantic interpretation of imported code. For an imported declaration (§5.3) it reports the set `#print axioms` returns for the imported constant itself (§18.8, §22.6), so that the axioms an import brings are recorded where they come from and not only where they surface in a generated declaration. --- @@ -595,6 +597,7 @@ Every dependency the shipped crate declares, for any target and of any kind but | Dependency | Role | | --- | --- | +| `blake3` | BLAKE3, the second digest of a DigestSet (§22.13) | | `camino` | UTF-8 path handling | | `clap` | CLI parsing | | `fs4` | file locking | @@ -759,10 +762,11 @@ The parsed project has one canonical TOML serialization used by `project_config_ 2. `lexicon_source` tables sorted by `package`, with keys in the order `package`, `kind`, then kind-specific fields; 3. language 1.2 only: `artifact_source` tables sorted by `sha256`, with keys in the order `sha256`, `path`, omitted entirely when there are none, so a project without artifacts keeps its bytes; 4. language 1.2 only: `source_package` tables sorted by `package`, with keys in the order `package`, `version`, `kind`, `path`, omitted entirely when there are none, so a project without source packages keeps its bytes; -5. `[limits]` with keys in the order shown; -6. optional `[pdf]` last, with keys in the order shown; -7. basic quoted strings, decimal integers, arrays with comma-space separators, LF line endings, and one final LF; -8. no comments, blank leading lines, or trailing spaces. +5. language 1.2 only: `lean_library` tables sorted by `name`, with keys in the order `name`, `url`, `revision`, omitted entirely when there are none, so a project without a Lean library keeps its bytes; +6. `[limits]` with keys in the order shown; +7. optional `[pdf]` last, with keys in the order shown; +8. basic quoted strings, decimal integers, arrays with comma-space separators, LF line endings, and one final LF; +9. no comments, blank leading lines, or trailing spaces. Input whitespace does not affect this canonical serialization. A project may be semantically valid before formatting, but `lexlean lock --check` and repository examples require canonical bytes. @@ -783,6 +787,7 @@ Input whitespace does not affect this canonical serialization. A project may be | `lexicon_source` | Unique by package and sorted by package identifier. | | `artifact_source` | Language 1.2 only (another language rejects the field, `LLC0101`): optional `[[artifact_source]]` tables `sha256 = "<64 lowercase hex>"`, `path = ""`, sorted by `sha256`, unique by digest and by path, never beneath the build root. Each names the content-addressed bytes of one model artifact (§17.12); `check`, `build`, `fmt`, and `verify` read the file, confined (§25.1), and require its SHA-256 to equal the configured digest (`LLR3007`). Artifacts are never fetched. | | `source_package` | Language 1.2 only (another language rejects the field, `LLC0101`): optional `[[source_package]]` tables `package = ""`, `version = ""`, `kind = "path"`, `path = ""`, sorted and unique by `package`, with `package` an identifier of the form of `name` and `version` a string of at most 64 ASCII letters, digits, `.`, `+`, and `-` that begins with a letter or digit. `path` is resolved from the workspace root, not the project's (§10.5); a kind other than `path` is `LLC0101`, and a path that is absolute or has a `..` segment escapes the workspace and is `LLS8001`. | +| `lean_library` | Language 1.2 only (another language rejects the field, `LLC0109`): optional `[[lean_library]]` tables `name = ""`, `url = ""`, `revision = "<40 lowercase hex>"`, sorted and unique by `name`. The URL is HTTPS, the revision an exact commit; a branch, a tag, any other field, or a malformed value is `LLC0109`. §10.4 gives the rest. | | `limits` | Every listed positive integer is required. There are no hidden compiler defaults. | #### Lexicon-source forms @@ -860,6 +865,17 @@ The project `lean-toolchain` MUST contain the exact toolchain string. `lexlean l If both Lake configuration forms exist, locking fails. Verification requires the recorded files to match and requires all manifest dependencies to be locally available. +**Lean libraries.** A language-1.2 project may declare an external Lean library, Mathlib being the case this exists for, once, in `lexlean.toml`: + +```toml +[[lean_library]] +name = "mathlib" +url = "https://github.com/leanprover-community/mathlib4" +revision = "520045ab14e26149ee970e2e617ca04b09bde5d6" +``` + +The rules are those of a `git` lexicon source (§10.1): HTTPS, an exact 40-lowercase-hex commit, no branch, tag, or other mutable reference. The Lake workspace must require the library at the same place: its `lake-manifest.json` has a `packages` entry of the same `name` whose `url` and `rev` equal the declaration, else `LLC0110` names both. The library is the package Lake puts at `/.lake/packages/`. It is *present* when that directory's `.git/HEAD` names the declared revision, it holds a `lake-manifest.json`, and its built artifacts directory `.lake/build/lib/lean` exists. Fetching is a separate, explicit command, `lexlean deps fetch` (§23.4), which runs `lake exe cache get` so that the library's `.olean` files are downloaded and never rebuilt; `lock`, `check`, `build`, `fmt`, and `verify` never fetch (I15, §11.4) and fail with `LLV7019` when a declared library is not present. The lock (§11.1) records the revision, the SHA-256 of the library's own `lake-manifest.json`, which pins its transitive dependencies, and the SHA-256 of its generated glossary, the tree digest (§11.5) of the project's lexicon package `lean.` or the digest of the empty tree when the project has none. The library and its built artifacts belong to the trusted computing base (§5.1); the lock pins the source revision and its manifest, not the bytes of the built artifacts, and LexLean never claims the library is proved by LexLean (§4.2). + ### 10.5 Source packages A language-1.2 project imports the modules of another project, a *source package*, without copying them. A source package is a project: its own `lexlean.toml` names its `module_prefix`, its `source_roots`, its language (1.2), and its own source packages, and `entrypoints` may name any of its modules, since a library has no distinguished one. Its modules keep its prefix: a module `Text` of a package whose prefix is `LexLeanStd` is the Lean module `LexLeanStd.Text` in every project that imports it. Nothing is fetched: a package is read from a directory of the workspace, `kind` is `path` and nothing else, and a package of any other kind is refused rather than treated as a later extension. @@ -945,6 +961,17 @@ manifest_sha256 = "..." imports = ["base@1.0.0"] ``` +Language 1.2 only, a project that declares Lean libraries (§10.4) has, after the `[[source_package]]` rows, one `[[lean_library]]` row per declared library, and a project that declares none has none: + +```toml +[[lean_library]] +name = "mathlib" +url = "https://github.com/leanprover-community/mathlib4" +revision = "520045ab14e26149ee970e2e617ca04b09bde5d6" +lake_manifest_sha256 = "..." +glossary_sha256 = "..." +``` + Language-1.2 model artifacts (§10.1, §17.12) have no lock rows: each is pinned by its `sha256` in `lexlean.toml`, whose canonical bytes the lock's project digest and the source ID cover, and every `check`, `build`, `fmt`, and @@ -955,6 +982,7 @@ digest and the source ID cover, and every `check`, `build`, `fmt`, and - `workspace_file` rows sort by `path`. - `package` rows sort by `(id, version)`. - `source_package` rows sort by `id`, and their `imports` by `id`. +- `lean_library` rows sort by `name`. - package `imports` sort lexicographically and contain no duplicates. - all keys use the order shown by the schema formatter. - lowercase hexadecimal is mandatory. @@ -973,6 +1001,7 @@ A source import names an exact package and exact version. Version ranges are not - verification fails if a locked package is absent or its digest differs; - an acquired Git package is stored at `/cache/git///` and is revalidated before use; - Git submodules, Git LFS indirection, and nested repositories are rejected. +- a declared Lean library (§10.4) is never acquired by `lock`, even with `--allow-network`: only `lexlean deps fetch` acquires it, and an absent library fails every other command with `LLV7019`. ### 11.5 Tree digest @@ -1464,6 +1493,73 @@ Loading a package MUST reject: - an eliminator descriptor that references absent constructors; - a package whose `language` differs from the project's (`LLC0103`). +### 13.12 Generated external-Lean glossaries + +`lexlean deps glossary` (§23.4) turns declarations of a Lean environment into a lexicon package whose every entry has `kind = "lean"`. No entry is written by hand. The package is ordinary (§13.1–§13.11): the loader checks it exactly as it checks a hand-written one, and §13.7 applies unchanged, so verification still probes every used entry against the real declaration. A generated entry says nothing about whether LexLean proved the declaration; its guarantees belong to the library it came from (§4.2, §5.3). + +**Request.** The selection is `--modules`, every declaration the named Lean modules define, or `--names`, the named declarations. Each requested declaration is *translated* (it has an entry), *refused* (it has none, with a registered code), or *excluded by kind* (it is not a candidate for an entry). The excluded kinds are: internal and private names, macro-scoped names, recursors, quotient primitives, matchers and other auxiliary recursors, `noConfusion`, instances, deprecated declarations, and the constants a core entry already denotes (`Eq`, `And`, `Or`, `Not`, `Iff`, `Exists`, written `core-entry`). + +**Signature.** The signature is the LSE translation of the declaration's Lean type: + +- `Prop` is `(sort prop)` and `Type u` is `(sort (type u))`, where a sort that is a successor level, or a maximum of successor levels, is a `Type`; any other sort (`Sort u`) is refused (`LLT4101`). +- A binder keeps its mode: default is `explicit`, implicit is `implicit`, instance-implicit is `instance`. A strict-implicit binder has no mode and is refused (`LLT4102`). +- An application keeps only the arguments for explicit binders of the function's type, as §17.6 reads an LSE application; Lean infers the rest when the entry is probed. A numeral `OfNat.ofNat _ n _` is `(nat n)`. +- Universe parameters become identifiers of the grammar of §13.8 and are declared, sorted, in `universes`; a constant's universe arguments are written in the order of its own Lean parameters. +- The annotations `outParam`, `semiOutParam`, `optParam`, and `autoParam` are erased from the type, because they are the identity on the type; the report counts the entries where that happened. +- `Eq`, `And`, `Or`, `Not`, `Iff`, and `Exists` are the entries `lexlean.core::eq`, `land`, `lor`, `lnot`, `iff`, and `exists-op`. The two with a universe (`Eq`, `Exists`) are Type-level entries; their application at `Sort 0` or at a level that is not a successor is refused (`LLT4104`). +- A primitive projection, a string literal, or any other expression form outside §13.8 is refused (`LLT4103`). +- A name outside the conservative grammar of §13.6 is refused (`LLT4105`). The grammar excludes the apostrophe, so `add_comm'` is refused. + +**Dependencies.** Every constant a signature mentions needs an entry in the package. The generator therefore translates the closure of the requested declarations, and the types, classes, functions, and constructors it adds are *support entries*, which the report counts separately from the request. A declaration that mentions a refused, excluded, or absent one is refused with `LLT4106`, and the report names the root declaration and the root reason; the refusal is transitive. An entry that fails the entry validation or the conservative signature check of §13.7 is refused with `LLT4107`, and so is everything that mentions it. A refusal never weakens a signature to make the entry fit. + +**Categories.** The category follows the shape of the type, after its leading binders: a proof of a proposition is `proof-constant`; a type former is `type-noun` without explicit arguments and `function` with them; a proposition former is `predicate-constant` without explicit arguments, `adjective-predicate` with one, `transitive-predicate` with two (when its words are letters only, otherwise `function`), and `function` with more; anything else is `term-constant` without explicit arguments and `function` with them. The frame is the one §13.3 fixes, and `surface_arity` is the number of explicit binders of the signature's outer `pi`. + +**Naming.** A Lean name is cut into components at `.`, and each component into words: at `_`, before a capital that follows a lowercase letter or digit, and before the last capital of a capital run that a lowercase letter follows; a prime is the word `prime`; digits stay with the word they follow. Words are lowercase. + +- The entry ID has one segment per component, its words joined by `-` (`x` is prefixed to a segment that would start with a digit), segments joined by `.`: `Nat.add_comm` is `nat.add-comm`, stored at `entries/nat/add-comm.toml`. Two names that give one ID both take the suffix `-` and the first six hexadecimal digits of the SHA-256 of the Lean name (longer if that collides). +- The canonical surface is one math form: the words of all components in lower camel case, `natAddComm`, and its render is `(operator-name natAddComm)` for no explicit argument and `(seq (operator-name natAddComm) (paren (seq (slot 0) (token comma) (space) (slot 1))))` in general. Surfaces are not unique across entries; a shared surface is resolved by §14.4 or selected with `\lexeme`, and the report counts entries that share one. +- An `adjective-predicate` or `transitive-predicate` has instead one text form: the words of the last component, with a leading `is` dropped when other words remain (`Nat.Prime` is `prime`, `IsUnit` is `unit`), with the feature `lower-case`. + +**Eliminators.** An inductive type that is neither mutual nor nested carries an eliminator descriptor (§16.11): `cases_lean_name` and `induction_lean_name` are the custom `@[cases_eliminator]` and `@[induction_eliminator]` of the type when it has them (`Nat.casesAuxOn`, `Nat.recAux`) and `T.casesOn` and `T.rec` otherwise; each constructor row names the constructor's entry, its fields (the constructor's binder names after the parameters, made identifiers and unique) and its induction hypotheses (`ih` for each field whose type is the inductive type). If a constructor has no entry, or a binder name cannot be made valid, the type has an entry without a descriptor, and the report counts that. + +**Output.** The package is `lexicon.toml` (importing `lexlean.core` at the language's version) and `entries/`. The same Lean environment and request give byte-identical files and a byte-identical report; no time, path, or host reaches either. The coverage report (`lexlean/glossary-report/1`) counts requested declarations as `translated`, `refused` (by reason, and for dependency refusals by root reason), and `excluded` (by kind), with `requested = translated + refused + excluded`. + +### 13.13 Specialisation wrappers + +A class-polymorphic Lean declaration, such as `Std.Commutative.comm` over any `α` with an instance, is not an interface a glossary entry can denote: its signature has instance binders that LSE entries do not state. A *specialisation* instantiates it at a concrete type and is written as a declaration of the project's host Lean library, which an entry then denotes (§13.6). The emitter takes a *specialisation request* and writes the host module's declarations. It is the Rust function `lexlean::wrappers::emit` over `lexlean::wrappers::parse_request`, and it runs no Lean; `cargo xtask emit-wrappers ` writes the module and prints one tab-separated line per wrapper (Lean name, declaration, tag, line). + +A request is a TOML file: + +```toml +spec = "lexlean/wrappers/1" +imports = ["Init", "Std"] + +[[wrapper]] +declaration = "Std.Commutative.comm" +kind = "theorem" +tag = "Nat" +arguments = ["Nat", "(@HAdd.hAdd Nat Nat Nat _)", "_"] +``` + +`imports` are the Lean modules the host module imports; each is a conservative ASCII Lean module name, and the list is sorted and unique. `declaration` is a conservative ASCII Lean name. `kind` is `theorem` or `def`. `tag` is an ASCII identifier. `arguments` are the explicit arguments of `@declaration`, in order, each a *term* of the grammar + +```ebnf +term = "_" | name | "@" name | decimal | "(" term {term} ")" ; +name = identifier {"." identifier} ; +``` + +and nothing else: no tactic, no `by`, no `fun`, no string, no type ascription and no comment. A request is refused with `LLT4018` when it has any other field, a duplicate `declaration` and `tag` pair, a name outside the grammar, an argument outside the term grammar, or no wrapper. + +For each wrapper the emitter writes, in the order of the wrapper's Lean name, exactly one declaration + +```lean +public theorem LexLeanSpec.. : type_of% (@ ) := @ +``` + +(`def` for the kind `def`), after the header `module`, one `public import` per import, and `set_option autoImplicit false`. Every name in a declaration, the declaration and the names in the arguments, is written with the prefix `_root_.`, so that no wrapper declared earlier in the reserved root can capture a name of a later one. The wrapper's type is therefore whatever Lean elaborates for the application, instances found by instance resolution at the holes, and its value is that application: a term, never a tactic block, and it adds no axiom beyond those of the declaration it applies. The emitter also returns, for each wrapper, the Lean name and the `[denotation]` table an entry that denotes it carries. Two runs on one request write the same bytes. + +The root `LexLeanSpec` is reserved for wrappers. An entry's LSE signature is not produced by the emitter: whoever writes the entry (by hand or by a generator) states it, and verification decides whether it is the wrapper's type (§18.8). The host library is built with `lake build` before verification, as any library the entries denote is; verification never builds it. + --- ## 14. Lexical resolution @@ -8229,7 +8325,13 @@ LexLeanProbe.P For every used external Lean entry, sorted by qualified entry ID, it emits an `example` whose declared type is the entry's linked signature and whose value is the external Lean constant. Universe variables are alpha-renamed with an entry-index prefix. -The probe establishes only that the external constant can inhabit the declared interface in the pinned environment. It is not included in the canonical document, module API, or axiom-policy results. +An entry whose Lean name is under the reserved root `LexLeanSpec` (§13.13) is a specialisation wrapper, and its line is stronger: `example : () = (type_of% @) := rfl`, so that the linked signature is definitionally the Lean type of the wrapper, binder for binder with its implicit and instance binders, and not merely a type the wrapper can inhabit after Lean inserts implicit arguments. A failing line of this kind is `LLT4017` and names the entry and Lean's message, unless Lean reports the constant unknown, which is `LLT4003`. A failing line of any other entry is `LLT4003`. + +A signature is written as Lean's `unusedVariables` linter reads it, because a warning fails verification (§20.2): an instance binder that no later binder or the result mentions is written without a name, and a numeral argument is ascribed the type its callee declares for it only when that type is closed in the scope of the call, the callee's own binders renamed apart from the caller's locals. + +The probe establishes only that the external constant can inhabit the declared interface in the pinned environment. Its `example` lines are not included in the canonical document, module API, or axiom-policy results. + +After its examples the probe module prints `#print axioms ` for every distinct Lean name of a used external entry whose Lean module is outside `Init`, `Std`, `Lean`, `Lake`, and the runtime root `LexLeanRuntime` (§17.12), in sorted name order, and prints none when there is no such entry. The output is parsed as §22.5 parses it, except that an axiom name may end in the one hygiene mark Lean prints after a name it generated itself and may hold numeric components, as the name of a private declaration does: the axiom that `native_decide` creates for each use is named `._native.native_decide.ax__`, printed under `_private..0` for a private declaration. The observed sets are recorded and enforced as §22.6 states. A preexisting module with the reserved probe name is an environment conflict and causes verification to fail. Before any compilation, LexLean also rejects a preexisting workspace/search-path module whose full name equals any generated document module. @@ -8887,6 +8989,8 @@ The attestation records policy, allowed set, observed set, and result for every An imported theorem's axioms are not exempt because the theorem is upstream. If they flow into a generated declaration, the generated declaration's policy must permit them. +**Imported declarations.** The observed set of each imported declaration (§5.3, §18.8) is recorded in the attestation under `imports`: one row per used entry, in qualified entry order, holding the entry, the Lean module, the Lean name, the observed set, and the status of §5.3. The member is present exactly when there is an imported declaration. Before any elaboration, an import whose observed set holds `sorryAx`, `Lean.ofReduceBool`, `Lean.trustCompiler`, or an axiom that `native_decide` generated is refused unless an `allow` or `exact` policy of some declaration of the document names that axiom: `sorryAx` is `LLV7023`, `Lean.ofReduceBool` is `LLV7024`, and `Lean.trustCompiler` and the axioms of `native_decide` are `LLV7025`. `Lean.ofReduceBool` rests on `Lean.trustCompiler`, so a policy that accepts the first names the second too. A policy cannot spell the axiom of `native_decide`, whose printed name ends in a hygiene mark, so an import that carries it is always refused. The refusal is of the import and at the granularity of the document: a policy that names the axiom lets the import through, and each generated declaration that depends on it is then held to its own policy as above (`LLV7005`). Every other axiom of an import, the three of §5.4 among them, is judged only by the policies of the generated declarations that depend on it. + A language-1.2 model declaration (§17.12) is audited through the Lean declarations it generates: its elaborated definitions and theorems, its cross-checks, and its artifacts' `.bytes` and `.decoded` declarations. Each @@ -8977,6 +9081,7 @@ The body records: - every process record; - generated `.olean` hashes; - axiom policies and observed sets; +- the observed axioms and status of each imported declaration (§22.6), as `imports`, when there is one; - the canonical compiler input's byte length and SHA-256, when a production root exists; - `preservation.json`'s byte length and SHA-256, when a production root exists; - optional PDF process and bytes; @@ -9204,6 +9309,24 @@ Wall time, resident-set and swap measurements, scheduling and completion order, Telemetry is write-only: no stage reads it, no ID or verified artifact contains any of it, and a failure to write it changes no result. Every key it uses is in a closed vocabulary (`wall_ms`, `started_unix_ms`, `peak_rss_kib`, `peak_swap_kib`, `mem_total_kib`, `mem_available_kib`, `swap_total_kib`, `swap_used_kib`, `host_cpus`, `process_width`, `completion_seq`), and a JSON key of that vocabulary anywhere in a verified directory fails the gate: `cargo xtask verify-examples` checks every example's verified directory for one. +### 22.13 Replay cache + +A replay cache lets a caller that names a store directory skip replaying a unit it has already replayed. A *unit* is one declaration or one module; the cache is indifferent to which, and a unit is the set of declaration keys it covers. `lexlean verify` of a project reads and writes no replay cache, and neither does any gate of §9.2 or §9.4: the cache is an opt-in performance device of a caller that names a directory, and §10.5's absence of a cache of a built package is unchanged. + +**DigestSet.** Every digest of the cache is a PrismPM ADR-015 DigestSet: the object `{"blake3": H, "sha256": S}`, both lowercase hexadecimal of 64 characters, both computed over the same byte string; `blake3` is BLAKE3 in default hash mode with 256-bit output. No other member is allowed and no other spelling of a member is read. Its label is `blake3:` followed by the 64 digits of `H`. + +**The canonical declaration.** One function writes the canonical bytes of a declaration from its facts: a sequence of fields, each a tag, a space, the decimal byte length of the payload, a colon, the payload, and a line feed. The fields are, in order, the format tag `lexlean/replay-declaration/1`, the name, the universe parameters in order, the kind attributes, the type, and either `none` or the DigestSet of the value or proof term. Names, types and values are the texts the Lean exporter of §22.13 writes: a name keeps its structure, and a term is the alpha-equivalence class of the kernel term, written as a node table in which a shared subterm is one node, with no binder name, binder annotation, or metadata. The module that declares a constant is not part of its canonical bytes, so that moving a declaration changes no key. + +**Keys.** A declaration's key is the DigestSet of a frame of the format tag `lexlean/replay-key/1`, the Lean toolchain string, the Mathlib revision, the canonical declaration, the group digest, and the sorted, de-duplicated keys of the declarations it names outside its group, each written with both digests. Declarations that name one another, an inductive type with its constructors and recursor, are one group; the group digest is the DigestSet of the canonical bytes of the members in name order, and a declaration that is alone is a group of one. A key therefore covers the declaration and, through the keys it contains, everything it reaches (a Merkle DAG): a change to a declaration changes the key of every declaration above it and of none other. A name that the facts neither declare nor anchor by a given key is `LLV7022`, as is a repeated declaration and a line of facts that does not parse. A unit's key is the DigestSet of a frame of the format tag `lexlean/replay-unit/1`, the granularity (`declaration` or `module`), and the sorted keys of its members. + +**The entry.** The store directory holds one canonical JSON file (§21.7) per recorded unit at `entries//.json`, written to a temporary file in the same directory and renamed. Its members are `spec` (`lexlean/replay-cache-entry/1`), `key`, `unit` (`granularity` and `label`), `environment` (`toolchain` and `mathlib_revision`), `executable` (`tool` and the `digest` DigestSet of the executable that produced the result), `result` (`exit_code` zero, `stdout`, `stderr`), and `entry_digest`, the DigestSet of the canonical string of the entry without that member. Only a replay that exited zero is recorded. + +**Reuse and refusal.** A lookup finds the entry by the unit's key. No file is a miss. A file whose bytes do not parse as an entry, whose `entry_digest` is not the digest of its other members, whose recorded `key` is not the key it was looked up under, or whose `environment` differs from the caller's, is `LLV7021` and is neither reused nor replaced. An entry that names an executable other than the current one is a miss: its result is not reused, and the replay that follows overwrites it. A changed toolchain or Mathlib revision changes every key, so nothing recorded under the previous environment is found, and its entries are left intact. + +**Trust.** The cache is an untrusted input (§5.2). `entry_digest` detects a change of an entry's bytes and a mismatch with its key; it is not an authentication, since whoever can write the store can recompute it. A result reused from the cache is evidence that the unit was replayed once, by the executable the entry names, in the environment its key covers; it is not evidence of a replay by this run. + +**Facts.** The pinned Lean exports the facts of a compiled module with the program `replay_facts.lean` that the compiler embeds, run as `lean --run` through `lake env` under the child policy of §25.4: one JSON object per line, for each constant the module declares and each constant those declarations reach, with `name`, `module`, `level_params`, `attrs`, `type`, `value` (a string or `null`), and `deps`. The output is untrusted and is read under the bounds of §25.5. + --- ## 23. Command-line interface @@ -9340,6 +9463,14 @@ lexlean explain Prints the generated `ERRORS.md` entry for one registered code. Unknown codes exit as CLI misuse. +#### `deps` + +```text +lexlean deps fetch +``` + +Acquires the Lean libraries the project declares (§10.4) and nothing else. It checks each declaration against the Lake workspace, runs `lake exe cache get` in the Lake workspace under the pinned toolchain, with the network the cache download needs, and confirms the library is then present at the declared revision. With no library declared it succeeds and fetches nothing. It writes no file outside the Lake workspace, and it is the only command that fetches a Lean library (I15, §11.4). A missing or failing `lake` and a library that is not present afterward are `LLV7020`. + #### `production` ```text @@ -9350,8 +9481,22 @@ lexlean production verify-artifact The production export contract of §24.7. `targets` prints the canonical `lexlean/target-descriptors/1` document in either output mode; like `--version` it is not a project command and emits no command-result object. `build` reads a `lexlean/production-request/1` file, verifies the project by §22, and publishes the bundle; its command result names the bundle directory and the source, semantic, build, and attestation IDs. `verify-artifact` replays a bundle and needs no project. Both report failures through the command result with the exit code of their registered class. +#### `deps glossary` + +```text +lexlean deps glossary --package [--version ] [--language ] + (--modules ... | --names ...) + [--workspace ] --out [--report ] [--strict] +``` + +Generates a lexicon package of `kind = "lean"` entries from Lean declarations (§13.12). It is not a project command: like `init` and `production verify-artifact` it needs no project, and it never fetches or builds (I15). It runs the pinned toolchain's Lean over the modules and declarations named, through the child policy of §25.4, as `lake env lean --run` inside `--workspace` (a Lake workspace whose libraries are already built) or as `lean --run` over the toolchain's own libraries without one. `--modules` and `--names` are mutually exclusive and one is required (`LLC0002`), a name or module that repeats is `LLC0002`, and a malformed package ID, version, language, module, declaration, or output directory is `LLC0001`. `--version` defaults to `1.0.0` and `--language` to `1.0`. `--out` is absent or an empty directory and the package appears in it in one rename; `--report` names a file that is absent. + +Refusals are reported, not failed: the command exits `0` with the package for the declarations that translate and the coverage table on stdout. With `--strict` any refusal of a requested declaration fails the command, with one diagnostic per refusal carrying its registered code (`LLT4101`–`LLT4107`), and nothing is written. The toolchain, the extractor, and the limits fail as `LLV7001`, `LLV7002`, and `LLS8002`. + ### 23.5 Formatting +Canonical source formatting runs in a scratch copy of the project that carries, for each declared Lean library (§10.4), the library's presence markers and not the library, so `fmt` of a project that declares a library is not a fetch and does not copy it. + Canonical source formatting: - NFC and LF; @@ -9799,6 +9944,8 @@ The initial registry MUST include at least these exact codes and meanings: | `LLC0106` | Source package undeclared, or declared with two sources (§10.5). | | `LLC0107` | Module prefix claimed by two sources (§10.5). | | `LLC0108` | Source package outside the workspace rule (§10.5). | +| `LLC0109` | Lean library declaration invalid (§10.4). | +| `LLC0110` | Lean library is not the library the lock pins (§10.4). | | `LLC0201` | Production request malformed (§24.7). | | `LLC0202` | Requested root is not a production root (§24.7). | | `LLC0203` | Unknown or mismatched production target (§24.7). | @@ -9838,6 +9985,15 @@ The initial registry MUST include at least these exact codes and meanings: | `LLT4014` | Tooling authority registry invalid (§17.20). | | `LLT4015` | Tooling term ill-typed or unlicensed (§17.20). | | `LLT4016` | Unbounded or unspecified text generation (§17.12). | +| `LLT4017` | External specialisation signature is not the type of the wrapper (§18.8). | +| `LLT4018` | Specialisation request refused (§13.13). | +| `LLT4101` | Lean declaration uses a sort LSE cannot express (§13.12). | +| `LLT4102` | Lean declaration uses a binder LSE cannot express (§13.12). | +| `LLT4103` | Lean declaration uses an expression form LSE cannot express (§13.12). | +| `LLT4104` | Core constant at a level the core entry does not cover (§13.12). | +| `LLT4105` | Lean name outside the conservative grammar (§13.12). | +| `LLT4106` | Lean declaration depends on a declaration without an entry (§13.12). | +| `LLT4107` | Generated entry rejected by the entry and signature checks (§13.12). | | `LLF5001` | Invalid definition form, self head, or recursion. | | `LLF5002` | Invalid proof step for the current goal. | | `LLF5003` | Missing, duplicate, or malformed proof branch. | @@ -9865,6 +10021,13 @@ The initial registry MUST include at least these exact codes and meanings: | `LLV7016` | Certificate E rejected (§17.17). | | `LLV7017` | Invalid verification resource profile (§22.11). | | `LLV7018` | Child start refused after the host ended the live children (§24.6). | +| `LLV7019` | Lean library not fetched (§10.4). | +| `LLV7020` | Lean library fetch failed (§10.4). | +| `LLV7021` | Replay cache entry rejected (§22.13). | +| `LLV7022` | Replay facts refused (§22.13). | +| `LLV7023` | Imported declaration depends on `sorryAx` and no policy names it (§22.6). | +| `LLV7024` | Imported declaration depends on `Lean.ofReduceBool` and no policy names it (§22.6). | +| `LLV7025` | Imported declaration depends on `Lean.trustCompiler` or on a `native_decide` axiom and no policy names it (§22.6). | | `LLV7101` | Certificate evidence does not certify the root (§24.7). | | `LLV7102` | Production artifact replay rejected (§24.7). | | `LLS8001` | Path escape, symlink, special file, or filesystem identity conflict. | @@ -10295,6 +10458,8 @@ Tests MUST establish that LexLean rejects, at minimum: ### 28.6 Example verification +A project that needs a Lean library fetched with `lexlean deps fetch` (§10.4, §23.4) is a *demo*, not an example. It lives under `demos/`, no directory under `examples/` declares a `[[lean_library]]`, and the default gates therefore need no network and no library. `cargo xtask verify-demos [--write]` gives every directory under `demos/` the gate of an example below (`fmt --check`, `lock --check`, `check`, `build`, `verify`, its `expected/verify` records), compares the published build with `expected/build`, and builds it twice to the same bytes. It runs in `.github/workflows/mathlib.yml`, a workflow of its own that fetches the library in a clean checkout, uses no build cache, and is not part of the acceptance gate of §9.4: a demo's evidence is that workflow's run, and no document says the gate verified it. + Every directory under `examples/` is discovered rather than listed. Each example MUST include its lock and expected platform-independent build outputs. `cargo xtask verify-examples` runs `fmt --check`, `lock --check`, `check`, `build`, and `verify`. The `compiler/` project (§17.14, §17.15) and the `stdlib/` project (§17.22) pass the same gates as an example. --- @@ -10621,6 +10786,9 @@ Every row below is normative, has honesty level `build`, and MUST be copied byte | `GL-16` | `lexicon` | Package and entry bytes participate in lock and semantic closure hashes exactly as specified. | §11, §21 | | `GL-17` | `lexicon` | Language 1.2 resolves the exact 1.2 builtin package closure and enforces 1.2 lexicon semantics. | §13.1, §13.11 | | `GL-18` | `lexicon` | Cross-version package, lexicon, and lock combinations fail closed before backend execution. | §10.1, §13.11 | +| `GL-19` | `lexicon` | A generated external-Lean glossary is a lexicon package of kind-lean entries that the package loader accepts: each signature is the LSE translation of the Lean type with implicit and instance binders kept as binders and left out of applications, each identifier, surface, category, and render follows the documented naming scheme, an inductive type carries an eliminator descriptor over its constructor entries, and two runs over one extraction produce byte-identical packages and reports. | §13.12 | +| `GL-20` | `lexicon` | A Lean declaration the translation cannot express is refused with the registered diagnostic code of its reason and never emitted with a weakened signature, a declaration that depends on a refused one is refused with the root reason, and the coverage report counts requested declarations as translated, refused by reason, and excluded by kind, with counts that sum to the request. | §13.12, §26.3 | +| `GL-21` | `lexicon` | A specialisation request names a class-polymorphic Lean declaration, its kind (`theorem` or `def`), a tag, and the arguments of its application at a concrete type, each a closed term of identifiers, numerals, holes, and applications; the wrapper emitter writes one `public` declaration for each under the reserved root `LexLeanSpec`, whose type is `type_of%` the application and whose value is the application, with every constant `_root_`-qualified and no tactic and no axiom, in sorted order and byte for byte the same on every run, and a request with a duplicate tag, a name outside the conservative grammar, or an argument outside the term grammar is refused with LLT4018. | §13.13 | | `GR-01` | `grammar` | A source module parses only under the exact structural grammar and environment set. | §15.1, §15.2 | | `GR-02` | `grammar` | Glossary imports, module imports, title, and blocks obey exact header order and cardinality. | §15.1 | | `GR-03` | `grammar` | Sections nest within the configured scope limit and section parameters introduce explicit inherited context. | §15.1, §15.4 | @@ -10775,6 +10943,10 @@ Every row below is normative, has honesty level `build`, and MUST be copied byte | `VR-21` | `verification` | A multi-module project whose imports form nontrivial frontiers verifies at width 1 and at a larger width to byte-identical verified directories and the same attestation identity, observed axiom sets, and policy rows, and no completion order orders a record or changes which failure is reported. | §22.3, §22.4, §22.11 | | `VR-22` | `verification` | Performance telemetry is written only to the CI evidence directory the environment names, a verification with telemetry on publishes byte-identical artifacts to one without, and telemetry planted in a verified artifact fails the gate. | §22.12 | | `VR-23` | `verification` | A project verified as the parts of one run, each shard running the processes its plan names with the oleans of the shards it needs and the join reading every shard's records, publishes a verified directory byte-identical to the whole verification's with the same attestation identity, and a shard whose plan leaves a module without its imports, a join missing a record, or a join reading a record of an executable other than its own, is refused. | §9.4, §22.11 | +| `VR-24` | `verification` | An external entry whose Lean name is under the reserved root `LexLeanSpec` is probed by `example : () = (type_of% @) := rfl`, so that its linked signature is definitionally the Lean type of the wrapper and not merely inhabited by it; an entry whose signature differs from that type is refused with LLT4017 naming the entry, a wrapper that does not exist stays LLT4003, and an entry outside the reserved root is probed exactly as before. | §18.8 | +| `VR-27` | `verification` | The external-interface probe writes an instance binder that no later binder or the result mentions without a name, so that pinned Lean's unused-variable linter has nothing to report for an entry such as `HXor.hXor`, and ascribes the type a callee declares to a numeral argument only when that type is closed in the caller's scope, with the callee's own binders renamed apart, so that a caller binder named like a callee binder (`a`, the type parameter of `Eq`) is never taken for it; a generated entry with an instance binder and a numeral argument elaborates without output. | §18.8 | +| `VR-25` | `verification` | A used external entry whose Lean module is outside the pinned toolchain's own libraries `Init`, `Std`, `Lean` and `Lake` is an imported declaration: the probe module prints its axioms with `#print axioms`, the attestation records its observed set, and an import that depends on `sorryAx` is refused with LLV7023, on `Lean.ofReduceBool` with LLV7024, and on `Lean.trustCompiler` or on an axiom that `native_decide` generated with LLV7025, each naming the entry, unless an axiom policy of the document names that axiom, in which case the import is accepted and every generated declaration is still held to its own policy. | §5.3, §5.4, §18.8, §22.6 | +| `VR-26` | `verification` | The status of an imported declaration in the attestation is `replayed in the pinned environment`, and no output about an import says `proved`, `verified` or `kernel-checked`, words that §5.3 reserves for the generated declarations of the document and that §4.2 forbids for an imported library. | §4.2, §5.3 | | `CL-01` | `cli-api` | Global options and upward project discovery obey the exact CLI contract. | §23.1, §23.2 | | `CL-02` | `cli-api` | Init creates the complete canonical skeleton only in an absent or empty destination and never overwrites. | §23.4 | | `CL-03` | `cli-api` | Lock check, local update, and explicit network acquisition obey their exact mutually exclusive behavior. | §23.4 | @@ -10799,6 +10971,7 @@ Every row below is normative, has honesty level `build`, and MUST be copied byte | `CL-22` | `cli-api` | A host that embeds the library ends every child process group the library started and has not seen exit through the public function `lexlean::verify::end_live_children`, which installs no signal handler, alters no signal disposition, never signals the host's own process or group, reports each group as ended, already gone, or failing with the OS error, and refuses a later child start with LLV7018 until the host re-enables it, and the `lexlean` executable ends its interrupted children through the same function. | §17.17, §24.6 | | `CL-23` | `cli-api` | lexlean production targets prints the canonical target-descriptor document in either output mode, production build --request publishes the bundle its request names and reports the bundle and the project's source, semantic, build, and attestation IDs in its command result, production verify-artifact replays a bundle with no project, and each maps a malformed request, a refused request, and a rejected replay to the exact exit code of its registered class. | §24.7 | | `CL-24` | `cli-api` | lexlean migrate --to 1.2 migrates a language-1.1 data-form project to language 1.2 in one command: it rewrites every module to the authoring notation through lexlean::sdk::to_notation with the same declarations, names, statements, and axiom policies, moves the builtin glossary references of every source and the imports of every path lexicon package to 1.2.0, rewrites the language row, and regenerates the lock as lexlean/lock/2, so the result checks, has a current lock, and is canonical; --check proves the migration and writes nothing; and a project that is not language 1.1 is refused with LLC0103 and a module that is not a language-1.1 data-form semantic module, a data form that is not canonical JSON included, with LLP2003, each leaving every file of the project unchanged. | §17.12, §23.4 | +| `CL-25` | `cli-api` | lexlean deps glossary runs the pinned Lean over the requested modules or declarations and writes a lexicon package of kind-lean entries and a coverage report, takes exactly one of --modules and --names and a valid package identity, needs no project, refuses an empty or doubled selection with LLC0002 and malformed usage with LLC0001, and under --strict exits with the registered class of the first refusal. | §13.12, §23.4 | | `SE-01` | `security` | Source, package, workspace, resource, and output paths are confined and symlinks are rejected. | §25.1 | | `SE-02` | `security` | Special files, duplicate filesystem identities, and case-fold collisions are rejected before processing. | §25.1 | | `SE-03` | `security` | All child processes use direct executable and argv invocation with no shell. | §25.2 | @@ -10820,6 +10993,7 @@ Every row below is normative, has honesty level `build`, and MUST be copied byte | `EX-07` | `examples` | The negative fixture suite covers every required rejection class and prescribed diagnostic family. | §28.5 | | `EX-08` | `examples` | Every example directory is discovered automatically and must satisfy the full example gate. | §28.6 | | `EX-09` | `examples` | The `helpdesk` example is a text application written entirely from language-1.2 source and the three source packages `std`, `std-models`, and `std-reasoning` that its lock pins: its production roots `classify`, `plan`, and `dispatch : Bytes -> Bytes` use the model alone, the reasoner alone, and both together, `dispatch` trimming the request with `LexLeanStd.Text`, scoring it with an integer feed-forward model whose weights are content-addressed artifacts and which is applied through its required precondition check, abstaining with `decideOr`, committing through the generic `GateModel` of `std-models`, and planning the reply with the `Drain` reasoner of `std-reasoning`; the example holds no handwritten Lean or Rust, verifies under the pinned Lean, its roots export through `lexlean production build` with the packages committed under `tests/production-export/helpdesk/`, and a changed byte or version of a package is `LLC0105`, an import of a module of an undeclared package `LLR3009`, a tampered artifact `LLR3007`, and a model applied without its required check `LLT4008`. | §10.5, §17.22, §24.7, §28.6 | +| `EX-10` | `examples` | A project that needs a fetched Lean library is a demo, not an example: it lives under `demos/` and no directory under `examples/` declares a `[[lean_library]]`, so that the sweeps of `examples/` (`verify-examples`, `check-golden`, `check-reproducibility`, the formatter property test) need no network and no library; `cargo xtask verify-demos` formats, locks, checks, builds, and verifies every demo against its `expected/` records and golden build, and builds it twice to the same bytes, and `.github/workflows/mathlib.yml` runs it after `lexlean deps fetch` in a job of its own, outside the acceptance gate, with no build cache. | §28.6, §9.4 | | `PD-01` | `production` | The closed production registry fixes the language-1.2 targets, effects, and the disposition of every semantic construct kind, and every construct the eligibility analysis can classify has exactly one registry row. | §17.13 | | `PD-02` | `production` | Formal-only theorems, propositions, and non-executable definitions coexist with eligible executable production roots, and a module that declares no production root is never analysed for production. | §17.13 | | `PD-03` | `production` | A production root's runtime closure contains exactly its transitive computational dependencies across modules at their type instantiations, and its termination evidence is recorded as erased and never realized. | §17.13 | @@ -11012,8 +11186,19 @@ Every row below is normative, has honesty level `build`, and MUST be copied byte | `LM-08` | `language-models` | Text components compose and adapt through the model constructs alone, and no new declaration kind exists for it: a stateful model whose state is a context window's `list uint32`, whose step is the window's `push`, and whose contract's postcondition states that the pushed context fits composes under `scan` with its `satisfies_contract` evidence proved by the window's generated `push_bounded`, and an adapter is a model over `string` whose realization applies the elaborated `classify` of a classifier or `generate` of a generator, with `satisfies_contract` evidence proved from the generated laws of that classifier or generator; the closed list of language-1.2 declaration kinds is unchanged by it, an adapter whose realization does not meet its contract fails verification, and an adapter that applies a declaration of another kind is refused (`LLT4006`). | §17.12 | | `LM-09` | `language-models` | No prompt is code: no member of the closed language maps `string` or `bytes` to a function, a term, or source — every operation of the primitive registry that takes a `string` or `bytes` operand is classified by the audit with a data result, the registry's schema enumeration and the production registry's primitive rows equal one another and equal that classified set, and the text declarations of `lexlean/semantic-module/2` state no `string`-typed member, so a prompt reaches a model only as the tokens `encodeText` makes of it; a planted operation or text member of that shape is caught by the audit with its name. | §17.12 | | `LM-13` | `language-models` | The text laws a tokenizer elaborates through are LexLean source and not authored text: the module that states them is one language-1.2 native core module of the embedded `language/text-1.2` project, the project holds no file of Lean source, no independently authored Lean file anywhere in the release tree declares the `LexLeanText` namespace or lies under its module root, and the one-time migration input is absent; the registry lists only that module, the declarations and their exact axiom policies are read from its native data, which the compiler embeds and hashes into the language-1.2 semantics, and a module that declares a text component imports the generated module rather than splicing any Lean text. | §17.10, §17.12 | - -**Total required capability IDs:** 457. +| `ML-01` | `mathlib` | A language-1.2 project declares an external Lean library once, as a `[[lean_library]]` table of its `lexlean.toml` with a `name`, an HTTPS `url`, and an exact 40-lowercase-hex `revision`, sorted and unique by `name`, and the configuration reads back to the bytes written; a project without one keeps its bytes, and a URL that is not HTTPS, a revision that is not a 40-lowercase-hex commit, a branch, a tag, or any other field, a name that is not a package identifier, a repeated or unsorted table, and a declaration in another language are each refused with LLC0109. | §10.1, §10.4 | +| `ML-02` | `mathlib` | The lock pins each declared Lean library by a `[[lean_library]]` row of its name, URL, exact revision, the SHA-256 of the library's own `lake-manifest.json`, and the SHA-256 of its generated glossary, the tree digest of the lexicon package `lean.` of the project or of the empty tree when the project has none; the Lake workspace's `lake-manifest.json` must require the library at the declared URL and revision, rows sort by name, and the lock reads back to the bytes written; a project without a library keeps its lock bytes, and a library, a manifest digest, a glossary, or a workspace requirement that is not the one the lock pins is refused with LLC0110 naming both values. | §10.4, §11.1, §11.2 | +| `ML-03` | `mathlib` | `lexlean deps fetch` is the only command that acquires a declared Lean library: it checks the declaration against the Lake workspace, runs `lake exe cache get` in the Lake workspace under the pinned toolchain through the checked child runner, and confirms the library is present at the declared revision with its built artifacts; with no library declared it fetches nothing and succeeds, a missing or failing `lake` and a library that is not at the declared revision afterward are LLV7020, and the command writes nothing of the project outside the Lake workspace. | §10.4, §11.4, §23.4 | +| `ML-04` | `mathlib` | `lock`, `check`, `build`, `fmt`, and `verify` never fetch a declared Lean library: when the library is not present in the Lake workspace at the declared revision with its built artifacts, each fails offline with LLV7019 naming the library and `lexlean deps fetch`, before any Lean process runs and without a network connection. | §10.4, §11.4 | +| `ML-05` | `mathlib` | `fmt` rewrites the sources of a project that declares a Lean library: the scratch copy in which the formatter proves preservation of the linked IR holds the library's presence markers (the checkout's `HEAD`, its manifest, and the directory of built artifacts) and not the library, so a present library is recognised without being copied and an absent one is still LLV7019. | §23.5, §10.4 | +| `RC-01` | `replay-cache` | A replay key is a PrismPM ADR-015 DigestSet, a `sha256` and a `blake3` of the same bytes in lowercase hexadecimal, labelled `blake3:` and the 64 digits of the `blake3` value, over the one canonical serialisation of a declaration's name, universe parameters, kind attributes and type, the DigestSet of its value or proof term, the keys of the declarations it names, the Lean toolchain, and the Mathlib revision; equal inputs give equal keys, and a change to any one of those inputs gives a different key. | §22.13 | +| `RC-02` | `replay-cache` | A declaration changed in a dependency graph changes the key of every declaration above it and of none beside or below it, declarations that name one another, an inductive type with its constructors and recursor, are keyed as one group, and facts that repeat a declaration, name a declaration neither declared nor anchored by a given key, or do not parse are refused (`LLV7022`). | §22.13 | +| `RC-03` | `replay-cache` | A warm replay reuses the recorded result of every unit whose key is unchanged and replays only the others, whether a unit is one declaration or one module; only a replay that succeeded is recorded, each entry names the digest of the executable that produced it, and an entry that an executable other than the current one produced is not reused. | §22.13 | +| `RC-04` | `replay-cache` | A cache entry whose bytes changed while its key was kept, an entry stored under a key other than the one it records, and an entry that does not parse as an entry, are each rejected with `LLV7021`, never reused, and not silently replaced. | §22.13 | +| `RC-05` | `replay-cache` | A changed Lean toolchain or a changed Mathlib revision gives every unit a new key, so no result recorded under the previous environment is reused, and the entries of the previous environment are left unread and intact. | §22.13 | +| `RC-06` | `replay-cache` | Facts exported by the pinned Lean from compiled modules, keyed and replayed through the pinned `leanchecker` cold and then warm, reuse every module whose key is unchanged: after a one-line edit to one declaration, only the modules whose declarations reach it are replayed again, and the warm verdicts equal the cold ones. | §22.13 | + +**Total required capability IDs:** 477. No row may be downgraded to `some-true` or `open`. Upstream Lean facts are ledger/authority rows, not substitutions for these build behaviors. diff --git a/VERIFICATION.md b/VERIFICATION.md index bec492bc90..790c1d5234 100644 --- a/VERIFICATION.md +++ b/VERIFICATION.md @@ -10489,6 +10489,23 @@ IDs, and the digests of its lock and its source map); the committed language-1.2 records are regenerated in the wave the maintainer names, not by this change. +### Lean libraries can fail (`ML-01`..`ML-04`, SPEC.md §10.4, #334) + +The cases of the `mathlib` suite were written before the implementation (R3), but +they were not run red first: the implementation was in place before the first run, +so there is no observed first failure to quote. Instead, two defects were planted +in `lean_library.rs`, the named case run with +`cargo test -p repo-conformance --test conformance `, and the defect removed. + +| Planted defect | Case | Observed | +| --- | --- | --- | +| a library checked out at another commit is accepted as present | `conformance_ml_04` | `another revision: refused` | +| the Lake workspace manifest may require another revision than the declaration | `conformance_ml_02` | `another revision is refused` | + +Not covered by any case: a real `lake exe cache get` against Mathlib. The cases use a +stand-in `lake` that leaves the files `cache get` leaves. The real run is a measurement, +not a conformance case, and is recorded in `docs/proposals/mathlib-import-notes-334.md`. + ### the standard-library source packages and the helpdesk can fail (`SL-03`, `SL-04`, `EX-09`, #32) The three cases were written before the packages and the example existed (R3). @@ -10744,6 +10761,9 @@ the first panic message, trimmed. | ID | Planted defect | Expected failure signature | | --- | --- | --- | +| `GL-20` | `glossary/plan.rs`: `code_of("sort-polymorphic")` returns `LLT4102` | `assertion left == right failed: Fix.polyId` (`left: "LLT4102"`, `right: "LLT4101"`) | +| `GL-19` | `glossary/naming.rs`: `camel_surface` stops capitalizing the words after the first | the `fix.scale-zero` entry text printed, missing `surface = "fixScaleZero"` | +| `CL-25` | `cli.rs`: the `--modules` and `--names` conflict is reported as `LLC0001` | `both selections: error[LLC0001]: --modules and --names are mutually exclusive` | | `GL-18` | `lexicon/package.rs`: the `manifest.language != ctx.language` test made `false &&` | `expected LLC0103, found ["LLR3004"]` (`support.rs`, `expect_code`) | | `GL-17` | `lexicon/mod.rs`: `load_bootstrap_for("1.2")` reads `bootstrap-1.1.toml` | `init 1.2: error[LLI9001]: phase language-load: bootstrap schema drift` | | `SM-24` | `ir/semantic.rs`: a pair projection of a non-product type returns `Ok(None)` | `check fails` (the mutated project must be refused) | @@ -11385,3 +11405,70 @@ script's output to that function, so the file the gate job writes is the file | the committed tree | `cargo test -p repo-conformance --test conformance conformance_rp_18 -- --exact` | ok | | the script no longer writes the gate line | same | `the evidence satisfies the release criterion` failed: `Err(["release/vv-evidence.txt does not record the gate passing"])` | | the criterion accepts the legs' lines | `cargo test -p repo-model the_ci_evidence_criterion` | `left: Ok(())` against the refusal | + +## Specialisation wrappers and the signature probe (`GL-21`, `VR-24`, #336) + +`conformance_gl_21` runs the wrapper emitter (SPEC.md §13.13) on +`tests/fixtures/specialisation/request.toml` (`Std.Commutative.comm` and +`Std.Associative.assoc` at `Nat`, `Int`, `UInt32` and `BitVec 32`) twice, in the +request's order and in the reverse order, and requires the committed host module +`tests/fixtures/specialisation/project/SpecHost.lean` byte for byte, one `public +theorem` per wrapper under `LexLeanSpec`, and none of `by`, `sorry`, `axiom`, `fun` +or `calc` in a declaration. It then refuses, with `LLT4018`, a tactic argument, a +`fun` argument, a string, a comment, an unclosed parenthesis, a declaration name with +a space, a tag with a dot, and a duplicate wrapper. + +`conformance_vr_24` builds the fixture's host library with `lake build SpecHost` +(offline: the library has no dependency), locks and verifies the project whose two +entries denote `LexLeanSpec.Nat.Std.Commutative.comm` and +`LexLeanSpec.Int.Std.Commutative.comm` with their exact signatures, reads the probe +for `(...) = (type_of% @) := rfl`, and requires that an entry outside the +reserved root keeps its `example : := ` line. It then plants a +signature whose right-hand side is `a + b` and not `b + a` (`LLT4017`, naming +`test.spec::nat-comm` and not the exact entry), and a denotation of a wrapper the host +library does not have (`LLT4003`). + +Each defect below was planted in the committed tree, one at a time, with the real +test, on Linux x86-64 (WSL, Rust 1.97.1), and the file restored (§27.9). + +| Case | Command | Observed | +| --- | --- | --- | +| the committed tree | `cargo test -p repo-conformance --test conformance -- conformance_gl_21 conformance_vr_24` | ok | +| the printer drops the `_root_.` prefix of argument names | `conformance_gl_21` | `the committed host module is the emitter's output` failed | +| a tactic word (`by`) is accepted as a name | `conformance_gl_21` | `specialisation.rs:25`: `(by simp)` is not refused | +| the emitter does not sort by Lean name | `conformance_gl_21` | `the committed host module is the emitter's output` failed | +| no name is a wrapper name | `conformance_vr_24` | `specialisation.rs:161`: the probe has no `type_of%` line | +| the signature is not parenthesised in the probe line | `conformance_vr_24` | `the exact signatures verify` failed: `unexpected token ')'` | +| a signature mismatch is reported as the interface failure | `conformance_vr_24` | `expected LLT4017, found ["LLT4003"]` | +| a missing wrapper is reported as a signature mismatch | `conformance_vr_24` | `expected LLT4003, found ["LLT4017"]` | + +The parenthesised form was found by the fixture and not by reading: the first +version wrote `example : = (type_of% ...)`, in which `a -> b = c` is +`a -> (b = c)`, and Lean refused both exact signatures. + +### replay cache can fail + +Two defects were planted in the replay cache (`RC-01` to `RC-06`, SPEC.md §22.13), `cargo test -p lexlean --lib -- replay_cache` was run, and each plant was removed. + +Checking `entry_digest` removed (`if recorded != actual` made `if false && recorded != actual`): `an_entry_whose_bytes_changed_while_its_key_was_kept_is_rejected` and `an_entry_whose_executable_digest_was_edited_is_rejected_not_missed` failed, 2 of 8 `an_entry` tests; the other six still passed because the key, shape, environment and exit-code checks are independent of it. + +The toolchain and Mathlib revision removed from the key frame: `a_changed_toolchain_or_mathlib_revision_changes_every_key` and `a_changed_toolchain_or_mathlib_revision_reuses_nothing_and_leaves_old_entries_intact` failed, 2 of 25 run (the filter was `replay_cache::tests`). + +With both plants removed the 28 `replay_cache` and `digest_set` tests pass. The register rows were red before the cases existed: all six `conformance_rc_0N` tests failed with `no conformance case is wired for RC-0N`. + + +### the axiom audit of imported declarations can fail + +Rows `VR-25` and `VR-26` (SPEC.md §5.3, §18.8, §22.6, #339). The fixture `tests/fixtures/import-axioms` has a host library `AxHost` of five theorems that state the commutativity of `Nat` addition and carry no axiom, `sorryAx`, `Lean.ofReduceBool` (with `Lean.trustCompiler`, on which it rests), `Lean.trustCompiler`, and the axiom `native_decide` generates; five entries denote them. The cases build the host with `lake build`, write the document each case needs, and verify. Refused: each planted import under `\noaxioms` and under `\allowaxioms{propext}` with `LLV7023`, `LLV7024`, `LLV7025` and `LLV7025` naming the entry, the Lean name and the axiom; `Lean.ofReduceBool` under a policy that names it but not `Lean.trustCompiler` (`LLV7025`); the `native_decide` axiom under a policy that spells its name without the hygiene mark (`LLV7025`). Accepted: the three nameable axioms under `\allowaxioms{sorryAx}`, `\exactaxioms{Lean.ofReduceBool;Lean.trustCompiler}` and `\allowaxioms{Lean.trustCompiler}`, with each import's observed set in `imports` and the generated theorem's observed `sorryAx` in `declarations`. + +Red first, before `imports::audit` was wired: `conformance_vr_25` failed with `expected LLV7023, found ["LLV7005"] (LLV7005: LexLeanExample.Main.use_sorry_comm violates its none axiom policy: observed [sorryAx])`, and `conformance_vr_26` with `§5.3 states the wording`. + +Each defect below was planted in the committed tree, one at a time, with the real test, on Linux x86-64 (WSL), and the file restored (§27.9). + +| Case | Command | Observed | +| --- | --- | --- | +| the committed tree | `cargo test -p repo-conformance --test conformance -- conformance_vr_25 conformance_vr_26` and `cargo test -p lexlean --lib -- verify::imports verify::axiom` | ok, 10 unit tests ok | +| the call of `imports::audit` removed from `verify` | `conformance_vr_25` | failed: the refusal is the late `LLV7005`, not `LLV7023` | +| `IMPORTED_STATUS` is `proved by LexLean` | `conformance_vr_26` | failed at `import_axioms.rs:277`, the constant is not the one §5.3 states | + +The two plants were run once each. The case also found two things without a plant: the first version of the parser refused the `native_decide` axiom as printed by `lean` (`LLV7004: _private.AxHost.0.AxHost.viaNative._native.native_decide.ax_1_1 is not a Lean name`), which is why the audit of imports reads the `_private..0` spelling and the hygiene mark, with unit tests; and a policy that names only `Lean.ofReduceBool` is `LLV7025`, not `LLV7024`, because `Lean.trustCompiler` is left unnamed, which the case now asserts. diff --git a/crates/conformance/src/cases/cli_api.rs b/crates/conformance/src/cases/cli_api.rs index dd1b476648..dc2765df45 100644 --- a/crates/conformance/src/cases/cli_api.rs +++ b/crates/conformance/src/cases/cli_api.rs @@ -1235,6 +1235,7 @@ pub(crate) fn run(id: &str) { } "CL-23" => super::production_export::cli(), "CL-24" => super::migration::cli(), + "CL-25" => super::glossary::cli(), other => panic!("no cli-api case is wired for {other}"), } } diff --git a/crates/conformance/src/cases/examples.rs b/crates/conformance/src/cases/examples.rs index a46bdf24f7..3d46dd262c 100644 --- a/crates/conformance/src/cases/examples.rs +++ b/crates/conformance/src/cases/examples.rs @@ -693,6 +693,7 @@ pub(crate) fn run(id: &str) { // §28.6: every example directory is discovered and gate-complete. // §10.5, §17.22: the helpdesk text application. "EX-09" => super::helpdesk::run(id), + "EX-10" => ex_10(), "EX-08" => { let examples = support::repo_root().join("examples"); let mut found = 0usize; @@ -748,3 +749,81 @@ features = [] [render] math = "(operator-name z)" "#; + +/// Every project directory under `parent` that declares a Lean library. +fn declaring_a_library(parent: &str) -> (Vec, Vec) { + let (mut declaring, mut plain) = (Vec::new(), Vec::new()); + let base = support::repo_root().join(parent); + let Ok(entries) = std::fs::read_dir(base.as_std_path()) else { + return (declaring, plain); + }; + for entry in entries.flatten() { + let config = entry.path().join("lexlean.toml"); + let Ok(text) = std::fs::read_to_string(&config) else { + continue; + }; + let name = entry.file_name().to_string_lossy().into_owned(); + if text.contains("[[lean_library]]") { + declaring.push(name); + } else { + plain.push(name); + } + } + declaring.sort(); + plain.sort(); + (declaring, plain) +} + +/// EX-10: demos are kept out of the sweeps of `examples/`, and their own +/// workflow fetches the library and runs them. Nothing here needs the library, +/// so the case runs wherever the default gates do; `verify-demos` is what the +/// workflow runs with it. +fn ex_10() { + let (declaring, _) = declaring_a_library("examples"); + assert!( + declaring.is_empty(), + "EX-10: {declaring:?} declare a Lean library and are swept by the default example gates; move them under demos/" + ); + let (demos, undeclared) = declaring_a_library("demos"); + assert!( + !demos.is_empty(), + "EX-10: demos/ holds a project that declares a library" + ); + assert!( + undeclared.is_empty(), + "EX-10: {undeclared:?} under demos/ declare no Lean library; a project that needs none is an example" + ); + let root = support::repo_root(); + let read = |relative: &str| { + std::fs::read_to_string(root.join(relative).as_std_path()) + .unwrap_or_else(|error| panic!("{relative}: {error}")) + }; + let workflow = read(".github/workflows/mathlib.yml"); + for needed in [ + "deps fetch", + "lake build", + "cargo xtask verify-demos", + "timeout-minutes:", + ] { + assert!( + workflow.contains(needed), + "EX-10: mathlib.yml runs `{needed}`" + ); + } + for forbidden in ["actions/cache", "restore-keys", "continue-on-error"] { + assert!( + !workflow.contains(forbidden), + "EX-10: mathlib.yml has no `{forbidden}`" + ); + } + let ci = read(".github/workflows/ci.yml"); + assert!( + !ci.contains("demos") && !ci.contains("verify-demos"), + "EX-10: the acceptance gate does not run the demos" + ); + let gitignore = read(".gitignore"); + assert!( + gitignore.contains("demos/**/.lake/"), + "EX-10: a demo's fetched library is not tracked" + ); +} diff --git a/crates/conformance/src/cases/glossary.rs b/crates/conformance/src/cases/glossary.rs new file mode 100644 index 0000000000..1a102f3b94 --- /dev/null +++ b/crates/conformance/src/cases/glossary.rs @@ -0,0 +1,564 @@ +//! The generated external-Lean glossary: GL-19, GL-20, and CL-25 +//! (SPEC.md §13.12, §23.4). +//! +//! The planner is exercised on `tests/glossary/extraction.json`, the committed +//! output of the Lean extractor over `tests/glossary/GlossaryFixtures.lean`. +//! When the pinned toolchain is available each case also re-runs the extractor +//! and requires the committed file to equal its output, so the file cannot +//! drift from the metaprogram. + +use camino::{Utf8Path, Utf8PathBuf}; +use lexlean::glossary::extract::{self, Extraction, Selection}; +use lexlean::glossary::plan::{self, PackageSpec, Plan}; +use lexlean::glossary::{self, Request}; +use lexlean::lexicon::entry::Denotation; +use lexlean::lexicon::package::{load_package, LoadContext}; + +use crate::support; + +fn fixtures_dir() -> Utf8PathBuf { + support::repo_root().join("tests/glossary") +} + +fn committed() -> Extraction { + let bytes = std::fs::read(fixtures_dir().join("extraction.json").as_std_path()) + .expect("tests/glossary/extraction.json"); + Extraction::parse(&bytes).expect("the committed extraction parses") +} + +fn spec() -> PackageSpec { + PackageSpec { + package: "fix.glossary".to_owned(), + version: "1.0.0".to_owned(), + language: "1.0".to_owned(), + } +} + +fn planned(extraction: &Extraction) -> Plan { + plan::plan(extraction, &spec()).expect("the planner accepts the extraction") +} + +fn entry_text<'a>(plan: &'a Plan, id: &str) -> &'a str { + let path = lexlean::lexicon::package::entry_path(id); + let (_, bytes) = plan + .files + .iter() + .find(|(file, _)| *file == path) + .unwrap_or_else(|| panic!("the package has no entry file {path}")); + std::str::from_utf8(bytes).expect("UTF-8") +} + +/// The committed extraction equals a fresh one, when Lean is available. +fn extraction_is_current(id: &str) { + if !support::lean_backed(id) { + return; + } + let scratch = tempfile::tempdir().expect("tempdir"); + let dir = Utf8Path::from_path(scratch.path()).expect("utf8"); + std::fs::copy( + fixtures_dir().join("GlossaryFixtures.lean").as_std_path(), + dir.join("GlossaryFixtures.lean").as_std_path(), + ) + .expect("copy the fixture module"); + let lean = lexlean::verify::toolchain::toolchain_root() + .expect("toolchain root") + .join("bin/lean"); + let status = std::process::Command::new(lean.as_std_path()) + .args(["-o", "GlossaryFixtures.olean", "GlossaryFixtures.lean"]) + .current_dir(dir.as_std_path()) + .status() + .expect("lean runs"); + assert!(status.success(), "{id}: the fixture module compiles"); + let fresh = extract::run_with( + &Selection::Modules(vec!["GlossaryFixtures".to_owned()]), + None, + Some(dir), + ) + .expect("the extractor runs"); + assert_eq!( + fresh, + committed(), + "{id}: tests/glossary/extraction.json is stale; run tests/glossary/regenerate.sh" + ); +} + +/// GL-19: the generated package is a package. +pub(crate) fn package() { + let extraction = committed(); + let first = planned(&extraction); + let second = planned(&extraction); + assert_eq!(first.files, second.files, "two plans, one package"); + assert_eq!( + first.report.to_bytes(), + second.report.to_bytes(), + "two plans, one report" + ); + + // The package loader accepts the files exactly as written. + let bootstrap = lexlean::lexicon::load_bootstrap_for("1.0").expect("bootstrap"); + let loaded = load_package( + "fix.glossary", + &first.files, + None, + &LoadContext { + language: "1.0", + forbidden_controls: &bootstrap.structural.forbidden_controls, + max_scope_depth: 1024, + }, + ) + .unwrap_or_else(|diagnostics| panic!("the loader rejects the package: {diagnostics:?}")); + assert!(!loaded.entries.is_empty()); + for (id, entry) in &loaded.entries { + let Denotation::Lean { module, name } = &entry.denotation else { + panic!("{id} does not denote a Lean constant"); + }; + // The requested module's own declarations name it; support entries + // (`HAdd.hAdd`, `Nat`) name the module of the core library that + // defines them. + if name.starts_with("Fix.") { + assert_eq!(module, "GlossaryFixtures", "{id}"); + } else { + assert!(module.starts_with("Init."), "{id}: {module}"); + } + } + + // A theorem about a class: the instance argument is a binder of the + // signature, and the application mentions explicit arguments only. + let scale_zero = entry_text(&first, "fix.scale-zero"); + assert!( + scale_zero.contains("category = \"proof-constant\""), + "{scale_zero}" + ); + assert!(scale_zero.contains("(instance "), "{scale_zero}"); + assert!( + scale_zero.contains("(app (const fix.glossary::fix.scale.scale (u)) (nat 0) (local a1))"), + "{scale_zero}" + ); + assert!( + scale_zero.contains("surface = \"fixScaleZero\""), + "{scale_zero}" + ); + assert!(scale_zero.contains("universes = [\"u\"]"), "{scale_zero}"); + assert!( + scale_zero.contains("math = \"(seq (operator-name fixScaleZero) (paren (seq (slot 0) (token comma) (space) (slot 1))))\""), + "{scale_zero}" + ); + + // Categories follow the shape of the type. + for (id, category) in [ + ("fix.tree", "type-noun"), + ("fix.always", "predicate-constant"), + ("fix.small", "adjective-predicate"), + ("fix.between", "transitive-predicate"), + ("fix.tree.leaf", "term-constant"), + ("fix.tree.size", "function"), + ("fix.scale", "function"), + ] { + assert!( + entry_text(&first, id).contains(&format!("category = \"{category}\"")), + "{id} is a {category}" + ); + } + assert!(entry_text(&first, "fix.small").contains("surface = \"small\"")); + + // An inductive type carries its eliminator over the constructor entries. + let tree = entry_text(&first, "fix.tree"); + for expected in [ + "cases_lean_name = \"Fix.Tree.casesOn\"", + "induction_lean_name = \"Fix.Tree.rec\"", + "entry = \"fix.glossary::fix.tree.leaf\"", + "entry = \"fix.glossary::fix.tree.node\"", + "fields = [\"left\", \"right\", \"label\"]", + "induction_hypotheses = [\"leftih\", \"rightih\"]", + ] { + assert!(tree.contains(expected), "{expected} in {tree}"); + } + let tree_entry = &loaded.entries["fix.tree"]; + let eliminator = tree_entry.eliminator.as_ref().expect("an eliminator"); + assert_eq!(eliminator.constructors.len(), 2); + for constructor in &eliminator.constructors { + assert!( + loaded.entries.contains_key(&constructor.entry.entry), + "the descriptor's constructor entry exists" + ); + } + + // The same bytes through the public writer, twice. + let one = tempfile::tempdir().expect("tempdir"); + let two = tempfile::tempdir().expect("tempdir"); + for directory in [&one, &two] { + let root = Utf8Path::from_path(directory.path()).expect("utf8"); + glossary::generate_from( + &Request { + package: spec(), + selection: Selection::Modules(vec!["GlossaryFixtures".to_owned()]), + workspace: None, + out: root.join("package"), + report: Some(root.join("report.json")), + strict: false, + }, + &extraction, + ) + .expect("the package is written"); + } + let read = |directory: &tempfile::TempDir, relative: &str| { + std::fs::read(directory.path().join(relative)).expect("written file") + }; + assert_eq!(read(&one, "report.json"), read(&two, "report.json")); + for (path, bytes) in &first.files { + assert_eq!(&read(&one, &format!("package/{path}")), bytes, "{path}"); + assert_eq!(&read(&two, &format!("package/{path}")), bytes, "{path}"); + } + extraction_is_current("GL-19"); +} + +/// GL-20: refusals are coded, complete, and never weakened. +pub(crate) fn refusals() { + let extraction = committed(); + let plan = planned(&extraction); + let report = &plan.report; + + let refusal = |name: &str| { + report + .refusals + .iter() + .find(|r| r.name == name) + .unwrap_or_else(|| panic!("{name} is not refused")) + }; + for (name, code, reason) in [ + ("Fix.polyId", "LLT4101", "sort-polymorphic"), + ("Fix.withStrict", "LLT4102", "strict-implicit-binder"), + ("Fix.projAxiom", "LLT4103", "primitive-projection"), + ("Fix.strLit", "LLT4103", "string-literal"), + ("Fix.proofEq", "LLT4104", "core-level-mismatch"), + ("Fix.add_comm'", "LLT4105", "name-not-conservative"), + ] { + let found = refusal(name); + assert_eq!(found.code, code, "{name}"); + assert_eq!(found.reason, reason, "{name}"); + assert!(found.requested && found.root.is_none(), "{name}"); + } + let dependent = refusal("Fix.usesPoly"); + assert_eq!(dependent.code, "LLT4106"); + assert_eq!(dependent.reason, "dependency"); + assert_eq!(dependent.root.as_deref(), Some("Fix.polyId")); + assert_eq!(dependent.root_reason.as_deref(), Some("sort-polymorphic")); + assert!( + dependent.detail.contains("Fix.polyId"), + "{}", + dependent.detail + ); + + // Never emitted: no entry file denotes a refused declaration. + let refused: Vec<&str> = report.refusals.iter().map(|r| r.name.as_str()).collect(); + for (path, bytes) in &plan.files { + let text = std::str::from_utf8(bytes).expect("UTF-8"); + for name in &refused { + let denotation = format!("name = \"{name}\""); + assert!( + !text.lines().any(|line| line == denotation), + "{path} denotes the refused {name}" + ); + } + } + + // The counts add up, and each count is what the refusals say. + assert_eq!( + report.requested, + report.translated + report.refused + report.excluded + ); + let requested_refused = report.refusals.iter().filter(|r| r.requested).count() as u64; + assert_eq!(requested_refused, report.refused); + let by_reason: u64 = report.refused_by_reason.values().map(|c| c.count).sum(); + let by_dependency: u64 = report.refused_by_dependency.values().sum(); + assert_eq!(by_reason + by_dependency, report.refused); + assert_eq!(report.refused_by_reason["sort-polymorphic"].code, "LLT4101"); + let inherited = report + .refusals + .iter() + .filter(|r| r.requested && r.root_reason.as_deref() == Some("sort-polymorphic")) + .count() as u64; + assert!(inherited >= 1); + assert_eq!(report.refused_by_dependency["sort-polymorphic"], inherited); + + // LLT4107: the planner checks its own entries instead of trusting the + // extraction. This extraction applies a one-argument predicate to two + // arguments, which the Lean metaprogram would never produce. + let mut bad = committed(); + let small = bad + .declarations + .iter() + .position(|d| d.name == "Fix.small_two") + .expect("Fix.small_two"); + bad.declarations[small].signature = Some("(app (const @Fix.Small) (nat 1) (nat 2))".to_owned()); + let checked = planned(&bad); + let entry_check = checked + .report + .refusals + .iter() + .find(|r| r.name == "Fix.small_two") + .expect("refused"); + assert_eq!(entry_check.code, "LLT4107"); + assert_eq!(entry_check.reason, "entry-check"); + assert!( + !checked + .files + .iter() + .any(|(path, _)| path.ends_with("small-two.toml")), + "an entry that fails its own check is not written" + ); + + // Strict mode turns the first refusal into the error of its class, and + // writes nothing. + let scratch = tempfile::tempdir().expect("tempdir"); + let root = Utf8Path::from_path(scratch.path()).expect("utf8"); + let error = glossary::generate_from( + &Request { + package: spec(), + selection: Selection::Modules(vec!["GlossaryFixtures".to_owned()]), + workspace: None, + out: root.join("package"), + report: None, + strict: true, + }, + &extraction, + ) + .expect_err("strict mode refuses"); + assert_eq!(error.class, lexlean::ErrorClass::Language); + let codes: Vec<&str> = error.diagnostics.iter().map(|d| d.code.as_str()).collect(); + for code in [ + "LLT4101", "LLT4102", "LLT4103", "LLT4104", "LLT4105", "LLT4106", + ] { + assert!(codes.contains(&code), "{code} among {codes:?}"); + } + assert!(!root.join("package").as_std_path().exists()); + extraction_is_current("GL-20"); +} + +/// CL-25: the command. +pub(crate) fn cli() { + let scratch = tempfile::tempdir().expect("tempdir"); + let root = Utf8Path::from_path(scratch.path()).expect("utf8"); + let out = root.join("package"); + let nothing_written = || { + assert!( + !out.as_std_path().exists(), + "a refused request writes nothing" + ); + }; + + // The selection and the identity are checked before any Lean runs. + let (exit, _, stderr) = support::cli_in( + root, + &[ + "deps", + "glossary", + "--package", + "t.pkg", + "--out", + out.as_str(), + ], + ); + assert_eq!(exit, 2, "{stderr}"); + assert!(stderr.contains("LLC0002"), "no selection: {stderr}"); + let (exit, _, stderr) = support::cli_in( + root, + &[ + "deps", + "glossary", + "--package", + "t.pkg", + "--out", + out.as_str(), + "--modules", + "Init.Core", + "--names", + "Nat.add_comm", + ], + ); + assert_eq!(exit, 2, "{stderr}"); + assert!(stderr.contains("LLC0002"), "both selections: {stderr}"); + let (exit, _, stderr) = support::cli_in( + root, + &[ + "deps", + "glossary", + "--package", + "t.pkg", + "--out", + out.as_str(), + "--names", + "Nat.add_comm", + "Nat.add_comm", + ], + ); + assert_eq!(exit, 2, "{stderr}"); + assert!(stderr.contains("LLC0002"), "a repeated name: {stderr}"); + let (exit, _, stderr) = support::cli_in( + root, + &[ + "deps", + "glossary", + "--package", + "Bad_Package", + "--out", + out.as_str(), + "--names", + "Nat.add_comm", + ], + ); + assert_eq!(exit, 2, "{stderr}"); + assert!( + stderr.contains("LLC0001"), + "a malformed package ID: {stderr}" + ); + let (exit, _, stderr) = support::cli_in( + root, + &[ + "deps", + "glossary", + "--package", + "t.pkg", + "--out", + out.as_str(), + "--names", + "Nat.add-comm", + ], + ); + assert_eq!(exit, 2, "{stderr}"); + assert!(stderr.contains("LLC0001"), "a malformed name: {stderr}"); + let (exit, _, stderr) = support::cli_in(root, &["deps", "glossary"]); + assert_eq!(exit, 2, "{stderr}"); + assert!( + stderr.contains("LLC0001"), + "missing required options: {stderr}" + ); + nothing_written(); + + if !support::lean_backed("CL-25") { + return; + } + + // A Lean core request writes the package and the report, identically + // twice. + let run = |name: &str| { + let package = root.join(format!("{name}-package")); + let report = root.join(format!("{name}-report.json")); + let (exit, stdout, stderr) = support::cli_in( + root, + &[ + "deps", + "glossary", + "--package", + "core.nat", + "--out", + package.as_str(), + "--report", + report.as_str(), + "--names", + "Nat.add_comm", + "Nat.le_antisymm", + "Nat.succ_le_of_lt", + "List.append_assoc", + "Nat", + "Nat.le", + "id", + ], + ); + assert_eq!(exit, 0, "{stderr}"); + assert!(stdout.contains("core.nat@1.0.0: 7 requested"), "{stdout}"); + (package, report) + }; + let (package_a, report_a) = run("a"); + let (package_b, report_b) = run("b"); + assert_eq!( + std::fs::read(report_a.as_std_path()).expect("report"), + std::fs::read(report_b.as_std_path()).expect("report"), + ); + let files = |package: &Utf8Path| { + let mut out: Vec<(String, Vec)> = walkdir::WalkDir::new(package.as_std_path()) + .into_iter() + .flatten() + .filter(|entry| entry.file_type().is_file()) + .map(|entry| { + ( + entry + .path() + .strip_prefix(package.as_std_path()) + .expect("under the package") + .to_string_lossy() + .into_owned(), + std::fs::read(entry.path()).expect("read"), + ) + }) + .collect(); + out.sort(); + out + }; + let written = files(&package_a); + assert_eq!(written, files(&package_b), "two runs, one package"); + let bootstrap = lexlean::lexicon::load_bootstrap_for("1.0").expect("bootstrap"); + load_package( + "core.nat", + &written, + None, + &LoadContext { + language: "1.0", + forbidden_controls: &bootstrap.structural.forbidden_controls, + max_scope_depth: 1024, + }, + ) + .unwrap_or_else(|diagnostics| panic!("the loader rejects the package: {diagnostics:?}")); + let report: serde_json::Value = + serde_json::from_slice(&std::fs::read(report_a.as_std_path()).expect("report")) + .expect("the report is JSON"); + assert_eq!(report["spec"], "lexlean/glossary-report/1"); + assert_eq!(report["requested"], 7); + assert_eq!( + report["refused_by_reason"]["sort-polymorphic"]["code"], + "LLT4101" + ); + + // --strict exits with the class of the first refusal's code, and writes + // nothing. + let strict_out = root.join("strict-package"); + let (exit, _, stderr) = support::cli_in( + root, + &[ + "deps", + "glossary", + "--package", + "core.nat", + "--out", + strict_out.as_str(), + "--strict", + "--names", + "id", + ], + ); + assert_eq!(exit, 1, "{stderr}"); + assert!(stderr.contains("LLT4101"), "{stderr}"); + assert!(!strict_out.as_std_path().exists()); + // The JSON mode carries the same diagnostics in the command result. + let (exit, stdout, _) = support::cli_in( + root, + &[ + "--diagnostic-format", + "json", + "deps", + "glossary", + "--package", + "core.nat", + "--out", + strict_out.as_str(), + "--strict", + "--names", + "id", + ], + ); + assert_eq!(exit, 1); + assert!( + stdout.contains("\"command\":\"deps\"") && stdout.contains("LLT4101"), + "{stdout}" + ); +} diff --git a/crates/conformance/src/cases/import_axioms.rs b/crates/conformance/src/cases/import_axioms.rs new file mode 100644 index 0000000000..eafa2deb8d --- /dev/null +++ b/crates/conformance/src/cases/import_axioms.rs @@ -0,0 +1,299 @@ +//! VR-25 and VR-26: the axiom audit and the status wording of imported +//! declarations (SPEC.md §4.2, §5.3, §5.4, §18.8, §22.6). +//! +//! The fixture is `tests/fixtures/import-axioms`: a host library `AxHost` +//! whose five theorems state the commutativity of `Nat` addition and carry, +//! respectively, no axiom, `sorryAx`, `Lean.ofReduceBool`, +//! `Lean.trustCompiler`, and the axiom `native_decide` generates; and a +//! project whose five entries denote them. The cases build the host with +//! `lake build`, write the document each case needs, and verify. + +use std::process::Command; + +use crate::support::{self, P}; + +const PROJECT: &str = "fixtures/import-axioms/project"; + +/// The status of an imported declaration (SPEC.md §5.3). +const IMPORTED_STATUS: &str = "replayed in the pinned environment"; + +/// One planted entry: its id, surface, the code that refuses it, the Lean +/// declaration it denotes, and a word its refusal must carry. +struct Planted { + entry: &'static str, + surface: &'static str, + code: &'static str, + lean_name: &'static str, + axiom: &'static str, +} + +const PLANTED: [Planted; 4] = [ + Planted { + entry: "sorry-comm", + surface: "sorrycomm", + code: "LLV7023", + lean_name: "AxHost.viaSorry", + axiom: "sorryAx", + }, + Planted { + entry: "reduce-comm", + surface: "reducecomm", + code: "LLV7024", + lean_name: "AxHost.viaReduce", + axiom: "Lean.ofReduceBool", + }, + Planted { + entry: "trust-comm", + surface: "trustcomm", + code: "LLV7025", + lean_name: "AxHost.viaTrust", + axiom: "Lean.trustCompiler", + }, + Planted { + entry: "native-comm", + surface: "nativecomm", + code: "LLV7025", + lean_name: "AxHost.viaNative", + axiom: "native_decide", + }, +]; + +/// A document with one theorem per `(entry id, surface, policy)`, each closed +/// by its entry. +fn document(uses: &[(&str, &str, &str)]) -> String { + let mut text = String::from( + "\\begin{lexlean}{Main}\n\\useglossary{lexlean.std.int@1.0.0}\n\\useglossary{lexlean.std.nat@1.0.0}\n\\useglossary{test.ax@1.0.0}\n\\title{Natural number addition}\n", + ); + for (index, (entry, surface, policy)) in uses.iter().enumerate() { + text.push_str(&format!( + "\n\\begin{{section}}{{s{index}}}\n\\heading{{Natural number}}\n\\parameters{{natural number \\(a\\); natural number \\(b\\)}}\n \\begin{{theorem}}{{use-{entry}}}\n {policy}\n \\(a + b = b + a\\).\n \\begin{{proof}}\n Close the goal with \\({surface}(a, b)\\).\n \\end{{proof}}\n \\end{{theorem}}\n\\end{{section}}\n" + )); + } + text.push_str("\\end{lexlean}\n"); + text +} + +/// A copy of the fixture with its host library built (offline: the library +/// has no dependency). +fn prepared() -> P { + let project = P::copy_tests_project(PROJECT); + let output = Command::new("lake") + .arg("build") + .arg("AxHost") + .current_dir(project.root.as_std_path()) + .output() + .expect("lake runs; is leanprover/lean4:v4.32.1 installed?"); + assert!( + output.status.success(), + "the host library builds: {}{}", + String::from_utf8_lossy(&output.stdout), + String::from_utf8_lossy(&output.stderr) + ); + project +} + +fn use_documents(project: &P, uses: &[(&str, &str, &str)]) { + project.write_raw("src/Main.lex.tex", &document(uses)); + project.relock(); +} + +fn verify(project: &P) -> Result { + project.engine().verify(lexlean::VerifyRequest { + selection: lexlean::Selection::Entrypoints, + }) +} + +fn attestation(outcome: &lexlean::VerifiedProject) -> serde_json::Value { + serde_json::from_slice( + &std::fs::read(outcome.root.join("attestation.json").as_std_path()) + .expect("attestation exists"), + ) + .expect("attestation parses") +} + +/// The refusal of `planted` under `policy`: the code, the entry, the Lean +/// name, and the axiom the message carries, and no verified directory. +fn refused(project: &P, planted: &Planted, policy: &str) { + refused_with(project, planted, policy, planted.code, planted.axiom); +} + +fn refused_with(project: &P, planted: &Planted, policy: &str, code: &str, axiom: &str) { + use_documents(project, &[(planted.entry, planted.surface, policy)]); + let error = project.verify_fails_with(code); + let text = error.to_string(); + for needle in [ + format!("test.ax::{}", planted.entry), + planted.lean_name.to_owned(), + axiom.to_owned(), + ] { + assert!( + text.contains(needle.as_str()), + "{} under `{policy}` names `{needle}`: {text}", + planted.entry + ); + } + let published = project.root.join(".lexlean/verified"); + assert!( + !published.as_std_path().exists() + || support::file_set(&published) + .iter() + .all(|name| !name.ends_with("attestation.json")), + "a refused import publishes no attestation" + ); +} + +fn observed_of(rows: &serde_json::Value, key: &str, value: &str) -> Vec { + let row = rows + .as_array() + .expect("rows are an array") + .iter() + .find(|row| row[key] == value) + .unwrap_or_else(|| panic!("no row with {key} = {value}: {rows}")); + row["observed"] + .as_array() + .expect("observed is an array") + .iter() + .map(|axiom| axiom.as_str().expect("axiom is a string").to_owned()) + .collect() +} + +/// The accepted project: three imports, each under a policy that names its +/// axioms. The native axiom cannot be named, so it has no accepted form. +fn accepted(project: &P) -> serde_json::Value { + use_documents( + project, + &[ + ("clean-comm", "cleancomm", "\\noaxioms"), + ("sorry-comm", "sorrycomm", "\\allowaxioms{sorryAx}"), + ( + "reduce-comm", + "reducecomm", + "\\exactaxioms{Lean.ofReduceBool;Lean.trustCompiler}", + ), + ( + "trust-comm", + "trustcomm", + "\\allowaxioms{Lean.trustCompiler}", + ), + ], + ); + let outcome = verify(project).expect("imports whose axioms a policy names verify"); + attestation(&outcome) +} + +/// VR-25: record, refuse, and accept under an explicit policy. +pub(super) fn audit() { + if !support::lean_backed("VR-25") { + return; + } + let project = prepared(); + + // Every planted import is refused with its own code when the document's + // policy does not name its axiom: under `\noaxioms`, and under an allow + // list that names something else. + for planted in &PLANTED { + refused(&project, planted, "\\noaxioms"); + refused(&project, planted, "\\allowaxioms{propext}"); + } + + // `Lean.ofReduceBool` rests on `Lean.trustCompiler`, so a policy that + // names only the first leaves the second unnamed. + let half = &PLANTED[1]; + refused_with( + &project, + half, + "\\allowaxioms{Lean.ofReduceBool}", + "LLV7025", + "Lean.trustCompiler", + ); + + // The axiom `native_decide` generates carries a hygiene mark that no + // policy can spell, so it stays refused whatever a policy lists. + refused( + &project, + &PLANTED[3], + "\\allowaxioms{AxHost.viaNative._native.native_decide.ax_1_1}", + ); + + // A policy that names an axiom accepts the import that carries it, and + // the attestation records the observed set of every import. + let attestation = accepted(&project); + let imports = &attestation["imports"]; + assert_eq!(imports.as_array().expect("imports are recorded").len(), 4); + assert!(observed_of(imports, "name", "AxHost.clean").is_empty()); + assert_eq!(observed_of(imports, "name", "AxHost.viaSorry"), ["sorryAx"]); + assert_eq!( + observed_of(imports, "name", "AxHost.viaReduce"), + ["Lean.ofReduceBool", "Lean.trustCompiler"] + ); + assert_eq!( + observed_of(imports, "name", "AxHost.viaTrust"), + ["Lean.trustCompiler"] + ); + // Only the used imports outside the toolchain's own libraries are + // recorded: `Nat` and `Nat.add` of the signatures are not. + let names: Vec<&str> = imports + .as_array() + .expect("array") + .iter() + .map(|row| row["name"].as_str().expect("name")) + .collect(); + assert!( + names.iter().all(|name| name.starts_with("AxHost.")), + "{names:?}" + ); + + // The generated declarations are still held to their own policies: the + // theorem over `AxHost.viaSorry` records the observed `sorryAx`. + let sorry_row = attestation["declarations"] + .as_array() + .expect("declarations") + .iter() + .find(|row| { + row["name"] + .as_str() + .is_some_and(|name| name.contains("sorry")) + }) + .expect("the theorem over the sorry import has a policy row"); + assert_eq!(sorry_row["observed"], serde_json::json!(["sorryAx"])); + assert_eq!(sorry_row["policy"]["kind"], "allow"); +} + +/// VR-26: the status words of imported declarations. +pub(super) fn status() { + // The specification states the wording where it states the evidence + // states. + let spec = support::spec_text(); + let section = spec + .split("### 5.3 Evidence states") + .nth(1) + .and_then(|rest| rest.split("### 5.4").next()) + .expect("§5.3 exists"); + assert!(section.contains(IMPORTED_STATUS), "§5.3 states the wording"); + assert!( + section.contains("never") && section.contains("proved by LexLean"), + "§5.3 forbids the claim" + ); + assert_eq!(lexlean::verify::imports::IMPORTED_STATUS, IMPORTED_STATUS); + + if !support::lean_backed("VR-26") { + return; + } + let project = prepared(); + let attestation = accepted(&project); + // The project is verified; its imports are replayed in the pinned + // environment. + assert_eq!(attestation["status"], "verified"); + let imports = attestation["imports"].as_array().expect("imports"); + assert!(!imports.is_empty()); + for row in imports { + assert_eq!(row["status"], IMPORTED_STATUS, "{row}"); + let text = row.to_string().to_lowercase(); + for word in ["proved", "verified", "kernel-checked"] { + assert!( + !text.contains(word), + "`{word}` in the row of an import: {text}" + ); + } + } +} diff --git a/crates/conformance/src/cases/lexicon.rs b/crates/conformance/src/cases/lexicon.rs index a98264911f..59e0fd6bfc 100644 --- a/crates/conformance/src/cases/lexicon.rs +++ b/crates/conformance/src/cases/lexicon.rs @@ -1387,6 +1387,8 @@ math = "(seq (operator-name gsucc) (paren (slot 0)))" "§21.4: entry content flows into the semantic ID" ); } + "GL-19" => super::glossary::package(), + "GL-20" => super::glossary::refusals(), "GL-17" => { let dir = tempfile::tempdir().expect("tempdir"); let root = camino::Utf8Path::from_path(dir.path()).expect("utf8"); @@ -1606,6 +1608,8 @@ math = "(seq (operator-name gsucc) (paren (slot 0)))" } } } + // §13.13: the wrapper emitter. + "GL-21" => super::specialisation::emitter(), other => panic!("no lexicon case is wired for {other}"), } } diff --git a/crates/conformance/src/cases/mathlib.rs b/crates/conformance/src/cases/mathlib.rs new file mode 100644 index 0000000000..32c341b6bb --- /dev/null +++ b/crates/conformance/src/cases/mathlib.rs @@ -0,0 +1,659 @@ +//! The `mathlib` suite: ML-01..ML-04, an external Lean library pinned in the +//! configuration and the lock, acquired only by `lexlean deps fetch` +//! (SPEC.md §10.4, §11.4, §23.4). + +use lexlean::artifact::content_id::Sha256Digest; +use lexlean::{ + BuildRequest, CheckRequest, Engine, FormatRequest, LexLeanError, LockRequest, Selection, + VerifyRequest, +}; + +use crate::support::{self, P}; + +const URL: &str = "https://github.com/leanprover-community/mathlib4"; +const REVISION: &str = "520045ab14e26149ee970e2e617ca04b09bde5d6"; +const OTHER_REVISION: &str = "81a5d257c8e410db227a6665ed08f64fea08e997"; + +/// Run the case for one `ML` ID. +/// +/// # Panics +/// +/// Panics when the case's assertion fails. +pub fn run(id: &str) { + match id { + "ML-01" => ml_01(), + "ML-02" => ml_02(), + "ML-03" => ml_03(), + "ML-04" => ml_04(), + "ML-05" => ml_05(), + _ => panic!("no mathlib case is wired for {id}"), + } +} + +fn table(name: &str, url: &str, revision: &str) -> String { + format!("[[lean_library]]\nname = \"{name}\"\nurl = \"{url}\"\nrevision = \"{revision}\"\n\n") +} + +/// The language-1.2 example with `libraries` declared, required by its Lake +/// workspace, and (when `fetched`) present in the form `lake exe cache get` +/// leaves it. No lock has been written. +fn library_project(libraries: &[&str], fetched: bool) -> P { + let project = P::language_1_2_example(); + for name in libraries { + declare(&project, name, URL, REVISION); + } + require(&project, libraries, REVISION); + if fetched { + for name in libraries { + present(&project, name, REVISION); + } + } + project +} + +fn declare(project: &P, name: &str, url: &str, revision: &str) { + project.edit( + "lexlean.toml", + "[limits]", + &format!("{}[limits]", table(name, url, revision)), + ); +} + +/// Write the Lake workspace manifest the way Lake records a git requirement. +fn require(project: &P, names: &[&str], revision: &str) { + let packages: Vec = names + .iter() + .map(|name| { + format!( + "{{\"url\": \"{URL}\", \"type\": \"git\", \"subDir\": null, \"scope\": \"leanprover-community\", \"rev\": \"{revision}\", \"name\": \"{name}\", \"manifestFile\": \"lake-manifest.json\", \"inputRev\": \"{revision}\", \"inherited\": false, \"configFile\": \"lakefile.lean\"}}" + ) + }) + .collect(); + project.write_raw( + "lake-manifest.json", + &format!( + "{{\"version\": \"1.2.0\",\n \"packagesDir\": \".lake/packages\",\n \"packages\": [{}],\n \"name\": \"language_twelve_host\",\n \"lakeDir\": \".lake\",\n \"fixedToolchain\": false}}\n", + packages.join(", ") + ), + ); +} + +/// A library as Lake and `cache get` leave it: a checkout at `revision`, its +/// own manifest, and the built artifacts directory. +fn present(project: &P, name: &str, revision: &str) { + let base = format!(".lake/packages/{name}"); + project.write_raw(&format!("{base}/.git/HEAD"), &format!("{revision}\n")); + project.write_raw( + &format!("{base}/lake-manifest.json"), + &format!("{{\"version\": \"1.2.0\", \"packagesDir\": \".lake/packages\", \"packages\": [], \"name\": \"{name}\", \"lakeDir\": \".lake\"}}\n"), + ); + project.write_raw( + &format!("{base}/.lake/build/lib/lean/{name}.olean"), + "olean", + ); +} + +fn lock_request(check_only: bool) -> LockRequest { + LockRequest { + check_only, + allow_network: false, + } +} + +/// The text of the `[[lean_library]]` row of `name`. +fn lock_row(lock: &str, name: &str) -> String { + lock.split("[[lean_library]]") + .skip(1) + .map(|row| row.split("\n[").next().unwrap_or(row)) + .find(|row| row.contains(&format!("name = \"{name}\"\n"))) + .unwrap_or_else(|| panic!("the lock has a row for `{name}`: {lock}")) + .to_owned() +} + +fn field(row: &str, key: &str) -> String { + let prefix = format!("{key} = \""); + row.lines() + .find_map(|line| line.strip_prefix(prefix.as_str())) + .unwrap_or_else(|| panic!("no `{key}` in {row}")) + .trim_end_matches('"') + .to_owned() +} + +fn empty_tree() -> String { + Sha256Digest::of(b"lexlean-tree-v1\0").to_hex() +} + +/// The configuration parsed from `text`, expecting its refusal. +fn config_refused(text: &str, why: &str) -> String { + let diagnostics = lexlean::config::parse_project("lexlean.toml", text.as_bytes()) + .err() + .unwrap_or_else(|| panic!("{why}: the configuration is refused")); + assert!( + diagnostics + .iter() + .any(|diagnostic| diagnostic.code.as_str() == "LLC0109"), + "{why}: expected LLC0109, found {diagnostics:?}" + ); + diagnostics + .iter() + .map(|diagnostic| diagnostic.message.clone()) + .collect::>() + .join("\n") +} + +/// Every command that must stay offline, each expected to fail with `code` +/// before any backend runs. +fn every_command_refuses(project: &P, code: &str) { + let engine = project.engine(); + let selection = || Selection::Entrypoints; + let errors: Vec<(&str, LexLeanError)> = vec![ + ( + "lock", + engine.lock(lock_request(false)).err().expect("lock fails"), + ), + ( + "lock --check", + engine + .lock(lock_request(true)) + .err() + .expect("lock --check fails"), + ), + ( + "check", + engine + .check(CheckRequest { + selection: selection(), + }) + .err() + .expect("check fails"), + ), + ( + "build", + engine + .build(BuildRequest { + selection: selection(), + }) + .err() + .expect("build fails"), + ), + ( + "fmt", + engine + .format(FormatRequest { + selection: selection(), + check_only: true, + }) + .err() + .expect("fmt fails"), + ), + ( + "verify", + engine + .verify(VerifyRequest { + selection: selection(), + }) + .err() + .expect("verify fails"), + ), + ]; + for (command, error) in &errors { + assert!( + error + .diagnostics + .iter() + .any(|diagnostic| diagnostic.code.as_str() == code), + "{command}: expected {code}, found {error}" + ); + } + for output in [".lexlean/build", ".lexlean/verified"] { + assert!( + !project.root.join(output).as_std_path().exists(), + "{code}: `{output}` was published" + ); + } +} + +/// ML-01: the declaration and its refusals. +fn ml_01() { + let example = P::language_1_2_example(); + let base = example.read_raw("lexlean.toml"); + let with = |tables: &str| base.replacen("[limits]", &format!("{tables}[limits]"), 1); + + // The declaration reads back to the bytes written. + let text = with(&table("mathlib", URL, REVISION)); + let config = lexlean::config::parse_project("lexlean.toml", text.as_bytes()) + .expect("the declaration parses"); + assert_eq!(config.lean_libraries.len(), 1); + assert_eq!(config.lean_libraries[0].name, "mathlib"); + assert_eq!(config.lean_libraries[0].url, URL); + assert_eq!(config.lean_libraries[0].revision, REVISION); + assert_eq!(config.canonical_toml(), text, "canonical serialization"); + let two = with(&format!( + "{}{}", + table("aesop", URL, REVISION), + table("mathlib", URL, REVISION) + )); + let config = lexlean::config::parse_project("lexlean.toml", two.as_bytes()).expect("parses"); + assert_eq!(config.canonical_toml(), two); + + // A project without one keeps its bytes. + let plain = lexlean::config::parse_project("lexlean.toml", base.as_bytes()).expect("parses"); + assert!(plain.lean_libraries.is_empty()); + assert_eq!(plain.canonical_toml(), base); + assert!(!base.contains("lean_library")); + + // Each refusal is LLC0109. + let cases: Vec<(&str, String)> = vec![ + ("an http URL", with(&table("mathlib", "http://github.com/leanprover-community/mathlib4", REVISION))), + ("an ssh URL", with(&table("mathlib", "git@github.com:leanprover-community/mathlib4", REVISION))), + ("a short revision", with(&table("mathlib", URL, &REVISION[..39]))), + ("an uppercase revision", with(&table("mathlib", URL, &REVISION.to_uppercase()))), + ("a branch as the revision", with(&table("mathlib", URL, "master"))), + ("a tag as the revision", with(&table("mathlib", URL, "v4.32.1"))), + ( + "a branch field", + with(&format!("{} +branch = \"master\"\n\n", table("mathlib", URL, REVISION).trim_end() + )), + ), + ( + "a tag field", + with(&format!("{} +tag = \"v4.32.1\"\n\n", table("mathlib", URL, REVISION).trim_end() + )), + ), + ( + "an unknown field", + with(&format!("{} +path = \"x\"\n\n", table("mathlib", URL, REVISION).trim_end() + )), + ), + ("a name that is not an identifier", with(&table("Mathlib", URL, REVISION))), + ("a missing revision", with("[[lean_library]]\nname = \"mathlib\"\nurl = \"https://github.com/leanprover-community/mathlib4\"\n\n")), + ( + "a repeated name", + with(&format!("{}{}", table("mathlib", URL, REVISION), table("mathlib", URL, REVISION))), + ), + ( + "tables out of order", + with(&format!("{}{}", table("mathlib", URL, REVISION), table("aesop", URL, REVISION))), + ), + ]; + for (why, text) in &cases { + config_refused(text, why); + } + // The branch and the tag are named, not merely rejected as unknown. + let message = config_refused(&cases[6].1, "a branch field"); + assert!(message.contains("branch"), "{message}"); + let message = config_refused(&cases[7].1, "a tag field"); + assert!(message.contains("tag"), "{message}"); + + // Another language has no Lean library. + let old = P::example(); + let old_text = old.read_raw("lexlean.toml").replacen( + "[limits]", + &format!("{}[limits]", table("mathlib", URL, REVISION)), + 1, + ); + let message = config_refused(&old_text, "language 1.0"); + assert!(message.contains("language"), "{message}"); +} + +/// ML-02: the lock rows and the refusals that name both values. +#[allow(clippy::too_many_lines)] +fn ml_02() { + let project = library_project(&["aesop", "mathlib"], true); + project.relock(); + let lock = project.read_raw("lexlean.lock"); + assert!(lock.starts_with("spec = \"lexlean/lock/2\"\n")); + let manifest = |name: &str| { + Sha256Digest::of( + project + .read_raw(&format!(".lake/packages/{name}/lake-manifest.json")) + .as_bytes(), + ) + .to_hex() + }; + for name in ["aesop", "mathlib"] { + let row = format!( + "[[lean_library]]\nname = \"{name}\"\nurl = \"{URL}\"\nrevision = \"{REVISION}\"\nlake_manifest_sha256 = \"{}\"\nglossary_sha256 = \"{}\"\n", + manifest(name), + empty_tree() + ); + assert!(lock.contains(&row), "{row}\n{lock}"); + } + assert!( + lock.find("name = \"aesop\"") < lock.find("name = \"mathlib\"") + || lock.find("[[lean_library]]\nname = \"aesop\"") + < lock.find("[[lean_library]]\nname = \"mathlib\""), + "rows sort by name" + ); + let engine = project.engine(); + engine + .lock(lock_request(true)) + .expect("lock --check accepts what lock wrote"); + engine.lock(lock_request(false)).expect("lock again"); + assert_eq!( + lock, + project.read_raw("lexlean.lock"), + "the same bytes again" + ); + + // A project without a library keeps its lock bytes. + let plain = P::language_1_2_example(); + plain.relock(); + assert!(!plain.read_raw("lexlean.lock").contains("lean_library")); + assert_eq!( + plain.read_raw("lexlean.lock"), + std::fs::read_to_string( + support::repo_root() + .join("examples/language-1.2/lexlean.lock") + .as_std_path() + ) + .expect("committed lock"), + ); + + // The glossary digest is the tree digest of the project's `lean.` + // lexicon package. + let glossed = library_project(&["mathlib"], true); + glossed.write_raw( + "glossary/lean.mathlib/lexicon.toml", + "spec = \"lexlean/lexicon/1\" +package = \"lean.mathlib\" +version = \"1.0.0\" +language = \"1.2\" +imports = [] +", + ); + glossed.edit( + "lexlean.toml", + "[[lexicon_source]]", + "[[lexicon_source]] +package = \"lean.mathlib\" +kind = \"path\" +path = \"glossary/lean.mathlib\" + +[[lexicon_source]]", + ); + glossed.relock(); + let lock = glossed.read_raw("lexlean.lock"); + let package_row = lock + .split("[[package]]") + .skip(1) + .find(|row| row.contains("id = \"lean.mathlib\"\n")) + .expect("the glossary package is locked"); + let glossary = field(&lock_row(&lock, "mathlib"), "glossary_sha256"); + assert_eq!(glossary, field(package_row, "tree_sha256")); + assert_ne!(glossary, empty_tree()); + + // A library whose bytes are not the pinned ones: both digests are named. + let before = project.read_raw("lexlean.lock"); + let locked_manifest = field(&lock_row(&before, "mathlib"), "lake_manifest_sha256"); + project.write_raw( + ".lake/packages/mathlib/lake-manifest.json", + "{\"version\": \"1.2.0\", \"packagesDir\": \".lake/packages\", \"packages\": [], \"name\": \"mathlib\", \"lakeDir\": \".lake\", \"changed\": true}\n", + ); + let error = project + .engine() + .lock(lock_request(true)) + .err() + .expect("a changed library manifest is refused"); + support::expect_code(&error, "LLC0110"); + let found = manifest("mathlib"); + let message = error.to_string(); + assert!(message.contains("`mathlib`"), "{message}"); + assert!(message.contains(&locked_manifest), "{message}"); + assert!(message.contains(&found), "{message}"); + project.check_fails_with("LLC0110"); + + // A changed glossary is refused by name too. + let locked_glossary = glossary; + glossed.edit("glossary/lean.mathlib/lexicon.toml", "1.0.0", "1.0.1"); + let error = glossed + .engine() + .lock(lock_request(true)) + .err() + .expect("a changed glossary is refused"); + support::expect_code(&error, "LLC0110"); + assert!(error.to_string().contains(&locked_glossary), "{error}"); + + // The Lake workspace must require the library at the declared place. + for (why, manifest_url, manifest_revision) in [ + ("another revision", URL, OTHER_REVISION), + ( + "another URL", + "https://github.com/example/mathlib4", + REVISION, + ), + ] { + let mismatch = library_project(&["mathlib"], true); + mismatch.write_raw( + "lake-manifest.json", + &format!("{{\"version\": \"1.2.0\", \"packagesDir\": \".lake/packages\", \"packages\": [{{\"url\": \"{manifest_url}\", \"type\": \"git\", \"rev\": \"{manifest_revision}\", \"name\": \"mathlib\", \"inputRev\": \"{manifest_revision}\"}}], \"name\": \"language_twelve_host\", \"lakeDir\": \".lake\"}}\n"), + ); + let error = mismatch + .engine() + .lock(lock_request(false)) + .err() + .unwrap_or_else(|| panic!("{why} is refused")); + support::expect_code(&error, "LLC0110"); + let message = error.to_string(); + assert!( + message.contains(manifest_revision) && message.contains(REVISION), + "{why}: {message}" + ); + } + let unrequired = library_project(&["mathlib"], true); + unrequired.write_raw( + "lake-manifest.json", + "{\"version\": \"1.2.0\", \"packagesDir\": \".lake/packages\", \"packages\": [], \"name\": \"language_twelve_host\", \"lakeDir\": \".lake\"}\n", + ); + let error = unrequired + .engine() + .lock(lock_request(false)) + .err() + .expect("an unrequired library is refused"); + support::expect_code(&error, "LLC0110"); +} + +/// A `lake` that behaves as `lake exe cache get` does, in a directory of its +/// own, and the `PATH` that finds it first. +struct StubLake { + directory: tempfile::TempDir, +} + +impl StubLake { + fn new(body: &str) -> Self { + let directory = tempfile::Builder::new() + .prefix("lexlean-stub-lake-") + .tempdir() + .expect("tempdir"); + let program = directory.path().join("lake"); + std::fs::write(&program, format!("#!/bin/sh\n{body}\n")).expect("write stub"); + #[cfg(unix)] + { + use std::os::unix::fs::PermissionsExt; + std::fs::set_permissions(&program, std::fs::Permissions::from_mode(0o755)) + .expect("chmod"); + } + Self { directory } + } + + /// Succeeds like `cache get`: leaves `name` present at `revision`. + fn fetching(name: &str, revision: &str) -> Self { + Self::new(&format!( + "mkdir -p .lake\necho \"$*\" >> .lake/stub.log\n[ \"$1 $2 $3\" = \"exe cache get\" ] || exit 2\nmkdir -p .lake/packages/{name}/.git .lake/packages/{name}/.lake/build/lib/lean\nprintf '%s\\n' {revision} > .lake/packages/{name}/.git/HEAD\nprintf '{{\"packages\": [], \"name\": \"{name}\"}}\\n' > .lake/packages/{name}/lake-manifest.json\necho olean > .lake/packages/{name}/.lake/build/lib/lean/{name}.olean" + )) + } + + fn with_path(&self, body: impl FnOnce() -> T) -> T { + let path = std::env::var("PATH").unwrap_or_default(); + let combined = format!("{}:{path}", self.directory.path().display()); + support::with_env(&[("PATH", Some(&combined))], body) + } +} + +/// ML-03: `deps fetch` and nothing else acquires the library. +fn ml_03() { + // The library is absent; the declaration and the Lake requirement hold. + let project = library_project(&["mathlib"], false); + let before = support::file_set(&project.root); + let stub = StubLake::fetching("mathlib", REVISION); + let (exit, stdout, stderr) = stub.with_path(|| project.cli(&["deps", "fetch"])); + assert_eq!(exit, 0, "{stdout}{stderr}"); + let log = project.read_raw(".lake/stub.log"); + assert_eq!(log.trim(), "exe cache get", "{log}"); + let after = support::file_set(&project.root); + let written: Vec<&String> = after + .difference(&before) + .filter(|path| !path.starts_with(".lake/")) + .collect(); + assert!( + written.is_empty(), + "written outside the Lake workspace: {written:?}" + ); + // Now the project locks and checks offline. + project.relock(); + project + .engine() + .lock(lock_request(true)) + .expect("lock --check"); + project.check_ok(); + + // With no library declared nothing is fetched and the command succeeds. + let none = P::language_1_2_example(); + let (exit, stdout, stderr) = stub.with_path(|| none.cli(&["deps", "fetch"])); + assert_eq!(exit, 0, "{stdout}{stderr}"); + assert!(!none.root.join(".lake/stub.log").as_std_path().exists()); + + // A failing `lake`, a missing `lake`, and a `lake` that leaves another + // revision are each LLV7020, exit 3. + let failing = StubLake::new("echo boom >&2\nexit 1"); + let leaves_other = StubLake::fetching("mathlib", OTHER_REVISION); + let leaves_nothing = StubLake::new("exit 0"); + for (why, lake) in [ + ("a failing lake", &failing), + ("another revision", &leaves_other), + ("nothing", &leaves_nothing), + ] { + let project = library_project(&["mathlib"], false); + let (exit, _, stderr) = lake.with_path(|| project.cli(&["deps", "fetch"])); + assert_eq!(exit, 3, "{why}: {stderr}"); + assert!(stderr.contains("LLV7020"), "{why}: {stderr}"); + } + let project = library_project(&["mathlib"], false); + let (exit, _, stderr) = support::with_env(&[("PATH", Some("/nonexistent"))], || { + project.cli(&["deps", "fetch"]) + }); + assert_eq!(exit, 3, "{stderr}"); + assert!(stderr.contains("LLV7020"), "{stderr}"); + + // A declaration the Lake workspace does not require is not fetched. + let unrequired = P::language_1_2_example(); + declare(&unrequired, "mathlib", URL, REVISION); + let (exit, _, stderr) = stub.with_path(|| unrequired.cli(&["deps", "fetch"])); + assert_eq!(exit, 2, "{stderr}"); + assert!(stderr.contains("LLC0110"), "{stderr}"); + assert!(!unrequired + .root + .join(".lake/stub.log") + .as_std_path() + .exists()); +} + +/// ML-04: every other command stays offline and says what to run. +/// ML-05: `fmt` of a project that declares a library is a rewrite, not a fetch. +fn ml_05() { + let project = library_project(&["mathlib"], true); + project.relock(); + let canonical = project.read_raw("src/Main.lex.tex"); + project.write_raw("src/Main.lex.tex", &canonical.replace('\n', "\r\n")); + let format = |check_only| FormatRequest { + selection: Selection::Entrypoints, + check_only, + }; + assert!( + project.engine().format(format(true)).is_err(), + "a CRLF entrypoint is not canonical" + ); + project + .engine() + .format(format(false)) + .expect("fmt rewrites a project that declares a library"); + assert_eq!( + project.read_raw("src/Main.lex.tex"), + canonical, + "the entrypoint is rewritten to its canonical form" + ); + project + .engine() + .format(format(true)) + .expect("and it is canonical now"); +} + +fn ml_04() { + // Declared and required, never fetched. + let unfetched = library_project(&["mathlib"], false); + every_command_refuses(&unfetched, "LLV7019"); + let error = unfetched + .engine() + .lock(lock_request(false)) + .err() + .expect("fails"); + let message = error.to_string(); + assert!(message.contains("mathlib"), "{message}"); + assert!(message.contains("lexlean deps fetch"), "{message}"); + let (exit, _, stderr) = unfetched.cli(&["verify", "--all"]); + assert_eq!(exit, 3, "{stderr}"); + assert!(stderr.contains("LLV7019"), "{stderr}"); + + // Fetched, locked, then the library goes away. + let project = library_project(&["mathlib"], true); + project.relock(); + project.check_ok(); + std::fs::remove_dir_all(project.root.join(".lake/packages/mathlib").as_std_path()) + .expect("remove"); + every_command_refuses(&project, "LLV7019"); + + // Present at another revision, and present without its built artifacts. + for (why, edit) in [ + ("another revision", 0), + ("no built artifacts", 1), + ("no manifest", 2), + ] { + let project = library_project(&["mathlib"], true); + match edit { + 0 => project.write_raw( + ".lake/packages/mathlib/.git/HEAD", + &format!("{OTHER_REVISION}\n"), + ), + 1 => std::fs::remove_dir_all( + project + .root + .join(".lake/packages/mathlib/.lake/build") + .as_std_path(), + ) + .expect("remove"), + _ => std::fs::remove_file( + project + .root + .join(".lake/packages/mathlib/lake-manifest.json") + .as_std_path(), + ) + .expect("remove"), + } + let error = project + .engine() + .lock(lock_request(false)) + .err() + .unwrap_or_else(|| panic!("{why}: refused")); + support::expect_code(&error, "LLV7019"); + } + + // No command ran the stub `lake`: nothing fetches. + let stub = StubLake::fetching("mathlib", REVISION); + let project = library_project(&["mathlib"], false); + stub.with_path(|| every_command_refuses(&project, "LLV7019")); + assert!(!project.root.join(".lake/stub.log").as_std_path().exists()); + let _ = Engine::load(&project.root.join("lexlean.toml")).expect("the project loads"); +} diff --git a/crates/conformance/src/cases/mod.rs b/crates/conformance/src/cases/mod.rs index c9d81ff6db..b68d3752e7 100644 --- a/crates/conformance/src/cases/mod.rs +++ b/crates/conformance/src/cases/mod.rs @@ -17,6 +17,7 @@ mod declarations; mod examples; mod extraction; pub use extraction::{compare_with_oracle, counter_independence, ne_04_lean_half, oracle_records}; +mod glossary; mod gnaf; mod grammar; mod helpdesk; @@ -25,6 +26,7 @@ mod latex_pdf; mod lean_backend; mod lexical_closure; mod lexicon; +mod mathlib; mod migration; mod models; mod operational; @@ -35,6 +37,7 @@ mod production; mod production_export; mod proofs; mod reasoning; +mod replay_cache; mod repository; mod runtime; mod runtime_semantics; @@ -50,12 +53,15 @@ mod rust_runtime; pub use rust_runtime::{ check_golden as check_runtime_transcript, golden_text, parse_golden, GOLDEN_FILE, }; +mod import_axioms; +mod probe_binders; mod rust_runtime_text; mod rust_scaffold; mod rust_std; mod rust_support; mod security; mod semantic_ir; +mod specialisation; mod std_packages; mod stdlib; mod stdlib_buffer; @@ -143,6 +149,8 @@ pub fn run(id: &str) { "SL" => stdlib::run(id), "BS" => bootstrap::run(id), "PK" => packages::run(id), + "ML" => mathlib::run(id), + "RC" => replay_cache::run(id), _ => panic!("no conformance case is wired for {id}"), } } diff --git a/crates/conformance/src/cases/probe_binders.rs b/crates/conformance/src/cases/probe_binders.rs new file mode 100644 index 0000000000..a89544df1c --- /dev/null +++ b/crates/conformance/src/cases/probe_binders.rs @@ -0,0 +1,45 @@ +//! VR-27: how the external-interface probe writes a signature (SPEC.md §18.8). +//! +//! The fixture is `tests/fixtures/probe-binders`: a project whose two entries +//! denote `HXor.hXor`, which has an instance binder, and `UInt32.xor_self`, +//! whose signature has a numeral argument and a binder named `a`, as the type +//! parameter of `Eq` is. + +use crate::support::{self, P}; + +const PROJECT: &str = "fixtures/probe-binders/project"; + +/// VR-27: the instance binder is anonymous and the numeral is ascribed no +/// local, so pinned Lean elaborates the probe without output. +pub(super) fn probe() { + if !support::lean_backed("VR-27") { + return; + } + let project = P::copy_tests_project(PROJECT); + project.relock(); + let (probe, record) = support::probe_lean( + &project, + &["test.probe::h-xor.h-xor", "test.probe::xor-self"], + ); + assert!( + probe.text.contains(": {x0 : Type p0u} → {x1 : Type p0v} → {x2 : Type p0w} → [HXor.{p0u, p0v, p0w} x0 x1 x2] → "), + "the instance binder is written without a name:\n{}", + probe.text + ); + assert!( + !probe.text.contains("(0 : x"), + "a numeral is never ascribed the type of a local:\n{}", + probe.text + ); + assert_eq!( + record.exit_code, 0, + "Lean elaborates the probe:\n{}\n{}", + record.stdout, record.stderr + ); + assert!( + record.stdout.trim().is_empty() && record.stderr.trim().is_empty(), + "and says nothing about it:\n{}\n{}", + record.stdout, + record.stderr + ); +} diff --git a/crates/conformance/src/cases/replay_cache.rs b/crates/conformance/src/cases/replay_cache.rs new file mode 100644 index 0000000000..30a320bf36 --- /dev/null +++ b/crates/conformance/src/cases/replay_cache.rs @@ -0,0 +1,667 @@ +//! The `replay-cache` suite: RC-01..RC-06 (SPEC.md §22.13). + +use std::cell::RefCell; +use std::collections::BTreeMap; + +use camino::Utf8PathBuf; +use lexlean::artifact::digest_set::DigestSet; +use lexlean::verify::replay_cache::{ + canonical_declaration, executable_identity, export_facts, replay_units, result_of, unit_key, + DeclarationFacts, ExecutableIdentity, Granularity, Lookup, Miss, ReplayCache, + ReplayEnvironment, ReplayGraph, ReplayReport, ReplayResult, ReplayUnit, +}; + +use crate::support; + +pub(crate) fn run(id: &str) { + match id { + "RC-01" => keys_are_digest_sets_over_one_serialisation(), + "RC-02" => keys_form_a_merkle_dag(), + "RC-03" => a_warm_replay_reuses_by_key(), + "RC-04" => tampered_entries_are_rejected(), + "RC-05" => a_changed_environment_invalidates_the_cache(), + "RC-06" => facts_from_real_modules_replay_cold_and_warm(), + _ => panic!("no replay-cache conformance case is wired for {id}"), + } +} + +fn environment(toolchain: &str, mathlib: &str) -> ReplayEnvironment { + ReplayEnvironment { + toolchain: toolchain.to_owned(), + mathlib_revision: mathlib.to_owned(), + } +} + +fn pinned() -> ReplayEnvironment { + environment( + lexlean::LEAN_TOOLCHAIN, + "0123456789abcdef0123456789abcdef01234567", + ) +} + +fn decl(name: &str, deps: &[&str]) -> DeclarationFacts { + DeclarationFacts { + name: name.to_owned(), + module: "Demo".to_owned(), + level_params: vec!["u".to_owned()], + attrs: "theorem".to_owned(), + type_text: format!("C {name} []\nroot 0"), + value: Some(format!("C {name}.proof []\nroot 0")), + deps: deps.iter().map(|d| (*d).to_owned()).collect(), + } +} + +/// `base`, two branches over it, `top` over both, and `lone` apart. +fn diamond() -> Vec { + vec![ + decl("base", &[]), + decl("left", &["base"]), + decl("right", &["base"]), + decl("top", &["left", "right"]), + decl("lone", &[]), + ] +} + +fn graph(environment: &ReplayEnvironment, facts: &[DeclarationFacts]) -> ReplayGraph { + ReplayGraph::build(environment, facts, &BTreeMap::new()).expect("the facts are keyed") +} + +fn keys_of(facts: &[DeclarationFacts]) -> BTreeMap { + graph(&pinned(), facts).keys().clone() +} + +fn changed( + before: &BTreeMap, + after: &BTreeMap, +) -> Vec { + before + .iter() + .filter(|(name, key)| after[*name] != **key) + .map(|(name, _)| name.clone()) + .collect() +} + +/// RC-01. +fn keys_are_digest_sets_over_one_serialisation() { + let key = keys_of(&diamond())["lone"]; + let label = key.label(); + assert_eq!(label.len(), "blake3:".len() + 64, "{label}"); + assert!(label.starts_with("blake3:")); + let digits = &label["blake3:".len()..]; + assert!(digits + .bytes() + .all(|b| b.is_ascii_digit() || (b'a'..=b'f').contains(&b))); + assert_eq!(digits, key.blake3.to_hex()); + let json = key.to_json().to_canonical_string(); + assert_eq!( + json, + format!( + "{{\"blake3\":\"{}\",\"sha256\":\"{}\"}}", + key.blake3.to_hex(), + key.sha256.to_hex() + ) + ); + assert_eq!(DigestSet::from_json(&key.to_json()), Ok(key)); + + // Both digests cover the same bytes: the canonical serialisation hashes + // to the same pair whichever way it is fed in. + let facts = decl("lone", &[]); + assert_eq!( + DigestSet::of(&canonical_declaration(&facts)), + DigestSet::of(&canonical_declaration(&facts)) + ); + + let edit = |change: &dyn Fn(&mut DeclarationFacts)| { + let mut all = diamond(); + let target = all.iter_mut().find(|d| d.name == "lone").expect("lone"); + change(target); + let name = target.name.clone(); + keys_of(&all)[&name] + }; + assert_eq!(key, edit(&|_| {}), "equal inputs give equal keys"); + for (what, other) in [ + ("name", edit(&|d| d.name = "lone2".to_owned())), + ( + "universe parameters", + edit(&|d| d.level_params = vec!["v".to_owned()]), + ), + ("kind attributes", edit(&|d| d.attrs = "def".to_owned())), + ("type", edit(&|d| d.type_text.push('x'))), + ("value", edit(&|d| d.value = Some("other".to_owned()))), + ("no value", edit(&|d| d.value = None)), + ] { + assert_ne!(key, other, "a changed {what} changes the key"); + } + let mut with_dependency = diamond(); + with_dependency + .iter_mut() + .find(|d| d.name == "lone") + .expect("lone") + .deps + .push("base".to_owned()); + assert_ne!( + key, + keys_of(&with_dependency)["lone"], + "a dependency changes the key" + ); + let moved = edit(&|d| d.module = "Elsewhere".to_owned()); + assert_eq!(key, moved, "the declaring module is not an input"); + for other in [ + environment("leanprover/lean4:v4.32.2", &pinned().mathlib_revision), + environment(&pinned().toolchain, "other"), + ] { + assert_ne!( + key, + graph(&other, &diamond()).keys()["lone"], + "the environment is an input" + ); + } +} + +/// RC-02. +fn keys_form_a_merkle_dag() { + let before = keys_of(&diamond()); + let edit = |name: &str| { + let mut facts = diamond(); + facts + .iter_mut() + .find(|d| d.name == name) + .expect("name") + .type_text + .push('!'); + changed(&before, &keys_of(&facts)) + }; + assert_eq!(edit("base"), ["base", "left", "right", "top"]); + assert_eq!(edit("left"), ["left", "top"]); + assert_eq!(edit("right"), ["right", "top"]); + assert_eq!(edit("top"), ["top"]); + assert_eq!(edit("lone"), ["lone"]); + + let group = vec![ + decl("T", &["T.mk", "T.rec"]), + decl("T.mk", &["T"]), + decl("T.rec", &["T", "T.mk"]), + decl("user", &["T.rec"]), + ]; + let built = graph(&pinned(), &group); + let digest = built.group("T").copied().expect("group digest"); + assert_eq!(built.group("T.mk"), Some(&digest)); + assert_eq!(built.group("T.rec"), Some(&digest)); + assert_ne!(built.group("user"), Some(&digest)); + let mut edited = group.clone(); + edited[1].type_text.push('!'); + assert_eq!( + changed(built.keys(), &keys_of(&edited)), + ["T", "T.mk", "T.rec", "user"] + ); + + let refused = |facts: &[DeclarationFacts]| { + ReplayGraph::build(&pinned(), facts, &BTreeMap::new()).expect_err("refused") + }; + let repeated = refused(&[decl("a", &[]), decl("a", &[])]); + let dangling = refused(&[decl("a", &["missing"])]); + let anchored = ReplayGraph::build( + &pinned(), + &[decl("a", &["missing"])], + &BTreeMap::from([("missing".to_owned(), DigestSet::of(b"anchor"))]), + ); + assert!( + anchored.is_ok(), + "a given key anchors a name the facts do not state" + ); + let unparsed = lexlean::verify::replay_cache::parse_facts("{\"name\":").expect_err("refused"); + for diagnostic in [repeated, dangling, unparsed] { + assert_eq!( + diagnostic.code.as_str(), + "LLV7022", + "{}", + diagnostic.message + ); + } +} + +struct Store { + _dir: tempfile::TempDir, + cache: ReplayCache, +} + +fn store() -> Store { + let dir = tempfile::tempdir().expect("tempdir"); + let root = Utf8PathBuf::from_path_buf(dir.path().join("replay")).expect("utf-8 path"); + Store { + cache: ReplayCache::open(root), + _dir: dir, + } +} + +fn executable(bytes: &[u8]) -> ExecutableIdentity { + ExecutableIdentity { + tool: "leanchecker".to_owned(), + digest: DigestSet::of(bytes), + } +} + +fn units( + environment: &ReplayEnvironment, + facts: &[DeclarationFacts], + granularity: Granularity, +) -> Vec { + let built = graph(environment, facts); + match granularity { + Granularity::Declaration => facts + .iter() + .map(|d| ReplayUnit { + label: d.name.clone(), + granularity, + key: *built.key(&d.name).expect("key"), + }) + .collect(), + Granularity::Module => { + let mut by_module: BTreeMap<&str, Vec<&str>> = BTreeMap::new(); + for d in facts { + by_module + .entry(d.module.as_str()) + .or_default() + .push(d.name.as_str()); + } + by_module + .into_iter() + .map(|(module, names)| ReplayUnit { + label: module.to_owned(), + granularity, + key: built.unit(granularity, names).expect("unit"), + }) + .collect() + } + } +} + +fn replay( + store: &Store, + environment: &ReplayEnvironment, + exe: &ExecutableIdentity, + units: &[ReplayUnit], +) -> (Result, Vec) { + let called = RefCell::new(Vec::new()); + let outcome = replay_units(&store.cache, environment, exe, units, |unit| { + called.borrow_mut().push(unit.label.clone()); + Ok(ReplayResult { + exit_code: 0, + stdout: format!("replayed {}\n", unit.label), + stderr: String::new(), + }) + }); + (outcome, called.into_inner()) +} + +/// RC-03. +fn a_warm_replay_reuses_by_key() { + let exe = executable(b"leanchecker 1"); + for granularity in [Granularity::Declaration, Granularity::Module] { + let store = store(); + let mut facts = diamond(); + for (index, d) in facts.iter_mut().enumerate() { + d.module = format!("M{}", index / 2); + } + let cold = units(&pinned(), &facts, granularity); + let total = cold.len(); + let (outcome, called) = replay(&store, &pinned(), &exe, &cold); + assert_eq!(called.len(), total); + assert_eq!(outcome.expect("cold").replayed.len(), total); + + let (outcome, called) = replay(&store, &pinned(), &exe, &cold); + assert!(called.is_empty(), "{granularity:?}: {called:?}"); + assert_eq!(outcome.expect("warm").reused.len(), total); + + // One declaration edited: the units whose members reach it replay. + facts + .iter_mut() + .find(|d| d.name == "left") + .expect("left") + .type_text + .push('!'); + let warm = units(&pinned(), &facts, granularity); + let (outcome, called) = replay(&store, &pinned(), &exe, &warm); + let report = outcome.expect("warm after an edit"); + assert_eq!(called, report.replayed); + match granularity { + // `left` and `top` are above the edit; the others keep their keys. + Granularity::Declaration => assert_eq!(called, ["left", "top"]), + // M0 = base, left; M1 = right, top; M2 = lone. M0 holds `left`; + // M1 holds `top`, which reaches it; M2 does not. + Granularity::Module => { + assert_eq!(called, ["M0", "M1"]); + assert_eq!(report.reused, ["M2"]); + } + } + } + + // A result is recorded only for a replay that succeeded. + let store = store(); + let all = units(&pinned(), &diamond(), Granularity::Declaration); + let failed = replay_units(&store.cache, &pinned(), &exe, &all, |unit| { + Ok(ReplayResult { + exit_code: i32::from(unit.label == "left"), + stdout: String::new(), + stderr: "error".to_owned(), + }) + }); + assert_eq!( + failed.expect_err("a failing replay").code.as_str(), + "LLV7003" + ); + let left = all.iter().find(|u| u.label == "left").expect("left"); + assert_eq!( + store + .cache + .lookup(&left.key, &pinned(), &exe) + .expect("lookup"), + Lookup::Miss(Miss::Absent) + ); + + // Each entry names the executable that produced it, and another is a miss. + let (outcome, _) = replay(&store, &pinned(), &exe, &all); + outcome.expect("replay after the failure"); + let text = std::fs::read_to_string(store.cache.entry_path(&all[0].key)).expect("entry"); + assert!( + text.contains(&exe.digest.sha256.to_hex()) && text.contains(&exe.digest.blake3.to_hex()), + "{text}" + ); + let other = executable(b"leanchecker 2"); + assert_eq!( + store + .cache + .lookup(&all[0].key, &pinned(), &other) + .expect("lookup"), + Lookup::Miss(Miss::ExecutableChanged) + ); + let (outcome, called) = replay(&store, &pinned(), &other, &all); + assert_eq!( + called.len(), + all.len(), + "another executable replays every unit" + ); + assert!(outcome.expect("other executable").reused.is_empty()); +} + +/// RC-04. +fn tampered_entries_are_rejected() { + let exe = executable(b"leanchecker 1"); + let unit = units(&pinned(), &diamond(), Granularity::Declaration).remove(0); + let other_unit = units(&pinned(), &diamond(), Granularity::Declaration).remove(4); + let fresh = || { + let store = store(); + replay(&store, &pinned(), &exe, std::slice::from_ref(&unit)) + .0 + .expect("cold"); + let path = store.cache.entry_path(&unit.key); + (store, path) + }; + let assert_rejected = |store: &Store, path: &camino::Utf8Path, key: &ReplayUnit, what: &str| { + let before = std::fs::read(path).ok(); + let refused = store + .cache + .lookup(&key.key, &pinned(), &exe) + .expect_err(what); + assert_eq!( + refused.code.as_str(), + "LLV7021", + "{what}: {}", + refused.message + ); + let (outcome, called) = replay(store, &pinned(), &exe, std::slice::from_ref(key)); + assert_eq!(outcome.expect_err(what).code.as_str(), "LLV7021", "{what}"); + assert!(called.is_empty(), "{what}: the replayer ran"); + assert_eq!( + std::fs::read(path).ok(), + before, + "{what}: the file was replaced" + ); + }; + + // Bytes changed, key kept. + let (store, path) = fresh(); + let text = std::fs::read_to_string(&path).expect("entry"); + std::fs::write(&path, text.replace("replayed base", "replayed fake")).expect("tamper"); + assert_rejected(&store, &path, &unit, "result edited"); + + // The producing executable's digest edited. + let (store, path) = fresh(); + let text = std::fs::read_to_string(&path).expect("entry"); + let forged = executable(b"leanchecker 2").digest.blake3.to_hex(); + std::fs::write(&path, text.replace(&exe.digest.blake3.to_hex(), &forged)).expect("tamper"); + assert_rejected(&store, &path, &unit, "executable edited"); + + // Stored under another key. + let (store, path) = fresh(); + let target = store.cache.entry_path(&other_unit.key); + std::fs::create_dir_all(target.parent().expect("parent")).expect("directory"); + std::fs::copy(&path, &target).expect("copy"); + assert_rejected(&store, &target, &other_unit, "stored under another key"); + + // Truncated, and no longer an entry. + let (store, path) = fresh(); + let text = std::fs::read_to_string(&path).expect("entry"); + std::fs::write(&path, &text[..text.len() / 2]).expect("tamper"); + assert_rejected(&store, &path, &unit, "truncated"); + std::fs::write(&path, b"").expect("tamper"); + assert_rejected(&store, &path, &unit, "emptied"); +} + +/// RC-05. +fn a_changed_environment_invalidates_the_cache() { + let store = store(); + let exe = executable(b"leanchecker 1"); + let first = units(&pinned(), &diamond(), Granularity::Declaration); + replay(&store, &pinned(), &exe, &first).0.expect("first"); + let read_all = || -> Vec<(std::path::PathBuf, Vec)> { + let mut out = Vec::new(); + let entries = store + .cache + .entry_path(&DigestSet::of(b"")) + .parent() + .expect("shard") + .parent() + .expect("entries") + .to_path_buf(); + for shard in std::fs::read_dir(entries.as_std_path()).expect("entries") { + for file in std::fs::read_dir(shard.expect("shard").path()).expect("shard") { + let path = file.expect("file").path(); + out.push((path.clone(), std::fs::read(&path).expect("read"))); + } + } + out.sort(); + out + }; + let before = read_all(); + for other in [ + environment("leanprover/lean4:v4.32.2", &pinned().mathlib_revision), + environment( + &pinned().toolchain, + "fedcba9876543210fedcba9876543210fedcba98", + ), + ] { + let under = units(&other, &diamond(), Granularity::Declaration); + let (outcome, called) = replay(&store, &other, &exe, &under); + assert_eq!( + called.len(), + under.len(), + "nothing recorded under the first environment is reused" + ); + assert!(outcome.expect("other environment").reused.is_empty()); + } + let after = read_all(); + assert_eq!(after.len(), before.len() * 3); + for entry in &before { + assert!( + after.contains(entry), + "an entry of the first environment was changed" + ); + } + let (outcome, called) = replay(&store, &pinned(), &exe, &first); + assert!(called.is_empty()); + assert_eq!(outcome.expect("first again").reused.len(), first.len()); +} + +/// RC-06: the pinned Lean exports the facts, the pinned `leanchecker` +/// replays, and a one-line edit replays only what it reaches. +fn facts_from_real_modules_replay_cold_and_warm() { + if !support::lean_backed("RC-06") { + // The keying itself is platform independent and RC-01..RC-05 ran it. + let _ = unit_key(Granularity::Module, &[]); + return; + } + use lexlean::config::Limits; + use lexlean::verify::child::{run, ChildHome, ChildSpec, Normalizer}; + let limits = Limits { + max_file_bytes: 16_777_216, + max_total_source_bytes: 67_108_864, + max_primitive_atoms: 2_000_000, + max_token_lattice_edges: 4_000_000, + max_parse_states: 4_000_000, + max_ir_nodes: 2_000_000, + max_scope_depth: 1024, + max_import_depth: 128, + max_diagnostics: 256, + max_child_output_bytes: 67_108_864, + child_timeout_ms: 300_000, + }; + let toolchain = lexlean::verify::toolchain::preflight(&limits).expect("the pinned toolchain"); + let work = tempfile::tempdir().expect("tempdir"); + let dir = Utf8PathBuf::from_path_buf(work.path().to_path_buf()).expect("utf-8 path"); + let normalizer = Normalizer::new(&dir, &dir, &dir, &toolchain.root); + let lean_path = dir.to_string(); + let bin = toolchain.root.join("bin"); + let write = |module: &str, text: &str| { + std::fs::write(dir.join(format!("{module}.lean")).as_std_path(), text) + .expect("write source"); + }; + let compile = |module: &str| { + let record = run( + &ChildSpec { + tool: "lean", + module: Some(module.to_owned()), + program: &toolchain.lean.path, + executable_sha256: toolchain.lean.sha256, + argv: vec![ + format!("--root={dir}"), + "-o".to_owned(), + dir.join(format!("{module}.olean")).to_string(), + dir.join(format!("{module}.lean")).to_string(), + ], + cwd: &dir, + extra_env: vec![("LEAN_PATH".to_owned(), lean_path.clone())], + home: ChildHome::Toolchain { + toolchain_bin: &bin, + }, + }, + &limits, + &normalizer, + ) + .expect("lean runs"); + assert_eq!( + record.exit_code, 0, + "{module}: {}{}", + record.stdout, record.stderr + ); + }; + + // C imports B and uses only A, so an edit to B's declaration is not above it. + let a = "def a : Nat := 1\ntheorem a_pos : 0 < a := by decide\n"; + let b = |step: u32| { + format!("import A\ndef b : Nat := a + {step}\ntheorem b_gt : a < b := by unfold b; omega\n") + }; + let c = "import B\ndef c : Nat := a + 2\n"; + write("A", a); + write("B", &b(1)); + write("C", c); + for module in ["A", "B", "C"] { + compile(module); + } + + let executable = + executable_identity("leanchecker", &toolchain.leanchecker.path).expect("executable"); + assert_eq!( + executable.digest.sha256, toolchain.leanchecker.sha256, + "the same bytes the preflight hashed" + ); + let env = environment(lexlean::LEAN_TOOLCHAIN, ""); + let unit_of = |module: &str| { + let facts = export_facts(&toolchain, module, &lean_path, &dir, &limits, &normalizer) + .expect("facts"); + let built = graph(&env, &facts); + let own: Vec<&str> = facts + .iter() + .filter(|f| f.module == module) + .map(|f| f.name.as_str()) + .collect(); + assert!(!own.is_empty(), "{module} declares constants"); + ReplayUnit { + label: module.to_owned(), + granularity: Granularity::Module, + key: built.unit(Granularity::Module, own).expect("unit"), + } + }; + let replay_module = |unit: &ReplayUnit| -> Result { + lexlean::verify::leanchecker::replay_module( + &toolchain, + &unit.label, + &lean_path, + &dir, + &limits, + &normalizer, + ) + .map(|record| result_of(&record)) + }; + let measure = |store: &Store, label: &str| { + let started = std::time::Instant::now(); + let units: Vec = ["A", "B", "C"].iter().map(|m| unit_of(m)).collect(); + let keyed = started.elapsed(); + let report = + replay_units(&store.cache, &env, &executable, &units, replay_module).expect("replay"); + eprintln!( + "RC-06 {label}: replayed {:?}, reused {:?}; facts and keys {} ms, replays {} ms", + report.replayed, + report.reused, + keyed.as_millis(), + (started.elapsed() - keyed).as_millis() + ); + (units, report) + }; + + let store = store(); + let (_, cold) = measure(&store, "cold"); + assert_eq!(cold.replayed, ["A", "B", "C"]); + let (_, again) = measure(&store, "unchanged"); + assert_eq!(again.reused, ["A", "B", "C"]); + + // The one-line edit: B's `b` becomes `a + 3`, and B and C are rebuilt. + write("B", &b(3)); + compile("B"); + compile("C"); + let (units, warm) = measure(&store, "after the edit"); + assert_eq!(warm.replayed, ["B"], "only the edited module replays"); + assert_eq!(warm.reused, ["A", "C"]); + + // The warm verdicts equal a cold run of the edited modules. + let fresh = self::store(); + let (fresh_units, fresh_report) = measure(&fresh, "cold again, edited"); + assert_eq!(fresh_report.replayed, ["A", "B", "C"]); + for (unit, fresh_unit) in units.iter().zip(&fresh_units) { + assert_eq!(unit.key, fresh_unit.key); + let read = |store: &Store, unit: &ReplayUnit| match store + .cache + .lookup(&unit.key, &env, &executable) + .expect("lookup") + { + Lookup::Hit(entry) => entry.result, + Lookup::Miss(miss) => panic!("{}: {miss:?}", unit.label), + }; + assert_eq!( + read(&store, unit), + read(&fresh, fresh_unit), + "{}", + unit.label + ); + } +} diff --git a/crates/conformance/src/cases/repository.rs b/crates/conformance/src/cases/repository.rs index 7219f7d99a..b39cd6cced 100644 --- a/crates/conformance/src/cases/repository.rs +++ b/crates/conformance/src/cases/repository.rs @@ -543,7 +543,7 @@ pub(crate) fn run(id: &str) { parts[0], "bootstrap" | "compiler" | "std-models" | "std-reasoning" | "stdlib" )) - || (index == 2 && parts[0] == "examples") + || (index == 2 && matches!(parts[0], "examples" | "demos")) || (index == 3 && parts[0] == "tests" && matches!(parts[1], "negative" | "tooling")) @@ -760,7 +760,7 @@ pub(crate) fn run(id: &str) { let model = repo_model::Model::load(&root.join("model").into_std_path_buf()) .expect("the model loads"); let table = spec_table(); - assert_eq!(table.len(), 457, "§31 has 457 rows"); + assert_eq!(table.len(), 477, "§31 has 477 rows"); assert_eq!(model.ids.id.len(), table.len(), "register row count"); for ((spec_id, spec_suite, spec_statement), row) in table.iter().zip(model.ids.id.iter()) diff --git a/crates/conformance/src/cases/specialisation.rs b/crates/conformance/src/cases/specialisation.rs new file mode 100644 index 0000000000..50dfdfde78 --- /dev/null +++ b/crates/conformance/src/cases/specialisation.rs @@ -0,0 +1,197 @@ +//! GL-21 and VR-24: specialisation wrappers (SPEC.md §13.13, §18.8). +//! +//! The fixture is `tests/fixtures/specialisation`: a request for +//! `Std.Commutative.comm` and `Std.Associative.assoc` at `Nat`, `Int`, +//! `UInt32`, and `BitVec 32`, the host module the emitter writes for it +//! (committed, as the project's `SpecHost.lean`), and a project whose +//! entries denote two of the wrappers. + +use std::process::Command; + +use lexlean::wrappers::{emit, is_wrapper_name, parse_request}; + +use crate::support::{self, P}; + +const REQUEST: &str = "tests/fixtures/specialisation/request.toml"; +const HOST: &str = "tests/fixtures/specialisation/project/SpecHost.lean"; +const PROJECT: &str = "fixtures/specialisation/project"; + +fn read(relative: &str) -> String { + std::fs::read_to_string(support::repo_root().join(relative).as_std_path()) + .unwrap_or_else(|error| panic!("{relative}: {error}")) +} + +fn refused(request: &str) -> String { + let error = parse_request(request).expect_err(request); + assert_eq!(error.code.as_str(), "LLT4018", "{request}"); + error.message +} + +/// GL-21: the emitter writes terms, deterministically, and refuses the rest. +pub(super) fn emitter() { + let request_text = read(REQUEST); + let request = parse_request(&request_text).expect("the fixture request is valid"); + let first = emit(&request); + let second = emit(&parse_request(&request_text).expect("valid")); + assert_eq!(first, second, "two runs write the same bytes"); + assert_eq!( + first.module_text, + read(HOST), + "the committed host module is the emitter's output" + ); + + // The request's order is not the module's: the wrappers are sorted by + // Lean name. + let mut blocks: Vec<&str> = request_text.split("\n[[wrapper]]").collect(); + let header = blocks.remove(0); + blocks.reverse(); + let reversed = format!("{header}\n[[wrapper]]{}", blocks.join("\n[[wrapper]]")); + assert_eq!( + emit(&parse_request(&reversed).expect("valid")).module_text, + first.module_text, + "the order of the request does not reach the module" + ); + + assert_eq!(first.wrappers.len(), 8); + let lines: Vec<&str> = first.module_text.lines().collect(); + assert_eq!(lines[0], "module"); + for wrapper in &first.wrappers { + assert!(is_wrapper_name(&wrapper.lean_name)); + let line = lines[wrapper.line - 1]; + assert!( + line.starts_with(&format!( + "public theorem {} : type_of% (@_root_.", + wrapper.lean_name + )), + "{line}" + ); + // A term and nothing else: no tactic block, no `by`, no `sorry`, no + // axiom, no binder, and every constant qualified from the root. + for forbidden in [ + " by ", "by\n", "sorry", "axiom", "fun ", "λ", "calc", "decide", + ] { + assert!(!line.contains(forbidden), "`{forbidden}` in {line}"); + } + assert!(!line.contains(" Nat ") && !line.contains("(Nat "), "{line}"); + } + for tag in ["Nat", "Int", "UInt32", "BitVec32"] { + assert!( + first + .wrappers + .iter() + .any(|wrapper| wrapper.tag == tag && wrapper.declaration == "Std.Commutative.comm"), + "{tag} is specialised" + ); + } + let denotation = first.wrappers[0].denotation("SpecHost"); + assert!(denotation.contains("kind = \"lean\"") && denotation.contains("module = \"SpecHost\"")); + + // The refusals. + let wrapper = |body: &str| { + format!("spec = \"lexlean/wrappers/1\"\nimports = [\"Init\"]\n[[wrapper]]\n{body}\n") + }; + let row = |arguments: &str, tag: &str, declaration: &str| { + wrapper(&format!( + "declaration = \"{declaration}\"\nkind = \"theorem\"\ntag = \"{tag}\"\narguments = [{arguments}]" + )) + }; + let tactic = refused(&row("\"(by simp)\"", "T", "f")); + assert!(tactic.contains("by"), "{tactic}"); + refused(&row("\"(fun x x)\"", "T", "f")); + refused(&row("\"\\\"text\\\"\"", "T", "f")); + refused(&row("\"_ -- comment\"", "T", "f")); + refused(&row("\"(Nat\"", "T", "f")); + refused(&row("", "T", "f g")); + refused(&row("", "T.U", "f")); + let duplicate = format!( + "{}[[wrapper]]\ndeclaration = \"f\"\nkind = \"theorem\"\ntag = \"T\"\narguments = []\n", + row("", "T", "f") + ); + assert!(refused(&duplicate).contains("twice")); +} + +/// Build the host library of a project copy: `lake build` against the +/// pinned toolchain, offline (the library has no dependency). +fn build_host(project: &P) { + let output = Command::new("lake") + .arg("build") + .arg("SpecHost") + .current_dir(project.root.as_std_path()) + .output() + .expect("lake runs; is leanprover/lean4:v4.32.1 installed?"); + assert!( + output.status.success(), + "the host library builds: {}{}", + String::from_utf8_lossy(&output.stdout), + String::from_utf8_lossy(&output.stderr) + ); +} + +fn prepared() -> P { + let project = P::copy_tests_project(PROJECT); + build_host(&project); + project +} + +/// VR-24: the wrapper line of the probe, accepted for the exact signature, +/// refused for a wrong one, and `LLT4003` for a wrapper that is not there. +pub(super) fn probe() { + if !support::lean_backed("VR-24") { + return; + } + let exact = prepared(); + exact.relock(); + let verified = exact + .engine() + .verify(lexlean::VerifyRequest { + selection: lexlean::Selection::Entrypoints, + }) + .expect("the exact signatures verify"); + let probe_dir = verified.root.join("probe"); + let probe_file = support::file_set(&probe_dir) + .into_iter() + .find(|name| name.ends_with(".lean")) + .expect("the probe module is published"); + let probe_text = + std::fs::read_to_string(probe_dir.join(&probe_file).as_std_path()).expect("read"); + for wrapper in [ + "LexLeanSpec.Int.Std.Commutative.comm", + "LexLeanSpec.Nat.Std.Commutative.comm", + ] { + assert!( + probe_text.contains(&format!(") = (type_of% @{wrapper}) := rfl")), + "the probe holds the equality of {wrapper}:\n{probe_text}" + ); + } + // An entry outside the reserved root is probed as it always was. + assert!(probe_text.contains("example : (x0 : Nat) → (x1 : Nat) → Nat := Nat.add")); + + // A signature that is not the type of the wrapper: `a + a`'s twin. + let planted = prepared(); + planted.edit( + "lexicons/test-spec/entries/nat-comm.toml", + "(app (const lexlean.std.nat::add) (local b) (local a))", + "(app (const lexlean.std.nat::add) (local a) (local b))", + ); + planted.relock(); + let error = planted.verify_fails_with("LLT4017"); + let text = error.to_string(); + assert!( + text.contains("test.spec::nat-comm"), + "names the entry: {text}" + ); + assert!( + !text.contains("int-comm"), + "the exact entry is not blamed: {text}" + ); + + // A wrapper the host library does not have is the interface failure. + let missing = prepared(); + missing.edit( + "lexicons/test-spec/entries/nat-comm.toml", + "LexLeanSpec.Nat.Std.Commutative.comm", + "LexLeanSpec.Nat.Std.Commutative.nope", + ); + missing.relock(); + missing.verify_fails_with("LLT4003"); +} diff --git a/crates/conformance/src/cases/verification.rs b/crates/conformance/src/cases/verification.rs index 3cbe4020a9..d31a68fae2 100644 --- a/crates/conformance/src/cases/verification.rs +++ b/crates/conformance/src/cases/verification.rs @@ -41,6 +41,22 @@ pub(crate) fn run(id: &str) { super::operational::run(id); return; } + // §18.8: the probe of a specialisation wrapper; the case gates itself. + if id == "VR-27" { + super::probe_binders::probe(); + return; + } + if id == "VR-24" { + super::specialisation::probe(); + return; + } + // §18.8, §22.6: the axioms of imported declarations; the cases gate + // their own Lean-backed halves. + match id { + "VR-25" => return super::import_axioms::audit(), + "VR-26" => return super::import_axioms::status(), + _ => {} + } if LEAN_BACKED.contains(&id) && !support::lean_backed(id) { run_platform_independent(id); return; diff --git a/crates/conformance/tests/conformance.rs b/crates/conformance/tests/conformance.rs index c8fd4d3bae..149189a356 100644 --- a/crates/conformance/tests/conformance.rs +++ b/crates/conformance/tests/conformance.rs @@ -340,6 +340,21 @@ fn conformance_gl_18() { repo_conformance::cases::run("GL-18"); } +#[test] +fn conformance_gl_19() { + repo_conformance::cases::run("GL-19"); +} + +#[test] +fn conformance_gl_20() { + repo_conformance::cases::run("GL-20"); +} + +#[test] +fn conformance_gl_21() { + repo_conformance::cases::run("GL-21"); +} + #[test] fn conformance_gr_01() { repo_conformance::cases::run("GR-01"); @@ -1110,6 +1125,26 @@ fn conformance_vr_23() { repo_conformance::cases::run("VR-23"); } +#[test] +fn conformance_vr_24() { + repo_conformance::cases::run("VR-24"); +} + +#[test] +fn conformance_vr_25() { + repo_conformance::cases::run("VR-25"); +} + +#[test] +fn conformance_vr_26() { + repo_conformance::cases::run("VR-26"); +} + +#[test] +fn conformance_vr_27() { + repo_conformance::cases::run("VR-27"); +} + #[test] fn conformance_cl_01() { repo_conformance::cases::run("CL-01"); @@ -1230,6 +1265,11 @@ fn conformance_cl_24() { repo_conformance::cases::run("CL-24"); } +#[test] +fn conformance_cl_25() { + repo_conformance::cases::run("CL-25"); +} + #[test] fn conformance_se_01() { repo_conformance::cases::run("SE-01"); @@ -1335,6 +1375,11 @@ fn conformance_ex_09() { repo_conformance::cases::run("EX-09"); } +#[test] +fn conformance_ex_10() { + repo_conformance::cases::run("EX-10"); +} + #[test] fn conformance_pd_01() { repo_conformance::cases::run("PD-01"); @@ -2289,3 +2334,58 @@ fn conformance_lm_09() { fn conformance_lm_13() { repo_conformance::cases::run("LM-13"); } + +#[test] +fn conformance_ml_01() { + repo_conformance::cases::run("ML-01"); +} + +#[test] +fn conformance_ml_02() { + repo_conformance::cases::run("ML-02"); +} + +#[test] +fn conformance_ml_03() { + repo_conformance::cases::run("ML-03"); +} + +#[test] +fn conformance_ml_04() { + repo_conformance::cases::run("ML-04"); +} + +#[test] +fn conformance_ml_05() { + repo_conformance::cases::run("ML-05"); +} + +#[test] +fn conformance_rc_01() { + repo_conformance::cases::run("RC-01"); +} + +#[test] +fn conformance_rc_02() { + repo_conformance::cases::run("RC-02"); +} + +#[test] +fn conformance_rc_03() { + repo_conformance::cases::run("RC-03"); +} + +#[test] +fn conformance_rc_04() { + repo_conformance::cases::run("RC-04"); +} + +#[test] +fn conformance_rc_05() { + repo_conformance::cases::run("RC-05"); +} + +#[test] +fn conformance_rc_06() { + repo_conformance::cases::run("RC-06"); +} diff --git a/crates/lexlean/Cargo.toml b/crates/lexlean/Cargo.toml index ab72c8f8be..488ae348cb 100644 --- a/crates/lexlean/Cargo.toml +++ b/crates/lexlean/Cargo.toml @@ -24,6 +24,7 @@ same-file = { workspace = true } semver = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } +blake3 = { workspace = true } sha2 = { workspace = true } tempfile = { workspace = true } toml = { workspace = true } diff --git a/crates/lexlean/lean/GlossaryExtract.lean b/crates/lexlean/lean/GlossaryExtract.lean new file mode 100644 index 0000000000..ac77d38264 --- /dev/null +++ b/crates/lexlean/lean/GlossaryExtract.lean @@ -0,0 +1,453 @@ +/- + LexLean glossary extractor (SPEC.md §13.6-§13.8, issue #335). + + Reads declarations from an imported Lean environment and prints, as one + canonical JSON document, a record per declaration: the LSE translation of + its type, or the reason it cannot be translated. It decides nothing about + names or files; `lexlean deps glossary` does that from this document. + + Invocation: lean --run Extract.lean -- (--modules M ... | --names N ...) + + Determinism: records are sorted by Lean name; JSON objects print with + sorted keys; no clock, path, or hash-map iteration order reaches the output. +-/ +import Lean +open Lean Meta + +namespace LexLeanGlossary + +/-- A refusal: a stable reason code and a human detail. -/ +structure Refusal where + reason : String + detail : String + +structure TrState where + refs : NameSet := {} + erased : Nat := 0 + usedLocals : Std.HashSet String := {} + fvarNames : Std.HashMap FVarId String := {} + levelNames : Std.HashMap Name String := {} + +abbrev TrM := StateRefT TrState (ExceptT Refusal MetaM) + +def refuse {α} (reason detail : String) : TrM α := throwThe Refusal ⟨reason, detail⟩ + +/-- Lean constants that denote core lexicon entries, by qualified entry ID. -/ +def coreEntries : List (Name × String) := + [(`Eq, "lexlean.core::eq"), (`And, "lexlean.core::land"), + (`Or, "lexlean.core::lor"), (`Not, "lexlean.core::lnot"), + (`Iff, "lexlean.core::iff"), (`Exists, "lexlean.core::exists-op")] + +/-- Elaboration annotations that are identity on the type; erased. -/ +def annotationNames : List Name := [`outParam, `semiOutParam, `optParam, `autoParam] + +/-- Greek letters to the Latin letter they are conventionally read as, so that +`α β γ` stay distinct and readable in binder names; anything else outside +ASCII letters and digits is dropped. -/ +def translit (c : Char) : String := + match c with + | 'α' => "a" | 'β' => "b" | 'γ' => "g" | 'δ' => "d" | 'ε' => "e" | 'ζ' => "z" + | 'η' => "h" | 'θ' => "t" | 'ι' => "i" | 'κ' => "k" | 'λ' => "l" | 'μ' => "m" + | 'ν' => "n" | 'ξ' => "x" | 'ο' => "o" | 'π' => "p" | 'ρ' => "r" | 'σ' => "s" + | 'τ' => "t" | 'υ' => "u" | 'φ' => "f" | 'χ' => "c" | 'ψ' => "y" | 'ω' => "w" + | 'Γ' => "G" | 'Δ' => "D" | 'Θ' => "T" | 'Λ' => "L" | 'Ξ' => "X" | 'Π' => "P" + | 'Σ' => "S" | 'Φ' => "F" | 'Ψ' => "Y" | 'Ω' => "W" + | c => if c.isAlphanum && c.toNat < 128 then c.toString else "" + +def asciiIdent (s : String) : String := String.join (s.toList.map translit) + +/-- A fresh LSE identifier (`[A-Za-z][A-Za-z0-9]*`) from a Lean binder name. -/ +def freshLocal (base : String) : TrM String := do + let mut b := asciiIdent base + if b.isEmpty || !b.front.isAlpha then b := "x" ++ b + let st ← get + let mut cand := b + let mut i := 1 + while st.usedLocals.contains cand do + cand := b ++ toString i + i := i + 1 + modify fun s => { s with usedLocals := s.usedLocals.insert cand } + return cand + +def binderBase (n : Name) : String := + if n.isInternal || n.hasMacroScopes then "x" else n.eraseMacroScopes.toString + +partial def trLevel (l : Level) : TrM String := do + match l with + | .zero => return "0" + | .succ _ => + -- count a pure numeral + let rec numeral : Level → Option Nat + | .zero => some 0 + | .succ l => (· + 1) <$> numeral l + | _ => none + match numeral l with + | some n => return toString n + | none => + let .succ l' := l | unreachable! + return s!"(succ {← trLevel l'})" + | .max a b => return s!"(max {← trLevel a} {← trLevel b})" + | .imax a b => return s!"(imax {← trLevel a} {← trLevel b})" + | .param n => + match (← get).levelNames[n]? with + | some s => return s + | none => refuse "level-parameter" s!"unbound universe parameter {n}" + | .mvar _ => refuse "level-metavariable" "universe metavariable" + +/-- `Sort l` as an LSE sort: `Prop`, or `Type u` when `l` is a successor. -/ +partial def predLevel? (l : Level) : Option Level := + match l.normalize with + | .succ l' => some l' + | .max a b => do return mkLevelMax' (← predLevel? a) (← predLevel? b) + | _ => none + +def trSort (l : Level) : TrM String := do + let l := l.normalize + if l.isZero then return "(sort prop)" + match predLevel? l with + | some p => return s!"(sort (type {← trLevel p}))" + | none => refuse "sort-polymorphic" s!"Sort {l} is neither Prop nor Type u" + +def modeOf (bi : BinderInfo) : TrM String := + match bi with + | .default => return "explicit" + | .implicit => return "implicit" + | .instImplicit => return "instance" + | .strictImplicit => refuse "strict-implicit-binder" "a ⦃strict implicit⦄ binder has no LSE binder mode" + +def isExplicitBi : BinderInfo → Bool + | .default => true + | _ => false + +def noteRef (n : Name) : TrM Unit := modify fun s => { s with refs := s.refs.insert n } + +mutual +partial def tr (e : Expr) : TrM String := do + match e with + | .mdata _ b => tr b + | .sort l => trSort l + | .fvar id => + match (← get).fvarNames[id]? with + | some s => return s!"(local {s})" + | none => refuse "internal" "free variable outside binder scope" + | .const .. | .app .. => trApp e + | .lam .. => trBinders true e + | .forallE .. => trBinders false e + | .letE n t v b _ => + let ts ← tr t + let vs ← tr v + let nm ← freshLocal (binderBase n) + withLetDecl n t v fun x => do + modify fun s => { s with fvarNames := s.fvarNames.insert x.fvarId! nm } + let bs ← tr (b.instantiate1 x) + return s!"(let {nm} {ts} {vs} {bs})" + | .lit (.natVal n) => return s!"(nat {n})" + | .lit (.strVal _) => refuse "string-literal" "string literals are outside LSE" + | .proj .. => refuse "primitive-projection" "Expr.proj is outside LSE" + | .bvar _ => refuse "internal" "loose bound variable" + | .mvar _ => refuse "internal" "metavariable" + +partial def trConstHead (n : Name) (ls : List Level) : TrM String := do + match coreEntries.lookup n with + | some id => + -- The core entries are Type-level: `Eq`/`Exists` instantiated at `Sort 0` + -- or at a non-successor level are different constants of the lexicon. + if n == `Eq || n == `Exists then + match ls with + | [l] => + if (predLevel? l).isNone then + refuse "core-level-mismatch" s!"{n} at level {l} is not the Type-level core entry" + | _ => pure () + return s!"(const {id})" + | none => + noteRef n + let ci ← getConstInfo n + if ci.levelParams.isEmpty then + return s!"(const @{n})" + else + let args ← ls.mapM trLevel + return s!"(const @{n} ({" ".intercalate args}))" + +partial def trApp (e : Expr) : TrM String := do + let f := e.getAppFn + let args := e.getAppArgs + -- numerals + if let .const ``OfNat.ofNat _ := f then + if args.size == 3 then + if let .lit (.natVal n) := args[1]! then + return s!"(nat {n})" + -- identity annotations + if let .const n _ := f then + if annotationNames.contains n && args.size ≥ 1 && (n != `optParam && n != `autoParam || args.size == 2) then + modify fun s => { s with erased := s.erased + 1 } + return ← tr args[0]! + let head ← match f with + | .const n ls => trConstHead n ls + | _ => tr f + if args.isEmpty then return head + let mut ty ← inferType f + let mut explicitArgs : Array String := #[] + for a in args do + let ty' ← whnf ty + let .forallE _ _ b bi := ty' + | refuse "unsupported-expression" "application of a non-function" + if isExplicitBi bi then + explicitArgs := explicitArgs.push (← tr a) + ty := b.instantiate1 a + if explicitArgs.isEmpty then return head + return s!"(app {head} {" ".intercalate explicitArgs.toList})" + +partial def trBinders (isLam : Bool) (e : Expr) : TrM String := do + let saved ← get + let r ← go e #[] + -- scope of local names ends with the binder group; keep `usedLocals` + -- growing so names stay unique across the whole signature. + modify fun s => { s with fvarNames := saved.fvarNames } + return r +where + go (e : Expr) (acc : Array String) : TrM String := do + match e, isLam with + | .lam n t b bi, true => step n t b bi acc + | .forallE n t b bi, false => step n t b bi acc + | _, _ => + let body ← tr e + return s!"({if isLam then "lam" else "pi"} ({" ".intercalate acc.toList}) {body})" + step (n : Name) (t b : Expr) (bi : BinderInfo) (acc : Array String) : TrM String := do + let mode ← modeOf bi + let ts ← tr t + let nm ← freshLocal (binderBase n) + withLocalDecl n bi t fun x => do + modify fun s => { s with fvarNames := s.fvarNames.insert x.fvarId! nm } + go (b.instantiate1 x) (acc.push s!"({mode} {nm} {ts})") +end + +/-- What an entry denotes in the lexicon's terms. -/ +inductive Kind | proof | type | predicate | term + deriving Inhabited + +def Kind.str : Kind → String + | .proof => "proof" | .type => "type" | .predicate => "predicate" | .term => "term" + +/-- Classify a declaration by the shape of its type. -/ +def classify (ci : ConstantInfo) : MetaM Kind := do + if (← isProp ci.type) then return .proof + forallTelescope ci.type fun _ r => do + let r ← whnf r + match r with + | .sort l => return if l.normalize.isZero then .predicate else .type + | _ => return .term + +structure Ctor where + name : Name + fields : Array String + ihs : Array String + +/-- Eliminator facts for an inductive type, or the reason there are none. -/ +def eliminatorOf (ci : InductiveVal) : MetaM (Except String (String × String × Array Ctor)) := do + if ci.all.length != 1 then return .error "mutual" + if ci.isNested then return .error "nested" + let env ← getEnv + let mut ctors : Array Ctor := #[] + for cn in ci.ctors do + let some (.ctorInfo cv) := env.find? cn | return .error "missing-constructor" + let r ← forallTelescope cv.type fun xs _ => do + let mut fields := #[] + let mut ihs := #[] + let mut used : Std.HashSet String := {} + for i in [cv.numParams:xs.size] do + let d ← xs[i]!.fvarId!.getDecl + let mut b := asciiIdent (binderBase d.userName) + if b.isEmpty || !b.front.isAlpha then b := "x" ++ b + let mut cand := b + let mut k := 1 + while used.contains cand do + cand := b ++ toString k + k := k + 1 + used := used.insert cand + fields := fields.push cand + let fty ← forallTelescope d.type fun _ r => pure r + if fty.getAppFn.isConstOf ci.name then ihs := ihs.push (cand ++ "ih") + return (fields, ihs) + ctors := ctors.push ⟨cn, r.1, r.2⟩ + let cases := `casesOn |> (ci.name ++ ·) + let rec' := `rec |> (ci.name ++ ·) + -- custom eliminators (`@[induction_eliminator]`, `@[cases_eliminator]`) + let (casesN, indN) ← forallTelescope (← getConstInfo ci.name).type fun xs _ => do + let ty := mkAppN (mkConst ci.name (ci.levelParams.map mkLevelParam)) xs + withLocalDeclD `t ty fun t => do + let c ← Meta.getCustomEliminator? #[t] (induction := false) + let i ← Meta.getCustomEliminator? #[t] (induction := true) + return (c.getD cases, i.getD rec') + return .ok (casesN.toString, indN.toString, ctors) + +def jstr (s : String) : Json := Json.str s + +/-- Is `n` a name the glossary can carry (SPEC.md §13.6 conservative grammar)? -/ +def conservativeName (n : Name) : Bool := + let s := n.toString (escape := false) + !s.isEmpty && (s.splitOn ".").all fun seg => + match seg.toList with + | [] => false + | c :: cs => (c.isAlpha || c == '_') && c.toNat < 128 && + cs.all fun d => (d.isAlphanum || d == '_') && d.toNat < 128 && + (n.components.all fun c => c.isStr) + +def kindOfInfo : ConstantInfo → String + | .thmInfo _ => "theorem" | .defnInfo _ => "definition" | .axiomInfo _ => "axiom" + | .opaqueInfo _ => "opaque" | .inductInfo _ => "inductive" | .ctorInfo _ => "constructor" + | .recInfo _ => "recursor" | .quotInfo _ => "quotient" + +/-- Should this declaration take part at all? Returns the exclusion reason. -/ +def excluded? (env : Environment) (n : Name) (ci : ConstantInfo) : MetaM (Option String) := do + -- `lexlean.core` already has an entry for these constants. + if (coreEntries.lookup n).isSome then return some "core-entry" + if n.isInternal || n.hasMacroScopes then return some "internal" + if isPrivateName n then return some "private" + if let .recInfo _ := ci then return some "recursor" + if let .quotInfo _ := ci then return some "quotient" + if isAuxRecursor env n || isNoConfusion env n then return some "auxiliary" + if (← Meta.isMatcher n) then return some "auxiliary" + if (← isInstance n) then return some "instance" + if (Linter.deprecatedAttr.getParam? env n).isSome then return some "deprecated" + return none + +def levelNamesFor (ps : List Name) : Std.HashMap Name String × Array String := Id.run do + let mut m : Std.HashMap Name String := {} + let mut used : Std.HashSet String := {} + let mut out := #[] + let mut i := 0 + for p in ps do + let mut b := asciiIdent p.toString + if b.isEmpty || !b.front.isAlpha then b := "u" ++ b + let mut cand := b + let mut k := 1 + while used.contains cand do + cand := b ++ toString k + k := k + 1 + used := used.insert cand + m := m.insert p cand + out := out.push cand + i := i + 1 + return (m, out) + +/-- Translate one declaration to its JSON record. -/ +def record (env : Environment) (n : Name) (ci : ConstantInfo) (requested : Bool) : + MetaM (Json × NameSet) := do + let modName := match env.getModuleIdxFor? n with + | some i => env.header.moduleNames[i.toNat]!.toString + | none => "" + let base : List (String × Json) := + [("name", jstr n.toString), ("module", jstr modName), + ("kind", jstr (kindOfInfo ci)), ("requested", Json.bool requested)] + if !conservativeName n then + return (Json.mkObj (base ++ [("refusal", Json.mkObj [("reason", jstr "name-not-conservative"), + ("detail", jstr "the Lean name is outside the conservative ASCII grammar")])]), {}) + let (lm, lnames) := levelNamesFor ci.levelParams + let kind ← classify ci + let r ← (do + let t ← tr ci.type + let st ← get + return (t, st) + : TrM (String × TrState)).run { levelNames := lm } |>.run + match r with + | .error ⟨reason, detail⟩ => + return (Json.mkObj (base ++ [("refusal", Json.mkObj [("reason", jstr reason), ("detail", jstr detail)])]), {}) + | .ok ((sig, st), _) => + let sortedUniv := lnames.qsort (· < ·) + let mut fields := base ++ + [("signature", jstr sig), ("class", jstr kind.str), + ("universes", Json.arr (sortedUniv.map jstr)), + ("erased", Json.num st.erased), + ("refs", Json.arr (st.refs.toArray.qsort Name.lt |>.map (jstr ·.toString)))] + if let .inductInfo iv := ci then + match ← eliminatorOf iv with + | .error why => fields := fields ++ [("eliminator_omitted", jstr why)] + | .ok (c, i, ctors) => + fields := fields ++ [("eliminator", Json.mkObj + [("cases", jstr c), ("induction", jstr i), + ("constructors", Json.arr (ctors.map fun k => Json.mkObj + [("name", jstr k.name.toString), + ("fields", Json.arr (k.fields.map jstr)), + ("induction_hypotheses", Json.arr (k.ihs.map jstr))]))])] + let mut deps := st.refs + if let .inductInfo iv := ci then + for c in iv.ctors do deps := deps.insert c + return (Json.mkObj fields, deps) + +def run (env : Environment) (roots : Array Name) : MetaM Json := do + let mut done : NameSet := {} + let mut out : Array (Name × Json) := #[] + let mut excludedCount : Std.TreeMap String Nat := {} + let mut queue : Array (Name × Bool) := roots.map (·, true) + let mut head := 0 + while head < queue.size do + let (n, req) := queue[head]! + head := head + 1 + if done.contains n then continue + done := done.insert n + let some ci := env.find? n + | out := out.push (n, Json.mkObj [("name", jstr n.toString), ("requested", Json.bool req), + ("refusal", Json.mkObj [("reason", jstr "unknown-declaration"), + ("detail", jstr "not in the imported environment")])]) + continue + if let some why ← excluded? env n ci then + if req then + excludedCount := excludedCount.insert why (excludedCount.getD why 0 + 1) + -- The record is written either way, as not requested: a requested + -- declaration that is set aside is counted once, under `excluded`, and + -- a declaration that mentions it still needs the reason. + out := out.push (n, Json.mkObj [("name", jstr n.toString), ("requested", Json.bool false), + ("refusal", Json.mkObj [("reason", jstr s!"excluded-{why}"), + ("detail", jstr s!"a {why} declaration is not exposed as an entry")])]) + continue + let (j, deps) ← record env n ci req + out := out.push (n, j) + for d in deps.toArray.qsort Name.lt do + queue := queue.push (d, false) + let sorted := out.qsort (fun a b => Name.lt a.1 b.1) + return Json.mkObj + [("declarations", Json.arr (sorted.map (·.2))), + ("excluded", Json.mkObj (excludedCount.toList.map fun (k, v) => (k, Json.num v)))] + +end LexLeanGlossary + +open LexLeanGlossary in +def parseArgs (args : List String) : Except String (List String × List String) := do + let mut mods := [] + let mut names := [] + let mut mode := "" + for a in args do + if a == "--modules" then mode := "m" + else if a == "--names" then mode := "n" + else if mode == "m" then mods := mods ++ [a] + else if mode == "n" then names := names ++ [a] + else throw s!"unexpected argument {a}" + return (mods, names) + +unsafe def main (args : List String) : IO UInt32 := do + let args := args.filter (· != "--") + let (mods, names) ← match parseArgs args with + | .ok r => pure r + | .error m => do IO.eprintln m; return 2 + initSearchPath (← findSysroot) + let imports : Array Import := (mods.map fun m => { module := m.toName : Import }).toArray + let imports := if imports.isEmpty then #[{ module := `Init }] else imports + -- `loadExts` runs the import hooks of environment extensions, which is + -- what makes scoped attributes such as `@[induction_eliminator]` visible. + enableInitializersExecution + let env ← importModules imports {} (loadExts := true) + do + -- every declaration defined in a requested module, plus named ones + let mut roots : Array Name := #[] + for m in mods do + match env.getModuleIdx? m.toName with + | none => do IO.eprintln s!"module {m} is not in the environment"; return 3 + | some idx => + for n in env.header.moduleData[idx.toNat]!.constNames do roots := roots.push n + for n in names do roots := roots.push n.toName + roots := roots.qsort Name.lt + let ctx : Core.Context := { fileName := "", fileMap := default, maxHeartbeats := 0 } + let act : CoreM Json := (LexLeanGlossary.run env roots).run' + let (j, _) ← act.toIO ctx { env } + IO.println j.compress + return 0 diff --git a/crates/lexlean/src/api.rs b/crates/lexlean/src/api.rs index d6cf1b74c7..af4adafab6 100644 --- a/crates/lexlean/src/api.rs +++ b/crates/lexlean/src/api.rs @@ -783,6 +783,21 @@ impl Engine { }) } + /// Acquire the project's declared Lean libraries (§10.4, §23.4): the one + /// operation that reaches the network for them. It is reached through the + /// command line alone, so the seven entry points of §24.1 stay seven. + /// + /// # Errors + /// + /// `LLC0110`, `LLV7020`, or `LLS8002` as [`crate::lean_library::fetch`] + /// states. + pub(crate) fn deps_fetch(&self) -> Result { + self.bound( + "deps", + crate::lean_library::fetch(&self.project).map_err(LexLeanError::from_diagnostics), + ) + } + /// Update or check the lock (§23.4). pub fn lock(&self, request: LockRequest) -> Result { self.bound("lock", self.lock_inner(request)) @@ -824,6 +839,11 @@ impl Engine { &lock.source_packages, ) .map_err(LexLeanError::from_diagnostics)?; + crate::lean_library::check_pins( + &committed.lean_libraries, + &lock.lean_libraries, + ) + .map_err(LexLeanError::from_diagnostics)?; } return Err(LexLeanError::from_diagnostic(Diagnostic::new( code!("LLC0102"), @@ -1313,6 +1333,8 @@ impl Engine { ] { copy_file(&workspace(pin))?; } + crate::lean_library::stub_for_scratch(&self.project, scratch) + .map_err(LexLeanError::from_diagnostics)?; for root in &config.source_roots { copy_dir(root)?; } diff --git a/crates/lexlean/src/artifact/digest_set.rs b/crates/lexlean/src/artifact/digest_set.rs new file mode 100644 index 0000000000..81bd29a4f8 --- /dev/null +++ b/crates/lexlean/src/artifact/digest_set.rs @@ -0,0 +1,218 @@ +//! The dual digest of PrismPM ADR-015 (SPEC.md §22.13): a `sha256` and a +//! `blake3` of one byte string, both lowercase hexadecimal of 64 characters. +//! +//! The pair exists because neither side can be dropped: consumers of an +//! in-toto DigestSet (cosign, Kyverno) check `sha256` and none of them checks +//! `blake3`, and the PrismPM side names its blobs by `blake3`. ADR-015 makes a +//! verifier require both keys and check both, which is what the reader here +//! does. + +use crate::artifact::canonical_json::Json; +use crate::artifact::content_id::Sha256Digest; + +/// A BLAKE3 digest (default hash mode, 256-bit output) with lowercase-hex +/// display. +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] +pub struct Blake3Digest(pub [u8; 32]); + +impl Blake3Digest { + /// The 64-character lowercase hexadecimal form. + #[must_use] + pub fn to_hex(&self) -> String { + hex(&self.0) + } + + /// Parse 64 lowercase hex digits. + pub fn from_hex(text: &str) -> Result { + parse_hex(text).map(Self) + } +} + +fn hex(bytes: &[u8; 32]) -> String { + let mut out = String::with_capacity(64); + for byte in bytes { + out.push(char::from_digit(u32::from(byte >> 4), 16).expect("nibble")); + out.push(char::from_digit(u32::from(byte & 0xf), 16).expect("nibble")); + } + out +} + +fn parse_hex(text: &str) -> Result<[u8; 32], String> { + let bytes = text.as_bytes(); + if bytes.len() != 64 { + return Err(format!("expected 64 hex digits, found {}", bytes.len())); + } + let nibble = |b: u8| -> Result { + match b { + b'0'..=b'9' => Ok(b - b'0'), + b'a'..=b'f' => Ok(b - b'a' + 10), + _ => Err("lowercase hexadecimal is mandatory".to_owned()), + } + }; + let mut out = [0u8; 32]; + for (index, pair) in bytes.chunks_exact(2).enumerate() { + out[index] = (nibble(pair[0])? << 4) | nibble(pair[1])?; + } + Ok(out) +} + +/// `{"blake3": H, "sha256": S}`, both digests over the same bytes. +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] +pub struct DigestSet { + /// SHA-256 of the bytes. + pub sha256: Sha256Digest, + /// BLAKE3 of the same bytes. + pub blake3: Blake3Digest, +} + +impl DigestSet { + /// Both digests of a byte string. + #[must_use] + pub fn of(bytes: &[u8]) -> Self { + let mut writer = DigestSetWriter::new(); + writer.update(bytes); + writer.finish() + } + + /// The label `blake3:<64 lowercase hex digits>`: for a content blob the + /// `blake3` value is its label without the prefix (ADR-015, decision 6). + #[must_use] + pub fn label(&self) -> String { + format!("blake3:{}", self.blake3.to_hex()) + } + + /// The canonical JSON object, members `blake3` and `sha256`. + #[must_use] + pub fn to_json(&self) -> Json { + Json::object(vec![ + ("blake3", Json::Str(self.blake3.to_hex())), + ("sha256", Json::Str(self.sha256.to_hex())), + ]) + } + + /// Read a DigestSet. ADR-015 forbids any other member and any other + /// spelling of a key (cosign accepted `BLAKE3`; a verifier must not), and + /// requires both digests, so each of those is an error here. + pub fn from_json(value: &Json) -> Result { + let Json::Obj(members) = value else { + return Err("a DigestSet is an object".to_owned()); + }; + if let Some(extra) = members + .keys() + .find(|key| !matches!(key.as_str(), "blake3" | "sha256")) + { + return Err(format!("a DigestSet has no member `{extra}`")); + } + let member = |name: &str| -> Result<&str, String> { + match members.get(name) { + Some(Json::Str(text)) => Ok(text), + Some(_) => Err(format!("DigestSet member `{name}` is not a string")), + None => Err(format!("DigestSet member `{name}` is missing")), + } + }; + Ok(Self { + sha256: Sha256Digest::from_hex(member("sha256")?)?, + blake3: Blake3Digest::from_hex(member("blake3")?)?, + }) + } +} + +/// Both digests of a byte string given in pieces. +pub struct DigestSetWriter { + sha256: sha2::Sha256, + blake3: blake3::Hasher, +} + +impl Default for DigestSetWriter { + fn default() -> Self { + Self::new() + } +} + +impl DigestSetWriter { + /// Start an empty byte string. + #[must_use] + pub fn new() -> Self { + use sha2::Digest as _; + Self { + sha256: sha2::Sha256::new(), + blake3: blake3::Hasher::new(), + } + } + + /// Append bytes. + pub fn update(&mut self, bytes: &[u8]) { + use sha2::Digest as _; + self.sha256.update(bytes); + self.blake3.update(bytes); + } + + /// The digests of everything appended. + #[must_use] + pub fn finish(self) -> DigestSet { + use sha2::Digest as _; + DigestSet { + sha256: Sha256Digest(self.sha256.finalize().into()), + blake3: Blake3Digest(*self.blake3.finalize().as_bytes()), + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + // BLAKE3 and SHA-256 of the empty string and of "abc": the known answers + // ADR-015 cites for the PrismPM implementation. + const EMPTY_BLAKE3: &str = "af1349b9f5f9a1a6a0404dea36dcc9499bcb25c9adc112b7cc9a93cae41f3262"; + const EMPTY_SHA256: &str = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + const ABC_BLAKE3: &str = "6437b3ac38465133ffb63b75273a8db548c558465d79db03fd359c6cd5bd9d85"; + const ABC_SHA256: &str = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"; + + #[test] + fn known_answers_for_both_digests() { + let empty = DigestSet::of(b""); + assert_eq!(empty.blake3.to_hex(), EMPTY_BLAKE3); + assert_eq!(empty.sha256.to_hex(), EMPTY_SHA256); + let abc = DigestSet::of(b"abc"); + assert_eq!(abc.blake3.to_hex(), ABC_BLAKE3); + assert_eq!(abc.sha256.to_hex(), ABC_SHA256); + assert_eq!(abc.label(), format!("blake3:{ABC_BLAKE3}")); + } + + #[test] + fn pieces_equal_the_whole() { + let mut writer = DigestSetWriter::new(); + writer.update(b"a"); + writer.update(b"bc"); + assert_eq!(writer.finish(), DigestSet::of(b"abc")); + } + + #[test] + fn json_round_trip_and_strict_reader() { + let set = DigestSet::of(b"abc"); + assert_eq!(DigestSet::from_json(&set.to_json()), Ok(set)); + let text = set.to_json().to_canonical_string(); + assert!(text.starts_with("{\"blake3\":"), "{text}"); + + let parse = |text: &str| DigestSet::from_json(&Json::parse(text.as_bytes()).unwrap()); + let both = format!("\"blake3\":\"{ABC_BLAKE3}\",\"sha256\":\"{ABC_SHA256}\""); + assert!(parse(&format!("{{{both}}}")).is_ok()); + assert!(parse(&format!( + "{{\"BLAKE3\":\"{ABC_BLAKE3}\",\"sha256\":\"{ABC_SHA256}\"}}" + )) + .is_err()); + assert!(parse(&format!("{{{both},\"sha512\":\"00\"}}")).is_err()); + assert!(parse(&format!("{{\"sha256\":\"{ABC_SHA256}\"}}")).is_err()); + assert!(parse(&format!("{{\"blake3\":\"{ABC_BLAKE3}\"}}")).is_err()); + let upper = ABC_BLAKE3.to_uppercase(); + assert!(parse(&format!( + "{{\"blake3\":\"{upper}\",\"sha256\":\"{ABC_SHA256}\"}}" + )) + .is_err()); + assert!(parse(&format!( + "{{\"blake3\":\"abc\",\"sha256\":\"{ABC_SHA256}\"}}" + )) + .is_err()); + } +} diff --git a/crates/lexlean/src/artifact/mod.rs b/crates/lexlean/src/artifact/mod.rs index 8a4b1b2360..0aae1eb1d3 100644 --- a/crates/lexlean/src/artifact/mod.rs +++ b/crates/lexlean/src/artifact/mod.rs @@ -3,6 +3,7 @@ pub mod canonical_json; pub mod content_id; +pub mod digest_set; pub mod manifest; pub mod snapshot; pub mod source_map; diff --git a/crates/lexlean/src/backend/lean.rs b/crates/lexlean/src/backend/lean.rs index 6b7ce354be..e281a00836 100644 --- a/crates/lexlean/src/backend/lean.rs +++ b/crates/lexlean/src/backend/lean.rs @@ -563,6 +563,16 @@ fn lse_is_closed(lse: &Lse, bound: &[String]) -> bool { } } +/// Does `text` mention the generated local `name` as a whole identifier? +fn mentions_name(text: &str, name: &str) -> bool { + text.match_indices(name).any(|(start, _)| { + let before = text[..start].chars().next_back(); + let after = text[start + name.len()..].chars().next(); + !before.is_some_and(|c| c.is_alphanumeric() || c == '_' || c == '.') + && !after.is_some_and(|c| c.is_alphanumeric() || c == '_' || c == '\'') + }) +} + impl LsePrinter<'_> { fn binder_delims(mode: BinderMode) -> (char, char) { match mode { @@ -623,6 +633,16 @@ impl LsePrinter<'_> { // argument at position `index` instantiates the `index`-th explicit // binder; earlier non-explicit binders stay unsubstituted (their // types are then not closed and yield no ascription). + // + // The callee's own binder names are renamed apart (`~name` is no + // identifier of the grammar) before the arguments go in: an argument + // is a term of the caller's scope, and a caller local with the name of + // a callee binder that has no argument would otherwise be taken for + // it, ascribing a numeral the type of a variable. + let rename: BTreeMap = binders + .iter() + .map(|binder| (binder.name.clone(), Lse::Local(format!("~{}", binder.name)))) + .collect(); let mut map: BTreeMap = BTreeMap::new(); let mut index = 0usize; for binder in binders { @@ -632,12 +652,12 @@ impl LsePrinter<'_> { let Some(argument) = arguments.get(index) else { break; }; - let ty = lse_subst(&binder.ty, &map); + let ty = lse_subst(&lse_subst(&binder.ty, &rename), &map); let bound: Vec = self.scope.iter().map(|(name, ..)| name.clone()).collect(); if lse_is_closed(&ty, &bound) { out[index] = Some(ty); } - map.insert(binder.name.clone(), argument.clone()); + map.insert(format!("~{}", binder.name), argument.clone()); index += 1; } out @@ -711,19 +731,35 @@ impl LsePrinter<'_> { } Lse::Pi(binders, body) => { let depth = self.scope.len(); - let mut text = String::new(); + let mut printed = Vec::with_capacity(binders.len()); for binder in binders { let (open, close) = Self::binder_delims(binder.mode); let ty = self.walk(&binder.ty, false, None)?; let name = self.bind(&binder.name, &binder.ty); - text.push(open); - text.push_str(&name); - text.push_str(" : "); - text.push_str(&ty); - text.push(close); + printed.push((open, close, name, ty)); + } + let tail = self.walk(body, false, None)?; + let mut text = String::new(); + for (index, (open, close, name, ty)) in printed.iter().enumerate() { + text.push(*open); + // An instance binder that nothing after it mentions is + // written without a name: pinned Lean's `unusedVariables` + // linter warns on a named one, and a warning fails + // verification (§20.2). + let named = *open != '[' + || printed[index + 1..] + .iter() + .any(|(_, _, _, later)| mentions_name(later, name)) + || mentions_name(&tail, name); + if named { + text.push_str(name); + text.push_str(" : "); + } + text.push_str(ty); + text.push(*close); text.push_str(" → "); } - text.push_str(&self.walk(body, false, None)?); + text.push_str(&tail); self.scope.truncate(depth); if parens { format!("({text})") @@ -2427,6 +2463,16 @@ pub enum AuxiliaryCommand { /// The constant that inhabits it. constant: String, }, + /// `example : () = (type_of% @) := rfl`: the printed type is + /// definitionally the type of the constant, binder for binder, and not + /// merely a type the constant inhabits once Lean has inserted implicit + /// arguments (SPEC.md §18.8, specialisation wrappers). + SignatureExample { + /// The printed type. + ty: String, + /// The constant whose type it must equal. + constant: String, + }, /// `#print axioms` and a fully qualified declaration name, quoted as /// the module that declares it quotes it. PrintAxioms(String), @@ -2485,6 +2531,15 @@ impl AuxiliaryModule { text.push_str(" := "); text.push_str(constant); } + AuxiliaryCommand::SignatureExample { ty, constant } => { + // Parenthesised: the arrows of a signature bind looser + // than the `=` that compares it. + text.push_str("example : ("); + text.push_str(ty); + text.push_str(") = (type_of% @"); + text.push_str(constant); + text.push_str(") := rfl"); + } AuxiliaryCommand::PrintAxioms(declaration) => { text.push_str("#print axioms "); text.push_str(&super::semantic::identifier(declaration)); @@ -2517,6 +2572,10 @@ pub struct ProbeLine { pub index: usize, /// The qualified entry ID. pub entry: String, + /// Whether the line is the strict signature equality of a + /// specialisation wrapper (§18.8) and not the `example` of an + /// interface. + pub signature: bool, } /// The generated probe module (§18.8). @@ -2531,6 +2590,10 @@ pub struct ProbeModule { /// Entries imported but not probed because their descriptor carries no /// signature (a `cases`/`induction` constructor entry without one). pub unprobed: Vec, + /// The Lean names of the imported declarations (§22.6) whose axioms the + /// module prints after its examples, one `#print axioms` each, sorted and + /// without repeats. + pub audited: Vec, } impl ProbeModule { @@ -2560,7 +2623,7 @@ pub fn probe_module( for external in externals.values() { imports.insert(external.lean_module.clone()); } - let mut examples: Vec<(usize, String, AuxiliaryCommand)> = Vec::new(); + let mut examples: Vec<(usize, String, bool, AuxiliaryCommand)> = Vec::new(); let mut universes: Vec = Vec::new(); let mut unprobed = Vec::new(); for (index, (entry_id, external)) in externals.iter().enumerate() { @@ -2581,12 +2644,19 @@ pub fn probe_module( } collect_universe_vars(signature, &prefix, &mut universes); let ty = print_lse_type(signature, closure, &prefix)?; + let constant = external.lean_name.clone(); + // A wrapper is held to the definitional equality of its signature + // and its type, which no other external is: the probe of the other + // entries is the published text of every verified example. + let strict = crate::wrappers::is_wrapper_name(&constant); examples.push(( index, entry_id.clone(), - AuxiliaryCommand::Example { - ty, - constant: external.lean_name.clone(), + strict, + if strict { + AuxiliaryCommand::SignatureExample { ty, constant } + } else { + AuxiliaryCommand::Example { ty, constant } }, )); } @@ -2596,10 +2666,22 @@ pub fn probe_module( } let first_example = commands.len(); let mut entries = Vec::with_capacity(examples.len()); - for (index, entry, example) in examples { - entries.push((index, entry)); + for (index, entry, signature, example) in examples { + entries.push((index, entry, signature)); commands.push(example); } + // §22.6: the axioms of every imported declaration, printed by the process + // that already imports it. A declaration of the pinned toolchain's own + // libraries is not one, so a project that imports nothing else probes + // exactly the module it always did. + let audited: Vec = externals + .values() + .filter(|external| crate::verify::imports::is_imported_module(&external.lean_module)) + .map(|external| external.lean_name.clone()) + .collect::>() + .into_iter() + .collect(); + commands.extend(audited.iter().cloned().map(AuxiliaryCommand::PrintAxioms)); let (text, command_lines) = AuxiliaryModule { imports: imports.into_iter().collect(), commands, @@ -2608,10 +2690,11 @@ pub fn probe_module( let lines = entries .into_iter() .zip(&command_lines[first_example..]) - .map(|((index, entry), line)| ProbeLine { + .map(|((index, entry, signature), line)| ProbeLine { line: *line, index, entry, + signature, }) .collect(); Ok(ProbeModule { @@ -2619,6 +2702,7 @@ pub fn probe_module( text, lines, unprobed, + audited, }) } diff --git a/crates/lexlean/src/cli.rs b/crates/lexlean/src/cli.rs index 13de99c0ed..bfaa49326a 100644 --- a/crates/lexlean/src/cli.rs +++ b/crates/lexlean/src/cli.rs @@ -144,6 +144,51 @@ enum CommandKind { #[command(subcommand)] action: ProductionAction, }, + /// Work with Lean dependencies (§10.4, §13.12, §23.4). + Deps { + #[command(subcommand)] + action: DepsAction, + }, +} + +/// The dependency actions (§23.4). +#[derive(Subcommand)] +enum DepsAction { + /// Fetch every declared Lean library and its prebuilt `.olean` files. + Fetch, + /// Generate a lexicon package of `kind = "lean"` entries from Lean + /// declarations, with a coverage report (§13.12). + Glossary { + /// The generated package's ID. + #[arg(long)] + package: String, + /// The generated package's exact version. + #[arg(long, default_value = "1.0.0")] + version: String, + /// The language the package is written for. + #[arg(long, default_value = "1.0", value_parser = ["1.0", "1.1", "1.2"])] + language: String, + /// Translate every declaration these Lean modules define. + #[arg(long, num_args = 1.., value_name = "MODULE")] + modules: Vec, + /// Translate these declarations. + #[arg(long, num_args = 1.., value_name = "DECLARATION")] + names: Vec, + /// The Lake workspace whose built libraries hold the modules; + /// without it only the toolchain's own libraries are visible. + #[arg(long)] + workspace: Option, + /// The package directory to create, absent or empty. + #[arg(long)] + out: Utf8PathBuf, + /// Write the coverage report to this new file. + #[arg(long)] + report: Option, + /// Exit with the registered class of the first refusal instead of + /// reporting refusals. + #[arg(long)] + strict: bool, + }, } /// The production export actions (§24.7), mirroring `api::production`. @@ -165,7 +210,7 @@ enum ProductionAction { } /// The command names, in the order of §23.4. -const COMMAND_NAMES: [&str; 10] = [ +const COMMAND_NAMES: [&str; 11] = [ "init", "lock", "check", @@ -176,6 +221,7 @@ const COMMAND_NAMES: [&str; 10] = [ "clean", "explain", "production", + "deps", ]; /// The embedded diagnostic registry, for `explain` (§23.4). The registry @@ -549,6 +595,7 @@ pub fn run( CommandKind::Clean => "clean", CommandKind::Explain { .. } => "explain", CommandKind::Production { .. } => "production", + CommandKind::Deps { .. } => "deps", }; let mut outcome = Outcome::default(); @@ -597,6 +644,65 @@ pub fn run( outcome.summary = format!("initialized {shown}\n"); Ok(()) } + // Glossary generation reads a Lean environment, not a project: like + // `init` and `production verify-artifact` it needs none (§23.4). + CommandKind::Deps { + action: + DepsAction::Glossary { + package, + version, + language, + modules, + names, + workspace, + out, + report, + strict, + }, + } => { + let selection = match (modules.is_empty(), names.is_empty()) { + (true, true) => { + return Err(LexLeanError::from_diagnostic(Diagnostic::new( + code!("LLC0002"), + "select declarations with --modules or --names", + ))) + } + (false, false) => { + return Err(LexLeanError::from_diagnostic(Diagnostic::new( + code!("LLC0002"), + "--modules and --names are mutually exclusive", + ))) + } + (false, true) => crate::glossary::extract::Selection::Modules(modules), + (true, false) => crate::glossary::extract::Selection::Names(names), + }; + let absolute = |path: &Utf8PathBuf| { + if path.is_relative() { + working_directory.join(path) + } else { + path.clone() + } + }; + let request = crate::glossary::Request { + package: crate::glossary::plan::PackageSpec { + package, + version, + language, + }, + selection, + workspace: workspace.as_ref().map(absolute), + out: absolute(&out), + report: report.as_ref().map(absolute), + strict, + }; + let generated = crate::glossary::generate(&request)?; + outcome.artifacts = vec![out.to_string()]; + outcome + .artifacts + .extend(report.map(|path| path.to_string())); + outcome.summary = generated.report.summary(); + Ok(()) + } other => { let config_path = match &parsed.project { Some(explicit) => explicit.clone(), @@ -714,6 +820,17 @@ pub fn run( outcome.modules = result.modules.into_iter().collect(); Ok(()) } + CommandKind::Deps { + action: DepsAction::Fetch, + } => { + let fetched = engine.deps_fetch()?; + outcome.summary = if fetched.libraries.is_empty() { + "no Lean library is declared; nothing to fetch\n".to_owned() + } else { + format!("fetched {}\n", fetched.libraries.join(", ")) + }; + Ok(()) + } CommandKind::Clean => { let build_root = engine.project().config.build_root.clone(); outcome.summary = match engine.clean()? { @@ -761,6 +878,7 @@ pub fn run( } CommandKind::Init { .. } | CommandKind::Explain { .. } + | CommandKind::Deps { .. } | CommandKind::Production { .. } => { unreachable!("handled above") } @@ -823,6 +941,7 @@ fn init_project( }], artifact_sources: Vec::new(), source_packages: Vec::new(), + lean_libraries: Vec::new(), limits: INIT_LIMITS, pdf: None, }; diff --git a/crates/lexlean/src/config.rs b/crates/lexlean/src/config.rs index 2f9cc39e6e..b462c35600 100644 --- a/crates/lexlean/src/config.rs +++ b/crates/lexlean/src/config.rs @@ -192,6 +192,21 @@ pub struct SourcePackage { pub path: String, } +/// Language 1.2: one external Lean library a project declares once (§10.4), +/// Mathlib being the case it exists for. It is pinned by an exact commit and +/// never by a branch or tag, and acquired only by `lexlean deps fetch`. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct LeanLibrary { + /// The Lake package name, unique in the project; it names the entry of + /// the Lake workspace's `lake-manifest.json` and the directory Lake + /// puts the library in. + pub name: String, + /// The HTTPS URL of the repository. + pub url: String, + /// The exact 40-lowercase-hex commit. + pub revision: String, +} + /// The validated project configuration. #[derive(Debug, Clone, PartialEq, Eq)] pub struct ProjectConfig { @@ -217,6 +232,8 @@ pub struct ProjectConfig { pub artifact_sources: Vec, /// Language 1.2: source packages, sorted by package. pub source_packages: Vec, + /// Language 1.2: external Lean libraries, sorted by name. + pub lean_libraries: Vec, /// The explicit resource policy. pub limits: Limits, /// The optional PDF provider. @@ -242,6 +259,8 @@ struct RawProject { artifact_sources: Option>, #[serde(default, rename = "source_package")] source_packages: Option>, + #[serde(default, rename = "lean_library")] + lean_libraries: Option>, limits: Limits, pdf: Option, } @@ -273,6 +292,19 @@ struct RawSourcePackage { path: String, } +/// A `[[lean_library]]` table. Every field is optional here and any further +/// key is collected, so that a missing field, a `branch`, or a `tag` is +/// refused as `LLC0109` naming the library rather than as a generic parse +/// failure. +#[derive(Deserialize)] +struct RawLeanLibrary { + name: Option, + url: Option, + revision: Option, + #[serde(flatten)] + other: std::collections::BTreeMap, +} + #[derive(Deserialize)] #[serde(deny_unknown_fields)] struct RawPdf { @@ -290,6 +322,18 @@ fn config_error(path: &str, message: impl Into) -> Diagnostic { Diagnostic::new(code!("LLC0101"), message).with_span(Span::whole_file(path)) } +fn library_error(path: &str, message: impl Into) -> Diagnostic { + Diagnostic::new(code!("LLC0109"), message).with_span(Span::whole_file(path)) +} + +/// Is `revision` an exact commit: 40 lowercase hexadecimal digits. +fn is_exact_commit(revision: &str) -> bool { + revision.len() == 40 + && revision + .bytes() + .all(|b| b.is_ascii_digit() || (b'a'..=b'f').contains(&b)) +} + /// The Lean roots this compiler ships or generates beside a project's own: /// the certificates and their audit (`LexLeanPreserve`, `LexLeanAudit`), the /// namespaces of the runtime modules' collection, model, reasoning, and @@ -902,6 +946,78 @@ pub fn parse_project(path: &str, bytes: &[u8]) -> Result None, @@ -1031,6 +1147,7 @@ pub fn parse_project(path: &str, bytes: &[u8]) -> Result ErrorClass::Environment, + | "LLV7014" | "LLV7017" | "LLV7018" | "LLV7019" | "LLV7020" => ErrorClass::Environment, _ => match self.0.as_bytes()[2] { b'C' => ErrorClass::CliOrConfiguration, b'S' => ErrorClass::SecurityOrLimit, diff --git a/crates/lexlean/src/glossary/extract.rs b/crates/lexlean/src/glossary/extract.rs new file mode 100644 index 0000000000..5b17733629 --- /dev/null +++ b/crates/lexlean/src/glossary/extract.rs @@ -0,0 +1,234 @@ +//! The Lean half of glossary generation: the metaprogram that reads +//! declarations from a Lean environment, its output document, and the child +//! process that runs it under the pinned toolchain (SPEC.md §13.12, §25.4). + +use std::collections::BTreeMap; + +use camino::{Utf8Path, Utf8PathBuf}; +use serde::Deserialize; + +use crate::code; +use crate::config::Limits; +use crate::diagnostic::Diagnostic; +use crate::verify::child::{run as run_child, ChildHome, ChildSpec, Normalizer}; +use crate::verify::toolchain; + +/// The extractor's source. It is compiled into the executable, so the Lean +/// that reads a library is the Lean this release shipped with, and is written +/// to a private temporary file for each run. +pub const EXTRACTOR: &str = include_str!("../../lean/GlossaryExtract.lean"); + +/// What a request names: every declaration of some modules, or declarations +/// by name. +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum Selection { + /// Every declaration the named modules define. + Modules(Vec), + /// The named declarations. + Names(Vec), +} + +/// Why the extractor refused one declaration. +#[derive(Debug, Clone, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct Refusal { + /// The stable reason, which the planner maps to a registered code. + pub reason: String, + /// The human detail. + pub detail: String, +} + +/// One constructor row of an eliminator descriptor. +#[derive(Debug, Clone, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct ElimConstructor { + /// The constructor's Lean name. + pub name: String, + /// Field binder names, in order. + pub fields: Vec, + /// Induction-hypothesis binder names, in order. + pub induction_hypotheses: Vec, +} + +/// An eliminator as the extractor found it. +#[derive(Debug, Clone, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct Elim { + /// The `cases` eliminator's Lean name. + pub cases: String, + /// The `induction` eliminator's Lean name. + pub induction: String, + /// The constructors, in declaration order. + pub constructors: Vec, +} + +/// One declaration of the extraction. +#[derive(Debug, Clone, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct Decl { + /// The Lean name. + pub name: String, + /// The module that defines it. + #[serde(default)] + pub module: String, + /// `theorem`, `definition`, `axiom`, `opaque`, `inductive`, or + /// `constructor`. + #[serde(default)] + pub kind: String, + /// Did the request name it (as opposed to a dependency the closure added)? + pub requested: bool, + /// The LSE signature, with `(const @Lean.Name ...)` placeholders for every + /// constant that is not a core entry. + pub signature: Option, + /// `proof`, `type`, `predicate`, or `term`. + pub class: Option, + /// The universe variables the signature uses, sorted. + #[serde(default)] + pub universes: Vec, + /// The number of elaboration annotations erased from the type. + #[serde(default)] + pub erased: u64, + /// The Lean names the signature mentions, sorted. + #[serde(default)] + pub refs: Vec, + /// Why there is no signature. + pub refusal: Option, + /// The eliminator, for an inductive type that has one. + pub eliminator: Option, + /// Why an inductive type has no eliminator. + pub eliminator_omitted: Option, +} + +/// The extractor's whole document. +#[derive(Debug, Clone, Deserialize, PartialEq, Eq)] +#[serde(deny_unknown_fields)] +pub struct Extraction { + /// Every declaration, requested or reached as a dependency, by name. + pub declarations: Vec, + /// Requested declarations the extractor set aside, by kind. + pub excluded: BTreeMap, +} + +impl Extraction { + /// Read the extractor's document. + pub fn parse(bytes: &[u8]) -> Result { + serde_json::from_slice(bytes).map_err(|error| { + Diagnostic::new( + code!("LLV7002"), + format!("the glossary extractor's output is not its document: {error}"), + ) + }) + } +} + +/// The resource policy of an extraction: a library module is millions of +/// bytes of JSON and minutes of work, so the child limits are wider than a +/// document's. +const LIMITS: Limits = Limits { + max_file_bytes: 4_194_304, + max_total_source_bytes: 67_108_864, + max_primitive_atoms: 2_000_000, + max_token_lattice_edges: 4_000_000, + max_parse_states: 4_000_000, + max_ir_nodes: 2_000_000, + max_scope_depth: 1024, + max_import_depth: 128, + max_diagnostics: 256, + max_child_output_bytes: 1_073_741_824, + child_timeout_ms: 3_600_000, +}; + +/// Run the extractor under the pinned toolchain and return its document. +/// +/// With a `workspace`, the extractor runs as `lake env lean --run` in that +/// Lake workspace, whose dependencies must already be present and built +/// (nothing is fetched or built here, I15); without one it runs as plain +/// `lean --run` and sees the toolchain's own libraries. +pub fn run(selection: &Selection, workspace: Option<&Utf8Path>) -> Result { + run_with(selection, workspace, None) +} + +/// [`run`] with one more directory of compiled Lean modules on the search +/// path. The command line has no such option: it exists so the repository's +/// own cases can extract from a module they compile themselves. +pub fn run_with( + selection: &Selection, + workspace: Option<&Utf8Path>, + lean_path: Option<&Utf8Path>, +) -> Result { + let toolchain = toolchain::preflight(&LIMITS)?; + let scratch = tempfile::Builder::new() + .prefix("lexlean-glossary-") + .tempdir() + .map_err(|error| { + Diagnostic::new( + code!("LLS8001"), + format!("cannot create the extractor's scratch directory: {error}"), + ) + })?; + let scratch_path = Utf8PathBuf::from_path_buf(scratch.path().to_path_buf()) + .map_err(|bad| crate::project::non_utf8_path(&bad))?; + let script = scratch_path.join("GlossaryExtract.lean"); + std::fs::write(script.as_std_path(), EXTRACTOR).map_err(|error| { + Diagnostic::new( + code!("LLS8001"), + format!("cannot write the extractor: {error}"), + ) + })?; + let mut flags = Vec::new(); + match selection { + Selection::Modules(modules) => { + flags.push("--modules".to_owned()); + flags.extend(modules.iter().cloned()); + } + Selection::Names(names) => { + flags.push("--names".to_owned()); + flags.extend(names.iter().cloned()); + } + } + let (program, mut argv, cwd): (&Utf8Path, Vec, &Utf8Path) = match workspace { + Some(workspace) => ( + &toolchain.lake.path, + vec!["env".to_owned(), "lean".to_owned()], + workspace, + ), + None => (&toolchain.lean.path, Vec::new(), &scratch_path), + }; + let executable_sha256 = if workspace.is_some() { + toolchain.lake.sha256 + } else { + toolchain.lean.sha256 + }; + argv.extend(["--run".to_owned(), script.to_string(), "--".to_owned()]); + argv.extend(flags); + let bin = toolchain.root.join("bin"); + let record = run_child( + &ChildSpec { + tool: "glossary-extract", + module: None, + program, + executable_sha256, + argv, + cwd, + extra_env: lean_path + .map(|path| vec![("LEAN_PATH".to_owned(), path.to_string())]) + .unwrap_or_default(), + home: ChildHome::Toolchain { + toolchain_bin: &bin, + }, + }, + &LIMITS, + &Normalizer::default(), + )?; + if record.exit_code != 0 { + return Err(Diagnostic::new( + code!("LLV7002"), + format!( + "the glossary extractor failed with exit code {}", + record.exit_code + ), + ) + .with_cause(record.stderr.trim_end().to_owned())); + } + Extraction::parse(record.stdout.as_bytes()) +} diff --git a/crates/lexlean/src/glossary/mod.rs b/crates/lexlean/src/glossary/mod.rs new file mode 100644 index 0000000000..c5bf2b879c --- /dev/null +++ b/crates/lexlean/src/glossary/mod.rs @@ -0,0 +1,251 @@ +//! Generated external-Lean glossaries (SPEC.md §13.12): a lexicon package of +//! `kind = "lean"` entries derived from the declarations of a Lean +//! environment, with no hand-written entry. +//! +//! The work splits where the knowledge lives. A Lean metaprogram +//! ([`extract`]) reads the environment, because only Lean can say what a +//! declaration's type is, which binders are implicit, and which inductive +//! types have eliminators. The planner ([`plan`]) and the naming scheme +//! ([`naming`]) are Rust, so the package bytes, the diagnostics, and the +//! coverage report are fixed by this release and testable without Lean. + +pub mod extract; +pub mod naming; +pub mod plan; + +use std::collections::BTreeSet; + +use camino::{Utf8Path, Utf8PathBuf}; + +use crate::code; +use crate::diagnostic::Diagnostic; +use crate::error::LexLeanError; +use crate::glossary::extract::{Extraction, Selection}; +use crate::glossary::plan::{PackageSpec, Plan, Report}; +use crate::lexicon::entry::is_lean_name; +use crate::lexicon::lse::is_package_id; + +/// A `deps glossary` request. +#[derive(Debug, Clone)] +pub struct Request { + /// The package identity the output carries. + pub package: PackageSpec, + /// The modules or declarations to translate. + pub selection: Selection, + /// The Lake workspace whose libraries the modules come from, or `None` + /// for the toolchain's own (`Init`, `Std`, `Lean`). + pub workspace: Option, + /// The package directory to create; it is absent or empty beforehand. + pub out: Utf8PathBuf, + /// Where to write the coverage report, if anywhere. + pub report: Option, + /// Fail with the registered code of the first refusal instead of + /// reporting it. + pub strict: bool, +} + +/// What a finished run produced. +#[derive(Debug, Clone)] +pub struct Generated { + /// The coverage report. + pub report: Report, + /// The files written, relative to the working directory of the caller as + /// given. + pub artifacts: Vec, +} + +fn usage(message: impl Into) -> LexLeanError { + LexLeanError::from_diagnostic(Diagnostic::new(code!("LLC0001"), message)) +} + +fn selection_error(message: impl Into) -> LexLeanError { + LexLeanError::from_diagnostic(Diagnostic::new(code!("LLC0002"), message)) +} + +/// Check everything about a request that needs no Lean. +/// +/// # Errors +/// +/// `LLC0002` for an empty or repeated selection, `LLC0001` for a malformed +/// package identity, language, module, name, or output directory. +pub fn validate(request: &Request) -> Result<(), LexLeanError> { + let package = &request.package; + if !is_package_id(&package.package) { + return Err(usage(format!( + "`{}` is not a valid package ID", + package.package + ))); + } + if semver::Version::parse(&package.version).is_err() { + return Err(usage(format!( + "`{}` is not an exact version", + package.version + ))); + } + if !crate::supports_language(&package.language) { + return Err(usage(format!( + "`{}` is not a language version this compiler supports", + package.language + ))); + } + let (what, items) = match &request.selection { + Selection::Modules(items) => ("module", items), + Selection::Names(items) => ("declaration", items), + }; + if items.is_empty() { + return Err(selection_error(format!("no {what} is selected"))); + } + let mut seen = BTreeSet::new(); + for item in items { + if !is_lean_name(item) { + return Err(usage(format!( + "`{item}` is not a {what} name in the conservative ASCII Lean-name grammar" + ))); + } + if !seen.insert(item) { + return Err(selection_error(format!( + "{what} `{item}` is given more than once" + ))); + } + } + match std::fs::read_dir(request.out.as_std_path()) { + Ok(mut entries) => { + if entries.next().is_some() { + return Err(usage(format!( + "`{}` exists and is not empty; the output directory is absent or empty", + request.out + ))); + } + } + Err(error) if error.kind() == std::io::ErrorKind::NotFound => {} + Err(error) => { + return Err(usage(format!( + "`{}` is not a usable output directory: {error}", + request.out + ))); + } + } + if let Some(report) = &request.report { + if report.as_std_path().exists() { + return Err(usage(format!( + "`{report}` exists; the report is not overwritten" + ))); + } + } + Ok(()) +} + +/// Write a plan: the package directory, then the report. The package appears +/// in one rename, so a failure leaves no partial package. +fn write( + plan: &Plan, + out: &Utf8Path, + report: Option<&Utf8Path>, +) -> Result, Diagnostic> { + let io = |what: &str, error: std::io::Error| { + Diagnostic::new(code!("LLS8001"), format!("{what}: {error}")) + }; + let parent = out + .parent() + .filter(|parent| !parent.as_str().is_empty()) + .unwrap_or_else(|| Utf8Path::new(".")); + std::fs::create_dir_all(parent.as_std_path()) + .map_err(|e| io("cannot create the parent directory", e))?; + let staging = tempfile::Builder::new() + .prefix(".lexlean-glossary-") + .tempdir_in(parent.as_std_path()) + .map_err(|e| io("cannot create the staging directory", e))?; + for (path, bytes) in &plan.files { + let target = staging.path().join(path); + if let Some(directory) = target.parent() { + std::fs::create_dir_all(directory).map_err(|e| io("cannot create a directory", e))?; + } + std::fs::write(&target, bytes).map_err(|e| io("cannot write an entry", e))?; + } + let staged = staging.keep(); + if out.as_std_path().is_dir() { + std::fs::remove_dir(out.as_std_path()) + .map_err(|e| io("cannot replace the empty output directory", e))?; + } + std::fs::rename(&staged, out.as_std_path()).map_err(|e| io("cannot publish the package", e))?; + let mut artifacts = vec![out.to_string()]; + if let Some(report) = report { + std::fs::write(report.as_std_path(), plan.report.to_bytes()) + .map_err(|e| io("cannot write the report", e))?; + artifacts.push(report.to_string()); + } + Ok(artifacts) +} + +/// The diagnostics of a strict run: one per refused requested declaration, +/// each with its registered code. +fn refusal_diagnostics(report: &Report) -> Vec { + report + .refusals + .iter() + .filter(|refusal| refusal.requested) + .map(|refusal| { + let code = plan::code_of(&refusal.reason); + let mut message = format!("`{}` is refused: {}", refusal.name, refusal.detail); + if let (Some(root), Some(reason)) = (&refusal.root, &refusal.root_reason) { + message.push_str(&format!(" (root `{root}`: {reason})")); + } + Diagnostic::new(code, message) + }) + .collect() +} + +/// Plan from an extraction and write the result. This is [`generate`] without +/// the Lean child, which the conformance cases and tests drive with committed +/// extractions. +/// +/// # Errors +/// +/// Request errors as [`validate`]; `LLS8001` when the output cannot be +/// written; the registered code of the first refusal when `strict`. +pub fn generate_from( + request: &Request, + extraction: &Extraction, +) -> Result { + validate(request)?; + let plan = plan::plan(extraction, &request.package).map_err(LexLeanError::from_diagnostics)?; + if request.strict && plan.report.refused > 0 { + return Err( + LexLeanError::from_diagnostics(refusal_diagnostics(&plan.report)) + .bounded(256, "glossary"), + ); + } + let artifacts = write(&plan, &request.out, request.report.as_deref()) + .map_err(LexLeanError::from_diagnostic)?; + Ok(Generated { + report: plan.report, + artifacts, + }) +} + +/// Run the whole command: validate, extract under the pinned toolchain, plan, +/// and write. +/// +/// # Errors +/// +/// As [`generate_from`], and `LLV7001`, `LLV7002`, or `LLS8002` when the +/// toolchain, the extractor, or its limits fail. +pub fn generate(request: &Request) -> Result { + generate_with(request, None) +} + +/// [`generate`] with one more directory of compiled Lean modules on the +/// extractor's search path, for the repository's own cases. +/// +/// # Errors +/// +/// As [`generate`]. +pub fn generate_with( + request: &Request, + lean_path: Option<&Utf8Path>, +) -> Result { + validate(request)?; + let extraction = extract::run_with(&request.selection, request.workspace.as_deref(), lean_path) + .map_err(LexLeanError::from_diagnostic)?; + generate_from(request, &extraction) +} diff --git a/crates/lexlean/src/glossary/naming.rs b/crates/lexlean/src/glossary/naming.rs new file mode 100644 index 0000000000..f43523b9de --- /dev/null +++ b/crates/lexlean/src/glossary/naming.rs @@ -0,0 +1,176 @@ +//! The naming scheme of generated glossaries (SPEC.md §13.12): how a Lean +//! declaration name becomes an entry ID, a canonical surface, and the words of +//! a prose form. Every function is pure and ASCII-only, so a name maps to the +//! same strings on every host and in every release that keeps the scheme. + +/// The lowercase words of one name component. A word ends at `_`, before an +/// uppercase letter that follows a lowercase letter or digit, and before the +/// last capital of a capital run that a lowercase letter follows (`HAdd` is +/// `h add`, `ENNReal` is `enn real`). A prime is the word `prime`. Digits +/// stay with the word they follow. Characters outside ASCII letters, digits, +/// `_`, and `'` contribute nothing; the extractor refuses such names, so this +/// is only a total function, not a policy. +#[must_use] +pub fn words(component: &str) -> Vec { + let chars: Vec = component.chars().collect(); + let mut words: Vec = Vec::new(); + let mut current = String::new(); + let flush = |current: &mut String, words: &mut Vec| { + if !current.is_empty() { + words.push(std::mem::take(current)); + } + }; + for (index, &c) in chars.iter().enumerate() { + match c { + '_' => flush(&mut current, &mut words), + '\'' => { + flush(&mut current, &mut words); + words.push("prime".to_owned()); + } + c if c.is_ascii_uppercase() => { + let previous = index.checked_sub(1).map(|i| chars[i]); + let next = chars.get(index + 1).copied(); + let after_lower_or_digit = + previous.is_some_and(|p| p.is_ascii_lowercase() || p.is_ascii_digit()); + let ends_capital_run = previous.is_some_and(|p| p.is_ascii_uppercase()) + && next.is_some_and(|n| n.is_ascii_lowercase()); + if after_lower_or_digit || ends_capital_run { + flush(&mut current, &mut words); + } + current.push(c.to_ascii_lowercase()); + } + c if c.is_ascii_lowercase() || c.is_ascii_digit() => current.push(c), + _ => {} + } + } + flush(&mut current, &mut words); + words +} + +/// One entry-ID segment: the words of a component joined by `-`, starting with +/// a letter (`x` is prefixed when the first word starts with a digit and is the +/// whole segment when the component has no word). +fn id_segment(component: &str) -> String { + let joined = words(component).join("-"); + match joined.chars().next() { + Some(c) if c.is_ascii_lowercase() => joined, + Some(_) => format!("x{joined}"), + None => "x".to_owned(), + } +} + +/// The base entry ID of a Lean name: one segment per component, joined by +/// `.`, so the namespace structure of Lean is the directory structure of the +/// package (`Nat.add_comm` is `nat.add-comm`, stored at +/// `entries/nat/add-comm.toml`). +#[must_use] +pub fn base_entry_id(lean_name: &str) -> String { + lean_name + .split('.') + .map(id_segment) + .collect::>() + .join(".") +} + +/// The canonical surface of a Lean name: the words of every component joined +/// in lower camel case (`Nat.add_comm` is `natAddComm`). The result is one +/// math word that begins with a letter, which is renderer-safe (§13.5) and a +/// valid `operator-name` (§13.9). +#[must_use] +pub fn camel_surface(lean_name: &str) -> String { + let mut out = String::new(); + for word in lean_name.split('.').flat_map(words) { + if out.is_empty() { + out.push_str(&word); + } else { + let mut letters = word.chars(); + if let Some(first) = letters.next() { + out.push(first.to_ascii_uppercase()); + out.push_str(letters.as_str()); + } + } + } + match out.chars().next() { + Some(c) if c.is_ascii_alphabetic() => out, + Some(_) => format!("x{out}"), + None => "x".to_owned(), + } +} + +/// The prose words of a Lean name for an adjective or transitive predicate: +/// the words of its last component, lowercase, with a leading `is` dropped +/// when other words remain (`Nat.Prime` is `prime`, `IsUnit` is `unit`). +/// `None` when a word holds a digit, because a prose form cannot (§13.5 +/// rule 4), or when nothing is left. +#[must_use] +pub fn prose_words(lean_name: &str) -> Option { + let component = lean_name.rsplit('.').next()?; + let mut all = words(component); + if all.len() > 1 && all.first().is_some_and(|w| w == "is") { + all.remove(0); + } + if all.is_empty() + || all + .iter() + .any(|w| !w.chars().all(|c| c.is_ascii_lowercase())) + { + return None; + } + Some(all.join(" ")) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn words_split_at_every_boundary_kind() { + assert_eq!(words("add_comm"), ["add", "comm"]); + assert_eq!(words("addComm"), ["add", "comm"]); + assert_eq!(words("HAdd"), ["h", "add"]); + assert_eq!(words("ENNReal"), ["enn", "real"]); + assert_eq!(words("pow2"), ["pow2"]); + assert_eq!(words("pow_2"), ["pow", "2"]); + assert_eq!(words("add_comm'"), ["add", "comm", "prime"]); + assert_eq!(words("IsUnit"), ["is", "unit"]); + assert!(words("_").is_empty()); + } + + #[test] + fn entry_ids_follow_the_namespace() { + assert_eq!(base_entry_id("Nat.add_comm"), "nat.add-comm"); + assert_eq!(base_entry_id("List.append_assoc"), "list.append-assoc"); + assert_eq!(base_entry_id("Nat"), "nat"); + assert_eq!(base_entry_id("Nat.pow_2"), "nat.pow-2"); + assert_eq!(base_entry_id("Foo._1"), "foo.x1"); + assert_eq!(base_entry_id("Foo._"), "foo.x"); + for name in ["Nat.add_comm", "HAdd.hAdd", "Nat.le.dest", "a'.b"] { + assert!( + crate::lexicon::lse::is_entry_id(&base_entry_id(name)), + "{name}" + ); + } + } + + #[test] + fn surfaces_are_one_safe_word() { + assert_eq!(camel_surface("Nat.add_comm"), "natAddComm"); + assert_eq!(camel_surface("HAdd.hAdd"), "hAddHAdd"); + assert_eq!(camel_surface("Nat"), "nat"); + assert_eq!(camel_surface("Nat.pow_2"), "natPow2"); + assert_eq!(camel_surface("add_comm'"), "addCommPrime"); + // The two spellings of one name collide, by design: the surface is a + // reading aid and `\lexeme` selects between the entries. + assert_eq!(camel_surface("Nat.add_comm"), camel_surface("Nat.addComm")); + } + + #[test] + fn prose_needs_letters_only() { + assert_eq!(prose_words("Nat.Prime").as_deref(), Some("prime")); + assert_eq!(prose_words("IsUnit").as_deref(), Some("unit")); + assert_eq!(prose_words("Dvd.dvd").as_deref(), Some("dvd")); + assert_eq!(prose_words("Nat.lt_irrefl").as_deref(), Some("lt irrefl")); + assert_eq!(prose_words("Fin2"), None); + assert_eq!(prose_words("Is"), Some("is".to_owned())); + } +} diff --git a/crates/lexlean/src/glossary/plan.rs b/crates/lexlean/src/glossary/plan.rs new file mode 100644 index 0000000000..f3c11dc2f4 --- /dev/null +++ b/crates/lexlean/src/glossary/plan.rs @@ -0,0 +1,833 @@ +//! From an extraction to a package (SPEC.md §13.12): which declarations get +//! entries, what the entries say, and why the others do not. +//! +//! The planner is pure: the same extraction and package identity give the same +//! bytes. It never weakens a signature to fit; a declaration it cannot express +//! is refused with the registered code of its reason, and so is everything +//! that mentions it. + +use std::collections::{BTreeMap, BTreeSet, VecDeque}; + +use serde::Serialize; + +use crate::artifact::content_id::Sha256Digest; +use crate::code; +use crate::diagnostic::{Diagnostic, DiagnosticCode}; +use crate::glossary::extract::{Decl, Elim, Extraction}; +use crate::glossary::naming; +use crate::lexicon::entry::{is_lean_name, parse_entry, EntryContext}; +use crate::lexicon::lse::{self, is_lse_identifier, ConstInfo, QualifiedId}; +use crate::lexicon::package::entry_path; + +/// The package a plan produces. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct PackageSpec { + /// The package ID. + pub package: String, + /// The exact version. + pub version: String, + /// The language the package is written for. + pub language: String, +} + +/// The registered code of a refusal reason (SPEC.md §13.12, §26.3). A +/// declaration that mentions a refused, excluded, or absent one is `LLT4106` +/// whatever the root was. +#[must_use] +pub fn code_of(reason: &str) -> DiagnosticCode { + match reason { + "sort-polymorphic" => code!("LLT4101"), + "strict-implicit-binder" => code!("LLT4102"), + "string-literal" + | "primitive-projection" + | "unsupported-expression" + | "internal" + | "level-metavariable" + | "level-parameter" => code!("LLT4103"), + "core-level-mismatch" => code!("LLT4104"), + "name-not-conservative" => code!("LLT4105"), + "entry-check" => code!("LLT4107"), + _ => code!("LLT4106"), + } +} + +/// One refused declaration of the report. +#[derive(Debug, Clone, Serialize, PartialEq, Eq)] +pub struct Refused { + /// The Lean name. + pub name: String, + /// Did the request name it? + pub requested: bool, + /// The reason, or `dependency` for a declaration refused because of one + /// it mentions. + pub reason: String, + /// The registered code. + pub code: String, + /// The detail. + pub detail: String, + /// For a dependency refusal, the declaration whose own refusal is the + /// root. + #[serde(skip_serializing_if = "Option::is_none")] + pub root: Option, + /// For a dependency refusal, the reason of that root. + #[serde(skip_serializing_if = "Option::is_none")] + pub root_reason: Option, +} + +/// Counts under one reason. +#[derive(Debug, Clone, Serialize, PartialEq, Eq, Default)] +pub struct ReasonCount { + /// The registered code. + pub code: String, + /// How many requested declarations. + pub count: u64, +} + +/// Eliminator outcomes over the translated inductive types. +#[derive(Debug, Clone, Serialize, PartialEq, Eq, Default)] +pub struct EliminatorCounts { + /// Entries that carry a descriptor. + pub emitted: u64, + /// Entries without one, by reason. + pub omitted: BTreeMap, +} + +/// The coverage report (`lexlean/glossary-report/1`). It holds counts and +/// names only: no time, path, or host, so it is part of the deterministic +/// output. +#[derive(Debug, Clone, Serialize, PartialEq, Eq)] +pub struct Report { + /// The schema tag. + pub spec: String, + /// The package ID. + pub package: String, + /// The package version. + pub version: String, + /// The language. + pub language: String, + /// Requested declarations: `translated + refused + excluded`. + pub requested: u64, + /// Requested declarations that have an entry. + pub translated: u64, + /// Requested declarations that were refused. + pub refused: u64, + /// Requested declarations set aside by kind, not refused. + pub excluded: u64, + /// The excluded count by kind. + pub excluded_by_kind: BTreeMap, + /// Requested declarations refused for a reason of their own. + pub refused_by_reason: BTreeMap, + /// Requested declarations refused because they mention a refused, + /// excluded, or absent one, by the reason of the root. + pub refused_by_dependency: BTreeMap, + /// Entries that are not requested declarations: the types, classes, + /// functions, and constructors the requested signatures mention. + pub support_entries: u64, + /// Eliminator descriptors. + pub eliminators: EliminatorCounts, + /// Entries whose type had elaboration annotations erased (`outParam`, + /// `optParam`, `autoParam`, `semiOutParam`). + pub entries_with_erased_annotations: u64, + /// Entries whose identifier needed a hash suffix. + pub id_collisions: u64, + /// Entries that share a canonical surface with another. + pub surface_collisions: u64, + /// Every refusal, by Lean name. + pub refusals: Vec, +} + +impl Report { + /// The report as its file bytes: pretty JSON, sorted keys, one final LF. + #[must_use] + pub fn to_bytes(&self) -> Vec { + // Serializing counts, strings, and sorted maps cannot fail. + let mut bytes = serde_json::to_vec_pretty(self).unwrap_or_default(); + bytes.push(b'\n'); + bytes + } + + /// A short human summary. + #[must_use] + pub fn summary(&self) -> String { + let mut text = format!( + "{}@{}: {} requested, {} translated, {} refused, {} excluded; {} support entries\n", + self.package, + self.version, + self.requested, + self.translated, + self.refused, + self.excluded, + self.support_entries + ); + for (reason, count) in &self.refused_by_reason { + text.push_str(&format!( + " refused {} {}: {}\n", + count.code, reason, count.count + )); + } + for (root, count) in &self.refused_by_dependency { + text.push_str(&format!( + " refused LLT4106 dependency on {root}: {count}\n" + )); + } + for (kind, count) in &self.excluded_by_kind { + text.push_str(&format!(" excluded {kind}: {count}\n")); + } + text + } +} + +/// A plan: the package files and the report. +#[derive(Debug, Clone)] +pub struct Plan { + /// `(package-relative path, bytes)`, sorted bytewise, as the package + /// loader takes them. + pub files: Vec<(String, Vec)>, + /// The coverage report. + pub report: Report, +} + +/// Why a declaration has no entry. +#[derive(Debug, Clone)] +struct Why { + reason: String, + detail: String, + /// The declaration at the end of the chain, when the refusal is inherited. + inherited_from: Option<(String, String)>, +} + +fn toml_str(text: &str) -> String { + let mut out = String::from("\""); + for c in text.chars() { + match c { + '\\' => out.push_str("\\\\"), + '"' => out.push_str("\\\""), + c if u32::from(c) < 0x20 || u32::from(c) == 0x7f => { + out.push_str(&format!("\\u{:04X}", u32::from(c))); + } + c => out.push(c), + } + } + out.push('"'); + out +} + +fn toml_list(items: &[String]) -> String { + let rendered: Vec = items.iter().map(|item| toml_str(item)).collect(); + format!("[{}]", rendered.join(", ")) +} + +/// The category, frame, and forms of an entry (SPEC.md §13.12). +struct Shape { + category: &'static str, + frame: &'static str, + /// `(form id, channel, surface, features)`. + form: (String, &'static str, String, Vec), + /// The math render, when the frame has one. + render: Option, +} + +fn shape(decl: &Decl, id: &str, arity: usize) -> Shape { + let class = decl.class.as_deref().unwrap_or("term"); + let surface = naming::camel_surface(&decl.name); + let last = id.rsplit('.').next().unwrap_or(id).to_owned(); + let call_render = |arity: usize| -> String { + match arity { + 0 => format!("(operator-name {surface})"), + 1 => format!("(seq (operator-name {surface}) (paren (slot 0)))"), + n => { + let slots: Vec = (0..n).map(|i| format!("(slot {i})")).collect(); + format!( + "(seq (operator-name {surface}) (paren (seq {})))", + slots.join(" (token comma) (space) ") + ) + } + } + }; + let math = |category: &'static str, frame: &'static str| Shape { + category, + frame, + form: (last.clone(), "math", surface.clone(), Vec::new()), + render: Some(call_render(arity)), + }; + let prose = |category: &'static str, frame: &'static str| { + naming::prose_words(&decl.name).map(|words| Shape { + category, + frame, + form: (last.clone(), "text", words, vec!["lower-case".to_owned()]), + render: None, + }) + }; + match (class, arity) { + ("proof", 0) => math("proof-constant", "atom"), + ("proof", _) => math("proof-constant", "call"), + ("type", 0) => math("type-noun", "atom"), + ("type", _) => math("function", "call"), + ("predicate", 0) => math("predicate-constant", "atom"), + ("predicate", 1) => { + prose("adjective-predicate", "adjective").unwrap_or_else(|| math("function", "call")) + } + ("predicate", 2) => { + prose("transitive-predicate", "transitive").unwrap_or_else(|| math("function", "call")) + } + ("predicate", _) => math("function", "call"), + (_, 0) => math("term-constant", "atom"), + _ => math("function", "call"), + } +} + +/// Everything the text of one entry depends on. +struct Rendered<'a> { + decl: &'a Decl, + id: &'a str, + signature: &'a str, + arity: usize, + eliminator: Option<&'a str>, +} + +fn entry_text(r: &Rendered<'_>) -> String { + let shape = shape(r.decl, r.id, r.arity); + let mut text = String::new(); + text.push_str("spec = \"lexlean/entry/1\"\n"); + text.push_str(&format!("id = {}\n", toml_str(r.id))); + text.push_str(&format!("category = {}\n", toml_str(shape.category))); + text.push_str(&format!("signature = {}\n", toml_str(r.signature))); + if !r.decl.universes.is_empty() { + text.push_str(&format!("universes = {}\n", toml_list(&r.decl.universes))); + } + text.push_str(&format!("surface_arity = {}\n", r.arity)); + text.push_str(&format!("frame = {}\n\n", toml_str(shape.frame))); + text.push_str("[denotation]\nkind = \"lean\"\n"); + text.push_str(&format!("module = {}\n", toml_str(&r.decl.module))); + text.push_str(&format!("name = {}\n\n", toml_str(&r.decl.name))); + let (form_id, channel, surface, features) = &shape.form; + text.push_str("[[form]]\n"); + text.push_str(&format!("id = {}\n", toml_str(form_id))); + text.push_str(&format!("channel = {}\n", toml_str(channel))); + text.push_str(&format!("surface = {}\n", toml_str(surface))); + text.push_str("canonical_source = true\n"); + text.push_str(&format!("features = {}\n", toml_list(features))); + if let Some(render) = &shape.render { + text.push_str(&format!("\n[render]\nmath = {}\n", toml_str(render))); + } + if let Some(eliminator) = r.eliminator { + text.push('\n'); + text.push_str(eliminator); + } + text +} + +fn eliminator_text(elim: &Elim, ids: &BTreeMap<&str, String>, package: &str) -> Option { + if !is_lean_name(&elim.cases) || !is_lean_name(&elim.induction) { + return None; + } + let mut text = format!( + "[eliminator]\ncases_lean_name = {}\ninduction_lean_name = {}\n", + toml_str(&elim.cases), + toml_str(&elim.induction) + ); + for constructor in &elim.constructors { + let id = ids.get(constructor.name.as_str())?; + let mut seen = BTreeSet::new(); + for binder in constructor + .fields + .iter() + .chain(&constructor.induction_hypotheses) + { + if !is_lse_identifier(binder) || !seen.insert(binder.as_str()) { + return None; + } + } + text.push_str(&format!( + "\n[[eliminator.constructor]]\nentry = {}\nlean_name = {}\nfields = {}\ninduction_hypotheses = {}\n", + toml_str(&format!("{package}::{id}")), + toml_str(&constructor.name), + toml_list(&constructor.fields), + toml_list(&constructor.induction_hypotheses), + )); + } + Some(text) +} + +/// Replace every `(const @Lean.Name` placeholder with the qualified ID of the +/// name's entry. `Err` names a placeholder with no entry. +fn resolve(signature: &str, ids: &BTreeMap<&str, String>, package: &str) -> Result { + let mut out = String::with_capacity(signature.len()); + let mut rest = signature; + while let Some(at) = rest.find("(const @") { + out.push_str(&rest[..at + "(const ".len()]); + let after = &rest[at + "(const @".len()..]; + let end = after.find([' ', ')']).unwrap_or(after.len()); + let name = &after[..end]; + let id = ids.get(name).ok_or_else(|| name.to_owned())?; + out.push_str(package); + out.push_str("::"); + out.push_str(id); + rest = &after[end..]; + } + out.push_str(rest); + Ok(out) +} + +/// Mark `start` and everything that mentions it refused with `why`, skipping +/// declarations that are already refused. +fn propagate<'a>( + start: &'a str, + root_reason: &str, + rdeps: &BTreeMap<&'a str, Vec<&'a str>>, + refused: &mut BTreeMap<&'a str, Why>, + root_detail: &str, +) { + let mut queue: VecDeque<&str> = VecDeque::from([start]); + while let Some(current) = queue.pop_front() { + let Some(dependents) = rdeps.get(current) else { + continue; + }; + for &dependent in dependents { + if refused.contains_key(dependent) { + continue; + } + let (root_name, reason) = match refused.get(current) { + Some(Why { + inherited_from: Some((name, reason)), + .. + }) => (name.clone(), reason.clone()), + _ => (current.to_owned(), root_reason.to_owned()), + }; + refused.insert( + dependent, + Why { + reason: "dependency".to_owned(), + detail: format!("mentions `{current}`: {root_detail}"), + inherited_from: Some((root_name, reason)), + }, + ); + queue.push_back(dependent); + } + } +} + +/// Plan the package for an extraction. +/// +/// # Errors +/// +/// `LLI9001` when the generated package fails the package loader, which means +/// the planner emitted what its own checks accepted and the loader did not. +#[allow(clippy::too_many_lines)] +pub fn plan(extraction: &Extraction, spec: &PackageSpec) -> Result> { + let by_name: BTreeMap<&str, &Decl> = extraction + .declarations + .iter() + .map(|decl| (decl.name.as_str(), decl)) + .collect(); + + // 1. Declarations with a reason of their own, and the reverse mention + // graph. + let mut refused: BTreeMap<&str, Why> = BTreeMap::new(); + let mut rdeps: BTreeMap<&str, Vec<&str>> = BTreeMap::new(); + for decl in &extraction.declarations { + if let Some(refusal) = &decl.refusal { + refused.insert( + decl.name.as_str(), + Why { + reason: refusal.reason.clone(), + detail: refusal.detail.clone(), + inherited_from: None, + }, + ); + } else if decl.signature.is_none() { + refused.insert( + decl.name.as_str(), + Why { + reason: "internal".to_owned(), + detail: "the extraction has neither a signature nor a refusal".to_owned(), + inherited_from: None, + }, + ); + } + for reference in &decl.refs { + rdeps + .entry(reference.as_str()) + .or_default() + .push(decl.name.as_str()); + } + } + // A mention of a name the extraction does not hold is a mention of an + // absent declaration. + let absent: Vec<&str> = rdeps + .keys() + .copied() + .filter(|name| !by_name.contains_key(name)) + .collect(); + for name in absent { + for &dependent in &rdeps[name] { + refused.entry(dependent).or_insert_with(|| Why { + reason: "dependency".to_owned(), + detail: format!("mentions `{name}`, which the extraction does not hold"), + inherited_from: Some((name.to_owned(), "unknown-declaration".to_owned())), + }); + } + } + // 2. Propagate along mentions, from every declaration refused so far. + let starts: Vec<(&str, String, String)> = refused + .iter() + .map(|(name, why)| (*name, why.reason.clone(), why.detail.clone())) + .collect(); + for (name, reason, detail) in &starts { + propagate(name, reason, &rdeps, &mut refused, detail); + } + + // 3. Identifiers for what is left. + let mut groups: BTreeMap> = BTreeMap::new(); + for decl in &extraction.declarations { + if !refused.contains_key(decl.name.as_str()) { + groups + .entry(naming::base_entry_id(&decl.name)) + .or_default() + .push(decl.name.as_str()); + } + } + let mut ids: BTreeMap<&str, String> = BTreeMap::new(); + let mut taken: BTreeSet = groups + .iter() + .filter(|(_, names)| names.len() == 1) + .map(|(base, _)| base.clone()) + .collect(); + let mut id_collisions = 0u64; + for (base, names) in &groups { + if let [only] = names.as_slice() { + ids.insert(only, base.clone()); + continue; + } + for &name in names { + id_collisions += 1; + let digest = Sha256Digest::of(name.as_bytes()).to_hex(); + let mut length = 6; + let mut candidate = format!("{base}-{}", &digest[..length]); + while taken.contains(&candidate) && length < digest.len() { + length += 2; + candidate = format!("{base}-{}", &digest[..length]); + } + taken.insert(candidate.clone()); + ids.insert(name, candidate); + } + } + + // 4. Texts, entry validation, and the signature check. + let bootstrap = crate::lexicon::load_bootstrap_for(&spec.language).map_err(|d| vec![d])?; + let context = EntryContext { + is_core: false, + forbidden_controls: &bootstrap.structural.forbidden_controls, + max_scope_depth: 1024, + }; + let mut resolved: BTreeMap<&str, (String, usize)> = BTreeMap::new(); + let mut parsed: BTreeMap = BTreeMap::new(); + let mut failed: Vec<(&str, String)> = Vec::new(); + for decl in &extraction.declarations { + let name = decl.name.as_str(); + if refused.contains_key(name) { + continue; + } + let id = &ids[name]; + let signature = match resolve(decl.signature.as_deref().unwrap_or(""), &ids, &spec.package) + { + Ok(signature) => signature, + Err(missing) => { + failed.push((name, format!("the placeholder `{missing}` has no entry"))); + continue; + } + }; + let arity = match lse::parse(&signature, 1024) { + Ok(lse) => lse.outer_explicit_binders(), + Err(error) => { + failed.push((name, format!("the signature does not parse: {error}"))); + continue; + } + }; + let text = entry_text(&Rendered { + decl, + id, + signature: &signature, + arity, + eliminator: None, + }); + match parse_entry(&entry_path(id), &text, &context) { + Ok(entry) => { + parsed.insert(id.clone(), entry); + resolved.insert(name, (signature, arity)); + } + Err(diagnostics) => failed.push(( + name, + diagnostics + .first() + .map_or_else(String::new, |d| d.message.clone()), + )), + } + } + { + let lookup = |id: &QualifiedId| -> ConstInfo<'_> { + if id.package != spec.package { + return ConstInfo::Opaque; + } + match parsed.get(&id.entry).and_then(|e| e.signature.as_ref()) { + Some(signature) => ConstInfo::Signature { + signature, + defined: false, + }, + None => ConstInfo::Missing, + } + }; + for (&name, (signature, _)) in &resolved { + let Ok(parsed_signature) = lse::parse(signature, 1024) else { + continue; + }; + if let Err(error) = lse::check_signature(&parsed_signature, &lookup) { + failed.push((name, format!("the signature is not well-typed: {error}"))); + } + } + } + for (name, detail) in &failed { + refused.entry(name).or_insert_with(|| Why { + reason: "entry-check".to_owned(), + detail: detail.clone(), + inherited_from: None, + }); + } + for (name, detail) in &failed { + propagate(name, "entry-check", &rdeps, &mut refused, detail); + } + + // 5. Final texts, with eliminators over the constructors that survived. + let mut files: BTreeMap> = BTreeMap::new(); + let mut eliminators = EliminatorCounts::default(); + let mut erased_entries = 0u64; + let mut surfaces: BTreeMap = BTreeMap::new(); + let mut translated_requested = 0u64; + let mut support = 0u64; + for decl in &extraction.declarations { + let name = decl.name.as_str(); + if refused.contains_key(name) { + continue; + } + let Some((signature, arity)) = resolved.get(name) else { + continue; + }; + let id = &ids[name]; + let mut eliminator: Option = None; + if let Some(elim) = &decl.eliminator { + let all_present = elim.constructors.iter().all(|c| { + !refused.contains_key(c.name.as_str()) && ids.contains_key(c.name.as_str()) + }); + let candidate = if all_present { + eliminator_text(elim, &ids, &spec.package) + } else { + None + }; + let reason = match &candidate { + Some(_) => None, + None if all_present => Some("invalid-binder-or-name"), + None => Some("constructor-refused"), + }; + if let Some(text) = candidate { + let with = entry_text(&Rendered { + decl, + id, + signature, + arity: *arity, + eliminator: Some(&text), + }); + if parse_entry(&entry_path(id), &with, &context).is_ok() { + eliminator = Some(text); + eliminators.emitted += 1; + } else { + *eliminators + .omitted + .entry("descriptor-rejected".to_owned()) + .or_default() += 1; + } + } else if let Some(reason) = reason { + *eliminators.omitted.entry(reason.to_owned()).or_default() += 1; + } + } else if let Some(why) = &decl.eliminator_omitted { + *eliminators.omitted.entry(why.clone()).or_default() += 1; + } + let text = entry_text(&Rendered { + decl, + id, + signature, + arity: *arity, + eliminator: eliminator.as_deref(), + }); + if decl.erased > 0 { + erased_entries += 1; + } + *surfaces + .entry(naming::camel_surface(&decl.name)) + .or_default() += 1; + if decl.requested { + translated_requested += 1; + } else { + support += 1; + } + files.insert(entry_path(id), text.into_bytes()); + } + let surface_collisions = surfaces.values().filter(|count| **count > 1).sum(); + + // 6. The manifest, and the whole package through the package loader. + let manifest = format!( + "spec = \"lexlean/lexicon/1\"\npackage = {}\nversion = {}\nlanguage = {}\nimports = [{}]\n", + toml_str(&spec.package), + toml_str(&spec.version), + toml_str(&spec.language), + toml_str(&format!("lexlean.core@{}.0", spec.language)), + ); + files.insert("lexicon.toml".to_owned(), manifest.into_bytes()); + let file_list: Vec<(String, Vec)> = files.into_iter().collect(); + let load_context = crate::lexicon::package::LoadContext { + language: &spec.language, + forbidden_controls: &bootstrap.structural.forbidden_controls, + max_scope_depth: 1024, + }; + if let Err(diagnostics) = + crate::lexicon::package::load_package(&spec.package, &file_list, None, &load_context) + { + let first = diagnostics + .first() + .map_or_else(String::new, |d| d.message.clone()); + return Err(vec![Diagnostic::new( + code!("LLI9001"), + format!("the generated package is rejected by the package loader: {first}"), + )]); + } + + // 7. The report. + let mut report = Report { + spec: "lexlean/glossary-report/1".to_owned(), + package: spec.package.clone(), + version: spec.version.clone(), + language: spec.language.clone(), + requested: 0, + translated: translated_requested, + refused: 0, + excluded: extraction.excluded.values().sum(), + excluded_by_kind: extraction.excluded.clone(), + refused_by_reason: BTreeMap::new(), + refused_by_dependency: BTreeMap::new(), + support_entries: support, + eliminators, + entries_with_erased_annotations: erased_entries, + id_collisions, + surface_collisions, + refusals: Vec::new(), + }; + let mut refusals: Vec = Vec::new(); + for decl in &extraction.declarations { + let Some(why) = refused.get(decl.name.as_str()) else { + continue; + }; + let (root, root_reason) = match &why.inherited_from { + Some((root, reason)) => (Some(root.clone()), Some(reason.clone())), + None => (None, None), + }; + if decl.requested { + report.refused += 1; + match &root_reason { + Some(root_reason) => { + *report + .refused_by_dependency + .entry(root_reason.clone()) + .or_default() += 1; + } + None => { + let entry = report + .refused_by_reason + .entry(why.reason.clone()) + .or_insert_with(|| ReasonCount { + code: code_of(&why.reason).as_str().to_owned(), + count: 0, + }); + entry.count += 1; + } + } + } + refusals.push(Refused { + name: decl.name.clone(), + requested: decl.requested, + reason: why.reason.clone(), + code: code_of(&why.reason).as_str().to_owned(), + detail: why.detail.clone(), + root, + root_reason, + }); + } + refusals.sort_by(|a, b| a.name.cmp(&b.name)); + report.refusals = refusals; + report.requested = report.translated + report.refused + report.excluded; + Ok(Plan { + files: file_list, + report, + }) +} + +#[cfg(test)] +mod tests { + use super::*; + + fn decl(name: &str, signature: &str, class: &str) -> Decl { + Decl { + name: name.to_owned(), + module: "Init.Test".to_owned(), + kind: "theorem".to_owned(), + requested: true, + signature: Some(signature.to_owned()), + class: Some(class.to_owned()), + universes: Vec::new(), + erased: 0, + refs: Vec::new(), + refusal: None, + eliminator: None, + eliminator_omitted: None, + } + } + + fn spec() -> PackageSpec { + PackageSpec { + package: "test.pkg".to_owned(), + version: "1.0.0".to_owned(), + language: "1.0".to_owned(), + } + } + + #[test] + fn a_mention_of_a_refused_declaration_is_refused_with_the_root() { + let mut bad = decl("Bad", "(sort prop)", "predicate"); + bad.signature = None; + bad.refusal = Some(crate::glossary::extract::Refusal { + reason: "sort-polymorphic".to_owned(), + detail: "Sort u".to_owned(), + }); + let mut user = decl("User", "(app (const @Bad))", "proof"); + user.refs = vec!["Bad".to_owned()]; + let extraction = Extraction { + declarations: vec![bad, user], + excluded: BTreeMap::new(), + }; + let plan = plan(&extraction, &spec()).expect("plans"); + assert_eq!(plan.report.translated, 0); + assert_eq!(plan.report.refused, 2); + assert_eq!( + plan.report.refused_by_reason["sort-polymorphic"].code, + "LLT4101" + ); + assert_eq!(plan.report.refused_by_dependency["sort-polymorphic"], 1); + let user = plan + .report + .refusals + .iter() + .find(|r| r.name == "User") + .unwrap(); + assert_eq!(user.code, "LLT4106"); + assert_eq!(user.root.as_deref(), Some("Bad")); + assert_eq!(plan.report.requested, 2); + } +} diff --git a/crates/lexlean/src/lean_library.rs b/crates/lexlean/src/lean_library.rs new file mode 100644 index 0000000000..b9e3a0705a --- /dev/null +++ b/crates/lexlean/src/lean_library.rs @@ -0,0 +1,430 @@ +//! External Lean libraries (SPEC.md §10.4): the offline resolution of a +//! declared library in the Lake workspace, the rows it contributes to the +//! lock, the comparison of those rows with the lock, and `deps fetch`, the one +//! operation that acquires a library. +//! +//! Resolution never touches the network and never runs a process: a library +//! that is not there is `LLV7019`, and the way to make it be there is +//! `lexlean deps fetch`, which is the only code in this module that starts a +//! child. + +use crate::artifact::content_id::Sha256Digest; +use crate::code; +use crate::config::{is_project_relative, LeanLibrary}; +use crate::diagnostic::Diagnostic; +use crate::lexicon::package::LexiconPackage; +use crate::lock::LockLeanLibrary; +use crate::project::Project; + +const LAKE_MANIFEST: &str = "lake-manifest.json"; +const DEFAULT_PACKAGES_DIR: &str = ".lake/packages"; +/// Where Lake keeps the built `.olean` files of a package, below the package. +const BUILT_ARTIFACTS: &str = ".lake/build/lib/lean"; + +/// The digest of a glossary that is not there: the tree digest (§11.5) of no +/// files. A project that declares no `lean.` lexicon package has an +/// empty glossary for the library, and the lock says so with this value +/// rather than leaving the field out, so adding the generated glossary later +/// is a visible change to the row. +fn empty_tree_digest() -> Sha256Digest { + Sha256Digest::of(b"lexlean-tree-v1\0") +} + +fn workspace_relative(project: &Project, name: &str) -> String { + if project.config.lean_workspace == "." { + name.to_owned() + } else { + format!("{}/{name}", project.config.lean_workspace) + } +} + +fn mismatch(message: impl Into) -> Diagnostic { + Diagnostic::new(code!("LLC0110"), message) +} + +fn not_fetched(library: &LeanLibrary, detail: impl std::fmt::Display) -> Diagnostic { + Diagnostic::new( + code!("LLV7019"), + format!( + "Lean library `{}` ({} at {}) is not available: {detail}; no command but `lexlean deps fetch` acquires a library, so run `lexlean deps fetch`", + library.name, library.url, library.revision + ), + ) +} + +/// A copy that cannot be written is an environment failure, not a failed fetch. +fn host_failure(detail: impl std::fmt::Display) -> Diagnostic { + Diagnostic::new(code!("LLV7010"), detail.to_string()) +} + +fn fetch_failure(detail: impl std::fmt::Display) -> Diagnostic { + Diagnostic::new( + code!("LLV7020"), + format!("`lexlean deps fetch` failed: {detail}"), + ) +} + +/// Does `relative` exist under the project root, without following a link? +fn exists(project: &Project, relative: &str) -> bool { + std::fs::symlink_metadata(project.root.join(relative).as_std_path()).is_ok() +} + +/// The project-relative directory the Lake workspace puts `library` in, once +/// its `lake-manifest.json` requires the library at the declared URL and +/// revision (§10.4). The declaration is the single statement of the pin; the +/// workspace manifest must agree with it, and disagreement is `LLC0110` +/// naming both. +fn required_dir(project: &Project, library: &LeanLibrary) -> Result { + let manifest = workspace_relative(project, LAKE_MANIFEST); + let path = project.confined_file_or_missing(&manifest, || { + mismatch(format!( + "the Lake workspace has no `{manifest}`, so it does not require Lean library `{}`; lexlean.toml declares {} at {}", + library.name, library.url, library.revision + )) + })?; + let bytes = std::fs::read(path.as_std_path()) + .map_err(|io_error| mismatch(format!("{manifest}: {io_error}")))?; + let value: serde_json::Value = serde_json::from_slice(&bytes) + .map_err(|parse_error| mismatch(format!("{manifest}: not JSON: {parse_error}")))?; + let packages_dir = value + .get("packagesDir") + .and_then(serde_json::Value::as_str) + .unwrap_or(DEFAULT_PACKAGES_DIR); + if !is_project_relative(packages_dir) { + return Err(mismatch(format!( + "{manifest}: packagesDir `{packages_dir}` is not a relative directory of the Lake workspace" + ))); + } + let entry = value + .get("packages") + .and_then(serde_json::Value::as_array) + .and_then(|packages| { + packages.iter().find(|package| { + package.get("name").and_then(serde_json::Value::as_str) == Some(&library.name) + }) + }); + let Some(entry) = entry else { + return Err(mismatch(format!( + "the Lake workspace `{manifest}` does not require `{}`; lexlean.toml declares {} at {}", + library.name, library.url, library.revision + ))); + }; + let found = |key: &str| { + entry + .get(key) + .and_then(serde_json::Value::as_str) + .unwrap_or("") + }; + if found("url") != library.url || found("rev") != library.revision { + return Err(mismatch(format!( + "the Lake workspace `{manifest}` requires `{}` at {} {}, but lexlean.toml declares {} at {}", + library.name, + found("url"), + found("rev"), + library.url, + library.revision + ))); + } + Ok(workspace_relative( + project, + &format!("{packages_dir}/{}", library.name), + )) +} + +/// The library as Lake and `lake exe cache get` leave it, or `LLV7019`: a +/// checkout whose `HEAD` is the declared commit, its own `lake-manifest.json`, +/// and its built artifacts. Returns the digest of the library's manifest. +fn present( + project: &Project, + library: &LeanLibrary, + directory: &str, +) -> Result { + if !exists(project, directory) { + return Err(not_fetched( + library, + format!("`{directory}` does not exist"), + )); + } + let head = format!("{directory}/.git/HEAD"); + if !exists(project, &head) { + return Err(not_fetched( + library, + format!("`{directory}` is not a Git checkout"), + )); + } + let head_bytes = std::fs::read(project.confined_file(&head)?.as_std_path()) + .map_err(|io_error| not_fetched(library, format!("{head}: {io_error}")))?; + let at = String::from_utf8_lossy(&head_bytes).trim().to_owned(); + if at != library.revision { + return Err(not_fetched( + library, + format!("`{directory}` is at `{at}`, not the declared revision"), + )); + } + let built = format!("{directory}/{BUILT_ARTIFACTS}"); + if !exists(project, &built) { + return Err(not_fetched( + library, + format!("`{built}` does not exist, so there are no built `.olean` files"), + )); + } + project.confined_dir(&built)?; + let manifest = format!("{directory}/{LAKE_MANIFEST}"); + if !exists(project, &manifest) { + return Err(not_fetched(library, format!("`{manifest}` does not exist"))); + } + let bytes = std::fs::read(project.confined_file(&manifest)?.as_std_path()) + .map_err(|io_error| not_fetched(library, format!("{manifest}: {io_error}")))?; + Ok(Sha256Digest::of(&bytes)) +} + +/// The lock rows of the project's declared libraries (§11.1), read offline +/// from the Lake workspace. `packages` are the project's loaded lexicon +/// packages: the glossary of a library is the one named `lean.`. +/// +/// # Errors +/// +/// `LLC0110` for a Lake workspace that does not require a library as declared +/// and `LLV7019` for a library that is not available. +pub fn resolve( + project: &Project, + packages: &[LexiconPackage], +) -> Result, Vec> { + let mut rows = Vec::new(); + let mut diagnostics = Vec::new(); + for library in &project.config.lean_libraries { + let outcome = required_dir(project, library) + .and_then(|directory| present(project, library, &directory)); + match outcome { + Ok(lake_manifest_sha256) => { + let glossary = format!("lean.{}", library.name); + let glossary_sha256 = packages + .iter() + .find(|package| package.id == glossary) + .map_or_else(empty_tree_digest, |package| package.tree_sha256); + rows.push(LockLeanLibrary { + name: library.name.clone(), + url: library.url.clone(), + revision: library.revision.clone(), + lake_manifest_sha256, + glossary_sha256, + }); + } + Err(diagnostic) => diagnostics.push(diagnostic), + } + } + if diagnostics.is_empty() { + Ok(rows) + } else { + Err(diagnostics) + } +} + +/// Require the rows a lock holds to be the libraries as they now are, naming +/// both values of the first field that differs (§10.4). +/// +/// # Errors +/// +/// `LLC0110` for each row that is not the library as it now is. +pub fn check_pins( + locked: &[LockLeanLibrary], + expected: &[LockLeanLibrary], +) -> Result<(), Vec> { + let mut diagnostics = Vec::new(); + for row in locked { + match expected.iter().find(|candidate| candidate.name == row.name) { + None => diagnostics.push(mismatch(format!( + "the lock pins Lean library `{}`, which the project does not declare", + row.name + ))), + Some(current) if current != row => { + let mut differences = Vec::new(); + if row.url != current.url { + differences.push(format!("url: locked {}, found {}", row.url, current.url)); + } + if row.revision != current.revision { + differences.push(format!( + "revision: locked {}, found {}", + row.revision, current.revision + )); + } + if row.lake_manifest_sha256 != current.lake_manifest_sha256 { + differences.push(format!( + "lake_manifest_sha256: locked {}, found {}", + row.lake_manifest_sha256.to_hex(), + current.lake_manifest_sha256.to_hex() + )); + } + if row.glossary_sha256 != current.glossary_sha256 { + differences.push(format!( + "glossary_sha256: locked {}, found {}", + row.glossary_sha256.to_hex(), + current.glossary_sha256.to_hex() + )); + } + diagnostics.push(mismatch(format!( + "Lean library `{}` is not the library the lock pins: {}", + row.name, + differences.join("; ") + ))); + } + Some(_) => {} + } + } + if diagnostics.is_empty() { + Ok(()) + } else { + Err(diagnostics) + } +} + +/// Give a scratch copy of the project the three things `present` reads of each +/// declared library (the checkout's `HEAD`, its own manifest, and the +/// directory of built artifacts), not the library. `lexlean fmt` re-checks the +/// project in such a copy (§23.5); the copy never runs Lean, so it needs the +/// library to be recognised as fetched and not its seven gigabytes. +/// +/// # Errors +/// +/// `LLC0110` for a Lake workspace that does not require a library as declared, +/// `LLV7019` for a library that is not available, and an environment failure +/// when the copy cannot be written. +pub fn stub_for_scratch( + project: &Project, + scratch: &camino::Utf8Path, +) -> Result<(), Vec> { + let mut diagnostics = Vec::new(); + for library in &project.config.lean_libraries { + let outcome = required_dir(project, library).and_then(|directory| { + present(project, library, &directory)?; + let copy = |relative: String| -> Result<(), Diagnostic> { + let source = project.confined_file(&relative)?; + let destination = scratch.join(&relative); + if let Some(parent) = destination.parent() { + std::fs::create_dir_all(parent.as_std_path()) + .map_err(|io_error| host_failure(format!("{relative}: {io_error}")))?; + } + std::fs::copy(source.as_std_path(), destination.as_std_path()) + .map_err(|io_error| host_failure(format!("{relative}: {io_error}")))?; + Ok(()) + }; + copy(format!("{directory}/.git/HEAD"))?; + copy(format!("{directory}/{LAKE_MANIFEST}"))?; + let built = scratch.join(format!("{directory}/{BUILT_ARTIFACTS}")); + std::fs::create_dir_all(built.as_std_path()) + .map_err(|io_error| host_failure(format!("{built}: {io_error}"))) + }); + if let Err(diagnostic) = outcome { + diagnostics.push(diagnostic); + } + } + if diagnostics.is_empty() { + Ok(()) + } else { + Err(diagnostics) + } +} + +/// The libraries `deps fetch` acquired, by name. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Fetched { + /// The declared libraries, now present, sorted by name. + pub libraries: Vec, +} + +/// Acquire every declared library with `lake exe cache get` in the Lake +/// workspace (§23.4): the library's sources are cloned by Lake at the +/// revision the workspace manifest pins, and Mathlib's cache supplies its +/// `.olean` files so that nothing is rebuilt. This is the only function that +/// starts a process for a library or reaches the network. +/// +/// # Errors +/// +/// `LLC0110` when the Lake workspace does not require a library as declared, +/// `LLV7020` when `lake` cannot run or fails or the library is not present +/// afterwards, and `LLS8002` when the cache download exceeds +/// `child_timeout_ms`. +pub fn fetch(project: &Project) -> Result> { + use crate::verify::child::{resolve_on_path, ChildHome, ChildSpec, Normalizer}; + + let libraries = &project.config.lean_libraries; + let mut directories = Vec::new(); + let mut diagnostics = Vec::new(); + for library in libraries { + match required_dir(project, library) { + Ok(directory) => directories.push(directory), + Err(diagnostic) => diagnostics.push(diagnostic), + } + } + if !diagnostics.is_empty() { + return Err(diagnostics); + } + if libraries.is_empty() { + return Ok(Fetched { + libraries: Vec::new(), + }); + } + + let workspace = if project.config.lean_workspace == "." { + project.root.clone() + } else { + project + .confined_dir(&project.config.lean_workspace) + .map_err(|d| vec![d])? + }; + let lake = resolve_on_path("lake").map_err(|_| { + vec![fetch_failure( + "no `lake` executable is available on PATH; install the pinned toolchain with elan", + )] + })?; + let lake_sha256 = Sha256Digest::of( + &std::fs::read(lake.as_std_path()) + .map_err(|io_error| vec![fetch_failure(format!("{lake}: {io_error}"))])?, + ); + let lake_bin = lake + .parent() + .map_or_else(|| project.root.clone(), camino::Utf8Path::to_path_buf); + let normalizer = Normalizer::new(&workspace, &project.root, &workspace, &lake_bin); + let record = crate::verify::child::run( + &ChildSpec { + tool: "lake", + module: Some("deps:fetch".to_owned()), + program: &lake, + executable_sha256: lake_sha256, + argv: ["exe", "cache", "get"].map(str::to_owned).to_vec(), + cwd: &workspace, + extra_env: Vec::new(), + home: ChildHome::Toolchain { + toolchain_bin: &lake_bin, + }, + }, + &project.config.limits, + &normalizer, + ) + .map_err(|diagnostic| { + // A timeout is a resource-limit violation and keeps its own code. + if diagnostic.code.as_str() == "LLS8002" { + vec![diagnostic] + } else { + vec![fetch_failure(diagnostic.message)] + } + })?; + if record.exit_code != 0 { + return Err(vec![fetch_failure(format!( + "`lake exe cache get` exited {}: {}", + record.exit_code, + record.stderr.trim_end() + ))]); + } + let mut names = Vec::new(); + for (library, directory) in libraries.iter().zip(&directories) { + present(project, library, directory).map_err(|diagnostic| { + vec![fetch_failure(format!( + "`lake exe cache get` succeeded but {}", + diagnostic.message + ))] + })?; + names.push(library.name.clone()); + } + Ok(Fetched { libraries: names }) +} diff --git a/crates/lexlean/src/lib.rs b/crates/lexlean/src/lib.rs index ad7fe3dc4f..ccaf510615 100644 --- a/crates/lexlean/src/lib.rs +++ b/crates/lexlean/src/lib.rs @@ -39,12 +39,16 @@ pub mod elaborate; #[doc(hidden)] pub mod fmt; #[doc(hidden)] +pub mod glossary; +#[doc(hidden)] pub mod gnaf; #[doc(hidden)] pub mod grammar; #[doc(hidden)] pub mod ir; #[doc(hidden)] +pub mod lean_library; +#[doc(hidden)] pub mod lexicon; #[doc(hidden)] pub mod link; @@ -64,6 +68,8 @@ pub mod surface; pub mod text_laws; #[doc(hidden)] pub mod verify; +#[doc(hidden)] +pub mod wrappers; pub use api::verify_part; pub use api::{ diff --git a/crates/lexlean/src/lock.rs b/crates/lexlean/src/lock.rs index 872a28b081..79e891de05 100644 --- a/crates/lexlean/src/lock.rs +++ b/crates/lexlean/src/lock.rs @@ -58,6 +58,24 @@ pub struct LockSourcePackage { pub imports: Vec, } +/// One locked Lean library row (§10.4, §11.1): the pin of an external Lean +/// library by its commit, the digest of its own `lake-manifest.json`, which +/// pins what it depends on, and the digest of the glossary generated from it. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct LockLeanLibrary { + /// The Lake package name. + pub name: String, + /// The HTTPS URL of the repository. + pub url: String, + /// The exact 40-lowercase-hex commit. + pub revision: String, + /// SHA-256 of the library's own `lake-manifest.json`. + pub lake_manifest_sha256: Sha256Digest, + /// The tree digest (§11.5) of the project's `lean.` lexicon + /// package, or of the empty tree when it has none. + pub glossary_sha256: Sha256Digest, +} + /// A locked PDF provider record (§11.1): it mirrors the configured /// provider (program, argument vectors, output pattern, hashes) and records /// the hash of every declared resource. @@ -95,6 +113,8 @@ pub struct Lock { /// Language 1.2: source package rows sorted by identifier, the /// transitive closure of the project's source packages. pub source_packages: Vec, + /// Language 1.2: Lean library rows sorted by name. + pub lean_libraries: Vec, /// The optional PDF record. pub pdf: Option, } @@ -179,6 +199,24 @@ impl Lock { )); out.push_str(&format!("imports = {}\n", toml_array(&package.imports))); } + // Written only when the project declares Lean libraries, so every + // other lock keeps its bytes. + let mut lean_libraries = self.lean_libraries.clone(); + lean_libraries.sort_by(|a, b| a.name.cmp(&b.name)); + for library in &lean_libraries { + out.push_str("\n[[lean_library]]\n"); + out.push_str(&format!("name = {}\n", toml_string(&library.name))); + out.push_str(&format!("url = {}\n", toml_string(&library.url))); + out.push_str(&format!("revision = {}\n", toml_string(&library.revision))); + out.push_str(&format!( + "lake_manifest_sha256 = {}\n", + toml_string(&library.lake_manifest_sha256.to_hex()) + )); + out.push_str(&format!( + "glossary_sha256 = {}\n", + toml_string(&library.glossary_sha256.to_hex()) + )); + } if let Some(pdf) = &self.pdf { out.push_str("\n[pdf]\n"); out.push_str(&format!("program = {}\n", toml_string(&pdf.program))); @@ -225,6 +263,8 @@ struct RawLock { packages: Vec, #[serde(rename = "source_package", default)] source_packages: Vec, + #[serde(rename = "lean_library", default)] + lean_libraries: Vec, pdf: Option, } @@ -261,6 +301,16 @@ struct RawLockSourcePackage { imports: Vec, } +#[derive(Deserialize)] +#[serde(deny_unknown_fields)] +struct RawLockLeanLibrary { + name: String, + url: String, + revision: String, + lake_manifest_sha256: String, + glossary_sha256: String, +} + #[derive(Deserialize)] #[serde(deny_unknown_fields)] struct RawLockPdf { @@ -449,6 +499,34 @@ pub fn parse_lock(path: &str, bytes: &[u8]) -> Result> { imports: row.imports.clone(), }); } + if !raw + .lean_libraries + .windows(2) + .all(|pair| pair[0].name < pair[1].name) + { + diagnostics.push(lock_error(format!( + "{path}: lean_library rows must be unique and sorted by name" + ))); + } + let lean_libraries: Vec = raw + .lean_libraries + .iter() + .map(|row| LockLeanLibrary { + name: row.name.clone(), + url: row.url.clone(), + revision: row.revision.clone(), + lake_manifest_sha256: hex( + "lean_library.lake_manifest_sha256", + &row.lake_manifest_sha256, + &mut diagnostics, + ), + glossary_sha256: hex( + "lean_library.glossary_sha256", + &row.glossary_sha256, + &mut diagnostics, + ), + }) + .collect(); let pdf = raw.pdf.as_ref().map(|raw_pdf| LockPdf { program: raw_pdf.program.clone(), version_argv: raw_pdf.version_argv.clone(), @@ -482,6 +560,7 @@ pub fn parse_lock(path: &str, bytes: &[u8]) -> Result> { workspace_files, packages, source_packages, + lean_libraries, pdf, }; if diagnostics.is_empty() { @@ -1248,6 +1327,7 @@ pub fn compute_lock( ) -> Result<(Lock, Vec), Vec> { let resolved = resolve_packages(project, allow_network)?; let source_packages = crate::source_package::resolve(project)?; + let lean_libraries = crate::lean_library::resolve(project, &resolved.packages)?; // The closure must include every transitive import exactly once (§11.3); // imports of loaded packages must all be loaded. @@ -1314,6 +1394,7 @@ pub fn compute_lock( workspace_files, packages: resolved.rows, source_packages: source_packages.rows(), + lean_libraries, pdf, }, resolved.packages, @@ -1349,6 +1430,7 @@ pub fn read_current_lock( // §10.5: a package that is not the one the lock pins is named with both // digests before the lock is called stale as a whole. crate::source_package::check_pins(&committed.source_packages, &expected.source_packages)?; + crate::lean_library::check_pins(&committed.lean_libraries, &expected.lean_libraries)?; if expected.canonical_bytes() != bytes { let mut mismatch = lock_error(format!( "{} is stale or noncanonical; run `lexlean lock`", diff --git a/crates/lexlean/src/verify/axiom.rs b/crates/lexlean/src/verify/axiom.rs index 770070b078..8a1b004e58 100644 --- a/crates/lexlean/src/verify/axiom.rs +++ b/crates/lexlean/src/verify/axiom.rs @@ -58,7 +58,10 @@ fn payload_terminates(payload: &str) -> bool { /// Parse one payload line, already stripped of its envelope: exactly /// `'' does not depend on any axioms` or /// `'' depends on axioms: []`. -fn parse_payload(payload: &str) -> Result<(String, Vec), AuditFailure> { +fn parse_payload( + payload: &str, + hygiene_marks: bool, +) -> Result<(String, Vec), AuditFailure> { let rest = payload .strip_prefix('\'') .ok_or_else(|| malformed(format!("unrecognized axiom payload: {payload}")))?; @@ -80,7 +83,16 @@ fn parse_payload(payload: &str) -> Result<(String, Vec), AuditFailure> { let mut axioms = Vec::new(); for piece in list.split(',') { let axiom = piece.trim(); - if !is_closed_lean_name(axiom) { + // The axiom `native_decide` generates is printed as Lean names it + // itself: under the `_private..0` prefix of a private + // declaration, and with the hygiene mark (U+271D) after it. The audit + // of imports reads those spellings and keeps the name as printed. + let spelled = if hygiene_marks { + axiom.strip_suffix(HYGIENE_MARK).unwrap_or(axiom) + } else { + axiom + }; + if !(is_closed_lean_name(spelled) || (hygiene_marks && is_generated_name(spelled))) { return Err(malformed(format!("`{axiom}` is not a Lean name"))); } if axioms.contains(&axiom.to_owned()) { @@ -142,6 +154,43 @@ fn strip_envelope(line: &str) -> Option<&str> { pub fn parse_audit_output( stdout: &str, expected: &[String], +) -> Result>, AuditFailure> { + parse_records(stdout, expected, false) +} + +/// The mark Lean 4.32.1 prints after a name whose last component carries a +/// macro scope, such as the axiom `native_decide` generates (§22.5). +const HYGIENE_MARK: char = '\u{271d}'; + +/// A name Lean generated: dot-separated, nonempty components of ASCII +/// letters, digits, `_`, `'`, `!` and `?`, where the closed grammar of +/// declared names also refuses a numeric component (`_private.M.0.x`). +fn is_generated_name(name: &str) -> bool { + !name.is_empty() + && name.split('.').all(|component| { + !component.is_empty() + && component + .chars() + .all(|c| c.is_ascii_alphanumeric() || matches!(c, '_' | '\'' | '!' | '?')) + }) +} + +/// [`parse_audit_output`] for the probe module's `#print axioms` of imported +/// declarations (§22.6): the same payload grammar, except that an axiom's +/// name may end in one hygiene mark. A declaration of the project cannot +/// depend on such an axiom, so the audit of the project's own declarations +/// keeps refusing the mark. +pub fn parse_import_audit_output( + stdout: &str, + expected: &[String], +) -> Result>, AuditFailure> { + parse_records(stdout, expected, true) +} + +fn parse_records( + stdout: &str, + expected: &[String], + hygiene_marks: bool, ) -> Result>, AuditFailure> { let mut records: Vec<(String, Vec)> = Vec::new(); let mut lines = stdout.lines(); @@ -183,7 +232,8 @@ pub fn parse_audit_output( payload.push(' '); payload.push_str(continuation); } - records.push(parse_payload(&payload).map_err(|failure| failure.about(about))?); + records + .push(parse_payload(&payload, hygiene_marks).map_err(|failure| failure.about(about))?); } if records.len() != expected.len() { return Err(malformed(format!( @@ -208,3 +258,60 @@ pub fn parse_audit_output( } Ok(observed) } + +#[cfg(test)] +mod import_audit_tests { + use super::{parse_audit_output, parse_import_audit_output}; + + /// What Lean 4.32.1 prints for a theorem that rests on `native_decide` + /// (captured from the pinned toolchain): the axiom is named after the + /// declaration, and the name ends in a hygiene mark. + const NATIVE: &str = + "'AxHost.viaNative' depends on axioms: [AxHost.viaNative._native.native_decide.ax_1_1\u{271d}]\n"; + + fn expected() -> Vec { + vec!["AxHost.viaNative".to_owned()] + } + + #[test] + fn the_audit_of_imports_keeps_the_axiom_native_decide_generated() { + let observed = parse_import_audit_output(NATIVE, &expected()).expect("parses"); + assert_eq!( + observed["AxHost.viaNative"], + ["AxHost.viaNative._native.native_decide.ax_1_1\u{271d}"] + ); + } + + /// The same axiom as the pinned `lean` prints it for a module whose + /// declarations are private: under `_private..0`, as the fixture + /// verification printed it. + #[test] + fn the_audit_of_imports_keeps_the_private_spelling_of_that_axiom() { + let payload = "'AxHost.viaNative' depends on axioms: [_private.AxHost.0.AxHost.viaNative._native.native_decide.ax_1_1]\n"; + let observed = parse_import_audit_output(payload, &expected()).expect("parses"); + assert_eq!( + observed["AxHost.viaNative"], + ["_private.AxHost.0.AxHost.viaNative._native.native_decide.ax_1_1"] + ); + parse_audit_output(payload, &expected()).expect_err("the project's own audit refuses it"); + } + + #[test] + fn the_audit_of_the_projects_own_declarations_still_refuses_the_mark() { + let failure = parse_audit_output(NATIVE, &expected()).expect_err("refused"); + assert_eq!(failure.diagnostic.code.as_str(), "LLV7004"); + } + + #[test] + fn the_audit_of_imports_accepts_only_the_one_trailing_mark() { + for payload in [ + "'AxHost.t' depends on axioms: [a\u{271d}b]\n", + "'AxHost.t' depends on axioms: [a\u{271d}\u{271d}]\n", + "'AxHost.t' depends on axioms: [\u{271d}]\n", + ] { + let failure = + parse_import_audit_output(payload, &["AxHost.t".to_owned()]).expect_err(payload); + assert_eq!(failure.diagnostic.code.as_str(), "LLV7004", "{payload}"); + } + } +} diff --git a/crates/lexlean/src/verify/imports.rs b/crates/lexlean/src/verify/imports.rs new file mode 100644 index 0000000000..44a6290407 --- /dev/null +++ b/crates/lexlean/src/verify/imports.rs @@ -0,0 +1,306 @@ +//! The axiom audit of imported declarations (SPEC.md §4.2, §5.3, §5.4, +//! §18.8, §22.6). +//! +//! An *imported declaration* is the Lean constant a used external entry +//! denotes, when the Lean module that declares it is not one of the pinned +//! toolchain's own libraries. The probe module prints each one's axioms with +//! `#print axioms`, which is what §5.4 defines the axiom audit to be, in the +//! process that already imports it; nothing here starts Lean. This module +//! decides what the printed sets mean: which axioms an import may not carry +//! unless a policy of the document names them, and how an import is +//! described in the attestation. + +use std::collections::BTreeSet; + +use crate::artifact::canonical_json::Json; +use crate::code; +use crate::diagnostic::Diagnostic; +use crate::link::CheckedProject; + +/// The status of an imported declaration (SPEC.md §5.3). The declaration +/// comes from the locked workspace, which the pinned toolchain loads; LexLean +/// did not prove it, so the words `proved`, `verified` and `kernel-checked` +/// are never used for it (§4.2). +pub const IMPORTED_STATUS: &str = "replayed in the pinned environment"; + +/// Module roots whose declarations are not imports: the libraries the pinned +/// toolchain ships (trusted as the toolchain itself, §5.1 items 2 and 3), and +/// the runtime modules the project generates, whose declarations each pin +/// their axioms exactly (§17.12) and are audited as the project's own. +const OWN_ROOTS: [&str; 5] = ["Init", "Std", "Lean", "Lake", "LexLeanRuntime"]; + +/// Whether a Lean module is an import in the sense of this module. +#[must_use] +pub fn is_imported_module(module: &str) -> bool { + let root = module.split('.').next().unwrap_or(module); + !OWN_ROOTS.contains(&root) +} + +/// The axioms an import may not carry unless a policy names them. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Forbidden { + /// `sorryAx`: a proof hole. + Sorry, + /// `Lean.ofReduceBool`: a claim the compiler's evaluator made. + ReduceBool, + /// `Lean.trustCompiler`, which `Lean.ofReduceBool` rests on, and the + /// axiom `native_decide` generates for each use, which the pinned Lean + /// names `._native.native_decide.ax__`. + TrustCompiler, +} + +impl Forbidden { + /// The class of an axiom, when it is one of these. + #[must_use] + pub fn of(axiom: &str) -> Option { + match axiom { + "sorryAx" => Some(Self::Sorry), + "Lean.ofReduceBool" => Some(Self::ReduceBool), + "Lean.trustCompiler" => Some(Self::TrustCompiler), + _ if axiom.contains("._native.native_decide.") => Some(Self::TrustCompiler), + _ => None, + } + } + + fn what(self) -> &'static str { + match self { + Self::Sorry => "a proof hole", + Self::ReduceBool => "a claim the compiler's evaluator made", + Self::TrustCompiler => "trust in the compiler", + } + } +} + +/// One imported declaration the probe audited. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct ImportedDeclaration { + /// The qualified entry ID that denotes it. + pub entry: String, + /// The Lean module that declares it. + pub module: String, + /// Its fully qualified Lean name. + pub name: String, + /// The axioms `#print axioms` reported, sorted. + pub observed: Vec, +} + +/// The axioms the document's declarations name in an `allow` or `exact` +/// policy. +#[must_use] +pub fn named_axioms(checked: &CheckedProject) -> BTreeSet { + let mut named = BTreeSet::new(); + for module in checked.modules.values() { + let document = &module.document; + for declaration in document.declarations() { + named.extend(declaration.policy.axioms().iter().cloned()); + } + if let Some(core) = &document.core { + for declaration in &core.declarations { + named.extend(declaration.policy.axioms().iter().cloned()); + } + } + if let Some(semantic) = &document.semantic { + for declaration in &semantic.declarations { + named.extend(declaration.axioms().iter().cloned()); + } + } + } + named +} + +/// Refuse the first import that depends on a forbidden axiom no policy of the +/// document names, with the diagnostic of that axiom's class. +/// +/// The granularity is the document: a policy anywhere in it that names the +/// axiom is enough here, and the declaration that actually depends on the +/// import is held to its own policy afterwards (§22.6), so an import named +/// by one declaration's policy and used by another's is still refused, later +/// and as `LLV7005`. +/// +/// # Errors +/// +/// `LLV7023` for `sorryAx`, `LLV7024` for `Lean.ofReduceBool` and `LLV7025` +/// for `Lean.trustCompiler` and the axioms of `native_decide`. +pub fn audit(imports: &[ImportedDeclaration], named: &BTreeSet) -> Result<(), Diagnostic> { + for import in imports { + for class in [ + Forbidden::Sorry, + Forbidden::ReduceBool, + Forbidden::TrustCompiler, + ] { + let unnamed: Vec<&str> = import + .observed + .iter() + .map(String::as_str) + .filter(|axiom| Forbidden::of(axiom) == Some(class) && !named.contains(*axiom)) + .collect(); + let Some(first) = unnamed.first() else { + continue; + }; + let message = format!( + "imported declaration `{}` of entry `{}` (module `{}`) depends on `{first}`, {}, and no axiom policy of the document names it", + import.name, + import.entry, + import.module, + class.what(), + ); + let diagnostic = match class { + Forbidden::Sorry => Diagnostic::new(code!("LLV7023"), message), + Forbidden::ReduceBool => Diagnostic::new(code!("LLV7024"), message), + Forbidden::TrustCompiler => Diagnostic::new(code!("LLV7025"), message), + }; + return Err(diagnostic.with_note(format!( + "observed axioms of `{}`: [{}]; name each forbidden one in an `\\allowaxioms` or `\\exactaxioms` policy to accept the import", + import.name, + import.observed.join(", ") + ))); + } + } + Ok(()) +} + +/// The attestation's `imports` member: one row per imported declaration, in +/// entry order. It is written only when there is one, so a project that +/// imports nothing outside the toolchain keeps the attestation it had. +#[must_use] +pub fn rows(imports: &[ImportedDeclaration]) -> Json { + Json::Arr( + imports + .iter() + .map(|import| { + Json::object(vec![ + ("entry", Json::Str(import.entry.clone())), + ("module", Json::Str(import.module.clone())), + ("name", Json::Str(import.name.clone())), + ( + "observed", + Json::Arr(import.observed.iter().cloned().map(Json::Str).collect()), + ), + ("status", Json::Str(IMPORTED_STATUS.to_owned())), + ]) + }) + .collect(), + ) +} + +#[cfg(test)] +mod tests { + use super::*; + + fn import(name: &str, observed: &[&str]) -> ImportedDeclaration { + ImportedDeclaration { + entry: "test.ax::e".to_owned(), + module: "AxHost".to_owned(), + name: name.to_owned(), + observed: observed.iter().map(|axiom| (*axiom).to_owned()).collect(), + } + } + + fn named(axioms: &[&str]) -> BTreeSet { + axioms.iter().map(|axiom| (*axiom).to_owned()).collect() + } + + fn code_of(result: Result<(), Diagnostic>) -> String { + result.expect_err("refused").code.as_str().to_owned() + } + + #[test] + fn the_toolchain_libraries_are_not_imports() { + for module in [ + "Init", + "Init.Data.Nat", + "Std.Data.HashMap", + "Lean", + "Lake.Build", + ] { + assert!(!is_imported_module(module), "{module}"); + } + for module in [ + "Mathlib.Order.Basic", + "Batteries", + "AxHost", + "InitX", + "Atlas.Core", + ] { + assert!(is_imported_module(module), "{module}"); + } + } + + #[test] + fn each_forbidden_axiom_has_its_own_code() { + let none = BTreeSet::new(); + assert_eq!( + code_of(audit(&[import("a", &["sorryAx"])], &none)), + "LLV7023" + ); + assert_eq!( + code_of(audit(&[import("a", &["Lean.ofReduceBool"])], &none)), + "LLV7024" + ); + assert_eq!( + code_of(audit(&[import("a", &["Lean.trustCompiler"])], &none)), + "LLV7025" + ); + // The axiom `native_decide` generates, with the hygiene mark Lean + // prints after it. + assert_eq!( + code_of(audit( + &[import("a", &["a._native.native_decide.ax_1_1\u{271d}"])], + &none + )), + "LLV7025" + ); + } + + #[test] + fn the_standard_axioms_are_not_forbidden() { + let none = BTreeSet::new(); + audit( + &[import("a", &["Classical.choice", "Quot.sound", "propext"])], + &none, + ) + .expect("the three standard axioms are for the declaration's policy, not for this audit"); + } + + #[test] + fn a_policy_that_names_the_axiom_accepts_the_import() { + audit(&[import("a", &["sorryAx"])], &named(&["sorryAx"])).expect("named"); + // `Lean.ofReduceBool` rests on `Lean.trustCompiler`: naming the first + // alone leaves the second, which is refused in its own class. + let both = import("a", &["Lean.ofReduceBool", "Lean.trustCompiler"]); + assert_eq!( + code_of(audit( + std::slice::from_ref(&both), + &named(&["Lean.ofReduceBool"]) + )), + "LLV7025" + ); + audit( + &[both], + &named(&["Lean.ofReduceBool", "Lean.trustCompiler"]), + ) + .expect("both named"); + } + + #[test] + fn the_refusal_names_the_entry_the_declaration_and_the_axiom() { + let diagnostic = audit(&[import("AxHost.viaSorry", &["sorryAx"])], &BTreeSet::new()) + .expect_err("refused"); + for needle in ["test.ax::e", "AxHost.viaSorry", "sorryAx", "AxHost"] { + assert!( + diagnostic.message.contains(needle), + "{}", + diagnostic.message + ); + } + } + + #[test] + fn the_status_never_claims_a_proof() { + for word in ["proved", "verified", "kernel-checked"] { + assert!(!IMPORTED_STATUS.contains(word)); + } + let row = rows(&[import("a", &[])]).to_canonical_string(); + assert!(row.contains(IMPORTED_STATUS), "{row}"); + } +} diff --git a/crates/lexlean/src/verify/mod.rs b/crates/lexlean/src/verify/mod.rs index 1efe001374..243f95b1a5 100644 --- a/crates/lexlean/src/verify/mod.rs +++ b/crates/lexlean/src/verify/mod.rs @@ -22,11 +22,13 @@ pub mod axiom; pub mod child; +pub mod imports; pub mod leanchecker; pub mod lifeline; pub mod operational; pub mod partition; pub mod pool; +pub mod replay_cache; pub mod source_audit; pub mod telemetry; pub mod toolchain; @@ -242,6 +244,16 @@ pub fn parse_lean_messages(output: &str) -> Vec { messages } +/// Whether a Lean message says that a name does not exist, which is the +/// answer to a probe line whose constant is absent from the host library +/// and not the answer to a signature that differs from its type. +fn lean_message_is_unknown_name(message: &str) -> bool { + message.contains("lean.unknownIdentifier") + || message.contains("lean.unknownConstant") + || message.contains("Unknown constant") + || message.contains("Unknown identifier") +} + /// The non-blank output lines preceding the first located message: text /// no message accounts for (a wrapper's stray line, an unlocated warning). #[must_use] @@ -1169,7 +1181,9 @@ pub fn run_part( return Err(fail(internal(format!("`{}`: {reason}", module.name)))); } } - if let Err(reason) = generated_source_audit(&probe.text, false) { + // The probe prints axioms only for imported declarations (§22.6), and + // the audit of generated Lean allows that command exactly then. + if let Err(reason) = generated_source_audit(&probe.text, !probe.audited.is_empty()) { return Err(fail(internal(format!("probe module: {reason}")))); } for audit in &audit_modules { @@ -1359,15 +1373,45 @@ pub fn run_part( // normalized streams are reported, and every failing line is // attributed to its entry (S11). let combined = format!("{}{}", probe_record.stdout, probe_record.stderr); - let mut diagnostic = Diagnostic::new( - code!("LLT4003"), - format!( - "an external-interface probe failed to elaborate: {}", - combined.trim_end() - ), - ); + let messages = parse_lean_messages(&combined); + // A specialisation wrapper (§13.13) is held to the equality of its + // signature and its type, and Lean's complaint on that line is the + // signature differing unless it says the wrapper does not exist: a + // host library that lacks the wrapper is the interface failure it + // always was (§18.8). + let mismatched: Vec<&str> = messages + .iter() + .filter_map(|message| { + let row = probe.entry_at_line(message.line)?; + (row.signature && !lean_message_is_unknown_name(&message.message)) + .then_some(row.entry.as_str()) + }) + .collect(); + let mut diagnostic = if mismatched.is_empty() { + Diagnostic::new( + code!("LLT4003"), + format!( + "an external-interface probe failed to elaborate: {}", + combined.trim_end() + ), + ) + } else { + let entries: BTreeSet<&str> = mismatched.into_iter().collect(); + Diagnostic::new( + code!("LLT4017"), + format!( + "the signature of {} is not definitionally the Lean type of the specialisation wrapper it denotes: {}", + entries + .iter() + .map(|entry| format!("`{entry}`")) + .collect::>() + .join(", "), + combined.trim_end() + ), + ) + }; let mut noted: BTreeSet = BTreeSet::new(); - for message in parse_lean_messages(&combined) { + for message in messages { if let Some(row) = probe.entry_at_line(message.line) { if noted.insert(row.entry.clone()) { diagnostic = diagnostic.with_note(format!( @@ -1379,7 +1423,32 @@ pub fn run_part( } return Err(fail(diagnostic)); } - require_silent(&probe_record, "the external-interface probe", false).map_err(fail)?; + require_silent( + &probe_record, + "the external-interface probe", + !probe.audited.is_empty(), + ) + .map_err(fail)?; + // §22.6: the observed axioms of every imported declaration, recorded, and + // the forbidden ones refused before any elaboration unless a policy of the + // document names them. + let mut imported_declarations: Vec = Vec::new(); + if !probe.audited.is_empty() { + let observed_imports = + axiom::parse_import_audit_output(&probe_record.stdout, &probe.audited) + .map_err(|failure| fail(audit_diagnostic(&declaration_spans, failure)))?; + for (entry, external) in &externals { + if let Some(observed) = observed_imports.get(&external.lean_name) { + imported_declarations.push(imports::ImportedDeclaration { + entry: entry.clone(), + module: external.lean_module.clone(), + name: external.lean_name.clone(), + observed: observed.clone(), + }); + } + } + imports::audit(&imported_declarations, &imports::named_axioms(checked)).map_err(fail)?; + } write_staged( staging.path(), "probe/process.json", @@ -2995,6 +3064,9 @@ pub fn run_part( if let Some(row) = compiler_input_row { body_fields.push(("compiler_input", row)); } + if !imported_declarations.is_empty() { + body_fields.push(("imports", imports::rows(&imported_declarations))); + } if let Some(row) = preservation_row { body_fields.push(("preservation", row)); } diff --git a/crates/lexlean/src/verify/replay_cache/facts.rs b/crates/lexlean/src/verify/replay_cache/facts.rs new file mode 100644 index 0000000000..ff96ed0eb3 --- /dev/null +++ b/crates/lexlean/src/verify/replay_cache/facts.rs @@ -0,0 +1,117 @@ +//! Replay facts (SPEC.md §22.13): what the pinned Lean says about the +//! declarations of a compiled module, read as untrusted output. + +use camino::Utf8Path; +use serde::Deserialize; + +use crate::code; +use crate::config::Limits; +use crate::diagnostic::Diagnostic; +use crate::verify::child::{run, ChildHome, Normalizer}; +use crate::verify::toolchain::Toolchain; + +/// The program that exports the facts, run by the pinned `lean`. +const EXPORTER: &str = include_str!("../replay_facts.lean"); + +/// One declaration as the exporter states it. +#[derive(Debug, Clone, PartialEq, Eq, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct DeclarationFacts { + /// The structured name, components joined by `.`. + pub name: String, + /// The module that declares it; no part of its canonical bytes. + pub module: String, + /// Universe parameter names, in order. + pub level_params: Vec, + /// Kind and attributes, as the exporter wrote them. + pub attrs: String, + /// The node table of the type. + #[serde(rename = "type")] + pub type_text: String, + /// The node table of the value or proof term, or of a recursor's rules. + pub value: Option, + /// The declarations it names, sorted. + pub deps: Vec, +} + +/// Read one JSON object per line. The exporter's output is untrusted: a line +/// that does not parse, or that has a member the exporter does not write, is +/// `LLV7022`. +pub fn parse_facts(text: &str) -> Result, Diagnostic> { + let mut facts = Vec::new(); + for (number, line) in text.lines().enumerate() { + if line.is_empty() { + continue; + } + let declaration: DeclarationFacts = serde_json::from_str(line).map_err(|error| { + Diagnostic::new( + code!("LLV7022"), + format!("replay facts line {} does not parse: {error}", number + 1), + ) + })?; + facts.push(declaration); + } + Ok(facts) +} + +/// Export the facts of one compiled module by running the embedded exporter +/// under the pinned `lean`, through `lake env` like every Lean process +/// (§22.2), with `lean_path` as `LEAN_PATH`. +pub fn export_facts( + toolchain: &Toolchain, + module: &str, + lean_path: &str, + workspace: &Utf8Path, + limits: &Limits, + normalizer: &Normalizer, +) -> Result, Diagnostic> { + let staging = tempfile::tempdir().map_err(|error| { + Diagnostic::new( + code!("LLV7010"), + format!("cannot stage the replay facts exporter: {error}"), + ) + })?; + let script = staging.path().join("replay_facts.lean"); + std::fs::write(&script, EXPORTER).map_err(|error| { + Diagnostic::new( + code!("LLV7010"), + format!("cannot stage the replay facts exporter: {error}"), + ) + })?; + let script = camino::Utf8PathBuf::from_path_buf(script) + .map_err(|bad| crate::project::non_utf8_path(&bad))?; + let bin_dir = toolchain.root.join("bin"); + let record = run( + &crate::verify::child::ChildSpec { + tool: "lean", + module: Some(module.to_owned()), + program: &toolchain.lake.path, + executable_sha256: toolchain.lean.sha256, + argv: vec![ + "env".to_owned(), + toolchain.lean.path.to_string(), + "--run".to_owned(), + script.to_string(), + module.to_owned(), + ], + cwd: workspace, + extra_env: vec![("LEAN_PATH".to_owned(), lean_path.to_owned())], + home: ChildHome::Toolchain { + toolchain_bin: &bin_dir, + }, + }, + limits, + normalizer, + )?; + if record.exit_code != 0 { + return Err(Diagnostic::new( + code!("LLV7022"), + format!( + "the replay facts of `{module}` could not be exported (exit {}): {}", + record.exit_code, + record.stderr.trim_end() + ), + )); + } + parse_facts(&record.stdout) +} diff --git a/crates/lexlean/src/verify/replay_cache/key.rs b/crates/lexlean/src/verify/replay_cache/key.rs new file mode 100644 index 0000000000..6aa21540ec --- /dev/null +++ b/crates/lexlean/src/verify/replay_cache/key.rs @@ -0,0 +1,339 @@ +//! Replay keys (SPEC.md §22.13): the canonical serialisation of a declaration +//! and the Merkle DAG of keys over it. +//! +//! [`canonical_declaration`] is the one function that decides which bytes +//! represent a declaration. Everything a key covers about a declaration is +//! read through it, so a replay granularity (one declaration, one module) is +//! only a choice of which keys a unit collects. + +use std::collections::BTreeMap; + +use crate::artifact::digest_set::{DigestSet, DigestSetWriter}; +use crate::code; +use crate::diagnostic::Diagnostic; +use crate::verify::replay_cache::facts::DeclarationFacts; + +const DECLARATION_FORMAT: &str = "lexlean/replay-declaration/1"; +const KEY_FORMAT: &str = "lexlean/replay-key/1"; +const UNIT_FORMAT: &str = "lexlean/replay-unit/1"; + +/// What the keys of one run are valid for: the key of every declaration +/// contains both strings, so a changed toolchain or Mathlib revision changes +/// every key and leaves nothing recorded under the old ones reachable. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct ReplayEnvironment { + /// The Lean toolchain string, as `lean-toolchain` holds it. + pub toolchain: String, + /// The Mathlib revision, a commit hash; empty for a project without Mathlib. + pub mathlib_revision: String, +} + +/// What a unit of replay is. A unit's key covers its granularity, so a +/// declaration replayed alone and the same declaration inside a module are +/// different records: what `leanchecker` ran over differs. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Granularity { + /// One declaration. + Declaration, + /// One module. + Module, +} + +impl Granularity { + /// The word the entry and the unit key spell it with. + #[must_use] + pub const fn as_str(self) -> &'static str { + match self { + Self::Declaration => "declaration", + Self::Module => "module", + } + } + + /// Read the word [`Self::as_str`] writes. + #[must_use] + pub fn parse(text: &str) -> Option { + match text { + "declaration" => Some(Self::Declaration), + "module" => Some(Self::Module), + _ => None, + } + } +} + +/// Fields of a frame: a tag, a space, the decimal byte length of the payload, +/// a colon, the payload, a line feed. The length makes the encoding +/// unambiguous whatever bytes a payload holds. +#[derive(Default)] +struct Frame(Vec); + +impl Frame { + fn field(&mut self, tag: &str, payload: &[u8]) -> &mut Self { + self.0.extend_from_slice(tag.as_bytes()); + self.0.push(b' '); + self.0 + .extend_from_slice(payload.len().to_string().as_bytes()); + self.0.push(b':'); + self.0.extend_from_slice(payload); + self.0.push(b'\n'); + self + } + + fn digest(&mut self, tag: &str, digest: &DigestSet) -> &mut Self { + self.field(&format!("{tag}-sha256"), digest.sha256.to_hex().as_bytes()); + self.field(&format!("{tag}-blake3"), digest.blake3.to_hex().as_bytes()) + } +} + +/// The canonical bytes of a declaration: its name, universe parameters, kind +/// attributes and type as the exporter wrote them, and the DigestSet of its +/// value or proof term (or `none`). The declaring module is not among them, so +/// moving a declaration changes no key. Dependencies are not among them either: +/// they enter a key through the keys of the declarations they name. +#[must_use] +pub fn canonical_declaration(facts: &DeclarationFacts) -> Vec { + let mut frame = Frame::default(); + frame.field("format", DECLARATION_FORMAT.as_bytes()); + frame.field("name", facts.name.as_bytes()); + frame.field("levels", facts.level_params.len().to_string().as_bytes()); + for level in &facts.level_params { + frame.field("level", level.as_bytes()); + } + frame.field("attrs", facts.attrs.as_bytes()); + frame.field("type", facts.type_text.as_bytes()); + match &facts.value { + Some(value) => { + frame.digest("value", &DigestSet::of(value.as_bytes())); + } + None => { + frame.field("value", b"none"); + } + } + frame.0 +} + +/// The digest of a group of declarations that name one another: their +/// canonical bytes in name order. A declaration that is alone is a group of one. +fn group_digest(members: &[Vec]) -> DigestSet { + let mut writer = DigestSetWriter::new(); + let mut frame = Frame::default(); + for member in members { + frame.0.clear(); + frame.field("member", member); + writer.update(&frame.0); + } + writer.finish() +} + +/// The key of a declaration: the environment, its canonical bytes, its group +/// digest, and the keys of what it names outside its group. +fn declaration_key( + environment: &ReplayEnvironment, + canonical: &[u8], + group: &DigestSet, + dependencies: &mut Vec, +) -> DigestSet { + dependencies.sort(); + dependencies.dedup(); + let mut frame = Frame::default(); + frame.field("format", KEY_FORMAT.as_bytes()); + frame.field("toolchain", environment.toolchain.as_bytes()); + frame.field("mathlib", environment.mathlib_revision.as_bytes()); + frame.field("declaration", canonical); + frame.digest("group", group); + frame.field("deps", dependencies.len().to_string().as_bytes()); + for dependency in dependencies.iter() { + frame.digest("dep", dependency); + } + DigestSet::of(&frame.0) +} + +/// The key of a unit: its granularity and the keys it covers, sorted. +#[must_use] +pub fn unit_key(granularity: Granularity, members: &[DigestSet]) -> DigestSet { + let mut sorted = members.to_vec(); + sorted.sort(); + sorted.dedup(); + let mut frame = Frame::default(); + frame.field("format", UNIT_FORMAT.as_bytes()); + frame.field("granularity", granularity.as_str().as_bytes()); + frame.field("members", sorted.len().to_string().as_bytes()); + for member in &sorted { + frame.digest("member", member); + } + DigestSet::of(&frame.0) +} + +fn refused(message: String) -> Diagnostic { + Diagnostic::new(code!("LLV7022"), message) +} + +/// The keys of a set of declarations. +#[derive(Debug, Clone)] +pub struct ReplayGraph { + keys: BTreeMap, + groups: BTreeMap, +} + +impl ReplayGraph { + /// Key every declaration of `facts`. A name the facts do not declare must + /// be in `anchors`, the keys of declarations an earlier run keyed (the + /// imported modules); one that is neither is `LLV7022`, as is a name that + /// is declared twice or both declared and anchored. + pub fn build( + environment: &ReplayEnvironment, + facts: &[DeclarationFacts], + anchors: &BTreeMap, + ) -> Result { + let mut index: BTreeMap<&str, usize> = BTreeMap::new(); + for (position, declaration) in facts.iter().enumerate() { + if index.insert(declaration.name.as_str(), position).is_some() { + return Err(refused(format!( + "declaration `{}` is stated twice", + declaration.name + ))); + } + if anchors.contains_key(&declaration.name) { + return Err(refused(format!( + "declaration `{}` is both stated and anchored", + declaration.name + ))); + } + } + let mut edges: Vec> = Vec::with_capacity(facts.len()); + for declaration in facts { + let mut targets = Vec::new(); + for name in &declaration.deps { + if let Some(&target) = index.get(name.as_str()) { + targets.push(target); + } else if !anchors.contains_key(name) { + return Err(refused(format!( + "declaration `{}` names `{name}`, which the facts neither state nor anchor", + declaration.name + ))); + } + } + edges.push(targets); + } + + let mut keys: BTreeMap = BTreeMap::new(); + let mut groups: BTreeMap = BTreeMap::new(); + // Components come dependencies first, so every outside key a member + // needs exists when its component is reached. + for component in components(&edges) { + let mut members = component; + members.sort_by(|a, b| facts[*a].name.cmp(&facts[*b].name)); + let canonical: Vec> = members + .iter() + .map(|member| canonical_declaration(&facts[*member])) + .collect(); + let group = group_digest(&canonical); + for (slot, &member) in members.iter().enumerate() { + let mut dependencies = Vec::new(); + for name in &facts[member].deps { + if let Some(&target) = index.get(name.as_str()) { + if !members.contains(&target) { + dependencies.push(keys[&facts[target].name]); + } + } else { + dependencies.push(anchors[name]); + } + } + let key = declaration_key(environment, &canonical[slot], &group, &mut dependencies); + keys.insert(facts[member].name.clone(), key); + groups.insert(facts[member].name.clone(), group); + } + } + Ok(Self { keys, groups }) + } + + /// The key of a declaration. + #[must_use] + pub fn key(&self, name: &str) -> Option<&DigestSet> { + self.keys.get(name) + } + + /// The group digest of a declaration. + #[must_use] + pub fn group(&self, name: &str) -> Option<&DigestSet> { + self.groups.get(name) + } + + /// Every key, by declaration name. + #[must_use] + pub const fn keys(&self) -> &BTreeMap { + &self.keys + } + + /// The key of the unit of the named declarations. + pub fn unit<'a>( + &self, + granularity: Granularity, + names: impl IntoIterator, + ) -> Result { + let mut members = Vec::new(); + for name in names { + members.push(*self.key(name).ok_or_else(|| { + refused(format!("unit names `{name}`, which the facts do not state")) + })?); + } + Ok(unit_key(granularity, &members)) + } +} + +/// Strongly connected components of a directed graph, each dependency's +/// component before the components that reach it (Tarjan, with an explicit +/// stack: a chain of lemmas thousands deep must not be the process's stack). +fn components(edges: &[Vec]) -> Vec> { + const UNSEEN: usize = usize::MAX; + let count = edges.len(); + let mut order = vec![UNSEEN; count]; + let mut low = vec![0usize; count]; + let mut on_stack = vec![false; count]; + let mut stack: Vec = Vec::new(); + let mut next = 0usize; + let mut out: Vec> = Vec::new(); + for root in 0..count { + if order[root] != UNSEEN { + continue; + } + let mut call: Vec<(usize, usize)> = vec![(root, 0)]; + order[root] = next; + low[root] = next; + next += 1; + stack.push(root); + on_stack[root] = true; + while let Some(&(vertex, cursor)) = call.last() { + if let Some(&target) = edges[vertex].get(cursor) { + call.last_mut().expect("a frame").1 += 1; + if order[target] == UNSEEN { + order[target] = next; + low[target] = next; + next += 1; + stack.push(target); + on_stack[target] = true; + call.push((target, 0)); + } else if on_stack[target] { + low[vertex] = low[vertex].min(order[target]); + } + } else { + call.pop(); + if let Some(&(parent, _)) = call.last() { + low[parent] = low[parent].min(low[vertex]); + } + if low[vertex] == order[vertex] { + let mut component = Vec::new(); + loop { + let member = stack.pop().expect("a component member"); + on_stack[member] = false; + component.push(member); + if member == vertex { + break; + } + } + out.push(component); + } + } + } + } + out +} diff --git a/crates/lexlean/src/verify/replay_cache/mod.rs b/crates/lexlean/src/verify/replay_cache/mod.rs new file mode 100644 index 0000000000..a06153a72a --- /dev/null +++ b/crates/lexlean/src/verify/replay_cache/mod.rs @@ -0,0 +1,106 @@ +//! The content-addressed replay cache (SPEC.md §22.13). +//! +//! A declaration is keyed by a PrismPM ADR-015 DigestSet over its canonical +//! serialisation and the keys of the declarations it names, so the keys form a +//! Merkle DAG; the Lean toolchain and the Mathlib revision are inside every +//! key. A warm replay looks each unit up by key and replays only the misses. +//! +//! The cache does not decide what a unit is. A unit is the set of declaration +//! keys it covers, one declaration or one module, because which `leanchecker` +//! mode is cheapest is a measurement the caller makes, not a property of the +//! cache. + +pub mod facts; +pub mod key; +pub mod store; + +#[cfg(test)] +mod tests; + +pub use facts::{export_facts, parse_facts, DeclarationFacts}; +pub use key::{canonical_declaration, unit_key, Granularity, ReplayEnvironment, ReplayGraph}; +pub use store::{ + executable_identity, CacheEntry, ExecutableIdentity, Lookup, Miss, ReplayCache, ReplayResult, +}; + +use crate::artifact::digest_set::DigestSet; +use crate::diagnostic::Diagnostic; +use crate::verify::child::ChildRecord; + +/// A unit to replay. +#[derive(Debug, Clone)] +pub struct ReplayUnit { + /// Its name: a declaration or a module. + pub label: String, + /// What it is. + pub granularity: Granularity, + /// Its key. + pub key: DigestSet, +} + +/// What a run did, by unit label, in order. +#[derive(Debug, Clone, Default, PartialEq, Eq)] +pub struct ReplayReport { + /// Units whose recorded result was reused. + pub reused: Vec, + /// Units that were replayed. + pub replayed: Vec, +} + +/// The result a [`ChildRecord`] of a replay stands for. +#[must_use] +pub fn result_of(record: &ChildRecord) -> ReplayResult { + ReplayResult { + exit_code: record.exit_code, + stdout: record.stdout.clone(), + stderr: record.stderr.clone(), + } +} + +/// Replay `units`, reusing the recorded result of every unit whose key the +/// cache holds for this executable and replaying the rest with `replay`. A +/// replay that fails, or whose result does not exit zero, ends the run and +/// records nothing, so a failure is never reused. A cache entry that is +/// rejected (`LLV7021`) ends the run too: a store that was tampered with is +/// not quietly repaired. +pub fn replay_units( + cache: &ReplayCache, + environment: &ReplayEnvironment, + executable: &ExecutableIdentity, + units: &[ReplayUnit], + mut replay: F, +) -> Result +where + F: FnMut(&ReplayUnit) -> Result, +{ + let mut report = ReplayReport::default(); + for unit in units { + if let Lookup::Hit(_) = cache.lookup(&unit.key, environment, executable)? { + report.reused.push(unit.label.clone()); + continue; + } + let result = replay(unit)?; + if result.exit_code != 0 { + return Err(Diagnostic::new( + crate::code!("LLV7003"), + format!( + "replay of `{}` exited {}: {}{}", + unit.label, + result.exit_code, + result.stdout.trim_end(), + result.stderr.trim_end() + ), + )); + } + cache.record(&CacheEntry { + key: unit.key, + granularity: unit.granularity, + label: unit.label.clone(), + environment: environment.clone(), + executable: executable.clone(), + result, + })?; + report.replayed.push(unit.label.clone()); + } + Ok(report) +} diff --git a/crates/lexlean/src/verify/replay_cache/store.rs b/crates/lexlean/src/verify/replay_cache/store.rs new file mode 100644 index 0000000000..9588d2a107 --- /dev/null +++ b/crates/lexlean/src/verify/replay_cache/store.rs @@ -0,0 +1,364 @@ +//! The replay cache store (SPEC.md §22.13): one canonical JSON entry per +//! recorded unit, found by the unit's key. + +use std::io::Read; + +use camino::{Utf8Path, Utf8PathBuf}; + +use crate::artifact::canonical_json::Json; +use crate::artifact::digest_set::{DigestSet, DigestSetWriter}; +use crate::code; +use crate::diagnostic::Diagnostic; +use crate::verify::replay_cache::key::{Granularity, ReplayEnvironment}; + +const ENTRY_SPEC: &str = "lexlean/replay-cache-entry/1"; + +/// The executable that produced a result, named by the DigestSet of its bytes. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct ExecutableIdentity { + /// The tool's name, `leanchecker` for a replay. + pub tool: String, + /// Both digests of the executable's bytes. + pub digest: DigestSet, +} + +/// Hash an executable's bytes once, both ways. +pub fn executable_identity(tool: &str, path: &Utf8Path) -> Result { + let io_error = |error: std::io::Error| { + Diagnostic::new( + code!("LLV7010"), + format!("cannot read the executable `{path}`: {error}"), + ) + }; + let mut file = std::fs::File::open(path.as_std_path()).map_err(io_error)?; + let mut writer = DigestSetWriter::new(); + let mut buffer = vec![0u8; 1 << 16]; + loop { + let read = file.read(&mut buffer).map_err(io_error)?; + if read == 0 { + break; + } + writer.update(&buffer[..read]); + } + Ok(ExecutableIdentity { + tool: tool.to_owned(), + digest: writer.finish(), + }) +} + +/// What a successful replay left behind. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct ReplayResult { + /// Always zero in a recorded entry: a failed replay is not recorded. + pub exit_code: i32, + /// Normalized standard output. + pub stdout: String, + /// Normalized standard error. + pub stderr: String, +} + +/// One recorded unit. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct CacheEntry { + /// The unit's key. + pub key: DigestSet, + /// Whether the unit was a declaration or a module. + pub granularity: Granularity, + /// The unit's name, for a reader of the store; no part of the key. + pub label: String, + /// The environment the key was computed under. + pub environment: ReplayEnvironment, + /// The executable that replayed it. + pub executable: ExecutableIdentity, + /// What it printed. + pub result: ReplayResult, +} + +/// Why a lookup found nothing to reuse. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Miss { + /// No entry under the key. + Absent, + /// An entry that another executable produced. + ExecutableChanged, +} + +/// The outcome of a lookup that was not refused. +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum Lookup { + /// A result to reuse. + Hit(Box), + /// Nothing to reuse. + Miss(Miss), +} + +fn rejected(path: &Utf8Path, reason: impl std::fmt::Display) -> Diagnostic { + Diagnostic::new( + code!("LLV7021"), + format!("replay cache entry `{path}` is rejected: {reason}"), + ) +} + +impl CacheEntry { + fn body(&self) -> Vec<(&'static str, Json)> { + vec![ + ("spec", Json::Str(ENTRY_SPEC.to_owned())), + ("key", self.key.to_json()), + ( + "unit", + Json::object(vec![ + ( + "granularity", + Json::Str(self.granularity.as_str().to_owned()), + ), + ("label", Json::Str(self.label.clone())), + ]), + ), + ( + "environment", + Json::object(vec![ + ("toolchain", Json::Str(self.environment.toolchain.clone())), + ( + "mathlib_revision", + Json::Str(self.environment.mathlib_revision.clone()), + ), + ]), + ), + ( + "executable", + Json::object(vec![ + ("tool", Json::Str(self.executable.tool.clone())), + ("digest", self.executable.digest.to_json()), + ]), + ), + ( + "result", + Json::object(vec![ + ("exit_code", Json::Int(i64::from(self.result.exit_code))), + ("stdout", Json::Str(self.result.stdout.clone())), + ("stderr", Json::Str(self.result.stderr.clone())), + ]), + ), + ] + } + + /// The entry's file bytes: canonical JSON whose last member is the + /// DigestSet of the canonical string of all the others. + #[must_use] + pub fn to_file_bytes(&self) -> Vec { + let without = Json::object(self.body()); + let digest = DigestSet::of(without.to_canonical_string().as_bytes()); + let Json::Obj(mut members) = without else { + unreachable!("an object was built") + }; + members.insert("entry_digest".to_owned(), digest.to_json()); + Json::Obj(members).to_file_bytes() + } + + /// Read an entry's bytes, requiring every member and no other, the digest + /// to be that of the rest, and a zero exit code. `path` only names the + /// entry in the refusal. + fn from_file_bytes(path: &Utf8Path, bytes: &[u8]) -> Result { + let Json::Obj(mut members) = Json::parse(bytes).map_err(|e| rejected(path, e))? else { + return Err(rejected(path, "it is not a JSON object")); + }; + let recorded = members + .remove("entry_digest") + .ok_or_else(|| rejected(path, "it has no `entry_digest`"))?; + let recorded = DigestSet::from_json(&recorded).map_err(|e| rejected(path, e))?; + let actual = DigestSet::of(Json::Obj(members.clone()).to_canonical_string().as_bytes()); + if recorded != actual { + return Err(rejected( + path, + format!( + "its bytes changed: its entry digest is {} and its other members hash to {}", + recorded.label(), + actual.label() + ), + )); + } + let string_of = |value: &Json, what: &str| -> Result { + match value { + Json::Str(text) => Ok(text.clone()), + _ => Err(rejected(path, format!("`{what}` is not a string"))), + } + }; + let object_of = |name: &str, + members: &std::collections::BTreeMap, + allowed: &[&str]| + -> Result, Diagnostic> { + match members.get(name) { + Some(Json::Obj(inner)) => { + let exact = inner.len() == allowed.len() + && allowed.iter().all(|member| inner.contains_key(*member)); + if exact { + Ok(inner.clone()) + } else { + Err(rejected( + path, + format!("`{name}` does not have exactly {allowed:?}"), + )) + } + } + _ => Err(rejected( + path, + format!("`{name}` is missing or not an object"), + )), + } + }; + let expected = ["environment", "executable", "key", "result", "spec", "unit"]; + if members.len() != expected.len() || !expected.iter().all(|m| members.contains_key(*m)) { + return Err(rejected( + path, + format!("its members are not exactly {expected:?}"), + )); + } + if string_of(&members["spec"], "spec")? != ENTRY_SPEC { + return Err(rejected( + path, + "its `spec` is not this cache's entry format", + )); + } + let key = DigestSet::from_json(&members["key"]).map_err(|e| rejected(path, e))?; + let unit = object_of("unit", &members, &["granularity", "label"])?; + let granularity = Granularity::parse(&string_of(&unit["granularity"], "unit.granularity")?) + .ok_or_else(|| { + rejected( + path, + "its granularity is neither `declaration` nor `module`", + ) + })?; + let environment = object_of("environment", &members, &["mathlib_revision", "toolchain"])?; + let executable = object_of("executable", &members, &["digest", "tool"])?; + let result = object_of("result", &members, &["exit_code", "stderr", "stdout"])?; + if result["exit_code"] != Json::Int(0) { + return Err(rejected(path, "it records a replay that did not exit zero")); + } + Ok(Self { + key, + granularity, + label: string_of(&unit["label"], "unit.label")?, + environment: ReplayEnvironment { + toolchain: string_of(&environment["toolchain"], "environment.toolchain")?, + mathlib_revision: string_of( + &environment["mathlib_revision"], + "environment.mathlib_revision", + )?, + }, + executable: ExecutableIdentity { + tool: string_of(&executable["tool"], "executable.tool")?, + digest: DigestSet::from_json(&executable["digest"]) + .map_err(|e| rejected(path, e))?, + }, + result: ReplayResult { + exit_code: 0, + stdout: string_of(&result["stdout"], "result.stdout")?, + stderr: string_of(&result["stderr"], "result.stderr")?, + }, + }) + } +} + +/// A replay cache store: a directory the caller names. +#[derive(Debug, Clone)] +pub struct ReplayCache { + root: Utf8PathBuf, +} + +impl ReplayCache { + /// A store in `root`. Nothing is read or created until a lookup or a record. + #[must_use] + pub fn open(root: impl Into) -> Self { + Self { root: root.into() } + } + + /// Where the entry of a key lives: `entries//<64 hex digits>.json`, + /// `aa` being the first two digits of the `blake3` value, which keeps a + /// directory of a Mathlib-sized store to a few thousand names. + #[must_use] + pub fn entry_path(&self, key: &DigestSet) -> Utf8PathBuf { + let hex = key.blake3.to_hex(); + self.root + .join("entries") + .join(&hex[..2]) + .join(format!("{hex}.json")) + } + + /// Look a unit up. No file is a miss. A file that is not a valid entry for + /// this key and this environment is `LLV7021`: it is neither reused nor + /// replaced, so a store that was edited fails loudly. An entry another + /// executable produced is a miss. + pub fn lookup( + &self, + key: &DigestSet, + environment: &ReplayEnvironment, + executable: &ExecutableIdentity, + ) -> Result { + let path = self.entry_path(key); + let metadata = match std::fs::symlink_metadata(path.as_std_path()) { + Ok(metadata) => metadata, + Err(error) if error.kind() == std::io::ErrorKind::NotFound => { + return Ok(Lookup::Miss(Miss::Absent)); + } + Err(error) => { + return Err(Diagnostic::new( + code!("LLV7010"), + format!("cannot read the replay cache entry `{path}`: {error}"), + )); + } + }; + if !metadata.is_file() { + return Err(rejected(&path, "it is not a regular file")); + } + let bytes = std::fs::read(path.as_std_path()).map_err(|error| { + Diagnostic::new( + code!("LLV7010"), + format!("cannot read the replay cache entry `{path}`: {error}"), + ) + })?; + let entry = CacheEntry::from_file_bytes(&path, &bytes)?; + if entry.key != *key { + return Err(rejected( + &path, + format!( + "it records the key {} and was looked up under {}", + entry.key.label(), + key.label() + ), + )); + } + if entry.environment != *environment { + return Err(rejected( + &path, + "its environment is not the one its key covers", + )); + } + if entry.executable != *executable { + return Ok(Lookup::Miss(Miss::ExecutableChanged)); + } + Ok(Lookup::Hit(Box::new(entry))) + } + + /// Record a unit: a temporary file in the entry's directory, renamed into + /// place, so a reader sees a whole entry or none. + pub fn record(&self, entry: &CacheEntry) -> Result<(), Diagnostic> { + let path = self.entry_path(&entry.key); + let io_error = |error: std::io::Error| { + Diagnostic::new( + code!("LLV7010"), + format!("cannot write the replay cache entry `{path}`: {error}"), + ) + }; + let directory = path.parent().expect("an entry path has a parent"); + std::fs::create_dir_all(directory.as_std_path()).map_err(io_error)?; + let staged = directory.join(format!( + ".{}.tmp{}", + entry.key.blake3.to_hex(), + std::process::id() + )); + std::fs::write(staged.as_std_path(), entry.to_file_bytes()).map_err(io_error)?; + std::fs::rename(staged.as_std_path(), path.as_std_path()).map_err(io_error)?; + crate::artifact::fsync_dir(directory.as_std_path()); + Ok(()) + } +} diff --git a/crates/lexlean/src/verify/replay_cache/tests.rs b/crates/lexlean/src/verify/replay_cache/tests.rs new file mode 100644 index 0000000000..df93c5a37b --- /dev/null +++ b/crates/lexlean/src/verify/replay_cache/tests.rs @@ -0,0 +1,679 @@ +use std::cell::RefCell; +use std::collections::BTreeMap; + +use camino::Utf8PathBuf; + +use super::*; +use crate::artifact::digest_set::DigestSet; + +fn env(toolchain: &str, mathlib: &str) -> ReplayEnvironment { + ReplayEnvironment { + toolchain: toolchain.to_owned(), + mathlib_revision: mathlib.to_owned(), + } +} + +fn base_env() -> ReplayEnvironment { + env("leanprover/lean4:v4.32.1", "0123456789abcdef") +} + +fn decl(name: &str, deps: &[&str]) -> DeclarationFacts { + DeclarationFacts { + name: name.to_owned(), + module: "M".to_owned(), + level_params: vec!["u".to_owned()], + attrs: "theorem".to_owned(), + type_text: format!("C {name} []\nroot 0"), + value: Some(format!("C {name}.proof []\nroot 0")), + deps: deps.iter().map(|d| (*d).to_owned()).collect(), + } +} + +/// `base` under two branches, joined by `top`, and `lone` beside them all. +fn diamond() -> Vec { + vec![ + decl("base", &[]), + decl("left", &["base"]), + decl("right", &["base"]), + decl("top", &["left", "right"]), + decl("lone", &[]), + ] +} + +fn keys(facts: &[DeclarationFacts]) -> BTreeMap { + ReplayGraph::build(&base_env(), facts, &BTreeMap::new()) + .expect("keys") + .keys() + .clone() +} + +fn changed<'a>( + before: &'a BTreeMap, + after: &BTreeMap, +) -> Vec<&'a str> { + before + .iter() + .filter(|(name, key)| after[*name] != **key) + .map(|(name, _)| name.as_str()) + .collect() +} + +#[test] +fn a_key_is_a_digest_set_with_a_blake3_label() { + let key = keys(&diamond())["base"]; + let label = key.label(); + assert!(label.starts_with("blake3:")); + assert_eq!(label.len(), "blake3:".len() + 64); + assert!(label["blake3:".len()..] + .bytes() + .all(|b| b.is_ascii_digit() || (b'a'..=b'f').contains(&b))); + assert_eq!(DigestSet::from_json(&key.to_json()), Ok(key)); + // Both digests cover the same bytes: neither is the other's input. + assert_ne!(key.sha256.to_hex(), key.blake3.to_hex()); +} + +#[test] +fn equal_inputs_give_equal_keys_whatever_the_order_of_the_facts() { + let forward = keys(&diamond()); + let mut reversed = diamond(); + reversed.reverse(); + assert_eq!(forward, keys(&reversed)); +} + +#[test] +fn every_input_of_a_key_changes_it() { + let before = keys(&diamond())["lone"]; + let edit = |f: &dyn Fn(&mut DeclarationFacts)| { + let mut facts = diamond(); + let target = facts.iter_mut().find(|d| d.name == "lone").expect("lone"); + f(target); + let name = target.name.clone(); + keys(&facts)[&name] + }; + assert_ne!(before, edit(&|d| d.name = "lone2".to_owned())); + assert_ne!(before, edit(&|d| d.level_params = vec!["v".to_owned()])); + assert_ne!(before, edit(&|d| d.level_params.clear())); + assert_ne!(before, edit(&|d| d.attrs = "def".to_owned())); + assert_ne!(before, edit(&|d| d.type_text.push('x'))); + assert_ne!(before, edit(&|d| d.value = Some("other".to_owned()))); + assert_ne!(before, edit(&|d| d.value = None)); + // The declaring module is not an input: moving a declaration moves no key. + assert_eq!(before, edit(&|d| d.module = "Elsewhere".to_owned())); +} + +#[test] +fn fields_that_run_together_do_not_collide() { + // Length-prefixed fields: moving a byte between two neighbours is a change. + let mut a = decl("a", &[]); + let mut b = decl("a", &[]); + a.attrs = "ab".to_owned(); + a.type_text = "c".to_owned(); + b.attrs = "a".to_owned(); + b.type_text = "bc".to_owned(); + assert_ne!(canonical_declaration(&a), canonical_declaration(&b)); + assert_ne!(keys(&[a])["a"], keys(&[b])["a"]); +} + +#[test] +fn a_changed_dependency_changes_every_key_above_it_and_none_beside_or_below() { + let before = keys(&diamond()); + let edit = |name: &str| { + let mut facts = diamond(); + facts + .iter_mut() + .find(|d| d.name == name) + .expect("name") + .type_text + .push('!'); + changed(&before, &keys(&facts)) + .into_iter() + .map(str::to_owned) + .collect::>() + }; + assert_eq!(edit("base"), ["base", "left", "right", "top"]); + assert_eq!(edit("left"), ["left", "top"]); + assert_eq!(edit("right"), ["right", "top"]); + assert_eq!(edit("top"), ["top"]); + assert_eq!(edit("lone"), ["lone"]); +} + +#[test] +fn a_dependency_edge_is_part_of_the_key() { + let before = keys(&diamond()); + let mut facts = diamond(); + facts + .iter_mut() + .find(|d| d.name == "right") + .expect("right") + .deps + .clear(); + let after = keys(&facts); + assert_eq!(changed(&before, &after), ["right", "top"]); +} + +#[test] +fn declarations_that_name_one_another_are_one_group() { + let facts = vec![ + decl("T", &["T.mk", "T.rec"]), + decl("T.mk", &["T"]), + decl("T.rec", &["T", "T.mk"]), + decl("user", &["T.rec"]), + ]; + let graph = ReplayGraph::build(&base_env(), &facts, &BTreeMap::new()).expect("graph"); + let group = graph.group("T").copied().expect("group"); + assert_eq!(graph.group("T.mk"), Some(&group)); + assert_eq!(graph.group("T.rec"), Some(&group)); + assert_ne!(graph.group("user"), Some(&group)); + // Members of a group have their own keys. + assert_ne!(graph.key("T"), graph.key("T.mk")); + + let before = graph.keys().clone(); + let mut edited = facts.clone(); + edited[1].type_text.push('!'); + let after = keys(&edited); + assert_eq!(changed(&before, &after), ["T", "T.mk", "T.rec", "user"]); +} + +#[test] +fn an_anchor_stands_for_a_declaration_outside_the_facts() { + let facts = vec![decl("uses", &["Nat.add"])]; + let anchor = |text: &[u8]| BTreeMap::from([("Nat.add".to_owned(), DigestSet::of(text))]); + let one = ReplayGraph::build(&base_env(), &facts, &anchor(b"one")).expect("graph"); + let two = ReplayGraph::build(&base_env(), &facts, &anchor(b"two")).expect("graph"); + assert_ne!(one.key("uses"), two.key("uses")); + assert!(one.key("Nat.add").is_none()); +} + +#[test] +fn facts_that_repeat_dangle_or_do_not_parse_are_refused_with_llv7020() { + let build = |facts: &[DeclarationFacts], anchors: &BTreeMap| { + ReplayGraph::build(&base_env(), facts, anchors).expect_err("refused") + }; + let none = BTreeMap::new(); + let repeated = build(&[decl("a", &[]), decl("a", &[])], &none); + let dangling = build(&[decl("a", &["missing"])], &none); + let both = build( + &[decl("a", &[])], + &BTreeMap::from([("a".to_owned(), DigestSet::of(b"x"))]), + ); + let unparsed = parse_facts("not json\n").expect_err("refused"); + let unknown_member = parse_facts( + "{\"name\":\"a\",\"module\":\"M\",\"level_params\":[],\"attrs\":\"\",\"type\":\"\",\"value\":null,\"deps\":[],\"extra\":1}\n", + ) + .expect_err("refused"); + for diagnostic in [&repeated, &dangling, &both, &unparsed, &unknown_member] { + assert_eq!( + diagnostic.code.as_str(), + "LLV7022", + "{}", + diagnostic.message + ); + } + assert!( + dangling.message.contains("`missing`"), + "{}", + dangling.message + ); + assert!(repeated.message.contains("`a`"), "{}", repeated.message); +} + +#[test] +fn facts_lines_read_back_what_the_exporter_writes() { + let line = "{\"attrs\":\"theorem all=a\",\"deps\":[\"b\"],\"level_params\":[\"u\"],\"module\":\"M\",\"name\":\"a\",\"type\":\"C b []\\nroot 0\",\"value\":null}\n"; + let facts = parse_facts(&format!("{line}\n{line}")).expect("facts"); + assert_eq!(facts.len(), 2); + assert_eq!(facts[0].type_text, "C b []\nroot 0"); + assert_eq!(facts[0].value, None); +} + +#[test] +fn a_changed_toolchain_or_mathlib_revision_changes_every_key() { + let facts = diamond(); + let under = |environment: &ReplayEnvironment| { + ReplayGraph::build(environment, &facts, &BTreeMap::new()) + .expect("keys") + .keys() + .clone() + }; + let before = under(&base_env()); + for other in [ + env("leanprover/lean4:v4.32.2", "0123456789abcdef"), + env("leanprover/lean4:v4.32.1", "fedcba9876543210"), + ] { + let after = under(&other); + assert_eq!(changed(&before, &after).len(), before.len()); + } +} + +#[test] +fn a_unit_key_covers_its_granularity_and_its_members_without_their_order() { + let all = keys(&diamond()); + let (a, b) = (all["left"], all["right"]); + assert_eq!( + unit_key(Granularity::Module, &[a, b]), + unit_key(Granularity::Module, &[b, a]) + ); + assert_ne!( + unit_key(Granularity::Module, &[a, b]), + unit_key(Granularity::Declaration, &[a, b]) + ); + assert_ne!( + unit_key(Granularity::Module, &[a, b]), + unit_key(Granularity::Module, &[a]) + ); + let graph = ReplayGraph::build(&base_env(), &diamond(), &BTreeMap::new()).expect("graph"); + assert_eq!( + graph + .unit(Granularity::Module, ["left", "right"]) + .expect("unit"), + unit_key(Granularity::Module, &[a, b]) + ); + assert_eq!( + graph + .unit(Granularity::Module, ["nope"]) + .expect_err("refused") + .code + .as_str(), + "LLV7022" + ); +} + +#[test] +fn a_deep_chain_is_keyed_without_recursion() { + let depth = 50_000; + let mut facts = vec![decl("d0", &[])]; + for i in 1..depth { + facts.push(decl(&format!("d{i}"), &[&format!("d{}", i - 1)])); + } + let graph = ReplayGraph::build(&base_env(), &facts, &BTreeMap::new()).expect("graph"); + assert_eq!(graph.keys().len(), depth); +} + +struct Store { + _dir: tempfile::TempDir, + cache: ReplayCache, +} + +fn store() -> Store { + let dir = tempfile::tempdir().expect("tempdir"); + let root = Utf8PathBuf::from_path_buf(dir.path().join("replay")).expect("utf-8"); + Store { + cache: ReplayCache::open(root), + _dir: dir, + } +} + +fn executable(bytes: &[u8]) -> ExecutableIdentity { + ExecutableIdentity { + tool: "leanchecker".to_owned(), + digest: DigestSet::of(bytes), + } +} + +fn units(environment: &ReplayEnvironment, facts: &[DeclarationFacts]) -> Vec { + let graph = ReplayGraph::build(environment, facts, &BTreeMap::new()).expect("graph"); + facts + .iter() + .map(|d| ReplayUnit { + label: d.name.clone(), + granularity: Granularity::Declaration, + key: *graph.key(&d.name).expect("key"), + }) + .collect() +} + +fn run( + store: &Store, + environment: &ReplayEnvironment, + exe: &ExecutableIdentity, + units: &[ReplayUnit], +) -> ( + Result, + Vec, +) { + let called = RefCell::new(Vec::new()); + let outcome = replay_units(&store.cache, environment, exe, units, |unit| { + called.borrow_mut().push(unit.label.clone()); + Ok(ReplayResult { + exit_code: 0, + stdout: format!("replayed {}\n", unit.label), + stderr: String::new(), + }) + }); + (outcome, called.into_inner()) +} + +#[test] +fn a_warm_replay_reuses_unchanged_units_and_replays_the_changed_and_those_above() { + let store = store(); + let exe = executable(b"leanchecker 1"); + let cold = units(&base_env(), &diamond()); + let (outcome, called) = run(&store, &base_env(), &exe, &cold); + assert_eq!(called.len(), 5); + assert_eq!(outcome.expect("cold").replayed.len(), 5); + + let (outcome, called) = run(&store, &base_env(), &exe, &cold); + assert!(called.is_empty(), "{called:?}"); + assert_eq!(outcome.expect("warm").reused.len(), 5); + + let mut edited = diamond(); + edited + .iter_mut() + .find(|d| d.name == "left") + .expect("left") + .type_text + .push('!'); + let warm = units(&base_env(), &edited); + let (outcome, called) = run(&store, &base_env(), &exe, &warm); + assert_eq!(called, ["left", "top"]); + let report = outcome.expect("one-line edit"); + assert_eq!(report.reused, ["base", "right", "lone"]); +} + +#[test] +fn an_entry_names_its_executable_and_another_executable_is_not_reused() { + let store = store(); + let exe = executable(b"leanchecker 1"); + let all = units(&base_env(), &diamond()); + run(&store, &base_env(), &exe, &all).0.expect("cold"); + let text = std::fs::read_to_string(store.cache.entry_path(&all[0].key)).expect("entry"); + assert!(text.contains(&exe.digest.blake3.to_hex()), "{text}"); + assert!(text.contains(&exe.digest.sha256.to_hex()), "{text}"); + assert!(text.contains("\"tool\":\"leanchecker\""), "{text}"); + + let other = executable(b"leanchecker 2"); + assert_eq!( + store + .cache + .lookup(&all[0].key, &base_env(), &other) + .expect("lookup"), + Lookup::Miss(Miss::ExecutableChanged) + ); + let (outcome, called) = run(&store, &base_env(), &other, &all); + assert_eq!(called.len(), 5); + assert_eq!(outcome.expect("other executable").reused.len(), 0); + // The replay by the other executable replaced the entries. + let (_, called) = run(&store, &base_env(), &other, &all); + assert!(called.is_empty()); + let (_, called) = run(&store, &base_env(), &exe, &all); + assert_eq!(called.len(), 5); +} + +#[test] +fn only_a_replay_that_succeeded_is_recorded() { + let store = store(); + let exe = executable(b"leanchecker 1"); + let all = units(&base_env(), &diamond()); + let outcome = replay_units(&store.cache, &base_env(), &exe, &all, |unit| { + Ok(ReplayResult { + exit_code: i32::from(unit.label == "left"), + stdout: String::new(), + stderr: "kernel: error".to_owned(), + }) + }); + let diagnostic = outcome.expect_err("failing replay"); + assert_eq!(diagnostic.code.as_str(), "LLV7003"); + let failing = all.iter().find(|u| u.label == "left").expect("left"); + assert_eq!( + store + .cache + .lookup(&failing.key, &base_env(), &exe) + .expect("lookup"), + Lookup::Miss(Miss::Absent) + ); + // The replayer's own error ends the run and records nothing either. + let store = self::store(); + let outcome = replay_units(&store.cache, &base_env(), &exe, &all, |unit| { + Err(crate::diagnostic::Diagnostic::new( + crate::code!("LLV7003"), + unit.label.clone(), + )) + }); + assert!(outcome.is_err()); + assert_eq!( + store + .cache + .lookup(&all[0].key, &base_env(), &exe) + .expect("lookup"), + Lookup::Miss(Miss::Absent) + ); +} + +#[test] +fn a_changed_toolchain_or_mathlib_revision_reuses_nothing_and_leaves_old_entries_intact() { + let store = store(); + let exe = executable(b"leanchecker 1"); + let first = units(&base_env(), &diamond()); + run(&store, &base_env(), &exe, &first).0.expect("first"); + let files_before = entry_files(&store); + let bytes_before: Vec> = files_before + .iter() + .map(|p| std::fs::read(p).expect("read")) + .collect(); + + for other in [ + env("leanprover/lean4:v4.32.2", "0123456789abcdef"), + env("leanprover/lean4:v4.32.1", "fedcba9876543210"), + ] { + let (outcome, called) = run(&store, &other, &exe, &units(&other, &diamond())); + assert_eq!(called.len(), 5); + assert_eq!(outcome.expect("other environment").reused.len(), 0); + } + assert_eq!(entry_files(&store).len(), 5 * 3); + for (path, bytes) in files_before.iter().zip(&bytes_before) { + assert_eq!(&std::fs::read(path).expect("read"), bytes, "{path:?}"); + } + let (outcome, called) = run(&store, &base_env(), &exe, &first); + assert!(called.is_empty()); + assert_eq!(outcome.expect("first again").reused.len(), 5); +} + +fn entry_files(store: &Store) -> Vec { + let mut out = Vec::new(); + for shard in std::fs::read_dir( + store + .cache + .entry_path(&DigestSet::of(b"")) + .parent() + .unwrap() + .parent() + .unwrap(), + ) + .expect("entries") + { + for file in std::fs::read_dir(shard.expect("shard").path()).expect("shard") { + out.push(file.expect("file").path()); + } + } + out.sort(); + out +} + +fn one_entry() -> (Store, ExecutableIdentity, ReplayUnit, std::path::PathBuf) { + let store = store(); + let exe = executable(b"leanchecker 1"); + let unit = units(&base_env(), &diamond()).remove(0); + run(&store, &base_env(), &exe, std::slice::from_ref(&unit)) + .0 + .expect("cold"); + let path = store.cache.entry_path(&unit.key).into_std_path_buf(); + (store, exe, unit, path) +} + +fn assert_rejected_and_untouched( + store: &Store, + exe: &ExecutableIdentity, + unit: &ReplayUnit, + path: &std::path::Path, +) { + let before = std::fs::read(path).expect("entry"); + let diagnostic = store + .cache + .lookup(&unit.key, &base_env(), exe) + .expect_err("rejected"); + assert_eq!( + diagnostic.code.as_str(), + "LLV7021", + "{}", + diagnostic.message + ); + // The replay that would follow does not run, and the file is as found. + let (outcome, called) = run(store, &base_env(), exe, std::slice::from_ref(unit)); + assert_eq!(outcome.expect_err("rejected").code.as_str(), "LLV7021"); + assert!(called.is_empty()); + assert_eq!(std::fs::read(path).expect("entry"), before); +} + +#[test] +fn an_entry_whose_bytes_changed_while_its_key_was_kept_is_rejected() { + let (store, exe, unit, path) = one_entry(); + let text = std::fs::read_to_string(&path).expect("entry"); + assert!(text.contains("replayed base")); + std::fs::write(&path, text.replace("replayed base", "replayed fake")).expect("tamper"); + assert_rejected_and_untouched(&store, &exe, &unit, &path); +} + +#[test] +fn an_entry_whose_executable_digest_was_edited_is_rejected_not_missed() { + let (store, exe, unit, path) = one_entry(); + let text = std::fs::read_to_string(&path).expect("entry"); + let other = executable(b"leanchecker 2"); + std::fs::write( + &path, + text.replace(&exe.digest.sha256.to_hex(), &other.digest.sha256.to_hex()), + ) + .expect("tamper"); + assert_rejected_and_untouched(&store, &exe, &unit, &path); +} + +#[test] +fn an_entry_stored_under_another_key_is_rejected() { + let (store, exe, unit, path) = one_entry(); + let other = units(&base_env(), &diamond()).remove(4); + let target = store.cache.entry_path(&other.key).into_std_path_buf(); + std::fs::create_dir_all(target.parent().unwrap()).expect("directory"); + std::fs::copy(&path, &target).expect("copy"); + let diagnostic = store + .cache + .lookup(&other.key, &base_env(), &exe) + .expect_err("rejected"); + assert_eq!(diagnostic.code.as_str(), "LLV7021"); + assert!( + diagnostic.message.contains(&unit.key.label()), + "{}", + diagnostic.message + ); + assert!( + diagnostic.message.contains(&other.key.label()), + "{}", + diagnostic.message + ); +} + +#[test] +fn an_entry_that_does_not_parse_or_has_the_wrong_shape_is_rejected() { + let (store, exe, unit, path) = one_entry(); + let good = std::fs::read_to_string(&path).expect("entry"); + let cases: Vec<(&str, String)> = vec![ + ("truncated", good[..good.len() / 2].to_owned()), + ("empty", String::new()), + ("not an object", "[]\n".to_owned()), + ( + "no digest", + good.replace("\"entry_digest\"", "\"entry_digezt\""), + ), + ("unknown member", good.replacen('{', "{\"extra\":1,", 1)), + ]; + for (what, bytes) in cases { + std::fs::write(&path, bytes).expect("tamper"); + let diagnostic = store + .cache + .lookup(&unit.key, &base_env(), &exe) + .expect_err(what); + assert_eq!( + diagnostic.code.as_str(), + "LLV7021", + "{what}: {}", + diagnostic.message + ); + } +} + +#[test] +fn an_entry_that_is_not_a_regular_file_is_rejected() { + let (store, exe, unit, path) = one_entry(); + std::fs::remove_file(&path).expect("remove"); + std::fs::create_dir(&path).expect("directory"); + let diagnostic = store + .cache + .lookup(&unit.key, &base_env(), &exe) + .expect_err("rejected"); + assert_eq!(diagnostic.code.as_str(), "LLV7021"); +} + +#[test] +fn an_entry_whose_environment_is_not_the_one_its_key_covers_is_rejected() { + // A self-consistent forgery: the digest is recomputed, the key is kept, + // and the environment is not the caller's. The key still names it. + let (store, exe, unit, path) = one_entry(); + let text = std::fs::read_to_string(&path).expect("entry"); + let forged = CacheEntry { + key: unit.key, + granularity: Granularity::Declaration, + label: "base".to_owned(), + environment: env("leanprover/lean4:v9", "0123456789abcdef"), + executable: exe.clone(), + result: ReplayResult { + exit_code: 0, + stdout: "replayed base\n".to_owned(), + stderr: String::new(), + }, + }; + std::fs::write(&path, forged.to_file_bytes()).expect("forge"); + assert_ne!(text.into_bytes(), forged.to_file_bytes()); + let diagnostic = store + .cache + .lookup(&unit.key, &base_env(), &exe) + .expect_err("rejected"); + assert_eq!(diagnostic.code.as_str(), "LLV7021"); + assert!( + diagnostic.message.contains("environment"), + "{}", + diagnostic.message + ); +} + +#[test] +fn an_entry_records_a_zero_exit_only() { + let (store, exe, unit, path) = one_entry(); + let forged = CacheEntry { + key: unit.key, + granularity: Granularity::Declaration, + label: "base".to_owned(), + environment: base_env(), + executable: exe.clone(), + result: ReplayResult { + exit_code: 1, + stdout: String::new(), + stderr: String::new(), + }, + }; + std::fs::write(&path, forged.to_file_bytes()).expect("forge"); + let diagnostic = store + .cache + .lookup(&unit.key, &base_env(), &exe) + .expect_err("rejected"); + assert_eq!(diagnostic.code.as_str(), "LLV7021"); +} + +#[test] +fn an_executable_is_hashed_both_ways_from_its_bytes() { + let dir = tempfile::tempdir().expect("tempdir"); + let path = Utf8PathBuf::from_path_buf(dir.path().join("tool")).expect("utf-8"); + std::fs::write(&path, b"abc").expect("write"); + let identity = executable_identity("leanchecker", &path).expect("identity"); + assert_eq!(identity.digest, DigestSet::of(b"abc")); + assert_eq!(identity.tool, "leanchecker"); + let missing = executable_identity("leanchecker", &path.join("nope")).expect_err("missing"); + assert_eq!(missing.code.as_str(), "LLV7010"); +} diff --git a/crates/lexlean/src/verify/replay_facts.lean b/crates/lexlean/src/verify/replay_facts.lean new file mode 100644 index 0000000000..f8d3b453c1 --- /dev/null +++ b/crates/lexlean/src/verify/replay_facts.lean @@ -0,0 +1,167 @@ +import Lean +open Lean + +/-! Replay facts: for one compiled module, one JSON line per constant the +module declares and per constant those declarations reach, in the canonical +text the replay cache keys on. Terms are alpha-equivalence classes (binder +names, binder annotations and metadata are not written, as the kernel does +not read them) written as a node table in which a shared subterm is one +node, so a proof term with heavy sharing stays linear. -/ + +namespace ReplayFacts + +/-- A name with its structure kept: components are joined by `.`, a numeric +component is written `#n`, and `\`, `.` and `#` inside a string component are +escaped with `\`. -/ +def nameStr (n : Name) : String := + let rec go : Name → List String + | .anonymous => [] + | .str p s => go p ++ [((s.replace "\\" "\\\\").replace "." "\\.").replace "#" "\\#"] + | .num p k => go p ++ [s!"#{k}"] + ".".intercalate (go n) + +partial def levelStr : Level → String + | .zero => "0" + | .succ l => s!"(s {levelStr l})" + | .max a b => s!"(max {levelStr a} {levelStr b})" + | .imax a b => s!"(imax {levelStr a} {levelStr b})" + | .param n => s!"(p {nameStr n})" + | .mvar _ => "(mvar)" + +structure Table where + ids : Std.HashMap Expr Nat := {} + lines : Array String := #[] + +abbrev M := StateM Table + +def emit (e : Expr) (line : String) : M Nat := do + let s ← get + let id := s.lines.size + set { s with ids := s.ids.insert e id, lines := s.lines.push line } + return id + +partial def node (e : Expr) : M Nat := do + if let some i := (← get).ids[e]? then + return i + match e with + | .mdata _ b => + let i ← node b + modify fun s => { s with ids := s.ids.insert e i } + return i + | .bvar i => emit e s!"v {i}" + | .fvar _ => emit e "fvar" + | .mvar _ => emit e "mvar" + | .sort l => emit e s!"S {levelStr l}" + | .const n ls => emit e s!"C {nameStr n} [{",".intercalate (ls.map levelStr)}]" + | .app f a => + let fi ← node f + let ai ← node a + emit e s!"A {fi} {ai}" + | .lam _ t b _ => + let ti ← node t + let bi ← node b + emit e s!"L {ti} {bi}" + | .forallE _ t b _ => + let ti ← node t + let bi ← node b + emit e s!"P {ti} {bi}" + | .letE _ t v b nd => + let ti ← node t + let vi ← node v + let bi ← node b + emit e s!"Z {ti} {vi} {bi} {nd}" + | .lit (.natVal n) => emit e s!"N {n}" + | .lit (.strVal s) => emit e s!"T {s.quote}" + | .proj s i b => + let bi ← node b + emit e s!"J {nameStr s} {i} {bi}" + +/-- The node table of a term and the index of its root, as text. -/ +def termText (e : Expr) : String := + let (root, t) := (node e).run {} + "\n".intercalate (t.lines.toList ++ [s!"root {root}"]) + +def hintsStr : ReducibilityHints → String + | .«opaque» => "opaque" + | .«abbrev» => "abbrev" + | .regular h => s!"regular {h}" + +def safetyStr : DefinitionSafety → String + | .«unsafe» => "unsafe" + | .safe => "safe" + | .«partial» => "partial" + +def names (ns : List Name) : String := ",".intercalate (ns.map nameStr) + +/-- Facts of one constant: kind and attributes (small text), value text (a +term, or for a recursor its rules), the constants it names. -/ +def facts (c : ConstantInfo) : String × Option String × Array Name := + let used := c.type.getUsedConstants ++ (match c.value? (allowOpaque := true) with + | some v => v.getUsedConstants + | none => #[]) + match c with + | .axiomInfo v => (s!"axiom unsafe={v.isUnsafe}", none, used) + | .defnInfo v => + (s!"def hints={hintsStr v.hints} safety={safetyStr v.safety} all={names v.all}", + some (termText v.value), used) + | .thmInfo v => (s!"theorem all={names v.all}", some (termText v.value), used) + | .opaqueInfo v => + (s!"opaque unsafe={v.isUnsafe} all={names v.all}", some (termText v.value), used) + | .quotInfo v => + let kind := match v.kind with + | .type => "type" + | .ctor => "ctor" + | .lift => "lift" + | .ind => "ind" + (s!"quot {kind}", none, used) + | .inductInfo v => + (s!"inductive params={v.numParams} indices={v.numIndices} all={names v.all} ctors={names v.ctors} rec={v.isRec} unsafe={v.isUnsafe} refl={v.isReflexive} nested={v.numNested}", + none, used ++ v.ctors.toArray ++ v.all.toArray) + | .ctorInfo v => + (s!"constructor induct={nameStr v.induct} idx={v.cidx} params={v.numParams} fields={v.numFields} unsafe={v.isUnsafe}", + none, used.push v.induct) + | .recInfo v => + let rules := v.rules.map fun r => s!"rule {nameStr r.ctor} {r.nfields}\n{termText r.rhs}" + let ruleUsed := v.rules.foldl (fun acc r => acc ++ r.rhs.getUsedConstants ++ #[r.ctor]) #[] + (s!"recursor all={names v.all} params={v.numParams} indices={v.numIndices} motives={v.numMotives} minors={v.numMinors} k={v.k} unsafe={v.isUnsafe}", + some ("\n".intercalate rules), used ++ ruleUsed ++ v.all.toArray) + +def moduleOf (env : Environment) (n : Name) : String := + match env.getModuleIdxFor? n with + | some i => (env.header.moduleNames[i.toNat]?.getD .anonymous).toString + | none => "" + +def line (env : Environment) (c : ConstantInfo) : String × Array Name := + let (attrs, value, used) := facts c + let deps := ((used.filter (· != c.name)).qsort Name.lt).toList.eraseDups + let j := Json.mkObj [ + ("name", Json.str (nameStr c.name)), ("module", Json.str (moduleOf env c.name)), + ("level_params", Json.arr (c.levelParams.toArray.map (Json.str ∘ nameStr))), + ("attrs", Json.str attrs), ("type", Json.str (termText c.type)), + ("value", match value with | some v => Json.str v | none => Json.null), + ("deps", Json.arr (deps.toArray.map (Json.str ∘ nameStr)))] + (j.compress, deps.toArray) + +end ReplayFacts + +open ReplayFacts in +def main (args : List String) : IO UInt32 := do + let some target := args.head? | IO.eprintln "usage: replay_facts MODULE"; return 2 + initSearchPath (← findSysroot) + let env ← importModules #[{ module := target.toName }] {} (loadExts := false) + let some idx := env.getModuleIdx? target.toName | IO.eprintln s!"module {target} not found"; return 2 + let own := env.header.moduleData[idx.toNat]!.constNames + let mut seen : Std.HashSet Name := {} + let mut work : Array Name := own.reverse + let stdout ← IO.getStdout + while work.size > 0 do + let n := work.back! + work := work.pop + if seen.contains n then continue + seen := seen.insert n + let some c := env.find? n | continue + let (l, deps) := line env c + stdout.putStrLn l + for d in deps do + if !seen.contains d then work := work.push d + return 0 diff --git a/crates/lexlean/src/wrappers.rs b/crates/lexlean/src/wrappers.rs new file mode 100644 index 0000000000..48f334f7fd --- /dev/null +++ b/crates/lexlean/src/wrappers.rs @@ -0,0 +1,498 @@ +//! Specialisation wrappers (SPEC.md §13.13): the host-library declarations +//! that let a class-polymorphic Lean declaration be denoted by a glossary +//! entry at a concrete type. +//! +//! A *request* (TOML, `lexlean/wrappers/1`) lists, for each wrapper, a Lean +//! declaration, its kind, a tag, and the explicit arguments of the +//! application `@declaration arguments` that specialises it. [`emit`] writes +//! the host module: one `public` declaration per wrapper whose type is +//! `type_of%` the application and whose value is the application. +//! +//! The emitter never runs Lean and never writes a signature. What the +//! wrapper's type is, Lean decides when the host library is built; whether +//! an entry's signature is that type, the verification probe decides +//! (SPEC.md §18.8). The only text that reaches the host module is a closed +//! term grammar printed with every name `_root_`-qualified, so a request +//! cannot smuggle a tactic, a command, or a comment into it. + +use std::collections::BTreeSet; + +use serde::Deserialize; + +use crate::code; +use crate::diagnostic::Diagnostic; +use crate::lexicon::entry::is_lean_name; + +/// The schema tag of a request file. +pub const REQUEST_SPEC: &str = "lexlean/wrappers/1"; + +/// The Lean namespace reserved for wrappers. The verification probe reads a +/// name under it as a specialisation (SPEC.md §18.8), so nothing else may +/// declare there. +pub const WRAPPER_ROOT: &str = "LexLeanSpec"; + +/// The deepest nesting of parentheses an argument may have. A request is +/// user input, so the parser is bounded rather than trusting the stack. +const MAX_TERM_DEPTH: usize = 64; + +/// Words that are Lean syntax and not constants. `_root_` qualification +/// already makes them unparseable as the names they look like; they are +/// refused outright so that a request that spells a tactic block says so. +const TACTIC_WORDS: [&str; 22] = [ + "by", "fun", "do", "let", "have", "show", "from", "match", "with", "if", "then", "else", + "calc", "sorry", "admit", "axiom", "theorem", "def", "open", "end", "at", "in", +]; + +/// Whether `lean_name` is a wrapper name: strictly under [`WRAPPER_ROOT`]. +#[must_use] +pub fn is_wrapper_name(lean_name: &str) -> bool { + lean_name + .strip_prefix(WRAPPER_ROOT) + .is_some_and(|rest| rest.starts_with('.') && rest.len() > 1) +} + +/// How a wrapper is declared. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum WrapperKind { + /// `public theorem`: the declaration is a proof. + Theorem, + /// `public def`: the declaration is a definition. + Def, +} + +impl WrapperKind { + fn keyword(self) -> &'static str { + match self { + Self::Theorem => "theorem", + Self::Def => "def", + } + } +} + +/// One explicit argument of the specialising application. +#[derive(Debug, Clone, PartialEq, Eq)] +enum Term { + /// `_`: left to unification or instance resolution. + Hole, + /// A constant, with `@` when its implicit arguments are written out. + Name { explicit: bool, name: String }, + /// A decimal literal. + Number(String), + /// A parenthesised application of two or more terms, or one term. + Group(Vec), +} + +impl Term { + fn print(&self, out: &mut String) { + match self { + Self::Hole => out.push('_'), + Self::Name { explicit, name } => { + if *explicit { + out.push('@'); + } + out.push_str("_root_."); + out.push_str(name); + } + Self::Number(digits) => out.push_str(digits), + Self::Group(items) => { + out.push('('); + for (index, item) in items.iter().enumerate() { + if index > 0 { + out.push(' '); + } + item.print(out); + } + out.push(')'); + } + } + } +} + +/// One validated wrapper of a request. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Wrapper { + declaration: String, + kind: WrapperKind, + tag: String, + arguments: Vec, +} + +impl Wrapper { + /// The wrapper's Lean name: `LexLeanSpec..`. + #[must_use] + pub fn lean_name(&self) -> String { + format!("{WRAPPER_ROOT}.{}.{}", self.tag, self.declaration) + } + + /// The specialised application, `@declaration arguments`, as printed + /// into the host module. + fn application(&self) -> String { + let mut text = format!("@_root_.{}", self.declaration); + for argument in &self.arguments { + text.push(' '); + argument.print(&mut text); + } + text + } + + fn declaration_text(&self) -> String { + let application = self.application(); + format!( + "public {} {} : type_of% ({application}) := {application}", + self.kind.keyword(), + self.lean_name() + ) + } +} + +/// A validated specialisation request. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Request { + imports: Vec, + wrappers: Vec, +} + +#[derive(Deserialize)] +#[serde(deny_unknown_fields)] +struct RawRequest { + spec: String, + imports: Vec, + #[serde(default)] + wrapper: Vec, +} + +#[derive(Deserialize)] +#[serde(deny_unknown_fields)] +struct RawWrapper { + declaration: String, + kind: String, + tag: String, + arguments: Vec, +} + +fn refusal(message: impl Into) -> Diagnostic { + Diagnostic::new(code!("LLT4018"), message) +} + +fn is_plain_name(text: &str) -> bool { + is_lean_name(text) && text.split('.').all(|segment| segment != "_root_") +} + +fn is_tag(text: &str) -> bool { + is_plain_name(text) && !text.contains('.') +} + +/// Parse and validate a request (SPEC.md §13.13). +/// +/// # Errors +/// +/// `LLT4018` for malformed TOML, an unknown field or schema, an invalid +/// import, name, tag, kind, or argument, a duplicate wrapper, or a request +/// with no wrapper. +pub fn parse_request(text: &str) -> Result { + let raw: RawRequest = toml::from_str(text) + .map_err(|error| refusal(format!("the specialisation request is not valid: {error}")))?; + if raw.spec != REQUEST_SPEC { + return Err(refusal(format!( + "the specialisation request has spec `{}`, expected `{REQUEST_SPEC}`", + raw.spec + ))); + } + let mut imports = BTreeSet::new(); + for import in &raw.imports { + if !is_plain_name(import) { + return Err(refusal(format!( + "import `{import}` is not a conservative ASCII Lean module name" + ))); + } + if !imports.insert(import.clone()) { + return Err(refusal(format!("import `{import}` is listed twice"))); + } + } + if raw.imports.iter().collect::>() != imports.iter().collect::>() { + return Err(refusal("the imports are not sorted")); + } + if raw.wrapper.is_empty() { + return Err(refusal("the specialisation request has no wrapper")); + } + let mut seen = BTreeSet::new(); + let mut wrappers = Vec::with_capacity(raw.wrapper.len()); + for row in raw.wrapper { + if !is_plain_name(&row.declaration) { + return Err(refusal(format!( + "declaration `{}` is not a conservative ASCII Lean name", + row.declaration + ))); + } + if !is_tag(&row.tag) { + return Err(refusal(format!( + "tag `{}` is not an ASCII identifier", + row.tag + ))); + } + let kind = match row.kind.as_str() { + "theorem" => WrapperKind::Theorem, + "def" => WrapperKind::Def, + other => { + return Err(refusal(format!( + "kind `{other}` is neither `theorem` nor `def`" + ))) + } + }; + let mut arguments = Vec::with_capacity(row.arguments.len()); + for argument in &row.arguments { + arguments.push(parse_term(argument).map_err(|reason| { + refusal(format!( + "argument `{argument}` of `{}` at `{}` is outside the term grammar: {reason}", + row.declaration, row.tag + )) + })?); + } + let wrapper = Wrapper { + declaration: row.declaration, + kind, + tag: row.tag, + arguments, + }; + if !seen.insert(wrapper.lean_name()) { + return Err(refusal(format!( + "`{}` is requested twice", + wrapper.lean_name() + ))); + } + wrappers.push(wrapper); + } + Ok(Request { + imports: imports.into_iter().collect(), + wrappers, + }) +} + +/// Parse one argument: `term = "_" | name | "@" name | decimal | "(" term {term} ")"`. +fn parse_term(text: &str) -> Result { + let mut parser = TermParser { + bytes: text.as_bytes(), + at: 0, + }; + let term = parser.term(0)?; + if parser.at != parser.bytes.len() { + return Err(format!("unexpected `{}`", parser.rest())); + } + Ok(term) +} + +struct TermParser<'a> { + bytes: &'a [u8], + at: usize, +} + +impl TermParser<'_> { + fn rest(&self) -> String { + String::from_utf8_lossy(&self.bytes[self.at..]).into_owned() + } + + fn skip_spaces(&mut self) { + while self.bytes.get(self.at) == Some(&b' ') { + self.at += 1; + } + } + + fn term(&mut self, depth: usize) -> Result { + if depth > MAX_TERM_DEPTH { + return Err(format!("nesting is deeper than {MAX_TERM_DEPTH}")); + } + self.skip_spaces(); + match self.bytes.get(self.at) { + None => Err("a term is missing".to_owned()), + Some(b'(') => { + self.at += 1; + let mut items = Vec::new(); + loop { + self.skip_spaces(); + match self.bytes.get(self.at) { + None => return Err("a parenthesis is not closed".to_owned()), + Some(b')') => { + self.at += 1; + break; + } + Some(_) => items.push(self.term(depth + 1)?), + } + } + if items.is_empty() { + return Err("a group is empty".to_owned()); + } + Ok(Term::Group(items)) + } + Some(_) => { + let start = self.at; + while self + .bytes + .get(self.at) + .is_some_and(|b| !matches!(b, b' ' | b'(' | b')')) + { + self.at += 1; + } + let atom = std::str::from_utf8(&self.bytes[start..self.at]) + .map_err(|_| "a term is not ASCII".to_owned())?; + Self::atom(atom) + } + } + } + + fn atom(atom: &str) -> Result { + if atom == "_" { + return Ok(Term::Hole); + } + if !atom.is_empty() && atom.bytes().all(|b| b.is_ascii_digit()) { + return Ok(Term::Number(atom.to_owned())); + } + let (explicit, name) = match atom.strip_prefix('@') { + Some(name) => (true, name), + None => (false, atom), + }; + if TACTIC_WORDS.contains(&name) { + Err(format!( + "`{name}` introduces a tactic, a binder, or a hole in a proof" + )) + } else if is_plain_name(name) { + Ok(Term::Name { + explicit, + name: name.to_owned(), + }) + } else { + Err(format!("`{atom}` is not `_`, a name, or a number")) + } + } +} + +/// One wrapper as emitted. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct EmittedWrapper { + /// The wrapper's Lean name. + pub lean_name: String, + /// The specialised declaration. + pub declaration: String, + /// The request's tag. + pub tag: String, + /// The one-based line of the declaration in the host module. + pub line: usize, +} + +impl EmittedWrapper { + /// The `[denotation]` table of an entry that denotes this wrapper + /// (SPEC.md §13.6), for the host module named `lean_module`. + #[must_use] + pub fn denotation(&self, lean_module: &str) -> String { + format!( + "[denotation]\nkind = \"lean\"\nmodule = \"{lean_module}\"\nname = \"{}\"\n", + self.lean_name + ) + } +} + +/// The host module and its wrappers. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Emitted { + /// The Lean source of the host module, ending in a line feed. + pub module_text: String, + /// The wrappers in the order of their Lean names. + pub wrappers: Vec, +} + +/// Write the host module of a request (SPEC.md §13.13). The wrappers are in +/// the order of their Lean names, so the bytes do not depend on the order of +/// the request. +#[must_use] +pub fn emit(request: &Request) -> Emitted { + let mut text = String::from("module\n"); + for import in &request.imports { + text.push_str("public import "); + text.push_str(import); + text.push('\n'); + } + text.push_str("set_option autoImplicit false\n"); + let first_line = 3 + request.imports.len(); + let mut ordered: Vec<&Wrapper> = request.wrappers.iter().collect(); + ordered.sort_by_key(|wrapper| wrapper.lean_name()); + let mut wrappers = Vec::with_capacity(ordered.len()); + for (offset, wrapper) in ordered.into_iter().enumerate() { + text.push_str(&wrapper.declaration_text()); + text.push('\n'); + wrappers.push(EmittedWrapper { + lean_name: wrapper.lean_name(), + declaration: wrapper.declaration.clone(), + tag: wrapper.tag.clone(), + line: first_line + offset, + }); + } + Emitted { + module_text: text, + wrappers, + } +} + +#[cfg(test)] +mod tests { + use super::*; + + const REQUEST: &str = r#"spec = "lexlean/wrappers/1" +imports = ["Init", "Std"] + +[[wrapper]] +declaration = "Std.Commutative.comm" +kind = "theorem" +tag = "UInt32" +arguments = ["UInt32", "(@HAdd.hAdd UInt32 UInt32 UInt32 _)", "_"] + +[[wrapper]] +declaration = "Std.Commutative.comm" +kind = "theorem" +tag = "Nat" +arguments = ["Nat", "(@HAdd.hAdd Nat Nat Nat _)", "_"] +"#; + + #[test] + fn a_wrapper_is_a_term_in_sorted_order() { + let emitted = emit(&parse_request(REQUEST).expect("valid")); + assert_eq!( + emitted.module_text, + "module\npublic import Init\npublic import Std\nset_option autoImplicit false\n\ +public theorem LexLeanSpec.Nat.Std.Commutative.comm : type_of% (@_root_.Std.Commutative.comm _root_.Nat (@_root_.HAdd.hAdd _root_.Nat _root_.Nat _root_.Nat _) _) := @_root_.Std.Commutative.comm _root_.Nat (@_root_.HAdd.hAdd _root_.Nat _root_.Nat _root_.Nat _) _\n\ +public theorem LexLeanSpec.UInt32.Std.Commutative.comm : type_of% (@_root_.Std.Commutative.comm _root_.UInt32 (@_root_.HAdd.hAdd _root_.UInt32 _root_.UInt32 _root_.UInt32 _) _) := @_root_.Std.Commutative.comm _root_.UInt32 (@_root_.HAdd.hAdd _root_.UInt32 _root_.UInt32 _root_.UInt32 _) _\n" + ); + assert_eq!(emitted.wrappers[0].line, 5); + assert!(is_wrapper_name(&emitted.wrappers[0].lean_name)); + } + + #[test] + fn refused_requests_are_llt4018() { + let with = |wrapper: &str| { + format!("spec = \"lexlean/wrappers/1\"\nimports = [\"Init\"]\n[[wrapper]]\n{wrapper}\n") + }; + for bad in [ + with("declaration = \"f\"\nkind = \"theorem\"\ntag = \"T\"\narguments = [\"(by simp)\"]"), + with("declaration = \"f\"\nkind = \"theorem\"\ntag = \"T\"\narguments = [\"\\\"s\\\"\"]"), + with("declaration = \"f\"\nkind = \"theorem\"\ntag = \"T\"\narguments = [\"(Nat\"]"), + with("declaration = \"f g\"\nkind = \"theorem\"\ntag = \"T\"\narguments = []"), + with("declaration = \"f\"\nkind = \"axiom\"\ntag = \"T\"\narguments = []"), + with("declaration = \"f\"\nkind = \"def\"\ntag = \"T.U\"\narguments = []"), + with("declaration = \"_root_.f\"\nkind = \"def\"\ntag = \"T\"\narguments = []"), + with("declaration = \"f\"\nkind = \"def\"\ntag = \"T\"\narguments = []\ntactic = \"simp\""), + "spec = \"lexlean/wrappers/2\"\nimports = []\n".to_owned(), + "spec = \"lexlean/wrappers/1\"\nimports = []\n".to_owned(), + "spec = \"lexlean/wrappers/1\"\nimports = [\"Std\", \"Init\"]\n".to_owned(), + ] { + let error = parse_request(&bad).expect_err(&bad); + assert_eq!(error.code.as_str(), "LLT4018", "{bad}"); + } + let duplicate = with("declaration = \"f\"\nkind = \"def\"\ntag = \"T\"\narguments = []") + + "[[wrapper]]\ndeclaration = \"f\"\nkind = \"def\"\ntag = \"T\"\narguments = []\n"; + assert!(parse_request(&duplicate).is_err()); + } + + #[test] + fn nesting_is_bounded() { + let deep = format!("{}Nat{}", "(".repeat(100), ")".repeat(100)); + assert!(parse_term(&deep).is_err()); + } +} diff --git a/demos/mathlib-blake3-g/Blake3GHost.lean b/demos/mathlib-blake3-g/Blake3GHost.lean new file mode 100644 index 0000000000..75c832f42e --- /dev/null +++ b/demos/mathlib-blake3-g/Blake3GHost.lean @@ -0,0 +1,26 @@ +module + +public import Init.Data.BitVec + +/-! The host module of the BLAKE3 G acceptance demo. It holds the one lemma that +the imported libraries (Lean core, Std, Mathlib at the pin) do not state: +rotating left undoes rotating right by the same amount. -/ + +public section + +theorem Blake3GHost.rotateLeft_rotateRight (x : BitVec 32) (n : Nat) : + (x.rotateRight n).rotateLeft n = x := by + apply BitVec.eq_of_getLsbD_eq + intro i hi + simp only [BitVec.getLsbD_rotateLeft, BitVec.getLsbD_rotateRight] + have hn : n % 32 < 32 := Nat.mod_lt _ (by decide) + generalize n % 32 = r at hn ⊢ + by_cases h1 : i < r + · have h3 : 32 - r + i < 32 := by omega + have h5 : ¬ (32 - r + i < 32 - r) := by omega + simp [h1, h3, h5] + · have h2 : i - r < 32 - r := by omega + have h6 : r + (i - r) = i := by omega + simp [h1, hi, h2, h6] + +end diff --git a/demos/mathlib-blake3-g/Blake3GSpecs.lean b/demos/mathlib-blake3-g/Blake3GSpecs.lean new file mode 100644 index 0000000000..0c24e53719 --- /dev/null +++ b/demos/mathlib-blake3-g/Blake3GSpecs.lean @@ -0,0 +1,14 @@ +module +public import Mathlib.Algebra.Group.Basic +public import Mathlib.Data.BitVec +set_option autoImplicit false +public theorem LexLeanSpec.BitVec32.BitVec.add_sub_cancel : type_of% (@_root_.BitVec.add_sub_cancel 32) := @_root_.BitVec.add_sub_cancel 32 +public theorem LexLeanSpec.BitVec32.BitVec.xor_assoc : type_of% (@_root_.BitVec.xor_assoc 32) := @_root_.BitVec.xor_assoc 32 +public theorem LexLeanSpec.BitVec32.BitVec.xor_self : type_of% (@_root_.BitVec.xor_self 32) := @_root_.BitVec.xor_self 32 +public theorem LexLeanSpec.BitVec32.BitVec.xor_zero : type_of% (@_root_.BitVec.xor_zero 32) := @_root_.BitVec.xor_zero 32 +public theorem LexLeanSpec.BitVec32.add_right_comm : type_of% (@_root_.add_right_comm (_root_.BitVec 32) _) := @_root_.add_right_comm (_root_.BitVec 32) _ +public theorem LexLeanSpec.BitVec32.add_sub_cancel_right : type_of% (@_root_.add_sub_cancel_right (_root_.BitVec 32) _) := @_root_.add_sub_cancel_right (_root_.BitVec 32) _ +public theorem LexLeanSpec.U32.UInt32.add_sub_cancel : type_of% (@_root_.UInt32.add_sub_cancel) := @_root_.UInt32.add_sub_cancel +public theorem LexLeanSpec.U32.UInt32.xor_assoc : type_of% (@_root_.UInt32.xor_assoc) := @_root_.UInt32.xor_assoc +public theorem LexLeanSpec.U32.UInt32.xor_self : type_of% (@_root_.UInt32.xor_self) := @_root_.UInt32.xor_self +public theorem LexLeanSpec.U32.UInt32.xor_zero : type_of% (@_root_.UInt32.xor_zero) := @_root_.UInt32.xor_zero diff --git a/demos/mathlib-blake3-g/README.md b/demos/mathlib-blake3-g/README.md new file mode 100644 index 0000000000..35dc4b0010 --- /dev/null +++ b/demos/mathlib-blake3-g/README.md @@ -0,0 +1,12 @@ +# mathlib-blake3-g + +The acceptance demo of the Mathlib import (issue #340): four modules that prove, for every 32-bit word, what the BLAKE3-in-LexLean work could only test, citing lemmas of Lean core and Mathlib through a generated glossary. + +- **Language:** 1.2, with `[[lean_library]] mathlib` pinned at `520045ab14e2` (Lean `v4.32.1`). **Source modules:** 4 under `src/`. +- **Proved** (`BitVec 32`; the first two also at `UInt32`): `(a + b) - b = a`; `(a ^^^ b) ^^^ b = a`; `rotl (rotr a n) n = a` for n in {7, 8, 12, 16}; and that the eight-step inverse of the BLAKE3 G function recovers `a b c d` from its output and the message words `x y`, as a relation between the 22 words. +- **Glossary.** `glossary/lean.mathlib` is generated by `lexlean deps glossary` from the host modules `Blake3GHost` and `Blake3GSpecs` and is never edited. `Blake3GSpecs.lean` is emitted from `wrappers.toml` (`cargo xtask emit-wrappers`): specialisations at `BitVec 32` and `UInt32` of the lemmas cited. `glossary/blake3.g` holds label words for titles and headings, nothing else. +- **What is not imported.** `rotateLeft (rotateRight x n) n = x` is in neither Lean core nor Mathlib at this pin. `Blake3GHost.lean` proves it in ordinary Lean (axioms `propext`, `Quot.sound`); it is a lemma of this project's host library, not of an imported library. +- **A demo, not an example.** It needs a fetched library, so it lives under `demos/` and the default sweeps of `examples/` never see it (`EX-10`). Register rows whose gates it exercises (`model/ids.toml`, level `build`): `EX-10`, `ML-01` to `ML-05` (the library is declared, locked and never fetched by `verify`), `VR-25` and `VR-26` (imported declarations in the attestation), `VR-27` (how the probe writes generated signatures). +- **What is claimed.** `cargo xtask verify-demos` formats, locks, checks, builds and verifies the project (elaboration, `leanchecker` replay of the project's modules, exact axiom audit) and compares with `expected/`. Nothing about the proofs of Mathlib or of Lean core: they are imported, replayed in the pinned environment, not proved here (SPEC.md §4.2, §5.3). +- **Needs the library.** The example fails with `LLV7019` unless `.lake/packages/mathlib` is the pinned checkout with built artifacts. `./setup-offline.sh` hard-links an existing checkout (`MATHLIB=~/mathlib-pinned`) and builds the host library; `lexlean deps fetch` acquires it otherwise. `.lake/` is not tracked. +- **Run.** `./setup-offline.sh`, then `lexlean check` and `lexlean verify` here. The comparison with `expected/` is `cargo xtask verify-demos` from the repository root, which `.github/workflows/mathlib.yml` runs after `lexlean deps fetch` (about 5 minutes and 7 GB; no build cache). diff --git a/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Cancellation.coverage.json b/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Cancellation.coverage.json new file mode 100644 index 0000000000..d425740dcc --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Cancellation.coverage.json @@ -0,0 +1 @@ +{"latex":[{"byte_end":14,"byte_start":0,"kind":"control","origin":{"kind":"renderer-token","token":"documentclass"}},{"byte_end":15,"byte_start":14,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":19,"byte_start":15,"kind":"word","origin":{"kind":"renderer-token","token":"opt-11pt"}},{"byte_end":20,"byte_start":19,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":21,"byte_start":20,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":28,"byte_start":21,"kind":"word","origin":{"kind":"renderer-token","token":"article"}},{"byte_end":29,"byte_start":28,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":41,"byte_start":30,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":42,"byte_start":41,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":44,"byte_start":42,"kind":"word","origin":{"kind":"renderer-token","token":"opt-t1"}},{"byte_end":45,"byte_start":44,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":46,"byte_start":45,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":53,"byte_start":46,"kind":"word","origin":{"kind":"renderer-token","token":"fontenc"}},{"byte_end":54,"byte_start":53,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":66,"byte_start":55,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":67,"byte_start":66,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":74,"byte_start":67,"kind":"word","origin":{"kind":"renderer-token","token":"amsmath"}},{"byte_end":75,"byte_start":74,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":87,"byte_start":76,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":88,"byte_start":87,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":95,"byte_start":88,"kind":"word","origin":{"kind":"renderer-token","token":"amssymb"}},{"byte_end":96,"byte_start":95,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":108,"byte_start":97,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":109,"byte_start":108,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":115,"byte_start":109,"kind":"word","origin":{"kind":"renderer-token","token":"amsthm"}},{"byte_end":116,"byte_start":115,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":128,"byte_start":117,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":129,"byte_start":128,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":138,"byte_start":129,"kind":"word","origin":{"kind":"renderer-token","token":"hidelinks"}},{"byte_end":139,"byte_start":138,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":140,"byte_start":139,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":148,"byte_start":140,"kind":"word","origin":{"kind":"renderer-token","token":"hyperref"}},{"byte_end":149,"byte_start":148,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":161,"byte_start":150,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":162,"byte_start":161,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":169,"byte_start":162,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":170,"byte_start":169,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":171,"byte_start":170,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":178,"byte_start":171,"kind":"word","origin":{"kind":"renderer-token","token":"theorem-title"}},{"byte_end":179,"byte_start":178,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":180,"byte_start":179,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":187,"byte_start":180,"kind":"word","origin":{"kind":"renderer-token","token":"section-counter"}},{"byte_end":188,"byte_start":187,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":200,"byte_start":189,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":201,"byte_start":200,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":206,"byte_start":201,"kind":"word","origin":{"kind":"renderer-token","token":"lemma"}},{"byte_end":207,"byte_start":206,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":208,"byte_start":207,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":215,"byte_start":208,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":216,"byte_start":215,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":217,"byte_start":216,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":222,"byte_start":217,"kind":"word","origin":{"kind":"renderer-token","token":"lemma-title"}},{"byte_end":223,"byte_start":222,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":235,"byte_start":224,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":236,"byte_start":235,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":245,"byte_start":236,"kind":"word","origin":{"kind":"renderer-token","token":"corollary"}},{"byte_end":246,"byte_start":245,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":247,"byte_start":246,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":254,"byte_start":247,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":255,"byte_start":254,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":256,"byte_start":255,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":265,"byte_start":256,"kind":"word","origin":{"kind":"renderer-token","token":"corollary-title"}},{"byte_end":266,"byte_start":265,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":280,"byte_start":267,"kind":"control","origin":{"kind":"renderer-token","token":"theoremstyle"}},{"byte_end":281,"byte_start":280,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":291,"byte_start":281,"kind":"word","origin":{"kind":"renderer-token","token":"definition"}},{"byte_end":292,"byte_start":291,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":304,"byte_start":293,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":305,"byte_start":304,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":315,"byte_start":305,"kind":"word","origin":{"kind":"renderer-token","token":"definition"}},{"byte_end":316,"byte_start":315,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":317,"byte_start":316,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":324,"byte_start":317,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":325,"byte_start":324,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":326,"byte_start":325,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":336,"byte_start":326,"kind":"word","origin":{"kind":"renderer-token","token":"definition-title"}},{"byte_end":337,"byte_start":336,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":344,"byte_start":338,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":345,"byte_start":344,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":353,"byte_start":345,"kind":"word","origin":{"kind":"renderer-token","token":"document"}},{"byte_end":354,"byte_start":353,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":361,"byte_start":355,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":362,"byte_start":361,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":368,"byte_start":362,"kind":"word","origin":{"kind":"renderer-token","token":"center"}},{"byte_end":369,"byte_start":368,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":371,"byte_start":370,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":377,"byte_start":371,"kind":"control","origin":{"kind":"renderer-token","token":"large"}},{"byte_end":390,"byte_start":378,"kind":"word","origin":{"entry":"cancellation","form":"cancellation","kind":"form","package":"blake3.g"}},{"byte_end":391,"byte_start":390,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":396,"byte_start":392,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":397,"byte_start":396,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":403,"byte_start":397,"kind":"word","origin":{"kind":"renderer-token","token":"center"}},{"byte_end":404,"byte_start":403,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":413,"byte_start":405,"kind":"control","origin":{"kind":"renderer-token","token":"section"}},{"byte_end":414,"byte_start":413,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":426,"byte_start":414,"kind":"word","origin":{"entry":"cancellation","form":"cancellation","kind":"form","package":"blake3.g"}},{"byte_end":427,"byte_start":426,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":434,"byte_start":428,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":435,"byte_start":434,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":459,"byte_start":435,"kind":"word","origin":{"kind":"metadata","owner":"Cancellation::addition"}},{"byte_end":460,"byte_start":459,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":467,"byte_start":461,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":468,"byte_start":467,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":475,"byte_start":468,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":476,"byte_start":475,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":483,"byte_start":477,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":484,"byte_start":483,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":514,"byte_start":484,"kind":"word","origin":{"kind":"metadata","owner":"Cancellation::add-sub-cancel"}},{"byte_end":515,"byte_start":514,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":519,"byte_start":516,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":525,"byte_start":520,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":528,"byte_start":526,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":541,"byte_start":528,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":542,"byte_start":541,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":548,"byte_start":542,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":549,"byte_start":548,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":550,"byte_start":549,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":552,"byte_start":550,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":553,"byte_start":552,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":555,"byte_start":553,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":558,"byte_start":556,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":559,"byte_start":558,"kind":"word","origin":{"kind":"local","local":2}},{"byte_end":561,"byte_start":559,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":565,"byte_start":562,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":568,"byte_start":566,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":581,"byte_start":568,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":582,"byte_start":581,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":588,"byte_start":582,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":589,"byte_start":588,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":590,"byte_start":589,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":592,"byte_start":590,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":593,"byte_start":592,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":595,"byte_start":593,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":598,"byte_start":596,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":599,"byte_start":598,"kind":"word","origin":{"kind":"local","local":5}},{"byte_end":601,"byte_start":599,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":602,"byte_start":601,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":605,"byte_start":603,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":618,"byte_start":605,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":619,"byte_start":618,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":627,"byte_start":619,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":628,"byte_start":627,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":629,"byte_start":628,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":642,"byte_start":629,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":643,"byte_start":642,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":651,"byte_start":643,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":652,"byte_start":651,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":653,"byte_start":652,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":654,"byte_start":653,"kind":"word","origin":{"kind":"local","local":2}},{"byte_end":655,"byte_start":654,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":657,"byte_start":656,"kind":"word","origin":{"kind":"local","local":5}},{"byte_end":658,"byte_start":657,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":659,"byte_start":658,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":661,"byte_start":660,"kind":"word","origin":{"kind":"local","local":5}},{"byte_end":662,"byte_start":661,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":664,"byte_start":663,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":666,"byte_start":665,"kind":"word","origin":{"kind":"local","local":2}},{"byte_end":668,"byte_start":666,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":669,"byte_start":668,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":674,"byte_start":670,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":675,"byte_start":674,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":682,"byte_start":675,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":683,"byte_start":682,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":690,"byte_start":684,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":691,"byte_start":690,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":696,"byte_start":691,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":697,"byte_start":696,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":701,"byte_start":698,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":706,"byte_start":702,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":714,"byte_start":707,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":719,"byte_start":715,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":722,"byte_start":720,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":735,"byte_start":722,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":736,"byte_start":735,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":773,"byte_start":736,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.bit-vec32.bit-vec.add-sub-cancel"}},{"byte_end":774,"byte_start":773,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":775,"byte_start":774,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":776,"byte_start":775,"kind":"word","origin":{"kind":"local","local":2}},{"byte_end":777,"byte_start":776,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":779,"byte_start":778,"kind":"word","origin":{"kind":"local","local":5}},{"byte_end":780,"byte_start":779,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":782,"byte_start":780,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":783,"byte_start":782,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":788,"byte_start":784,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":789,"byte_start":788,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":794,"byte_start":789,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":795,"byte_start":794,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":802,"byte_start":796,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":803,"byte_start":802,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":810,"byte_start":803,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":811,"byte_start":810,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":818,"byte_start":812,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":819,"byte_start":818,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":855,"byte_start":819,"kind":"word","origin":{"kind":"metadata","owner":"Cancellation::add-sub-cancel-group"}},{"byte_end":856,"byte_start":855,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":860,"byte_start":857,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":866,"byte_start":861,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":869,"byte_start":867,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":882,"byte_start":869,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":883,"byte_start":882,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":889,"byte_start":883,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":890,"byte_start":889,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":891,"byte_start":890,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":893,"byte_start":891,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":894,"byte_start":893,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":896,"byte_start":894,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":899,"byte_start":897,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":900,"byte_start":899,"kind":"word","origin":{"kind":"local","local":118}},{"byte_end":902,"byte_start":900,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":906,"byte_start":903,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":909,"byte_start":907,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":922,"byte_start":909,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":923,"byte_start":922,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":929,"byte_start":923,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":930,"byte_start":929,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":931,"byte_start":930,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":933,"byte_start":931,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":934,"byte_start":933,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":936,"byte_start":934,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":939,"byte_start":937,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":940,"byte_start":939,"kind":"word","origin":{"kind":"local","local":121}},{"byte_end":942,"byte_start":940,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":943,"byte_start":942,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":946,"byte_start":944,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":959,"byte_start":946,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":960,"byte_start":959,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":968,"byte_start":960,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":969,"byte_start":968,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":970,"byte_start":969,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":983,"byte_start":970,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":984,"byte_start":983,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":992,"byte_start":984,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":993,"byte_start":992,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":994,"byte_start":993,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":995,"byte_start":994,"kind":"word","origin":{"kind":"local","local":118}},{"byte_end":996,"byte_start":995,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":998,"byte_start":997,"kind":"word","origin":{"kind":"local","local":121}},{"byte_end":999,"byte_start":998,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1000,"byte_start":999,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1002,"byte_start":1001,"kind":"word","origin":{"kind":"local","local":121}},{"byte_end":1003,"byte_start":1002,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1005,"byte_start":1004,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1007,"byte_start":1006,"kind":"word","origin":{"kind":"local","local":118}},{"byte_end":1009,"byte_start":1007,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1010,"byte_start":1009,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1015,"byte_start":1011,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1016,"byte_start":1015,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1023,"byte_start":1016,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":1024,"byte_start":1023,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1031,"byte_start":1025,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1032,"byte_start":1031,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1037,"byte_start":1032,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":1038,"byte_start":1037,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1042,"byte_start":1039,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":1047,"byte_start":1043,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1055,"byte_start":1048,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":1060,"byte_start":1056,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":1063,"byte_start":1061,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1076,"byte_start":1063,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1077,"byte_start":1076,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1113,"byte_start":1077,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.bit-vec32.add-sub-cancel-right"}},{"byte_end":1114,"byte_start":1113,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1115,"byte_start":1114,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1116,"byte_start":1115,"kind":"word","origin":{"kind":"local","local":118}},{"byte_end":1117,"byte_start":1116,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1119,"byte_start":1118,"kind":"word","origin":{"kind":"local","local":121}},{"byte_end":1120,"byte_start":1119,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1122,"byte_start":1120,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1123,"byte_start":1122,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1128,"byte_start":1124,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1129,"byte_start":1128,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1134,"byte_start":1129,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":1135,"byte_start":1134,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1142,"byte_start":1136,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1143,"byte_start":1142,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1150,"byte_start":1143,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":1151,"byte_start":1150,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1158,"byte_start":1152,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":1159,"byte_start":1158,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1193,"byte_start":1159,"kind":"word","origin":{"kind":"metadata","owner":"Cancellation::add-sub-cancel-u32"}},{"byte_end":1194,"byte_start":1193,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1198,"byte_start":1195,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":1204,"byte_start":1199,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":1207,"byte_start":1205,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1220,"byte_start":1207,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1221,"byte_start":1220,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1227,"byte_start":1221,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::u-int32"}},{"byte_end":1228,"byte_start":1227,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1230,"byte_start":1228,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1233,"byte_start":1231,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1234,"byte_start":1233,"kind":"word","origin":{"kind":"local","local":232}},{"byte_end":1236,"byte_start":1234,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1240,"byte_start":1237,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1243,"byte_start":1241,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1256,"byte_start":1243,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1257,"byte_start":1256,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1263,"byte_start":1257,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::u-int32"}},{"byte_end":1264,"byte_start":1263,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1266,"byte_start":1264,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1269,"byte_start":1267,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1270,"byte_start":1269,"kind":"word","origin":{"kind":"local","local":233}},{"byte_end":1272,"byte_start":1270,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1273,"byte_start":1272,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1276,"byte_start":1274,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1289,"byte_start":1276,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1290,"byte_start":1289,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1298,"byte_start":1290,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":1299,"byte_start":1298,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1300,"byte_start":1299,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1313,"byte_start":1300,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1314,"byte_start":1313,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1322,"byte_start":1314,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1323,"byte_start":1322,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1324,"byte_start":1323,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1325,"byte_start":1324,"kind":"word","origin":{"kind":"local","local":232}},{"byte_end":1326,"byte_start":1325,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1328,"byte_start":1327,"kind":"word","origin":{"kind":"local","local":233}},{"byte_end":1329,"byte_start":1328,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1330,"byte_start":1329,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1332,"byte_start":1331,"kind":"word","origin":{"kind":"local","local":233}},{"byte_end":1333,"byte_start":1332,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1335,"byte_start":1334,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1337,"byte_start":1336,"kind":"word","origin":{"kind":"local","local":232}},{"byte_end":1339,"byte_start":1337,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1340,"byte_start":1339,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1345,"byte_start":1341,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1346,"byte_start":1345,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1353,"byte_start":1346,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":1354,"byte_start":1353,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1361,"byte_start":1355,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1362,"byte_start":1361,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1367,"byte_start":1362,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":1368,"byte_start":1367,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1372,"byte_start":1369,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":1377,"byte_start":1373,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1385,"byte_start":1378,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":1390,"byte_start":1386,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":1393,"byte_start":1391,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1406,"byte_start":1393,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1407,"byte_start":1406,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1439,"byte_start":1407,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.u32.u-int32.add-sub-cancel"}},{"byte_end":1440,"byte_start":1439,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1441,"byte_start":1440,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1442,"byte_start":1441,"kind":"word","origin":{"kind":"local","local":232}},{"byte_end":1443,"byte_start":1442,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1445,"byte_start":1444,"kind":"word","origin":{"kind":"local","local":233}},{"byte_end":1446,"byte_start":1445,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1448,"byte_start":1446,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1449,"byte_start":1448,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1454,"byte_start":1450,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1455,"byte_start":1454,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1460,"byte_start":1455,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":1461,"byte_start":1460,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1468,"byte_start":1462,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1469,"byte_start":1468,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1474,"byte_start":1469,"kind":"word","origin":{"kind":"renderer-token","token":"lemma"}},{"byte_end":1475,"byte_start":1474,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1482,"byte_start":1476,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":1483,"byte_start":1482,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1517,"byte_start":1483,"kind":"word","origin":{"kind":"metadata","owner":"Cancellation::add-sub-sub-cancel"}},{"byte_end":1518,"byte_start":1517,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1522,"byte_start":1519,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":1528,"byte_start":1523,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":1531,"byte_start":1529,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1544,"byte_start":1531,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1545,"byte_start":1544,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1551,"byte_start":1545,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1552,"byte_start":1551,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1553,"byte_start":1552,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1555,"byte_start":1553,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1556,"byte_start":1555,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1558,"byte_start":1556,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1561,"byte_start":1559,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1562,"byte_start":1561,"kind":"word","origin":{"kind":"local","local":342}},{"byte_end":1564,"byte_start":1562,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1568,"byte_start":1565,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1571,"byte_start":1569,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1584,"byte_start":1571,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1585,"byte_start":1584,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1591,"byte_start":1585,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1592,"byte_start":1591,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1593,"byte_start":1592,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1595,"byte_start":1593,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1596,"byte_start":1595,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1598,"byte_start":1596,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1601,"byte_start":1599,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1602,"byte_start":1601,"kind":"word","origin":{"kind":"local","local":345}},{"byte_end":1604,"byte_start":1602,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1608,"byte_start":1605,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1611,"byte_start":1609,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1624,"byte_start":1611,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1625,"byte_start":1624,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1631,"byte_start":1625,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1632,"byte_start":1631,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1633,"byte_start":1632,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1635,"byte_start":1633,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1636,"byte_start":1635,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1638,"byte_start":1636,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1641,"byte_start":1639,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1642,"byte_start":1641,"kind":"word","origin":{"kind":"local","local":348}},{"byte_end":1644,"byte_start":1642,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1645,"byte_start":1644,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1648,"byte_start":1646,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1661,"byte_start":1648,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1662,"byte_start":1661,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1670,"byte_start":1662,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":1671,"byte_start":1670,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1672,"byte_start":1671,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1685,"byte_start":1672,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1686,"byte_start":1685,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1694,"byte_start":1686,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":1695,"byte_start":1694,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1696,"byte_start":1695,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1709,"byte_start":1696,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1710,"byte_start":1709,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1718,"byte_start":1710,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1719,"byte_start":1718,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1720,"byte_start":1719,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1733,"byte_start":1720,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1734,"byte_start":1733,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1742,"byte_start":1734,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1743,"byte_start":1742,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1744,"byte_start":1743,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1745,"byte_start":1744,"kind":"word","origin":{"kind":"local","local":342}},{"byte_end":1746,"byte_start":1745,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1748,"byte_start":1747,"kind":"word","origin":{"kind":"local","local":345}},{"byte_end":1749,"byte_start":1748,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1750,"byte_start":1749,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1752,"byte_start":1751,"kind":"word","origin":{"kind":"local","local":348}},{"byte_end":1753,"byte_start":1752,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1754,"byte_start":1753,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1756,"byte_start":1755,"kind":"word","origin":{"kind":"local","local":345}},{"byte_end":1757,"byte_start":1756,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1758,"byte_start":1757,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1760,"byte_start":1759,"kind":"word","origin":{"kind":"local","local":348}},{"byte_end":1761,"byte_start":1760,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1763,"byte_start":1762,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1765,"byte_start":1764,"kind":"word","origin":{"kind":"local","local":342}},{"byte_end":1767,"byte_start":1765,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1768,"byte_start":1767,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1773,"byte_start":1769,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1774,"byte_start":1773,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1779,"byte_start":1774,"kind":"word","origin":{"kind":"renderer-token","token":"lemma"}},{"byte_end":1780,"byte_start":1779,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1787,"byte_start":1781,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1788,"byte_start":1787,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1793,"byte_start":1788,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":1794,"byte_start":1793,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1802,"byte_start":1795,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":1806,"byte_start":1803,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":1811,"byte_start":1807,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1817,"byte_start":1812,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":1820,"byte_start":1818,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1831,"byte_start":1820,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":1845,"byte_start":1832,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1846,"byte_start":1845,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1877,"byte_start":1846,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.bit-vec32.add-right-comm"}},{"byte_end":1878,"byte_start":1877,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1879,"byte_start":1878,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1880,"byte_start":1879,"kind":"word","origin":{"kind":"local","local":342}},{"byte_end":1881,"byte_start":1880,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1883,"byte_start":1882,"kind":"word","origin":{"kind":"local","local":345}},{"byte_end":1884,"byte_start":1883,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1886,"byte_start":1885,"kind":"word","origin":{"kind":"local","local":348}},{"byte_end":1887,"byte_start":1886,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1889,"byte_start":1887,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1890,"byte_start":1889,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1893,"byte_start":1891,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1904,"byte_start":1893,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":1918,"byte_start":1905,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1919,"byte_start":1918,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1955,"byte_start":1919,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.bit-vec32.add-sub-cancel-right"}},{"byte_end":1956,"byte_start":1955,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1957,"byte_start":1956,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1970,"byte_start":1957,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1971,"byte_start":1970,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1979,"byte_start":1971,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1980,"byte_start":1979,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1981,"byte_start":1980,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1982,"byte_start":1981,"kind":"word","origin":{"kind":"local","local":342}},{"byte_end":1983,"byte_start":1982,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1985,"byte_start":1984,"kind":"word","origin":{"kind":"local","local":348}},{"byte_end":1986,"byte_start":1985,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1987,"byte_start":1986,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1989,"byte_start":1988,"kind":"word","origin":{"kind":"local","local":345}},{"byte_end":1990,"byte_start":1989,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1992,"byte_start":1990,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1993,"byte_start":1992,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1996,"byte_start":1994,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2007,"byte_start":1996,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":2021,"byte_start":2008,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2022,"byte_start":2021,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2058,"byte_start":2022,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.bit-vec32.add-sub-cancel-right"}},{"byte_end":2059,"byte_start":2058,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2060,"byte_start":2059,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2061,"byte_start":2060,"kind":"word","origin":{"kind":"local","local":342}},{"byte_end":2062,"byte_start":2061,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2064,"byte_start":2063,"kind":"word","origin":{"kind":"local","local":348}},{"byte_end":2065,"byte_start":2064,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2067,"byte_start":2065,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2068,"byte_start":2067,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2073,"byte_start":2069,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":2074,"byte_start":2073,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2079,"byte_start":2074,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":2080,"byte_start":2079,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2089,"byte_start":2081,"kind":"control","origin":{"kind":"renderer-token","token":"section"}},{"byte_end":2090,"byte_start":2089,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2102,"byte_start":2090,"kind":"word","origin":{"entry":"cancellation","form":"cancellation","kind":"form","package":"blake3.g"}},{"byte_end":2103,"byte_start":2102,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2110,"byte_start":2104,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":2111,"byte_start":2110,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2136,"byte_start":2111,"kind":"word","origin":{"kind":"metadata","owner":"Cancellation::exclusive"}},{"byte_end":2137,"byte_start":2136,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2144,"byte_start":2138,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":2145,"byte_start":2144,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2152,"byte_start":2145,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":2153,"byte_start":2152,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2160,"byte_start":2154,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":2161,"byte_start":2160,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2187,"byte_start":2161,"kind":"word","origin":{"kind":"metadata","owner":"Cancellation::xor-cancel"}},{"byte_end":2188,"byte_start":2187,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2192,"byte_start":2189,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":2198,"byte_start":2193,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":2201,"byte_start":2199,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2214,"byte_start":2201,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2215,"byte_start":2214,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2221,"byte_start":2215,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":2222,"byte_start":2221,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2223,"byte_start":2222,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2225,"byte_start":2223,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2226,"byte_start":2225,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2228,"byte_start":2226,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2231,"byte_start":2229,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2232,"byte_start":2231,"kind":"word","origin":{"kind":"local","local":700}},{"byte_end":2234,"byte_start":2232,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2238,"byte_start":2235,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":2241,"byte_start":2239,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2254,"byte_start":2241,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2255,"byte_start":2254,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2261,"byte_start":2255,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":2262,"byte_start":2261,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2263,"byte_start":2262,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2265,"byte_start":2263,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2266,"byte_start":2265,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2268,"byte_start":2266,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2271,"byte_start":2269,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2272,"byte_start":2271,"kind":"word","origin":{"kind":"local","local":703}},{"byte_end":2274,"byte_start":2272,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2275,"byte_start":2274,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2278,"byte_start":2276,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2291,"byte_start":2278,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2292,"byte_start":2291,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2300,"byte_start":2292,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2301,"byte_start":2300,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2302,"byte_start":2301,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2315,"byte_start":2302,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2316,"byte_start":2315,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2324,"byte_start":2316,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2325,"byte_start":2324,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2326,"byte_start":2325,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2327,"byte_start":2326,"kind":"word","origin":{"kind":"local","local":700}},{"byte_end":2328,"byte_start":2327,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2330,"byte_start":2329,"kind":"word","origin":{"kind":"local","local":703}},{"byte_end":2331,"byte_start":2330,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2332,"byte_start":2331,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2334,"byte_start":2333,"kind":"word","origin":{"kind":"local","local":703}},{"byte_end":2335,"byte_start":2334,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2337,"byte_start":2336,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2339,"byte_start":2338,"kind":"word","origin":{"kind":"local","local":700}},{"byte_end":2341,"byte_start":2339,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2342,"byte_start":2341,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2347,"byte_start":2343,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":2348,"byte_start":2347,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2355,"byte_start":2348,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":2356,"byte_start":2355,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2363,"byte_start":2357,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":2364,"byte_start":2363,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2369,"byte_start":2364,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":2370,"byte_start":2369,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2378,"byte_start":2371,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":2382,"byte_start":2379,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":2387,"byte_start":2383,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":2393,"byte_start":2388,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":2396,"byte_start":2394,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2407,"byte_start":2396,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":2421,"byte_start":2408,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2422,"byte_start":2421,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2455,"byte_start":2422,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.bit-vec32.bit-vec.xor-assoc"}},{"byte_end":2456,"byte_start":2455,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2457,"byte_start":2456,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2458,"byte_start":2457,"kind":"word","origin":{"kind":"local","local":700}},{"byte_end":2459,"byte_start":2458,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2461,"byte_start":2460,"kind":"word","origin":{"kind":"local","local":703}},{"byte_end":2462,"byte_start":2461,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2464,"byte_start":2463,"kind":"word","origin":{"kind":"local","local":703}},{"byte_end":2465,"byte_start":2464,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2467,"byte_start":2465,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2468,"byte_start":2467,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2471,"byte_start":2469,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2482,"byte_start":2471,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":2496,"byte_start":2483,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2497,"byte_start":2496,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2529,"byte_start":2497,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.bit-vec32.bit-vec.xor-self"}},{"byte_end":2530,"byte_start":2529,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2532,"byte_start":2530,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2533,"byte_start":2532,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2536,"byte_start":2534,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2547,"byte_start":2536,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":2561,"byte_start":2548,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2562,"byte_start":2561,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2594,"byte_start":2562,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.bit-vec32.bit-vec.xor-zero"}},{"byte_end":2595,"byte_start":2594,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2597,"byte_start":2595,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2598,"byte_start":2597,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2603,"byte_start":2599,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":2604,"byte_start":2603,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2609,"byte_start":2604,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":2610,"byte_start":2609,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2617,"byte_start":2611,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":2618,"byte_start":2617,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2625,"byte_start":2618,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":2626,"byte_start":2625,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2633,"byte_start":2627,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":2634,"byte_start":2633,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2664,"byte_start":2634,"kind":"word","origin":{"kind":"metadata","owner":"Cancellation::xor-cancel-u32"}},{"byte_end":2665,"byte_start":2664,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2669,"byte_start":2666,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":2675,"byte_start":2670,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":2678,"byte_start":2676,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2691,"byte_start":2678,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2692,"byte_start":2691,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2698,"byte_start":2692,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::u-int32"}},{"byte_end":2699,"byte_start":2698,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2701,"byte_start":2699,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2704,"byte_start":2702,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2705,"byte_start":2704,"kind":"word","origin":{"kind":"local","local":947}},{"byte_end":2707,"byte_start":2705,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2711,"byte_start":2708,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":2714,"byte_start":2712,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2727,"byte_start":2714,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2728,"byte_start":2727,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2734,"byte_start":2728,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::u-int32"}},{"byte_end":2735,"byte_start":2734,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2737,"byte_start":2735,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2740,"byte_start":2738,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2741,"byte_start":2740,"kind":"word","origin":{"kind":"local","local":948}},{"byte_end":2743,"byte_start":2741,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2744,"byte_start":2743,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2747,"byte_start":2745,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2760,"byte_start":2747,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2761,"byte_start":2760,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2769,"byte_start":2761,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2770,"byte_start":2769,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2771,"byte_start":2770,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2784,"byte_start":2771,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2785,"byte_start":2784,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2793,"byte_start":2785,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2794,"byte_start":2793,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2795,"byte_start":2794,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2796,"byte_start":2795,"kind":"word","origin":{"kind":"local","local":947}},{"byte_end":2797,"byte_start":2796,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2799,"byte_start":2798,"kind":"word","origin":{"kind":"local","local":948}},{"byte_end":2800,"byte_start":2799,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2801,"byte_start":2800,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2803,"byte_start":2802,"kind":"word","origin":{"kind":"local","local":948}},{"byte_end":2804,"byte_start":2803,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2806,"byte_start":2805,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2808,"byte_start":2807,"kind":"word","origin":{"kind":"local","local":947}},{"byte_end":2810,"byte_start":2808,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2811,"byte_start":2810,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2816,"byte_start":2812,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":2817,"byte_start":2816,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2824,"byte_start":2817,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":2825,"byte_start":2824,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2832,"byte_start":2826,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":2833,"byte_start":2832,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2838,"byte_start":2833,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":2839,"byte_start":2838,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2847,"byte_start":2840,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":2851,"byte_start":2848,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":2856,"byte_start":2852,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":2862,"byte_start":2857,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":2865,"byte_start":2863,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2876,"byte_start":2865,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":2890,"byte_start":2877,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2891,"byte_start":2890,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2919,"byte_start":2891,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.u32.u-int32.xor-assoc"}},{"byte_end":2920,"byte_start":2919,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2921,"byte_start":2920,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2922,"byte_start":2921,"kind":"word","origin":{"kind":"local","local":947}},{"byte_end":2923,"byte_start":2922,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2925,"byte_start":2924,"kind":"word","origin":{"kind":"local","local":948}},{"byte_end":2926,"byte_start":2925,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2928,"byte_start":2927,"kind":"word","origin":{"kind":"local","local":948}},{"byte_end":2929,"byte_start":2928,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2931,"byte_start":2929,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2932,"byte_start":2931,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2935,"byte_start":2933,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2946,"byte_start":2935,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":2960,"byte_start":2947,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2961,"byte_start":2960,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2988,"byte_start":2961,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.u32.u-int32.xor-self"}},{"byte_end":2989,"byte_start":2988,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2991,"byte_start":2989,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2992,"byte_start":2991,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2995,"byte_start":2993,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3006,"byte_start":2995,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3020,"byte_start":3007,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":3021,"byte_start":3020,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3048,"byte_start":3021,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::lex-lean-spec.u32.u-int32.xor-zero"}},{"byte_end":3049,"byte_start":3048,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3051,"byte_start":3049,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3052,"byte_start":3051,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3057,"byte_start":3053,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":3058,"byte_start":3057,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3063,"byte_start":3058,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":3064,"byte_start":3063,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3069,"byte_start":3065,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":3070,"byte_start":3069,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3078,"byte_start":3070,"kind":"word","origin":{"kind":"renderer-token","token":"document"}},{"byte_end":3079,"byte_start":3078,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}}],"lean":[{"byte_end":6,"byte_start":0,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":13,"byte_start":7,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":20,"byte_start":14,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":33,"byte_start":21,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":40,"byte_start":34,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":47,"byte_start":41,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":60,"byte_start":48,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":71,"byte_start":61,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":84,"byte_start":72,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":90,"byte_start":85,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":100,"byte_start":91,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":128,"byte_start":101,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":136,"byte_start":130,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":144,"byte_start":137,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":159,"byte_start":145,"kind":"identifier","origin":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":161,"byte_start":160,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":165,"byte_start":161,"kind":"identifier","origin":{"kind":"local","local":2}},{"byte_end":167,"byte_start":166,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":174,"byte_start":168,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":177,"byte_start":175,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":178,"byte_start":177,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":180,"byte_start":179,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":184,"byte_start":180,"kind":"identifier","origin":{"kind":"local","local":5}},{"byte_end":186,"byte_start":185,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":193,"byte_start":187,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":196,"byte_start":194,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":197,"byte_start":196,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":199,"byte_start":198,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":202,"byte_start":200,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":204,"byte_start":203,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":213,"byte_start":204,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":215,"byte_start":214,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":224,"byte_start":215,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":229,"byte_start":225,"kind":"identifier","origin":{"kind":"local","local":2}},{"byte_end":234,"byte_start":230,"kind":"identifier","origin":{"kind":"local","local":5}},{"byte_end":235,"byte_start":234,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":240,"byte_start":236,"kind":"identifier","origin":{"kind":"local","local":5}},{"byte_end":241,"byte_start":240,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":246,"byte_start":242,"kind":"identifier","origin":{"kind":"local","local":2}},{"byte_end":249,"byte_start":247,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":252,"byte_start":250,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":260,"byte_start":255,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":303,"byte_start":261,"kind":"identifier","origin":{"entry":"lex-lean-spec.bit-vec32.bit-vec.add-sub-cancel","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":308,"byte_start":304,"kind":"identifier","origin":{"kind":"local","local":2}},{"byte_end":313,"byte_start":309,"kind":"identifier","origin":{"kind":"local","local":5}},{"byte_end":321,"byte_start":315,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":329,"byte_start":322,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":350,"byte_start":330,"kind":"identifier","origin":{"component":"add-sub-cancel-group","kind":"reference","module":"Cancellation"}},{"byte_end":352,"byte_start":351,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":356,"byte_start":352,"kind":"identifier","origin":{"kind":"local","local":118}},{"byte_end":358,"byte_start":357,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":365,"byte_start":359,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":368,"byte_start":366,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":369,"byte_start":368,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":371,"byte_start":370,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":375,"byte_start":371,"kind":"identifier","origin":{"kind":"local","local":121}},{"byte_end":377,"byte_start":376,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":384,"byte_start":378,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":387,"byte_start":385,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":388,"byte_start":387,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":390,"byte_start":389,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":393,"byte_start":391,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":395,"byte_start":394,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":404,"byte_start":395,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":406,"byte_start":405,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":415,"byte_start":406,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":420,"byte_start":416,"kind":"identifier","origin":{"kind":"local","local":118}},{"byte_end":425,"byte_start":421,"kind":"identifier","origin":{"kind":"local","local":121}},{"byte_end":426,"byte_start":425,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":431,"byte_start":427,"kind":"identifier","origin":{"kind":"local","local":121}},{"byte_end":432,"byte_start":431,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":437,"byte_start":433,"kind":"identifier","origin":{"kind":"local","local":118}},{"byte_end":440,"byte_start":438,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":443,"byte_start":441,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":451,"byte_start":446,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":493,"byte_start":452,"kind":"identifier","origin":{"entry":"lex-lean-spec.bit-vec32.add-sub-cancel-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":498,"byte_start":494,"kind":"identifier","origin":{"kind":"local","local":118}},{"byte_end":503,"byte_start":499,"kind":"identifier","origin":{"kind":"local","local":121}},{"byte_end":511,"byte_start":505,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":519,"byte_start":512,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":538,"byte_start":520,"kind":"identifier","origin":{"component":"add-sub-cancel-u32","kind":"reference","module":"Cancellation"}},{"byte_end":540,"byte_start":539,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":544,"byte_start":540,"kind":"identifier","origin":{"kind":"local","local":232}},{"byte_end":546,"byte_start":545,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":553,"byte_start":547,"kind":"identifier","origin":{"entry":"u-int32","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":554,"byte_start":553,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":556,"byte_start":555,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":560,"byte_start":556,"kind":"identifier","origin":{"kind":"local","local":233}},{"byte_end":562,"byte_start":561,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":569,"byte_start":563,"kind":"identifier","origin":{"entry":"u-int32","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":570,"byte_start":569,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":572,"byte_start":571,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":575,"byte_start":573,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":577,"byte_start":576,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":586,"byte_start":577,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":588,"byte_start":587,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":597,"byte_start":588,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":602,"byte_start":598,"kind":"identifier","origin":{"kind":"local","local":232}},{"byte_end":607,"byte_start":603,"kind":"identifier","origin":{"kind":"local","local":233}},{"byte_end":608,"byte_start":607,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":613,"byte_start":609,"kind":"identifier","origin":{"kind":"local","local":233}},{"byte_end":614,"byte_start":613,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":619,"byte_start":615,"kind":"identifier","origin":{"kind":"local","local":232}},{"byte_end":622,"byte_start":620,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":625,"byte_start":623,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":633,"byte_start":628,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":671,"byte_start":634,"kind":"identifier","origin":{"entry":"lex-lean-spec.u32.u-int32.add-sub-cancel","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":676,"byte_start":672,"kind":"identifier","origin":{"kind":"local","local":232}},{"byte_end":681,"byte_start":677,"kind":"identifier","origin":{"kind":"local","local":233}},{"byte_end":689,"byte_start":683,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":697,"byte_start":690,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":716,"byte_start":698,"kind":"identifier","origin":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":718,"byte_start":717,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":722,"byte_start":718,"kind":"identifier","origin":{"kind":"local","local":342}},{"byte_end":724,"byte_start":723,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":731,"byte_start":725,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":734,"byte_start":732,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":735,"byte_start":734,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":737,"byte_start":736,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":741,"byte_start":737,"kind":"identifier","origin":{"kind":"local","local":345}},{"byte_end":743,"byte_start":742,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":750,"byte_start":744,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":753,"byte_start":751,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":754,"byte_start":753,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":756,"byte_start":755,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":760,"byte_start":756,"kind":"identifier","origin":{"kind":"local","local":348}},{"byte_end":762,"byte_start":761,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":769,"byte_start":763,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":772,"byte_start":770,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":773,"byte_start":772,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":775,"byte_start":774,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":778,"byte_start":776,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":780,"byte_start":779,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":789,"byte_start":780,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":791,"byte_start":790,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":800,"byte_start":791,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":802,"byte_start":801,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":811,"byte_start":802,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":813,"byte_start":812,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":822,"byte_start":813,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":827,"byte_start":823,"kind":"identifier","origin":{"kind":"local","local":342}},{"byte_end":832,"byte_start":828,"kind":"identifier","origin":{"kind":"local","local":345}},{"byte_end":833,"byte_start":832,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":838,"byte_start":834,"kind":"identifier","origin":{"kind":"local","local":348}},{"byte_end":839,"byte_start":838,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":844,"byte_start":840,"kind":"identifier","origin":{"kind":"local","local":345}},{"byte_end":845,"byte_start":844,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":850,"byte_start":846,"kind":"identifier","origin":{"kind":"local","local":348}},{"byte_end":851,"byte_start":850,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":856,"byte_start":852,"kind":"identifier","origin":{"kind":"local","local":342}},{"byte_end":859,"byte_start":857,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":862,"byte_start":860,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":867,"byte_start":865,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":869,"byte_start":868,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":904,"byte_start":869,"kind":"identifier","origin":{"entry":"lex-lean-spec.bit-vec32.add-right-comm","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":909,"byte_start":905,"kind":"identifier","origin":{"kind":"local","local":342}},{"byte_end":914,"byte_start":910,"kind":"identifier","origin":{"kind":"local","local":345}},{"byte_end":919,"byte_start":915,"kind":"identifier","origin":{"kind":"local","local":348}},{"byte_end":920,"byte_start":919,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":962,"byte_start":921,"kind":"identifier","origin":{"entry":"lex-lean-spec.bit-vec32.add-sub-cancel-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":964,"byte_start":963,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":973,"byte_start":964,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":978,"byte_start":974,"kind":"identifier","origin":{"kind":"local","local":342}},{"byte_end":983,"byte_start":979,"kind":"identifier","origin":{"kind":"local","local":348}},{"byte_end":984,"byte_start":983,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":989,"byte_start":985,"kind":"identifier","origin":{"kind":"local","local":345}},{"byte_end":990,"byte_start":989,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1032,"byte_start":991,"kind":"identifier","origin":{"entry":"lex-lean-spec.bit-vec32.add-sub-cancel-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1037,"byte_start":1033,"kind":"identifier","origin":{"kind":"local","local":342}},{"byte_end":1042,"byte_start":1038,"kind":"identifier","origin":{"kind":"local","local":348}},{"byte_end":1043,"byte_start":1042,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1051,"byte_start":1045,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1059,"byte_start":1052,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1070,"byte_start":1060,"kind":"identifier","origin":{"component":"xor-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":1072,"byte_start":1071,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1076,"byte_start":1072,"kind":"identifier","origin":{"kind":"local","local":700}},{"byte_end":1078,"byte_start":1077,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1085,"byte_start":1079,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1088,"byte_start":1086,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1089,"byte_start":1088,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1091,"byte_start":1090,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1095,"byte_start":1091,"kind":"identifier","origin":{"kind":"local","local":703}},{"byte_end":1097,"byte_start":1096,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1104,"byte_start":1098,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1107,"byte_start":1105,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1108,"byte_start":1107,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1110,"byte_start":1109,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1113,"byte_start":1111,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1115,"byte_start":1114,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1124,"byte_start":1115,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1126,"byte_start":1125,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1135,"byte_start":1126,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1140,"byte_start":1136,"kind":"identifier","origin":{"kind":"local","local":700}},{"byte_end":1145,"byte_start":1141,"kind":"identifier","origin":{"kind":"local","local":703}},{"byte_end":1146,"byte_start":1145,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1151,"byte_start":1147,"kind":"identifier","origin":{"kind":"local","local":703}},{"byte_end":1152,"byte_start":1151,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1157,"byte_start":1153,"kind":"identifier","origin":{"kind":"local","local":700}},{"byte_end":1160,"byte_start":1158,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1163,"byte_start":1161,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1168,"byte_start":1166,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1170,"byte_start":1169,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1207,"byte_start":1170,"kind":"identifier","origin":{"entry":"lex-lean-spec.bit-vec32.bit-vec.xor-assoc","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1212,"byte_start":1208,"kind":"identifier","origin":{"kind":"local","local":700}},{"byte_end":1217,"byte_start":1213,"kind":"identifier","origin":{"kind":"local","local":703}},{"byte_end":1222,"byte_start":1218,"kind":"identifier","origin":{"kind":"local","local":703}},{"byte_end":1223,"byte_start":1222,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1260,"byte_start":1224,"kind":"identifier","origin":{"entry":"lex-lean-spec.bit-vec32.bit-vec.xor-self","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1261,"byte_start":1260,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1298,"byte_start":1262,"kind":"identifier","origin":{"entry":"lex-lean-spec.bit-vec32.bit-vec.xor-zero","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1299,"byte_start":1298,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1307,"byte_start":1301,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1315,"byte_start":1308,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1330,"byte_start":1316,"kind":"identifier","origin":{"component":"xor-cancel-u32","kind":"reference","module":"Cancellation"}},{"byte_end":1332,"byte_start":1331,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1336,"byte_start":1332,"kind":"identifier","origin":{"kind":"local","local":947}},{"byte_end":1338,"byte_start":1337,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1345,"byte_start":1339,"kind":"identifier","origin":{"entry":"u-int32","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1346,"byte_start":1345,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1348,"byte_start":1347,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1352,"byte_start":1348,"kind":"identifier","origin":{"kind":"local","local":948}},{"byte_end":1354,"byte_start":1353,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1361,"byte_start":1355,"kind":"identifier","origin":{"entry":"u-int32","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1362,"byte_start":1361,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1364,"byte_start":1363,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1367,"byte_start":1365,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1369,"byte_start":1368,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1378,"byte_start":1369,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1380,"byte_start":1379,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1389,"byte_start":1380,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1394,"byte_start":1390,"kind":"identifier","origin":{"kind":"local","local":947}},{"byte_end":1399,"byte_start":1395,"kind":"identifier","origin":{"kind":"local","local":948}},{"byte_end":1400,"byte_start":1399,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1405,"byte_start":1401,"kind":"identifier","origin":{"kind":"local","local":948}},{"byte_end":1406,"byte_start":1405,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1411,"byte_start":1407,"kind":"identifier","origin":{"kind":"local","local":947}},{"byte_end":1414,"byte_start":1412,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1417,"byte_start":1415,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1422,"byte_start":1420,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1424,"byte_start":1423,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1456,"byte_start":1424,"kind":"identifier","origin":{"entry":"lex-lean-spec.u32.u-int32.xor-assoc","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1461,"byte_start":1457,"kind":"identifier","origin":{"kind":"local","local":947}},{"byte_end":1466,"byte_start":1462,"kind":"identifier","origin":{"kind":"local","local":948}},{"byte_end":1471,"byte_start":1467,"kind":"identifier","origin":{"kind":"local","local":948}},{"byte_end":1472,"byte_start":1471,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1504,"byte_start":1473,"kind":"identifier","origin":{"entry":"lex-lean-spec.u32.u-int32.xor-self","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1505,"byte_start":1504,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1537,"byte_start":1506,"kind":"identifier","origin":{"entry":"lex-lean-spec.u32.u-int32.xor-zero","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1538,"byte_start":1537,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1543,"byte_start":1540,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1571,"byte_start":1544,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}}],"module":"Cancellation","source":[{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":6,"byte_start":0,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":7,"byte_start":6,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.lexlean","kind":"structural","package":"lexlean.core"},"byte_end":14,"byte_start":7,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":15,"byte_start":14,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":16,"byte_start":15,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lexlean"},"byte_end":28,"byte_start":16,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":29,"byte_start":28,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"useglossary","kind":"structural","package":"lexlean.core"},"byte_end":42,"byte_start":30,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":43,"byte_start":42,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":48,"byte_start":43,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":49,"byte_start":48,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":50,"byte_start":49,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":51,"byte_start":50,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":52,"byte_start":51,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":53,"byte_start":52,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":54,"byte_start":53,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":55,"byte_start":54,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":56,"byte_start":55,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":57,"byte_start":56,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":58,"byte_start":57,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"useglossary","kind":"structural","package":"lexlean.core"},"byte_end":71,"byte_start":59,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":72,"byte_start":71,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":76,"byte_start":72,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":77,"byte_start":76,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":84,"byte_start":77,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":85,"byte_start":84,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":86,"byte_start":85,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":87,"byte_start":86,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":88,"byte_start":87,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":89,"byte_start":88,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":90,"byte_start":89,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":91,"byte_start":90,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"title","kind":"structural","package":"lexlean.core"},"byte_end":98,"byte_start":92,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":99,"byte_start":98,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"cancellation","form":"cancellation","kind":"form","package":"blake3.g"},"byte_end":111,"byte_start":99,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":112,"byte_start":111,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":120,"byte_start":114,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":121,"byte_start":120,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.section","kind":"structural","package":"lexlean.core"},"byte_end":128,"byte_start":121,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":129,"byte_start":128,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":130,"byte_start":129,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.section"},"byte_end":138,"byte_start":130,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":139,"byte_start":138,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"heading","kind":"structural","package":"lexlean.core"},"byte_end":148,"byte_start":140,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":149,"byte_start":148,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"cancellation","form":"cancellation","kind":"form","package":"blake3.g"},"byte_end":161,"byte_start":149,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":162,"byte_start":161,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":171,"byte_start":165,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":172,"byte_start":171,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":179,"byte_start":172,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":180,"byte_start":179,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":181,"byte_start":180,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":184,"byte_start":181,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":185,"byte_start":184,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":188,"byte_start":185,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":189,"byte_start":188,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":195,"byte_start":189,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":196,"byte_start":195,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":211,"byte_start":199,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":212,"byte_start":211,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":219,"byte_start":212,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":220,"byte_start":219,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":226,"byte_start":223,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":232,"byte_start":227,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":235,"byte_start":233,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":241,"byte_start":235,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":242,"byte_start":241,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":244,"byte_start":242,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":245,"byte_start":244,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":247,"byte_start":245,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":250,"byte_start":248,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":2},"byte_end":251,"byte_start":250,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":253,"byte_start":251,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":257,"byte_start":254,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":260,"byte_start":258,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":266,"byte_start":260,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":267,"byte_start":266,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":269,"byte_start":267,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":270,"byte_start":269,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":272,"byte_start":270,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":275,"byte_start":273,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":5},"byte_end":276,"byte_start":275,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":278,"byte_start":276,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":279,"byte_start":278,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":282,"byte_start":280,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":290,"byte_start":282,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":291,"byte_start":290,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":299,"byte_start":291,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":300,"byte_start":299,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":2},"byte_end":301,"byte_start":300,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":302,"byte_start":301,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":5},"byte_end":304,"byte_start":303,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":305,"byte_start":304,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":306,"byte_start":305,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":5},"byte_end":308,"byte_start":307,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":309,"byte_start":308,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":311,"byte_start":310,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":2},"byte_end":313,"byte_start":312,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":315,"byte_start":313,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":316,"byte_start":315,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":325,"byte_start":319,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":326,"byte_start":325,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":331,"byte_start":326,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":332,"byte_start":331,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":340,"byte_start":335,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":344,"byte_start":341,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":349,"byte_start":345,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":354,"byte_start":350,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":357,"byte_start":355,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.bit-vec32.bit-vec.add-sub-cancel","form":"add-sub-cancel","kind":"form","package":"lean.mathlib"},"byte_end":394,"byte_start":357,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":395,"byte_start":394,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":2},"byte_end":396,"byte_start":395,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":397,"byte_start":396,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":5},"byte_end":399,"byte_start":398,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":400,"byte_start":399,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":402,"byte_start":400,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":403,"byte_start":402,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":410,"byte_start":406,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":411,"byte_start":410,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":416,"byte_start":411,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":417,"byte_start":416,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":424,"byte_start":420,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":425,"byte_start":424,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":432,"byte_start":425,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":433,"byte_start":432,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":443,"byte_start":437,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":444,"byte_start":443,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":451,"byte_start":444,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":452,"byte_start":451,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":453,"byte_start":452,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":456,"byte_start":453,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":457,"byte_start":456,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":460,"byte_start":457,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":461,"byte_start":460,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":467,"byte_start":461,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":468,"byte_start":467,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":473,"byte_start":468,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":474,"byte_start":473,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":489,"byte_start":477,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":490,"byte_start":489,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":499,"byte_start":490,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":500,"byte_start":499,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":506,"byte_start":500,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":507,"byte_start":506,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":511,"byte_start":507,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":512,"byte_start":511,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":517,"byte_start":512,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":518,"byte_start":517,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":525,"byte_start":518,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":526,"byte_start":525,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":532,"byte_start":529,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":538,"byte_start":533,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":541,"byte_start":539,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":547,"byte_start":541,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":548,"byte_start":547,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":550,"byte_start":548,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":551,"byte_start":550,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":553,"byte_start":551,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":556,"byte_start":554,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":118},"byte_end":557,"byte_start":556,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":559,"byte_start":557,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":563,"byte_start":560,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":566,"byte_start":564,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":572,"byte_start":566,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":573,"byte_start":572,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":575,"byte_start":573,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":576,"byte_start":575,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":578,"byte_start":576,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":581,"byte_start":579,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":121},"byte_end":582,"byte_start":581,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":584,"byte_start":582,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":585,"byte_start":584,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":588,"byte_start":586,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":596,"byte_start":588,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":597,"byte_start":596,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":605,"byte_start":597,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":606,"byte_start":605,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":118},"byte_end":607,"byte_start":606,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":608,"byte_start":607,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":121},"byte_end":610,"byte_start":609,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":611,"byte_start":610,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":612,"byte_start":611,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":121},"byte_end":614,"byte_start":613,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":615,"byte_start":614,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":617,"byte_start":616,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":118},"byte_end":619,"byte_start":618,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":621,"byte_start":619,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":622,"byte_start":621,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":631,"byte_start":625,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":632,"byte_start":631,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":637,"byte_start":632,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":638,"byte_start":637,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":646,"byte_start":641,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":650,"byte_start":647,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":655,"byte_start":651,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":660,"byte_start":656,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":663,"byte_start":661,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.bit-vec32.add-sub-cancel-right","form":"add-sub-cancel-right","kind":"form","package":"lean.mathlib"},"byte_end":699,"byte_start":663,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":700,"byte_start":699,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":118},"byte_end":701,"byte_start":700,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":702,"byte_start":701,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":121},"byte_end":704,"byte_start":703,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":705,"byte_start":704,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":707,"byte_start":705,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":708,"byte_start":707,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":715,"byte_start":711,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":716,"byte_start":715,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":721,"byte_start":716,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":722,"byte_start":721,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":729,"byte_start":725,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":730,"byte_start":729,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":737,"byte_start":730,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":738,"byte_start":737,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":748,"byte_start":742,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":749,"byte_start":748,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":756,"byte_start":749,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":757,"byte_start":756,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":758,"byte_start":757,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":761,"byte_start":758,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":762,"byte_start":761,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":765,"byte_start":762,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":766,"byte_start":765,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":772,"byte_start":766,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":773,"byte_start":772,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":774,"byte_start":773,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":776,"byte_start":774,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":777,"byte_start":776,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":792,"byte_start":780,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":793,"byte_start":792,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":800,"byte_start":793,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":801,"byte_start":800,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":807,"byte_start":804,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":813,"byte_start":808,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":816,"byte_start":814,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"u-int32","form":"u-int32","kind":"form","package":"lean.mathlib"},"byte_end":822,"byte_start":816,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":824,"byte_start":822,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":827,"byte_start":825,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":232},"byte_end":828,"byte_start":827,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":830,"byte_start":828,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":834,"byte_start":831,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":837,"byte_start":835,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"u-int32","form":"u-int32","kind":"form","package":"lean.mathlib"},"byte_end":843,"byte_start":837,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":845,"byte_start":843,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":848,"byte_start":846,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":233},"byte_end":849,"byte_start":848,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":851,"byte_start":849,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":852,"byte_start":851,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":855,"byte_start":853,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":863,"byte_start":855,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":864,"byte_start":863,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":872,"byte_start":864,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":873,"byte_start":872,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":232},"byte_end":874,"byte_start":873,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":875,"byte_start":874,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":233},"byte_end":877,"byte_start":876,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":878,"byte_start":877,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":879,"byte_start":878,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":233},"byte_end":881,"byte_start":880,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":882,"byte_start":881,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":884,"byte_start":883,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":232},"byte_end":886,"byte_start":885,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":888,"byte_start":886,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":889,"byte_start":888,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":898,"byte_start":892,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":899,"byte_start":898,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":904,"byte_start":899,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":905,"byte_start":904,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":913,"byte_start":908,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":917,"byte_start":914,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":922,"byte_start":918,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":927,"byte_start":923,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":930,"byte_start":928,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.u32.u-int32.add-sub-cancel","form":"add-sub-cancel","kind":"form","package":"lean.mathlib"},"byte_end":962,"byte_start":930,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":963,"byte_start":962,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":232},"byte_end":964,"byte_start":963,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":965,"byte_start":964,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":233},"byte_end":967,"byte_start":966,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":968,"byte_start":967,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":970,"byte_start":968,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":971,"byte_start":970,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":978,"byte_start":974,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":979,"byte_start":978,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":984,"byte_start":979,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":985,"byte_start":984,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":992,"byte_start":988,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":993,"byte_start":992,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":1000,"byte_start":993,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1001,"byte_start":1000,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1011,"byte_start":1005,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1012,"byte_start":1011,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.lemma","kind":"structural","package":"lexlean.core"},"byte_end":1017,"byte_start":1012,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1018,"byte_start":1017,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1019,"byte_start":1018,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lemma"},"byte_end":1022,"byte_start":1019,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lemma"},"byte_end":1023,"byte_start":1022,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lemma"},"byte_end":1026,"byte_start":1023,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lemma"},"byte_end":1027,"byte_start":1026,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lemma"},"byte_end":1030,"byte_start":1027,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lemma"},"byte_end":1031,"byte_start":1030,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lemma"},"byte_end":1037,"byte_start":1031,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1038,"byte_start":1037,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":1053,"byte_start":1041,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1054,"byte_start":1053,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1063,"byte_start":1054,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1064,"byte_start":1063,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1070,"byte_start":1064,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1071,"byte_start":1070,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1075,"byte_start":1071,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1076,"byte_start":1075,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1081,"byte_start":1076,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1082,"byte_start":1081,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1089,"byte_start":1082,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1090,"byte_start":1089,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":1096,"byte_start":1093,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":1102,"byte_start":1097,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1105,"byte_start":1103,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":1111,"byte_start":1105,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1112,"byte_start":1111,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1114,"byte_start":1112,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1115,"byte_start":1114,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1117,"byte_start":1115,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1120,"byte_start":1118,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":342},"byte_end":1121,"byte_start":1120,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1123,"byte_start":1121,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":1127,"byte_start":1124,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1130,"byte_start":1128,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":1136,"byte_start":1130,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1137,"byte_start":1136,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1139,"byte_start":1137,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1140,"byte_start":1139,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1142,"byte_start":1140,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1145,"byte_start":1143,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":345},"byte_end":1146,"byte_start":1145,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1148,"byte_start":1146,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":1152,"byte_start":1149,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1155,"byte_start":1153,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":1161,"byte_start":1155,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1162,"byte_start":1161,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1164,"byte_start":1162,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1165,"byte_start":1164,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1167,"byte_start":1165,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1170,"byte_start":1168,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":348},"byte_end":1171,"byte_start":1170,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1173,"byte_start":1171,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1174,"byte_start":1173,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1177,"byte_start":1175,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":1185,"byte_start":1177,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1186,"byte_start":1185,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":1194,"byte_start":1186,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1195,"byte_start":1194,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":1203,"byte_start":1195,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1204,"byte_start":1203,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":1212,"byte_start":1204,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1213,"byte_start":1212,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":342},"byte_end":1214,"byte_start":1213,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1215,"byte_start":1214,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":345},"byte_end":1217,"byte_start":1216,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1218,"byte_start":1217,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1219,"byte_start":1218,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":348},"byte_end":1221,"byte_start":1220,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1222,"byte_start":1221,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1223,"byte_start":1222,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":345},"byte_end":1225,"byte_start":1224,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1226,"byte_start":1225,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1227,"byte_start":1226,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":348},"byte_end":1229,"byte_start":1228,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1230,"byte_start":1229,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1232,"byte_start":1231,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":342},"byte_end":1234,"byte_start":1233,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1236,"byte_start":1234,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":1237,"byte_start":1236,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1246,"byte_start":1240,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1247,"byte_start":1246,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1252,"byte_start":1247,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1253,"byte_start":1252,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1262,"byte_start":1256,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1263,"byte_start":1262,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":1270,"byte_start":1263,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1271,"byte_start":1270,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1272,"byte_start":1271,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":1276,"byte_start":1272,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1277,"byte_start":1276,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":1288,"byte_start":1280,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1289,"byte_start":1288,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.bit-vec32.add-right-comm","form":"add-right-comm","kind":"form","package":"lean.mathlib"},"byte_end":1320,"byte_start":1289,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1321,"byte_start":1320,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":342},"byte_end":1322,"byte_start":1321,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1323,"byte_start":1322,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":345},"byte_end":1325,"byte_start":1324,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1326,"byte_start":1325,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":348},"byte_end":1328,"byte_start":1327,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1329,"byte_start":1328,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1330,"byte_start":1329,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":1341,"byte_start":1333,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1342,"byte_start":1341,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.bit-vec32.add-sub-cancel-right","form":"add-sub-cancel-right","kind":"form","package":"lean.mathlib"},"byte_end":1378,"byte_start":1342,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1379,"byte_start":1378,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":1387,"byte_start":1379,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1388,"byte_start":1387,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":342},"byte_end":1389,"byte_start":1388,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1390,"byte_start":1389,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":348},"byte_end":1392,"byte_start":1391,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1393,"byte_start":1392,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1394,"byte_start":1393,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":345},"byte_end":1396,"byte_start":1395,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1397,"byte_start":1396,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1398,"byte_start":1397,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":1409,"byte_start":1401,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1410,"byte_start":1409,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.bit-vec32.add-sub-cancel-right","form":"add-sub-cancel-right","kind":"form","package":"lean.mathlib"},"byte_end":1446,"byte_start":1410,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1447,"byte_start":1446,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":342},"byte_end":1448,"byte_start":1447,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1449,"byte_start":1448,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":348},"byte_end":1451,"byte_start":1450,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1452,"byte_start":1451,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1453,"byte_start":1452,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1460,"byte_start":1456,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1461,"byte_start":1460,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":1468,"byte_start":1461,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1469,"byte_start":1468,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1476,"byte_start":1472,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1477,"byte_start":1476,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1482,"byte_start":1477,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1483,"byte_start":1482,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1490,"byte_start":1486,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1491,"byte_start":1490,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.lemma","kind":"structural","package":"lexlean.core"},"byte_end":1496,"byte_start":1491,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1497,"byte_start":1496,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1502,"byte_start":1498,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1503,"byte_start":1502,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.section","kind":"structural","package":"lexlean.core"},"byte_end":1510,"byte_start":1503,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1511,"byte_start":1510,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1519,"byte_start":1513,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1520,"byte_start":1519,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.section","kind":"structural","package":"lexlean.core"},"byte_end":1527,"byte_start":1520,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1528,"byte_start":1527,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1529,"byte_start":1528,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.section"},"byte_end":1538,"byte_start":1529,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1539,"byte_start":1538,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"heading","kind":"structural","package":"lexlean.core"},"byte_end":1548,"byte_start":1540,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1549,"byte_start":1548,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"cancellation","form":"cancellation","kind":"form","package":"blake3.g"},"byte_end":1561,"byte_start":1549,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1562,"byte_start":1561,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1571,"byte_start":1565,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1572,"byte_start":1571,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":1579,"byte_start":1572,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1580,"byte_start":1579,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1581,"byte_start":1580,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1584,"byte_start":1581,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1585,"byte_start":1584,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1591,"byte_start":1585,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1592,"byte_start":1591,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":1607,"byte_start":1595,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1608,"byte_start":1607,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1612,"byte_start":1608,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1613,"byte_start":1612,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1618,"byte_start":1613,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1619,"byte_start":1618,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1626,"byte_start":1619,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1627,"byte_start":1626,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":1633,"byte_start":1630,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":1639,"byte_start":1634,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1642,"byte_start":1640,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":1648,"byte_start":1642,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1649,"byte_start":1648,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1651,"byte_start":1649,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1652,"byte_start":1651,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1654,"byte_start":1652,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1657,"byte_start":1655,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":700},"byte_end":1658,"byte_start":1657,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1660,"byte_start":1658,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":1664,"byte_start":1661,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1667,"byte_start":1665,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":1673,"byte_start":1667,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1674,"byte_start":1673,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1676,"byte_start":1674,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1677,"byte_start":1676,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1679,"byte_start":1677,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1682,"byte_start":1680,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":703},"byte_end":1683,"byte_start":1682,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1685,"byte_start":1683,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1686,"byte_start":1685,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1689,"byte_start":1687,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1697,"byte_start":1689,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1698,"byte_start":1697,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1706,"byte_start":1698,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1707,"byte_start":1706,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":700},"byte_end":1708,"byte_start":1707,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1709,"byte_start":1708,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":703},"byte_end":1711,"byte_start":1710,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1712,"byte_start":1711,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1713,"byte_start":1712,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":703},"byte_end":1715,"byte_start":1714,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1716,"byte_start":1715,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1718,"byte_start":1717,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":700},"byte_end":1720,"byte_start":1719,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1722,"byte_start":1720,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":1723,"byte_start":1722,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1732,"byte_start":1726,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1733,"byte_start":1732,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1738,"byte_start":1733,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1739,"byte_start":1738,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1748,"byte_start":1742,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1749,"byte_start":1748,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":1756,"byte_start":1749,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1757,"byte_start":1756,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1758,"byte_start":1757,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":1762,"byte_start":1758,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1763,"byte_start":1762,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":1774,"byte_start":1766,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1775,"byte_start":1774,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.bit-vec32.bit-vec.xor-assoc","form":"xor-assoc","kind":"form","package":"lean.mathlib"},"byte_end":1808,"byte_start":1775,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1809,"byte_start":1808,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":700},"byte_end":1810,"byte_start":1809,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1811,"byte_start":1810,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":703},"byte_end":1813,"byte_start":1812,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1814,"byte_start":1813,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":703},"byte_end":1816,"byte_start":1815,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1817,"byte_start":1816,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1818,"byte_start":1817,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":1829,"byte_start":1821,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1830,"byte_start":1829,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.bit-vec32.bit-vec.xor-self","form":"xor-self","kind":"form","package":"lean.mathlib"},"byte_end":1862,"byte_start":1830,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1863,"byte_start":1862,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":1874,"byte_start":1866,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1875,"byte_start":1874,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.bit-vec32.bit-vec.xor-zero","form":"xor-zero","kind":"form","package":"lean.mathlib"},"byte_end":1907,"byte_start":1875,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1908,"byte_start":1907,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1915,"byte_start":1911,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1916,"byte_start":1915,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":1923,"byte_start":1916,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1924,"byte_start":1923,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1931,"byte_start":1927,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1932,"byte_start":1931,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1937,"byte_start":1932,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1938,"byte_start":1937,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1945,"byte_start":1941,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1946,"byte_start":1945,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":1953,"byte_start":1946,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1954,"byte_start":1953,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1964,"byte_start":1958,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1965,"byte_start":1964,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":1972,"byte_start":1965,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1973,"byte_start":1972,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1974,"byte_start":1973,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1977,"byte_start":1974,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1978,"byte_start":1977,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1984,"byte_start":1978,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1985,"byte_start":1984,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1986,"byte_start":1985,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":1988,"byte_start":1986,"class":"numeral","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1989,"byte_start":1988,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":2004,"byte_start":1992,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2005,"byte_start":2004,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":2009,"byte_start":2005,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":2010,"byte_start":2009,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":2015,"byte_start":2010,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":2016,"byte_start":2015,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":2023,"byte_start":2016,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2024,"byte_start":2023,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":2030,"byte_start":2027,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":2036,"byte_start":2031,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2039,"byte_start":2037,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"u-int32","form":"u-int32","kind":"form","package":"lean.mathlib"},"byte_end":2045,"byte_start":2039,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2047,"byte_start":2045,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2050,"byte_start":2048,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":947},"byte_end":2051,"byte_start":2050,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2053,"byte_start":2051,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":2057,"byte_start":2054,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2060,"byte_start":2058,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"u-int32","form":"u-int32","kind":"form","package":"lean.mathlib"},"byte_end":2066,"byte_start":2060,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2068,"byte_start":2066,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2071,"byte_start":2069,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":948},"byte_end":2072,"byte_start":2071,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2074,"byte_start":2072,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2075,"byte_start":2074,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2078,"byte_start":2076,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":2086,"byte_start":2078,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":2087,"byte_start":2086,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":2095,"byte_start":2087,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":2096,"byte_start":2095,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":947},"byte_end":2097,"byte_start":2096,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2098,"byte_start":2097,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":948},"byte_end":2100,"byte_start":2099,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":2101,"byte_start":2100,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2102,"byte_start":2101,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":948},"byte_end":2104,"byte_start":2103,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":2105,"byte_start":2104,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":2107,"byte_start":2106,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":947},"byte_end":2109,"byte_start":2108,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2111,"byte_start":2109,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2112,"byte_start":2111,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2121,"byte_start":2115,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2122,"byte_start":2121,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2127,"byte_start":2122,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2128,"byte_start":2127,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2137,"byte_start":2131,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2138,"byte_start":2137,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2145,"byte_start":2138,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2146,"byte_start":2145,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2147,"byte_start":2146,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":2151,"byte_start":2147,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2152,"byte_start":2151,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2163,"byte_start":2155,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2164,"byte_start":2163,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.u32.u-int32.xor-assoc","form":"xor-assoc","kind":"form","package":"lean.mathlib"},"byte_end":2192,"byte_start":2164,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":2193,"byte_start":2192,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":947},"byte_end":2194,"byte_start":2193,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2195,"byte_start":2194,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":948},"byte_end":2197,"byte_start":2196,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2198,"byte_start":2197,"class":"ascii-symbol","path":"src/Cancellation.lex.tex"},{"binding":{"kind":"local","local":948},"byte_end":2200,"byte_start":2199,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":2201,"byte_start":2200,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2202,"byte_start":2201,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2213,"byte_start":2205,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2214,"byte_start":2213,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.u32.u-int32.xor-self","form":"xor-self","kind":"form","package":"lean.mathlib"},"byte_end":2241,"byte_start":2214,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2242,"byte_start":2241,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2253,"byte_start":2245,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2254,"byte_start":2253,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"lex-lean-spec.u32.u-int32.xor-zero","form":"xor-zero","kind":"form","package":"lean.mathlib"},"byte_end":2281,"byte_start":2254,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2282,"byte_start":2281,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2289,"byte_start":2285,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2290,"byte_start":2289,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2297,"byte_start":2290,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2298,"byte_start":2297,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2305,"byte_start":2301,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2306,"byte_start":2305,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2311,"byte_start":2306,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2312,"byte_start":2311,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2319,"byte_start":2315,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2320,"byte_start":2319,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":2327,"byte_start":2320,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2328,"byte_start":2327,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2333,"byte_start":2329,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2334,"byte_start":2333,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.section","kind":"structural","package":"lexlean.core"},"byte_end":2341,"byte_start":2334,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2342,"byte_start":2341,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2347,"byte_start":2343,"class":"control","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2348,"byte_start":2347,"class":"delimiter","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"env.lexlean","kind":"structural","package":"lexlean.core"},"byte_end":2355,"byte_start":2348,"class":"word","path":"src/Cancellation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2356,"byte_start":2355,"class":"delimiter","path":"src/Cancellation.lex.tex"}],"spec":"lexlean/coverage/1"} diff --git a/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Main.coverage.json b/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Main.coverage.json new file mode 100644 index 0000000000..0d9636e3f9 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Main.coverage.json @@ -0,0 +1 @@ +{"latex":[{"byte_end":14,"byte_start":0,"kind":"control","origin":{"kind":"renderer-token","token":"documentclass"}},{"byte_end":15,"byte_start":14,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":19,"byte_start":15,"kind":"word","origin":{"kind":"renderer-token","token":"opt-11pt"}},{"byte_end":20,"byte_start":19,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":21,"byte_start":20,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":28,"byte_start":21,"kind":"word","origin":{"kind":"renderer-token","token":"article"}},{"byte_end":29,"byte_start":28,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":41,"byte_start":30,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":42,"byte_start":41,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":44,"byte_start":42,"kind":"word","origin":{"kind":"renderer-token","token":"opt-t1"}},{"byte_end":45,"byte_start":44,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":46,"byte_start":45,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":53,"byte_start":46,"kind":"word","origin":{"kind":"renderer-token","token":"fontenc"}},{"byte_end":54,"byte_start":53,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":66,"byte_start":55,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":67,"byte_start":66,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":74,"byte_start":67,"kind":"word","origin":{"kind":"renderer-token","token":"amsmath"}},{"byte_end":75,"byte_start":74,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":87,"byte_start":76,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":88,"byte_start":87,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":95,"byte_start":88,"kind":"word","origin":{"kind":"renderer-token","token":"amssymb"}},{"byte_end":96,"byte_start":95,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":108,"byte_start":97,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":109,"byte_start":108,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":115,"byte_start":109,"kind":"word","origin":{"kind":"renderer-token","token":"amsthm"}},{"byte_end":116,"byte_start":115,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":128,"byte_start":117,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":129,"byte_start":128,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":138,"byte_start":129,"kind":"word","origin":{"kind":"renderer-token","token":"hidelinks"}},{"byte_end":139,"byte_start":138,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":140,"byte_start":139,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":148,"byte_start":140,"kind":"word","origin":{"kind":"renderer-token","token":"hyperref"}},{"byte_end":149,"byte_start":148,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":161,"byte_start":150,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":162,"byte_start":161,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":169,"byte_start":162,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":170,"byte_start":169,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":171,"byte_start":170,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":178,"byte_start":171,"kind":"word","origin":{"kind":"renderer-token","token":"theorem-title"}},{"byte_end":179,"byte_start":178,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":180,"byte_start":179,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":187,"byte_start":180,"kind":"word","origin":{"kind":"renderer-token","token":"section-counter"}},{"byte_end":188,"byte_start":187,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":200,"byte_start":189,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":201,"byte_start":200,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":206,"byte_start":201,"kind":"word","origin":{"kind":"renderer-token","token":"lemma"}},{"byte_end":207,"byte_start":206,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":208,"byte_start":207,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":215,"byte_start":208,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":216,"byte_start":215,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":217,"byte_start":216,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":222,"byte_start":217,"kind":"word","origin":{"kind":"renderer-token","token":"lemma-title"}},{"byte_end":223,"byte_start":222,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":235,"byte_start":224,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":236,"byte_start":235,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":245,"byte_start":236,"kind":"word","origin":{"kind":"renderer-token","token":"corollary"}},{"byte_end":246,"byte_start":245,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":247,"byte_start":246,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":254,"byte_start":247,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":255,"byte_start":254,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":256,"byte_start":255,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":265,"byte_start":256,"kind":"word","origin":{"kind":"renderer-token","token":"corollary-title"}},{"byte_end":266,"byte_start":265,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":280,"byte_start":267,"kind":"control","origin":{"kind":"renderer-token","token":"theoremstyle"}},{"byte_end":281,"byte_start":280,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":291,"byte_start":281,"kind":"word","origin":{"kind":"renderer-token","token":"definition"}},{"byte_end":292,"byte_start":291,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":304,"byte_start":293,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":305,"byte_start":304,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":315,"byte_start":305,"kind":"word","origin":{"kind":"renderer-token","token":"definition"}},{"byte_end":316,"byte_start":315,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":317,"byte_start":316,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":324,"byte_start":317,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":325,"byte_start":324,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":326,"byte_start":325,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":336,"byte_start":326,"kind":"word","origin":{"kind":"renderer-token","token":"definition-title"}},{"byte_end":337,"byte_start":336,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":344,"byte_start":338,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":345,"byte_start":344,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":353,"byte_start":345,"kind":"word","origin":{"kind":"renderer-token","token":"document"}},{"byte_end":354,"byte_start":353,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":361,"byte_start":355,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":362,"byte_start":361,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":368,"byte_start":362,"kind":"word","origin":{"kind":"renderer-token","token":"center"}},{"byte_end":369,"byte_start":368,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":371,"byte_start":370,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":377,"byte_start":371,"kind":"control","origin":{"kind":"renderer-token","token":"large"}},{"byte_end":382,"byte_start":378,"kind":"word","origin":{"entry":"word","form":"word","kind":"form","package":"blake3.g"}},{"byte_end":393,"byte_start":383,"kind":"word","origin":{"entry":"arithmetic","form":"arithmetic","kind":"form","package":"blake3.g"}},{"byte_end":394,"byte_start":393,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":399,"byte_start":395,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":400,"byte_start":399,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":406,"byte_start":400,"kind":"word","origin":{"kind":"renderer-token","token":"center"}},{"byte_end":407,"byte_start":406,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":412,"byte_start":408,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":413,"byte_start":412,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":421,"byte_start":413,"kind":"word","origin":{"kind":"renderer-token","token":"document"}},{"byte_end":422,"byte_start":421,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}}],"lean":[{"byte_end":6,"byte_start":0,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":13,"byte_start":7,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":20,"byte_start":14,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":48,"byte_start":21,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":55,"byte_start":49,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":62,"byte_start":56,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":84,"byte_start":63,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":91,"byte_start":85,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":98,"byte_start":92,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":122,"byte_start":99,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":133,"byte_start":123,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":146,"byte_start":134,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":152,"byte_start":147,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":162,"byte_start":153,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":182,"byte_start":163,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":187,"byte_start":184,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":207,"byte_start":188,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}}],"module":"Main","source":[{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":6,"byte_start":0,"class":"control","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":7,"byte_start":6,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"env.lexlean","kind":"structural","package":"lexlean.core"},"byte_end":14,"byte_start":7,"class":"word","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":15,"byte_start":14,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":16,"byte_start":15,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lexlean"},"byte_end":20,"byte_start":16,"class":"word","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":21,"byte_start":20,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"useglossary","kind":"structural","package":"lexlean.core"},"byte_end":34,"byte_start":22,"class":"control","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":35,"byte_start":34,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":40,"byte_start":35,"class":"word","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":41,"byte_start":40,"class":"numeral","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":42,"byte_start":41,"class":"ascii-symbol","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":43,"byte_start":42,"class":"word","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":44,"byte_start":43,"class":"ascii-symbol","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":45,"byte_start":44,"class":"numeral","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":46,"byte_start":45,"class":"ascii-symbol","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":47,"byte_start":46,"class":"numeral","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":48,"byte_start":47,"class":"ascii-symbol","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":49,"byte_start":48,"class":"numeral","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":50,"byte_start":49,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"useglossary","kind":"structural","package":"lexlean.core"},"byte_end":63,"byte_start":51,"class":"control","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":64,"byte_start":63,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":68,"byte_start":64,"class":"word","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":69,"byte_start":68,"class":"ascii-symbol","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":76,"byte_start":69,"class":"word","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":77,"byte_start":76,"class":"ascii-symbol","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":78,"byte_start":77,"class":"numeral","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":79,"byte_start":78,"class":"ascii-symbol","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":80,"byte_start":79,"class":"numeral","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":81,"byte_start":80,"class":"ascii-symbol","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":82,"byte_start":81,"class":"numeral","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":83,"byte_start":82,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"importmodule","kind":"structural","package":"lexlean.core"},"byte_end":97,"byte_start":84,"class":"control","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":98,"byte_start":97,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::importmodule"},"byte_end":110,"byte_start":98,"class":"word","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":111,"byte_start":110,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"importmodule","kind":"structural","package":"lexlean.core"},"byte_end":125,"byte_start":112,"class":"control","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":126,"byte_start":125,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::importmodule"},"byte_end":132,"byte_start":126,"class":"word","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":133,"byte_start":132,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"importmodule","kind":"structural","package":"lexlean.core"},"byte_end":147,"byte_start":134,"class":"control","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":148,"byte_start":147,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::importmodule"},"byte_end":156,"byte_start":148,"class":"word","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":157,"byte_start":156,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"title","kind":"structural","package":"lexlean.core"},"byte_end":164,"byte_start":158,"class":"control","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":165,"byte_start":164,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"word","form":"word","kind":"form","package":"blake3.g"},"byte_end":169,"byte_start":165,"class":"word","path":"src/Main.lex.tex"},{"binding":{"entry":"arithmetic","form":"arithmetic","kind":"form","package":"blake3.g"},"byte_end":180,"byte_start":170,"class":"word","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":181,"byte_start":180,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":186,"byte_start":182,"class":"control","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":187,"byte_start":186,"class":"delimiter","path":"src/Main.lex.tex"},{"binding":{"entry":"env.lexlean","kind":"structural","package":"lexlean.core"},"byte_end":194,"byte_start":187,"class":"word","path":"src/Main.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":195,"byte_start":194,"class":"delimiter","path":"src/Main.lex.tex"}],"spec":"lexlean/coverage/1"} diff --git a/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Mixing.coverage.json b/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Mixing.coverage.json new file mode 100644 index 0000000000..8f0f1e002e --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Mixing.coverage.json @@ -0,0 +1 @@ +{"latex":[{"byte_end":14,"byte_start":0,"kind":"control","origin":{"kind":"renderer-token","token":"documentclass"}},{"byte_end":15,"byte_start":14,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":19,"byte_start":15,"kind":"word","origin":{"kind":"renderer-token","token":"opt-11pt"}},{"byte_end":20,"byte_start":19,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":21,"byte_start":20,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":28,"byte_start":21,"kind":"word","origin":{"kind":"renderer-token","token":"article"}},{"byte_end":29,"byte_start":28,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":41,"byte_start":30,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":42,"byte_start":41,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":44,"byte_start":42,"kind":"word","origin":{"kind":"renderer-token","token":"opt-t1"}},{"byte_end":45,"byte_start":44,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":46,"byte_start":45,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":53,"byte_start":46,"kind":"word","origin":{"kind":"renderer-token","token":"fontenc"}},{"byte_end":54,"byte_start":53,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":66,"byte_start":55,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":67,"byte_start":66,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":74,"byte_start":67,"kind":"word","origin":{"kind":"renderer-token","token":"amsmath"}},{"byte_end":75,"byte_start":74,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":87,"byte_start":76,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":88,"byte_start":87,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":95,"byte_start":88,"kind":"word","origin":{"kind":"renderer-token","token":"amssymb"}},{"byte_end":96,"byte_start":95,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":108,"byte_start":97,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":109,"byte_start":108,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":115,"byte_start":109,"kind":"word","origin":{"kind":"renderer-token","token":"amsthm"}},{"byte_end":116,"byte_start":115,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":128,"byte_start":117,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":129,"byte_start":128,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":138,"byte_start":129,"kind":"word","origin":{"kind":"renderer-token","token":"hidelinks"}},{"byte_end":139,"byte_start":138,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":140,"byte_start":139,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":148,"byte_start":140,"kind":"word","origin":{"kind":"renderer-token","token":"hyperref"}},{"byte_end":149,"byte_start":148,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":161,"byte_start":150,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":162,"byte_start":161,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":169,"byte_start":162,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":170,"byte_start":169,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":171,"byte_start":170,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":178,"byte_start":171,"kind":"word","origin":{"kind":"renderer-token","token":"theorem-title"}},{"byte_end":179,"byte_start":178,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":180,"byte_start":179,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":187,"byte_start":180,"kind":"word","origin":{"kind":"renderer-token","token":"section-counter"}},{"byte_end":188,"byte_start":187,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":200,"byte_start":189,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":201,"byte_start":200,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":206,"byte_start":201,"kind":"word","origin":{"kind":"renderer-token","token":"lemma"}},{"byte_end":207,"byte_start":206,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":208,"byte_start":207,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":215,"byte_start":208,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":216,"byte_start":215,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":217,"byte_start":216,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":222,"byte_start":217,"kind":"word","origin":{"kind":"renderer-token","token":"lemma-title"}},{"byte_end":223,"byte_start":222,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":235,"byte_start":224,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":236,"byte_start":235,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":245,"byte_start":236,"kind":"word","origin":{"kind":"renderer-token","token":"corollary"}},{"byte_end":246,"byte_start":245,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":247,"byte_start":246,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":254,"byte_start":247,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":255,"byte_start":254,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":256,"byte_start":255,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":265,"byte_start":256,"kind":"word","origin":{"kind":"renderer-token","token":"corollary-title"}},{"byte_end":266,"byte_start":265,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":280,"byte_start":267,"kind":"control","origin":{"kind":"renderer-token","token":"theoremstyle"}},{"byte_end":281,"byte_start":280,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":291,"byte_start":281,"kind":"word","origin":{"kind":"renderer-token","token":"definition"}},{"byte_end":292,"byte_start":291,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":304,"byte_start":293,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":305,"byte_start":304,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":315,"byte_start":305,"kind":"word","origin":{"kind":"renderer-token","token":"definition"}},{"byte_end":316,"byte_start":315,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":317,"byte_start":316,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":324,"byte_start":317,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":325,"byte_start":324,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":326,"byte_start":325,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":336,"byte_start":326,"kind":"word","origin":{"kind":"renderer-token","token":"definition-title"}},{"byte_end":337,"byte_start":336,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":344,"byte_start":338,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":345,"byte_start":344,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":353,"byte_start":345,"kind":"word","origin":{"kind":"renderer-token","token":"document"}},{"byte_end":354,"byte_start":353,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":361,"byte_start":355,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":362,"byte_start":361,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":368,"byte_start":362,"kind":"word","origin":{"kind":"renderer-token","token":"center"}},{"byte_end":369,"byte_start":368,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":371,"byte_start":370,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":377,"byte_start":371,"kind":"control","origin":{"kind":"renderer-token","token":"large"}},{"byte_end":384,"byte_start":378,"kind":"word","origin":{"entry":"mixing","form":"mixing","kind":"form","package":"blake3.g"}},{"byte_end":393,"byte_start":385,"kind":"word","origin":{"entry":"function","form":"function","kind":"form","package":"blake3.g"}},{"byte_end":401,"byte_start":394,"kind":"word","origin":{"entry":"inverse","form":"inverse","kind":"form","package":"blake3.g"}},{"byte_end":402,"byte_start":401,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":407,"byte_start":403,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":408,"byte_start":407,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":414,"byte_start":408,"kind":"word","origin":{"kind":"renderer-token","token":"center"}},{"byte_end":415,"byte_start":414,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":424,"byte_start":416,"kind":"control","origin":{"kind":"renderer-token","token":"section"}},{"byte_end":425,"byte_start":424,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":431,"byte_start":425,"kind":"word","origin":{"entry":"mixing","form":"mixing","kind":"form","package":"blake3.g"}},{"byte_end":440,"byte_start":432,"kind":"word","origin":{"entry":"function","form":"function","kind":"form","package":"blake3.g"}},{"byte_end":448,"byte_start":441,"kind":"word","origin":{"entry":"inverse","form":"inverse","kind":"form","package":"blake3.g"}},{"byte_end":449,"byte_start":448,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":456,"byte_start":450,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":457,"byte_start":456,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":474,"byte_start":457,"kind":"word","origin":{"kind":"metadata","owner":"Mixing::inverse"}},{"byte_end":475,"byte_start":474,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":482,"byte_start":476,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":483,"byte_start":482,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":490,"byte_start":483,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":491,"byte_start":490,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":498,"byte_start":492,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":499,"byte_start":498,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":523,"byte_start":499,"kind":"word","origin":{"kind":"metadata","owner":"Mixing::mixing-inverse"}},{"byte_end":524,"byte_start":523,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":528,"byte_start":525,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":534,"byte_start":529,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":537,"byte_start":535,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":550,"byte_start":537,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":551,"byte_start":550,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":557,"byte_start":551,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":558,"byte_start":557,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":559,"byte_start":558,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":561,"byte_start":559,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":562,"byte_start":561,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":564,"byte_start":562,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":567,"byte_start":565,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":568,"byte_start":567,"kind":"word","origin":{"kind":"local","local":1709}},{"byte_end":570,"byte_start":568,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":574,"byte_start":571,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":577,"byte_start":575,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":590,"byte_start":577,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":591,"byte_start":590,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":597,"byte_start":591,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":598,"byte_start":597,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":599,"byte_start":598,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":601,"byte_start":599,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":602,"byte_start":601,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":604,"byte_start":602,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":607,"byte_start":605,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":608,"byte_start":607,"kind":"word","origin":{"kind":"local","local":1712}},{"byte_end":610,"byte_start":608,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":614,"byte_start":611,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":617,"byte_start":615,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":630,"byte_start":617,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":631,"byte_start":630,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":637,"byte_start":631,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":638,"byte_start":637,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":639,"byte_start":638,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":641,"byte_start":639,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":642,"byte_start":641,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":644,"byte_start":642,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":647,"byte_start":645,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":648,"byte_start":647,"kind":"word","origin":{"kind":"local","local":1715}},{"byte_end":650,"byte_start":648,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":654,"byte_start":651,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":657,"byte_start":655,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":670,"byte_start":657,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":671,"byte_start":670,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":677,"byte_start":671,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":678,"byte_start":677,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":679,"byte_start":678,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":681,"byte_start":679,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":682,"byte_start":681,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":684,"byte_start":682,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":687,"byte_start":685,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":688,"byte_start":687,"kind":"word","origin":{"kind":"local","local":1718}},{"byte_end":690,"byte_start":688,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":694,"byte_start":691,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":697,"byte_start":695,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":710,"byte_start":697,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":711,"byte_start":710,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":717,"byte_start":711,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":718,"byte_start":717,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":719,"byte_start":718,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":721,"byte_start":719,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":722,"byte_start":721,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":724,"byte_start":722,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":727,"byte_start":725,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":728,"byte_start":727,"kind":"word","origin":{"kind":"local","local":1721}},{"byte_end":730,"byte_start":728,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":734,"byte_start":731,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":737,"byte_start":735,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":750,"byte_start":737,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":751,"byte_start":750,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":757,"byte_start":751,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":758,"byte_start":757,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":759,"byte_start":758,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":761,"byte_start":759,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":762,"byte_start":761,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":764,"byte_start":762,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":767,"byte_start":765,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":768,"byte_start":767,"kind":"word","origin":{"kind":"local","local":1724}},{"byte_end":770,"byte_start":768,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":774,"byte_start":771,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":777,"byte_start":775,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":790,"byte_start":777,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":791,"byte_start":790,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":797,"byte_start":791,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":798,"byte_start":797,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":799,"byte_start":798,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":801,"byte_start":799,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":802,"byte_start":801,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":804,"byte_start":802,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":807,"byte_start":805,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":809,"byte_start":807,"kind":"word","origin":{"kind":"local","local":1727}},{"byte_end":811,"byte_start":809,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":815,"byte_start":812,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":818,"byte_start":816,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":831,"byte_start":818,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":832,"byte_start":831,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":838,"byte_start":832,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":839,"byte_start":838,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":840,"byte_start":839,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":842,"byte_start":840,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":843,"byte_start":842,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":845,"byte_start":843,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":848,"byte_start":846,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":850,"byte_start":848,"kind":"word","origin":{"kind":"local","local":1730}},{"byte_end":852,"byte_start":850,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":856,"byte_start":853,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":859,"byte_start":857,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":872,"byte_start":859,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":873,"byte_start":872,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":879,"byte_start":873,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":880,"byte_start":879,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":881,"byte_start":880,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":883,"byte_start":881,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":884,"byte_start":883,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":886,"byte_start":884,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":889,"byte_start":887,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":891,"byte_start":889,"kind":"word","origin":{"kind":"local","local":1733}},{"byte_end":893,"byte_start":891,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":897,"byte_start":894,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":900,"byte_start":898,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":913,"byte_start":900,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":914,"byte_start":913,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":920,"byte_start":914,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":921,"byte_start":920,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":922,"byte_start":921,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":924,"byte_start":922,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":925,"byte_start":924,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":927,"byte_start":925,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":930,"byte_start":928,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":932,"byte_start":930,"kind":"word","origin":{"kind":"local","local":1736}},{"byte_end":934,"byte_start":932,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":938,"byte_start":935,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":941,"byte_start":939,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":954,"byte_start":941,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":955,"byte_start":954,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":961,"byte_start":955,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":962,"byte_start":961,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":963,"byte_start":962,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":965,"byte_start":963,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":966,"byte_start":965,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":968,"byte_start":966,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":971,"byte_start":969,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":973,"byte_start":971,"kind":"word","origin":{"kind":"local","local":1739}},{"byte_end":975,"byte_start":973,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":979,"byte_start":976,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":982,"byte_start":980,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":995,"byte_start":982,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":996,"byte_start":995,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1002,"byte_start":996,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1003,"byte_start":1002,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1004,"byte_start":1003,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1006,"byte_start":1004,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1007,"byte_start":1006,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1009,"byte_start":1007,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1012,"byte_start":1010,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1014,"byte_start":1012,"kind":"word","origin":{"kind":"local","local":1742}},{"byte_end":1016,"byte_start":1014,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1020,"byte_start":1017,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1023,"byte_start":1021,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1036,"byte_start":1023,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1037,"byte_start":1036,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1043,"byte_start":1037,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1044,"byte_start":1043,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1045,"byte_start":1044,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1047,"byte_start":1045,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1048,"byte_start":1047,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1050,"byte_start":1048,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1053,"byte_start":1051,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1055,"byte_start":1053,"kind":"word","origin":{"kind":"local","local":1745}},{"byte_end":1057,"byte_start":1055,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1061,"byte_start":1058,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1064,"byte_start":1062,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1077,"byte_start":1064,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1078,"byte_start":1077,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1084,"byte_start":1078,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1085,"byte_start":1084,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1086,"byte_start":1085,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1088,"byte_start":1086,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1089,"byte_start":1088,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1091,"byte_start":1089,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1094,"byte_start":1092,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1096,"byte_start":1094,"kind":"word","origin":{"kind":"local","local":1748}},{"byte_end":1098,"byte_start":1096,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1102,"byte_start":1099,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1105,"byte_start":1103,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1118,"byte_start":1105,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1119,"byte_start":1118,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1125,"byte_start":1119,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1126,"byte_start":1125,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1127,"byte_start":1126,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1129,"byte_start":1127,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1130,"byte_start":1129,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1132,"byte_start":1130,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1135,"byte_start":1133,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1138,"byte_start":1135,"kind":"word","origin":{"kind":"local","local":1751}},{"byte_end":1140,"byte_start":1138,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1144,"byte_start":1141,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1147,"byte_start":1145,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1160,"byte_start":1147,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1161,"byte_start":1160,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1167,"byte_start":1161,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1168,"byte_start":1167,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1169,"byte_start":1168,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1171,"byte_start":1169,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1172,"byte_start":1171,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1174,"byte_start":1172,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1177,"byte_start":1175,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1180,"byte_start":1177,"kind":"word","origin":{"kind":"local","local":1754}},{"byte_end":1182,"byte_start":1180,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1186,"byte_start":1183,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1189,"byte_start":1187,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1202,"byte_start":1189,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1203,"byte_start":1202,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1209,"byte_start":1203,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1210,"byte_start":1209,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1211,"byte_start":1210,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1213,"byte_start":1211,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1214,"byte_start":1213,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1216,"byte_start":1214,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1219,"byte_start":1217,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1222,"byte_start":1219,"kind":"word","origin":{"kind":"local","local":1757}},{"byte_end":1224,"byte_start":1222,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1228,"byte_start":1225,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1231,"byte_start":1229,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1244,"byte_start":1231,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1245,"byte_start":1244,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1251,"byte_start":1245,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1252,"byte_start":1251,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1253,"byte_start":1252,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1255,"byte_start":1253,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1256,"byte_start":1255,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1258,"byte_start":1256,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1261,"byte_start":1259,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1264,"byte_start":1261,"kind":"word","origin":{"kind":"local","local":1760}},{"byte_end":1266,"byte_start":1264,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1270,"byte_start":1267,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1273,"byte_start":1271,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1286,"byte_start":1273,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1287,"byte_start":1286,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1293,"byte_start":1287,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1294,"byte_start":1293,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1295,"byte_start":1294,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1297,"byte_start":1295,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1298,"byte_start":1297,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1300,"byte_start":1298,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1303,"byte_start":1301,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1305,"byte_start":1303,"kind":"word","origin":{"kind":"local","local":1763}},{"byte_end":1307,"byte_start":1305,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1311,"byte_start":1308,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1314,"byte_start":1312,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1327,"byte_start":1314,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1328,"byte_start":1327,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1334,"byte_start":1328,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1335,"byte_start":1334,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1336,"byte_start":1335,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1338,"byte_start":1336,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1339,"byte_start":1338,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1341,"byte_start":1339,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1344,"byte_start":1342,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1346,"byte_start":1344,"kind":"word","origin":{"kind":"local","local":1766}},{"byte_end":1348,"byte_start":1346,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1352,"byte_start":1349,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1355,"byte_start":1353,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1368,"byte_start":1355,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1369,"byte_start":1368,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1375,"byte_start":1369,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1376,"byte_start":1375,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1377,"byte_start":1376,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1379,"byte_start":1377,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1380,"byte_start":1379,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1382,"byte_start":1380,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1385,"byte_start":1383,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1387,"byte_start":1385,"kind":"word","origin":{"kind":"local","local":1769}},{"byte_end":1389,"byte_start":1387,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1393,"byte_start":1390,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1396,"byte_start":1394,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1409,"byte_start":1396,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1410,"byte_start":1409,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1416,"byte_start":1410,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1417,"byte_start":1416,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1418,"byte_start":1417,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1420,"byte_start":1418,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1421,"byte_start":1420,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1423,"byte_start":1421,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1426,"byte_start":1424,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1428,"byte_start":1426,"kind":"word","origin":{"kind":"local","local":1772}},{"byte_end":1430,"byte_start":1428,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1431,"byte_start":1430,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1434,"byte_start":1432,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":1437,"byte_start":1435,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1439,"byte_start":1437,"kind":"word","origin":{"kind":"local","local":1727}},{"byte_end":1441,"byte_start":1440,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1455,"byte_start":1442,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1456,"byte_start":1455,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1464,"byte_start":1456,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1465,"byte_start":1464,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1466,"byte_start":1465,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1479,"byte_start":1466,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1480,"byte_start":1479,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1488,"byte_start":1480,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1489,"byte_start":1488,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1490,"byte_start":1489,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1491,"byte_start":1490,"kind":"word","origin":{"kind":"local","local":1709}},{"byte_end":1492,"byte_start":1491,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1494,"byte_start":1493,"kind":"word","origin":{"kind":"local","local":1712}},{"byte_end":1495,"byte_start":1494,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1496,"byte_start":1495,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1498,"byte_start":1497,"kind":"word","origin":{"kind":"local","local":1721}},{"byte_end":1499,"byte_start":1498,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1501,"byte_start":1499,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1502,"byte_start":1501,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1507,"byte_start":1503,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":1510,"byte_start":1508,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":1513,"byte_start":1511,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1515,"byte_start":1513,"kind":"word","origin":{"kind":"local","local":1736}},{"byte_end":1517,"byte_start":1516,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1531,"byte_start":1518,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1532,"byte_start":1531,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1549,"byte_start":1532,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":1550,"byte_start":1549,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1551,"byte_start":1550,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1564,"byte_start":1551,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1565,"byte_start":1564,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1573,"byte_start":1565,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":1574,"byte_start":1573,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1575,"byte_start":1574,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1576,"byte_start":1575,"kind":"word","origin":{"kind":"local","local":1718}},{"byte_end":1577,"byte_start":1576,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1580,"byte_start":1578,"kind":"word","origin":{"kind":"local","local":1727}},{"byte_end":1581,"byte_start":1580,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1582,"byte_start":1581,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1585,"byte_start":1583,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1586,"byte_start":1585,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1588,"byte_start":1586,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1589,"byte_start":1588,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1594,"byte_start":1590,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":1597,"byte_start":1595,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":1600,"byte_start":1598,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1602,"byte_start":1600,"kind":"word","origin":{"kind":"local","local":1733}},{"byte_end":1604,"byte_start":1603,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1618,"byte_start":1605,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1619,"byte_start":1618,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1627,"byte_start":1619,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1628,"byte_start":1627,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1629,"byte_start":1628,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1630,"byte_start":1629,"kind":"word","origin":{"kind":"local","local":1715}},{"byte_end":1631,"byte_start":1630,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1634,"byte_start":1632,"kind":"word","origin":{"kind":"local","local":1736}},{"byte_end":1635,"byte_start":1634,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1637,"byte_start":1635,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1638,"byte_start":1637,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1643,"byte_start":1639,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":1646,"byte_start":1644,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":1649,"byte_start":1647,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1651,"byte_start":1649,"kind":"word","origin":{"kind":"local","local":1730}},{"byte_end":1653,"byte_start":1652,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1667,"byte_start":1654,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1668,"byte_start":1667,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1685,"byte_start":1668,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":1686,"byte_start":1685,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1687,"byte_start":1686,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1700,"byte_start":1687,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1701,"byte_start":1700,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1709,"byte_start":1701,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":1710,"byte_start":1709,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1711,"byte_start":1710,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1712,"byte_start":1711,"kind":"word","origin":{"kind":"local","local":1712}},{"byte_end":1713,"byte_start":1712,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1716,"byte_start":1714,"kind":"word","origin":{"kind":"local","local":1733}},{"byte_end":1717,"byte_start":1716,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1718,"byte_start":1717,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1721,"byte_start":1719,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1722,"byte_start":1721,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1724,"byte_start":1722,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1725,"byte_start":1724,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1730,"byte_start":1726,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":1733,"byte_start":1731,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":1736,"byte_start":1734,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1738,"byte_start":1736,"kind":"word","origin":{"kind":"local","local":1739}},{"byte_end":1740,"byte_start":1739,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1754,"byte_start":1741,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1755,"byte_start":1754,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1763,"byte_start":1755,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1764,"byte_start":1763,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1765,"byte_start":1764,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1778,"byte_start":1765,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1779,"byte_start":1778,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1787,"byte_start":1779,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1788,"byte_start":1787,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1789,"byte_start":1788,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1791,"byte_start":1789,"kind":"word","origin":{"kind":"local","local":1727}},{"byte_end":1792,"byte_start":1791,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1795,"byte_start":1793,"kind":"word","origin":{"kind":"local","local":1730}},{"byte_end":1796,"byte_start":1795,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1797,"byte_start":1796,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1799,"byte_start":1798,"kind":"word","origin":{"kind":"local","local":1724}},{"byte_end":1800,"byte_start":1799,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1802,"byte_start":1800,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1803,"byte_start":1802,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1808,"byte_start":1804,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":1811,"byte_start":1809,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":1814,"byte_start":1812,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1816,"byte_start":1814,"kind":"word","origin":{"kind":"local","local":1748}},{"byte_end":1818,"byte_start":1817,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1832,"byte_start":1819,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1833,"byte_start":1832,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1850,"byte_start":1833,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":1851,"byte_start":1850,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1852,"byte_start":1851,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1865,"byte_start":1852,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1866,"byte_start":1865,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1874,"byte_start":1866,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":1875,"byte_start":1874,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1876,"byte_start":1875,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1878,"byte_start":1876,"kind":"word","origin":{"kind":"local","local":1736}},{"byte_end":1879,"byte_start":1878,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1882,"byte_start":1880,"kind":"word","origin":{"kind":"local","local":1739}},{"byte_end":1883,"byte_start":1882,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1884,"byte_start":1883,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1886,"byte_start":1885,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1887,"byte_start":1886,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1889,"byte_start":1887,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1890,"byte_start":1889,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1895,"byte_start":1891,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":1898,"byte_start":1896,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":1901,"byte_start":1899,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1903,"byte_start":1901,"kind":"word","origin":{"kind":"local","local":1745}},{"byte_end":1905,"byte_start":1904,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1919,"byte_start":1906,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1920,"byte_start":1919,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1928,"byte_start":1920,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-add.h-add"}},{"byte_end":1929,"byte_start":1928,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1930,"byte_start":1929,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1932,"byte_start":1930,"kind":"word","origin":{"kind":"local","local":1733}},{"byte_end":1933,"byte_start":1932,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1936,"byte_start":1934,"kind":"word","origin":{"kind":"local","local":1748}},{"byte_end":1937,"byte_start":1936,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1939,"byte_start":1937,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1940,"byte_start":1939,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1945,"byte_start":1941,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":1948,"byte_start":1946,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":1951,"byte_start":1949,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1953,"byte_start":1951,"kind":"word","origin":{"kind":"local","local":1742}},{"byte_end":1955,"byte_start":1954,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1969,"byte_start":1956,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1970,"byte_start":1969,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1987,"byte_start":1970,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":1988,"byte_start":1987,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1989,"byte_start":1988,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2002,"byte_start":1989,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2003,"byte_start":2002,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2011,"byte_start":2003,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2012,"byte_start":2011,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2013,"byte_start":2012,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2015,"byte_start":2013,"kind":"word","origin":{"kind":"local","local":1730}},{"byte_end":2016,"byte_start":2015,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2019,"byte_start":2017,"kind":"word","origin":{"kind":"local","local":1745}},{"byte_end":2020,"byte_start":2019,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2021,"byte_start":2020,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2023,"byte_start":2022,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2024,"byte_start":2023,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2026,"byte_start":2024,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2027,"byte_start":2026,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2032,"byte_start":2028,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2035,"byte_start":2033,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":2038,"byte_start":2036,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2041,"byte_start":2038,"kind":"word","origin":{"kind":"local","local":1751}},{"byte_end":2043,"byte_start":2042,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2057,"byte_start":2044,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2058,"byte_start":2057,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2066,"byte_start":2058,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2067,"byte_start":2066,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2068,"byte_start":2067,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2081,"byte_start":2068,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2082,"byte_start":2081,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2098,"byte_start":2082,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":2099,"byte_start":2098,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2100,"byte_start":2099,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2102,"byte_start":2100,"kind":"word","origin":{"kind":"local","local":1742}},{"byte_end":2103,"byte_start":2102,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2105,"byte_start":2104,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2106,"byte_start":2105,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2107,"byte_start":2106,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2110,"byte_start":2108,"kind":"word","origin":{"kind":"local","local":1745}},{"byte_end":2111,"byte_start":2110,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2113,"byte_start":2111,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2114,"byte_start":2113,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2119,"byte_start":2115,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2122,"byte_start":2120,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":2125,"byte_start":2123,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2128,"byte_start":2125,"kind":"word","origin":{"kind":"local","local":1754}},{"byte_end":2130,"byte_start":2129,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2144,"byte_start":2131,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2145,"byte_start":2144,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2153,"byte_start":2145,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":2154,"byte_start":2153,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2155,"byte_start":2154,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2157,"byte_start":2155,"kind":"word","origin":{"kind":"local","local":1745}},{"byte_end":2158,"byte_start":2157,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2161,"byte_start":2159,"kind":"word","origin":{"kind":"local","local":1748}},{"byte_end":2162,"byte_start":2161,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2164,"byte_start":2162,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2165,"byte_start":2164,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2170,"byte_start":2166,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2173,"byte_start":2171,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":2176,"byte_start":2174,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2179,"byte_start":2176,"kind":"word","origin":{"kind":"local","local":1757}},{"byte_end":2181,"byte_start":2180,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2195,"byte_start":2182,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2196,"byte_start":2195,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2204,"byte_start":2196,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2205,"byte_start":2204,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2206,"byte_start":2205,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2219,"byte_start":2206,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2220,"byte_start":2219,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2236,"byte_start":2220,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":2237,"byte_start":2236,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2238,"byte_start":2237,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2240,"byte_start":2238,"kind":"word","origin":{"kind":"local","local":1748}},{"byte_end":2241,"byte_start":2240,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2243,"byte_start":2242,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2244,"byte_start":2243,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2245,"byte_start":2244,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2248,"byte_start":2246,"kind":"word","origin":{"kind":"local","local":1739}},{"byte_end":2249,"byte_start":2248,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2251,"byte_start":2249,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2252,"byte_start":2251,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2257,"byte_start":2253,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2260,"byte_start":2258,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":2263,"byte_start":2261,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2266,"byte_start":2263,"kind":"word","origin":{"kind":"local","local":1760}},{"byte_end":2268,"byte_start":2267,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2282,"byte_start":2269,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2283,"byte_start":2282,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2291,"byte_start":2283,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":2292,"byte_start":2291,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2293,"byte_start":2292,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2306,"byte_start":2293,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2307,"byte_start":2306,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2315,"byte_start":2307,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":2316,"byte_start":2315,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2317,"byte_start":2316,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2319,"byte_start":2317,"kind":"word","origin":{"kind":"local","local":1739}},{"byte_end":2320,"byte_start":2319,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2324,"byte_start":2321,"kind":"word","origin":{"kind":"local","local":1751}},{"byte_end":2325,"byte_start":2324,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2326,"byte_start":2325,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2328,"byte_start":2327,"kind":"word","origin":{"kind":"local","local":1724}},{"byte_end":2329,"byte_start":2328,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2331,"byte_start":2329,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2332,"byte_start":2331,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2337,"byte_start":2333,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2340,"byte_start":2338,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":2343,"byte_start":2341,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2345,"byte_start":2343,"kind":"word","origin":{"kind":"local","local":1766}},{"byte_end":2347,"byte_start":2346,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2361,"byte_start":2348,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2362,"byte_start":2361,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2370,"byte_start":2362,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2371,"byte_start":2370,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2372,"byte_start":2371,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2385,"byte_start":2372,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2386,"byte_start":2385,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2402,"byte_start":2386,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":2403,"byte_start":2402,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2404,"byte_start":2403,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2407,"byte_start":2404,"kind":"word","origin":{"kind":"local","local":1751}},{"byte_end":2408,"byte_start":2407,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2411,"byte_start":2409,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2412,"byte_start":2411,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2413,"byte_start":2412,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2417,"byte_start":2414,"kind":"word","origin":{"kind":"local","local":1754}},{"byte_end":2418,"byte_start":2417,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2420,"byte_start":2418,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2421,"byte_start":2420,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2426,"byte_start":2422,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2429,"byte_start":2427,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":2432,"byte_start":2430,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2434,"byte_start":2432,"kind":"word","origin":{"kind":"local","local":1769}},{"byte_end":2436,"byte_start":2435,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2450,"byte_start":2437,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2451,"byte_start":2450,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2459,"byte_start":2451,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":2460,"byte_start":2459,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2461,"byte_start":2460,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2464,"byte_start":2461,"kind":"word","origin":{"kind":"local","local":1754}},{"byte_end":2465,"byte_start":2464,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2469,"byte_start":2466,"kind":"word","origin":{"kind":"local","local":1757}},{"byte_end":2470,"byte_start":2469,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2472,"byte_start":2470,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2473,"byte_start":2472,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2478,"byte_start":2474,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2481,"byte_start":2479,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":2484,"byte_start":2482,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2486,"byte_start":2484,"kind":"word","origin":{"kind":"local","local":1772}},{"byte_end":2488,"byte_start":2487,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2502,"byte_start":2489,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2503,"byte_start":2502,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2511,"byte_start":2503,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":2512,"byte_start":2511,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2513,"byte_start":2512,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2526,"byte_start":2513,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2527,"byte_start":2526,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2543,"byte_start":2527,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":2544,"byte_start":2543,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2545,"byte_start":2544,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2548,"byte_start":2545,"kind":"word","origin":{"kind":"local","local":1757}},{"byte_end":2549,"byte_start":2548,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2552,"byte_start":2550,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2553,"byte_start":2552,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2554,"byte_start":2553,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2558,"byte_start":2555,"kind":"word","origin":{"kind":"local","local":1760}},{"byte_end":2559,"byte_start":2558,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2561,"byte_start":2559,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2562,"byte_start":2561,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2567,"byte_start":2563,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2570,"byte_start":2568,"kind":"word","origin":{"entry":"if","form":"if-l","kind":"form","package":"lexlean.core"}},{"byte_end":2573,"byte_start":2571,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2575,"byte_start":2573,"kind":"word","origin":{"kind":"local","local":1763}},{"byte_end":2577,"byte_start":2576,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2591,"byte_start":2578,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2592,"byte_start":2591,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2600,"byte_start":2592,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":2601,"byte_start":2600,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2602,"byte_start":2601,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2615,"byte_start":2602,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":2616,"byte_start":2615,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2624,"byte_start":2616,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-sub.h-sub"}},{"byte_end":2625,"byte_start":2624,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2626,"byte_start":2625,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2629,"byte_start":2626,"kind":"word","origin":{"kind":"local","local":1760}},{"byte_end":2630,"byte_start":2629,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2633,"byte_start":2631,"kind":"word","origin":{"kind":"local","local":1766}},{"byte_end":2634,"byte_start":2633,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2635,"byte_start":2634,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2637,"byte_start":2636,"kind":"word","origin":{"kind":"local","local":1721}},{"byte_end":2638,"byte_start":2637,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2640,"byte_start":2638,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2641,"byte_start":2640,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2646,"byte_start":2642,"kind":"word","origin":{"entry":"then","form":"then-l","kind":"form","package":"lexlean.core"}},{"byte_end":2649,"byte_start":2647,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2651,"byte_start":2649,"kind":"word","origin":{"kind":"local","local":1763}},{"byte_end":2653,"byte_start":2652,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2655,"byte_start":2654,"kind":"word","origin":{"kind":"local","local":1709}},{"byte_end":2657,"byte_start":2655,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2661,"byte_start":2658,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":2664,"byte_start":2662,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2666,"byte_start":2664,"kind":"word","origin":{"kind":"local","local":1766}},{"byte_end":2668,"byte_start":2667,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2670,"byte_start":2669,"kind":"word","origin":{"kind":"local","local":1712}},{"byte_end":2672,"byte_start":2670,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2676,"byte_start":2673,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":2679,"byte_start":2677,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2681,"byte_start":2679,"kind":"word","origin":{"kind":"local","local":1769}},{"byte_end":2683,"byte_start":2682,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2685,"byte_start":2684,"kind":"word","origin":{"kind":"local","local":1715}},{"byte_end":2687,"byte_start":2685,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2691,"byte_start":2688,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":2694,"byte_start":2692,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2696,"byte_start":2694,"kind":"word","origin":{"kind":"local","local":1772}},{"byte_end":2698,"byte_start":2697,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2700,"byte_start":2699,"kind":"word","origin":{"kind":"local","local":1718}},{"byte_end":2702,"byte_start":2700,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2703,"byte_start":2702,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2708,"byte_start":2704,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":2709,"byte_start":2708,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2716,"byte_start":2709,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":2717,"byte_start":2716,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2724,"byte_start":2718,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":2725,"byte_start":2724,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2730,"byte_start":2725,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":2731,"byte_start":2730,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2738,"byte_start":2732,"kind":"word","origin":{"entry":"assume","form":"assume-s","kind":"form","package":"lexlean.core"}},{"byte_end":2741,"byte_start":2739,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2743,"byte_start":2741,"kind":"word","origin":{"kind":"local","local":2400}},{"byte_end":2745,"byte_start":2743,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2746,"byte_start":2745,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2749,"byte_start":2747,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2751,"byte_start":2749,"kind":"word","origin":{"kind":"local","local":2399}},{"byte_end":2753,"byte_start":2751,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2754,"byte_start":2753,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2757,"byte_start":2755,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2759,"byte_start":2757,"kind":"word","origin":{"kind":"local","local":2398}},{"byte_end":2761,"byte_start":2759,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2762,"byte_start":2761,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2765,"byte_start":2763,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2767,"byte_start":2765,"kind":"word","origin":{"kind":"local","local":2397}},{"byte_end":2769,"byte_start":2767,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2770,"byte_start":2769,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2773,"byte_start":2771,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2775,"byte_start":2773,"kind":"word","origin":{"kind":"local","local":2396}},{"byte_end":2777,"byte_start":2775,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2778,"byte_start":2777,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2781,"byte_start":2779,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2783,"byte_start":2781,"kind":"word","origin":{"kind":"local","local":2395}},{"byte_end":2785,"byte_start":2783,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2786,"byte_start":2785,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2789,"byte_start":2787,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2791,"byte_start":2789,"kind":"word","origin":{"kind":"local","local":2394}},{"byte_end":2793,"byte_start":2791,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2794,"byte_start":2793,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2797,"byte_start":2795,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2799,"byte_start":2797,"kind":"word","origin":{"kind":"local","local":2393}},{"byte_end":2801,"byte_start":2799,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2802,"byte_start":2801,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2805,"byte_start":2803,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2807,"byte_start":2805,"kind":"word","origin":{"kind":"local","local":2392}},{"byte_end":2809,"byte_start":2807,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2810,"byte_start":2809,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2813,"byte_start":2811,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2815,"byte_start":2813,"kind":"word","origin":{"kind":"local","local":2391}},{"byte_end":2817,"byte_start":2815,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2818,"byte_start":2817,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2821,"byte_start":2819,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2823,"byte_start":2821,"kind":"word","origin":{"kind":"local","local":2390}},{"byte_end":2825,"byte_start":2823,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2826,"byte_start":2825,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2829,"byte_start":2827,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2831,"byte_start":2829,"kind":"word","origin":{"kind":"local","local":2389}},{"byte_end":2833,"byte_start":2831,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2834,"byte_start":2833,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2837,"byte_start":2835,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2839,"byte_start":2837,"kind":"word","origin":{"kind":"local","local":2388}},{"byte_end":2841,"byte_start":2839,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2842,"byte_start":2841,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2845,"byte_start":2843,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2847,"byte_start":2845,"kind":"word","origin":{"kind":"local","local":2387}},{"byte_end":2849,"byte_start":2847,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2850,"byte_start":2849,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2853,"byte_start":2851,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2855,"byte_start":2853,"kind":"word","origin":{"kind":"local","local":2386}},{"byte_end":2857,"byte_start":2855,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2858,"byte_start":2857,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2861,"byte_start":2859,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2863,"byte_start":2861,"kind":"word","origin":{"kind":"local","local":2385}},{"byte_end":2865,"byte_start":2863,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2866,"byte_start":2865,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2869,"byte_start":2867,"kind":"word","origin":{"entry":"we","form":"we-s","kind":"form","package":"lexlean.core"}},{"byte_end":2875,"byte_start":2870,"kind":"word","origin":{"entry":"first","form":"first-l","kind":"form","package":"lexlean.core"}},{"byte_end":2885,"byte_start":2876,"kind":"word","origin":{"entry":"establish","form":"establish-l","kind":"form","package":"lexlean.core"}},{"byte_end":2888,"byte_start":2886,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2891,"byte_start":2888,"kind":"word","origin":{"kind":"local","local":1751}},{"byte_end":2893,"byte_start":2892,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":2896,"byte_start":2894,"kind":"word","origin":{"kind":"local","local":1730}},{"byte_end":2898,"byte_start":2896,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2899,"byte_start":2898,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2907,"byte_start":2900,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":2911,"byte_start":2908,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":2916,"byte_start":2912,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":2922,"byte_start":2917,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":2925,"byte_start":2923,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2936,"byte_start":2925,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":2939,"byte_start":2937,"kind":"word","origin":{"kind":"local","local":2392}},{"byte_end":2941,"byte_start":2939,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2942,"byte_start":2941,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":2945,"byte_start":2943,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2956,"byte_start":2945,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":2959,"byte_start":2957,"kind":"word","origin":{"kind":"local","local":2393}},{"byte_end":2961,"byte_start":2959,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2962,"byte_start":2961,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2966,"byte_start":2963,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":2971,"byte_start":2967,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":2979,"byte_start":2972,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":2984,"byte_start":2980,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":2987,"byte_start":2985,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2994,"byte_start":2987,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":2995,"byte_start":2994,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3010,"byte_start":2995,"kind":"word","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":3011,"byte_start":3010,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3012,"byte_start":3011,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":3014,"byte_start":3012,"kind":"word","origin":{"kind":"local","local":1730}},{"byte_end":3015,"byte_start":3014,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3018,"byte_start":3016,"kind":"word","origin":{"kind":"local","local":1745}},{"byte_end":3019,"byte_start":3018,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3021,"byte_start":3020,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":3022,"byte_start":3021,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":3024,"byte_start":3022,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3025,"byte_start":3024,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3028,"byte_start":3026,"kind":"word","origin":{"entry":"we","form":"we-s","kind":"form","package":"lexlean.core"}},{"byte_end":3034,"byte_start":3029,"kind":"word","origin":{"entry":"first","form":"first-l","kind":"form","package":"lexlean.core"}},{"byte_end":3044,"byte_start":3035,"kind":"word","origin":{"entry":"establish","form":"establish-l","kind":"form","package":"lexlean.core"}},{"byte_end":3047,"byte_start":3045,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3050,"byte_start":3047,"kind":"word","origin":{"kind":"local","local":1754}},{"byte_end":3052,"byte_start":3051,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":3055,"byte_start":3053,"kind":"word","origin":{"kind":"local","local":1733}},{"byte_end":3057,"byte_start":3055,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3058,"byte_start":3057,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3066,"byte_start":3059,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":3070,"byte_start":3067,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":3075,"byte_start":3071,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3081,"byte_start":3076,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":3084,"byte_start":3082,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3095,"byte_start":3084,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3098,"byte_start":3096,"kind":"word","origin":{"kind":"local","local":2391}},{"byte_end":3100,"byte_start":3098,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3101,"byte_start":3100,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3104,"byte_start":3102,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3115,"byte_start":3104,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3118,"byte_start":3116,"kind":"word","origin":{"kind":"local","local":2394}},{"byte_end":3120,"byte_start":3118,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3121,"byte_start":3120,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3125,"byte_start":3122,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":3130,"byte_start":3126,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3138,"byte_start":3131,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":3143,"byte_start":3139,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":3146,"byte_start":3144,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3153,"byte_start":3146,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":3154,"byte_start":3153,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3182,"byte_start":3154,"kind":"word","origin":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":3183,"byte_start":3182,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3184,"byte_start":3183,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":3186,"byte_start":3184,"kind":"word","origin":{"kind":"local","local":1733}},{"byte_end":3187,"byte_start":3186,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3190,"byte_start":3188,"kind":"word","origin":{"kind":"local","local":1748}},{"byte_end":3191,"byte_start":3190,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":3193,"byte_start":3191,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3194,"byte_start":3193,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3197,"byte_start":3195,"kind":"word","origin":{"entry":"we","form":"we-s","kind":"form","package":"lexlean.core"}},{"byte_end":3203,"byte_start":3198,"kind":"word","origin":{"entry":"first","form":"first-l","kind":"form","package":"lexlean.core"}},{"byte_end":3213,"byte_start":3204,"kind":"word","origin":{"entry":"establish","form":"establish-l","kind":"form","package":"lexlean.core"}},{"byte_end":3216,"byte_start":3214,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3219,"byte_start":3216,"kind":"word","origin":{"kind":"local","local":1757}},{"byte_end":3221,"byte_start":3220,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":3224,"byte_start":3222,"kind":"word","origin":{"kind":"local","local":1736}},{"byte_end":3226,"byte_start":3224,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3227,"byte_start":3226,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3235,"byte_start":3228,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":3239,"byte_start":3236,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":3244,"byte_start":3240,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3250,"byte_start":3245,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":3253,"byte_start":3251,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3264,"byte_start":3253,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3267,"byte_start":3265,"kind":"word","origin":{"kind":"local","local":2390}},{"byte_end":3269,"byte_start":3267,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3270,"byte_start":3269,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3273,"byte_start":3271,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3284,"byte_start":3273,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3287,"byte_start":3285,"kind":"word","origin":{"kind":"local","local":2395}},{"byte_end":3289,"byte_start":3287,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3290,"byte_start":3289,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3294,"byte_start":3291,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":3299,"byte_start":3295,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3307,"byte_start":3300,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":3312,"byte_start":3308,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":3315,"byte_start":3313,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3322,"byte_start":3315,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":3323,"byte_start":3322,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3338,"byte_start":3323,"kind":"word","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":3339,"byte_start":3338,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3340,"byte_start":3339,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":3342,"byte_start":3340,"kind":"word","origin":{"kind":"local","local":1736}},{"byte_end":3343,"byte_start":3342,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3346,"byte_start":3344,"kind":"word","origin":{"kind":"local","local":1739}},{"byte_end":3347,"byte_start":3346,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3349,"byte_start":3348,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":3350,"byte_start":3349,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":3352,"byte_start":3350,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3353,"byte_start":3352,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3356,"byte_start":3354,"kind":"word","origin":{"entry":"we","form":"we-s","kind":"form","package":"lexlean.core"}},{"byte_end":3362,"byte_start":3357,"kind":"word","origin":{"entry":"first","form":"first-l","kind":"form","package":"lexlean.core"}},{"byte_end":3372,"byte_start":3363,"kind":"word","origin":{"entry":"establish","form":"establish-l","kind":"form","package":"lexlean.core"}},{"byte_end":3375,"byte_start":3373,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3378,"byte_start":3375,"kind":"word","origin":{"kind":"local","local":1760}},{"byte_end":3380,"byte_start":3379,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":3383,"byte_start":3381,"kind":"word","origin":{"kind":"local","local":1727}},{"byte_end":3385,"byte_start":3383,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3386,"byte_start":3385,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3394,"byte_start":3387,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":3398,"byte_start":3395,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":3403,"byte_start":3399,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3409,"byte_start":3404,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":3412,"byte_start":3410,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3423,"byte_start":3412,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3426,"byte_start":3424,"kind":"word","origin":{"kind":"local","local":2389}},{"byte_end":3428,"byte_start":3426,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3429,"byte_start":3428,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3432,"byte_start":3430,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3443,"byte_start":3432,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3447,"byte_start":3444,"kind":"word","origin":{"kind":"local","local":4459}},{"byte_end":3449,"byte_start":3447,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3450,"byte_start":3449,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3453,"byte_start":3451,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3464,"byte_start":3453,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3467,"byte_start":3465,"kind":"word","origin":{"kind":"local","local":2396}},{"byte_end":3469,"byte_start":3467,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3470,"byte_start":3469,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3474,"byte_start":3471,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":3479,"byte_start":3475,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3487,"byte_start":3480,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":3492,"byte_start":3488,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":3495,"byte_start":3493,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3502,"byte_start":3495,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":3503,"byte_start":3502,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3535,"byte_start":3503,"kind":"word","origin":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":3536,"byte_start":3535,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3537,"byte_start":3536,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":3539,"byte_start":3537,"kind":"word","origin":{"kind":"local","local":1727}},{"byte_end":3540,"byte_start":3539,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3543,"byte_start":3541,"kind":"word","origin":{"kind":"local","local":1730}},{"byte_end":3544,"byte_start":3543,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3546,"byte_start":3545,"kind":"word","origin":{"kind":"local","local":1724}},{"byte_end":3547,"byte_start":3546,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":3549,"byte_start":3547,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3550,"byte_start":3549,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3553,"byte_start":3551,"kind":"word","origin":{"entry":"we","form":"we-s","kind":"form","package":"lexlean.core"}},{"byte_end":3559,"byte_start":3554,"kind":"word","origin":{"entry":"first","form":"first-l","kind":"form","package":"lexlean.core"}},{"byte_end":3569,"byte_start":3560,"kind":"word","origin":{"entry":"establish","form":"establish-l","kind":"form","package":"lexlean.core"}},{"byte_end":3572,"byte_start":3570,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3574,"byte_start":3572,"kind":"word","origin":{"kind":"local","local":1766}},{"byte_end":3576,"byte_start":3575,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":3578,"byte_start":3577,"kind":"word","origin":{"kind":"local","local":1712}},{"byte_end":3580,"byte_start":3578,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3581,"byte_start":3580,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3589,"byte_start":3582,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":3593,"byte_start":3590,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":3598,"byte_start":3594,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3604,"byte_start":3599,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":3607,"byte_start":3605,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3618,"byte_start":3607,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3621,"byte_start":3619,"kind":"word","origin":{"kind":"local","local":2388}},{"byte_end":3623,"byte_start":3621,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3624,"byte_start":3623,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3627,"byte_start":3625,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3638,"byte_start":3627,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3642,"byte_start":3639,"kind":"word","origin":{"kind":"local","local":4459}},{"byte_end":3644,"byte_start":3642,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3645,"byte_start":3644,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3648,"byte_start":3646,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3659,"byte_start":3648,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3663,"byte_start":3660,"kind":"word","origin":{"kind":"local","local":4465}},{"byte_end":3665,"byte_start":3663,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3666,"byte_start":3665,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3669,"byte_start":3667,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3680,"byte_start":3669,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3683,"byte_start":3681,"kind":"word","origin":{"kind":"local","local":2397}},{"byte_end":3685,"byte_start":3683,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3686,"byte_start":3685,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3690,"byte_start":3687,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":3695,"byte_start":3691,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3703,"byte_start":3696,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":3708,"byte_start":3704,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":3711,"byte_start":3709,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3718,"byte_start":3711,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":3719,"byte_start":3718,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3734,"byte_start":3719,"kind":"word","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":3735,"byte_start":3734,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3736,"byte_start":3735,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":3737,"byte_start":3736,"kind":"word","origin":{"kind":"local","local":1712}},{"byte_end":3738,"byte_start":3737,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3741,"byte_start":3739,"kind":"word","origin":{"kind":"local","local":1733}},{"byte_end":3742,"byte_start":3741,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3745,"byte_start":3743,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":3746,"byte_start":3745,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":3748,"byte_start":3746,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3749,"byte_start":3748,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3752,"byte_start":3750,"kind":"word","origin":{"entry":"we","form":"we-s","kind":"form","package":"lexlean.core"}},{"byte_end":3758,"byte_start":3753,"kind":"word","origin":{"entry":"first","form":"first-l","kind":"form","package":"lexlean.core"}},{"byte_end":3768,"byte_start":3759,"kind":"word","origin":{"entry":"establish","form":"establish-l","kind":"form","package":"lexlean.core"}},{"byte_end":3771,"byte_start":3769,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3773,"byte_start":3771,"kind":"word","origin":{"kind":"local","local":1769}},{"byte_end":3775,"byte_start":3774,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":3777,"byte_start":3776,"kind":"word","origin":{"kind":"local","local":1715}},{"byte_end":3779,"byte_start":3777,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3780,"byte_start":3779,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3788,"byte_start":3781,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":3792,"byte_start":3789,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":3797,"byte_start":3793,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3803,"byte_start":3798,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":3806,"byte_start":3804,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3817,"byte_start":3806,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3820,"byte_start":3818,"kind":"word","origin":{"kind":"local","local":2387}},{"byte_end":3822,"byte_start":3820,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3823,"byte_start":3822,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3826,"byte_start":3824,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3837,"byte_start":3826,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3841,"byte_start":3838,"kind":"word","origin":{"kind":"local","local":4465}},{"byte_end":3843,"byte_start":3841,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3844,"byte_start":3843,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3847,"byte_start":3845,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3858,"byte_start":3847,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3862,"byte_start":3859,"kind":"word","origin":{"kind":"local","local":4472}},{"byte_end":3864,"byte_start":3862,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3865,"byte_start":3864,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":3868,"byte_start":3866,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3879,"byte_start":3868,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":3882,"byte_start":3880,"kind":"word","origin":{"kind":"local","local":2398}},{"byte_end":3884,"byte_start":3882,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3885,"byte_start":3884,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3889,"byte_start":3886,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":3894,"byte_start":3890,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":3902,"byte_start":3895,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":3907,"byte_start":3903,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":3910,"byte_start":3908,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3917,"byte_start":3910,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":3918,"byte_start":3917,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3946,"byte_start":3918,"kind":"word","origin":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":3947,"byte_start":3946,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3948,"byte_start":3947,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":3949,"byte_start":3948,"kind":"word","origin":{"kind":"local","local":1715}},{"byte_end":3950,"byte_start":3949,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":3953,"byte_start":3951,"kind":"word","origin":{"kind":"local","local":1736}},{"byte_end":3954,"byte_start":3953,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":3956,"byte_start":3954,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3957,"byte_start":3956,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3960,"byte_start":3958,"kind":"word","origin":{"entry":"we","form":"we-s","kind":"form","package":"lexlean.core"}},{"byte_end":3966,"byte_start":3961,"kind":"word","origin":{"entry":"first","form":"first-l","kind":"form","package":"lexlean.core"}},{"byte_end":3976,"byte_start":3967,"kind":"word","origin":{"entry":"establish","form":"establish-l","kind":"form","package":"lexlean.core"}},{"byte_end":3979,"byte_start":3977,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":3981,"byte_start":3979,"kind":"word","origin":{"kind":"local","local":1772}},{"byte_end":3983,"byte_start":3982,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":3985,"byte_start":3984,"kind":"word","origin":{"kind":"local","local":1718}},{"byte_end":3987,"byte_start":3985,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":3988,"byte_start":3987,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":3996,"byte_start":3989,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":4000,"byte_start":3997,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":4005,"byte_start":4001,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":4011,"byte_start":4006,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":4014,"byte_start":4012,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4025,"byte_start":4014,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":4028,"byte_start":4026,"kind":"word","origin":{"kind":"local","local":2386}},{"byte_end":4030,"byte_start":4028,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4031,"byte_start":4030,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":4034,"byte_start":4032,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4045,"byte_start":4034,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":4049,"byte_start":4046,"kind":"word","origin":{"kind":"local","local":4472}},{"byte_end":4051,"byte_start":4049,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4052,"byte_start":4051,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":4055,"byte_start":4053,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4066,"byte_start":4055,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":4070,"byte_start":4067,"kind":"word","origin":{"kind":"local","local":4478}},{"byte_end":4072,"byte_start":4070,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4073,"byte_start":4072,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":4076,"byte_start":4074,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4087,"byte_start":4076,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":4090,"byte_start":4088,"kind":"word","origin":{"kind":"local","local":2399}},{"byte_end":4092,"byte_start":4090,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4093,"byte_start":4092,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4097,"byte_start":4094,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":4102,"byte_start":4098,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":4110,"byte_start":4103,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":4115,"byte_start":4111,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":4118,"byte_start":4116,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4125,"byte_start":4118,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":4126,"byte_start":4125,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4141,"byte_start":4126,"kind":"word","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":4142,"byte_start":4141,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4143,"byte_start":4142,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":4144,"byte_start":4143,"kind":"word","origin":{"kind":"local","local":1718}},{"byte_end":4145,"byte_start":4144,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":4148,"byte_start":4146,"kind":"word","origin":{"kind":"local","local":1727}},{"byte_end":4149,"byte_start":4148,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":4152,"byte_start":4150,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":4153,"byte_start":4152,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":4155,"byte_start":4153,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4156,"byte_start":4155,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4159,"byte_start":4157,"kind":"word","origin":{"entry":"we","form":"we-s","kind":"form","package":"lexlean.core"}},{"byte_end":4165,"byte_start":4160,"kind":"word","origin":{"entry":"first","form":"first-l","kind":"form","package":"lexlean.core"}},{"byte_end":4175,"byte_start":4166,"kind":"word","origin":{"entry":"establish","form":"establish-l","kind":"form","package":"lexlean.core"}},{"byte_end":4178,"byte_start":4176,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4180,"byte_start":4178,"kind":"word","origin":{"kind":"local","local":1763}},{"byte_end":4182,"byte_start":4181,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":4184,"byte_start":4183,"kind":"word","origin":{"kind":"local","local":1709}},{"byte_end":4186,"byte_start":4184,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4187,"byte_start":4186,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4195,"byte_start":4188,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":4199,"byte_start":4196,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":4204,"byte_start":4200,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":4210,"byte_start":4205,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":4213,"byte_start":4211,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4224,"byte_start":4213,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":4227,"byte_start":4225,"kind":"word","origin":{"kind":"local","local":2385}},{"byte_end":4229,"byte_start":4227,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4230,"byte_start":4229,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":4233,"byte_start":4231,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4244,"byte_start":4233,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":4248,"byte_start":4245,"kind":"word","origin":{"kind":"local","local":4478}},{"byte_end":4250,"byte_start":4248,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4251,"byte_start":4250,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":4254,"byte_start":4252,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4265,"byte_start":4254,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":4268,"byte_start":4266,"kind":"word","origin":{"kind":"local","local":4485}},{"byte_end":4270,"byte_start":4268,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4271,"byte_start":4270,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":4274,"byte_start":4272,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4285,"byte_start":4274,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":4288,"byte_start":4286,"kind":"word","origin":{"kind":"local","local":2400}},{"byte_end":4290,"byte_start":4288,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4291,"byte_start":4290,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4295,"byte_start":4292,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":4300,"byte_start":4296,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":4308,"byte_start":4301,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":4313,"byte_start":4309,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":4316,"byte_start":4314,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4323,"byte_start":4316,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":4324,"byte_start":4323,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4356,"byte_start":4324,"kind":"word","origin":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":4357,"byte_start":4356,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4358,"byte_start":4357,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":4359,"byte_start":4358,"kind":"word","origin":{"kind":"local","local":1709}},{"byte_end":4360,"byte_start":4359,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":4362,"byte_start":4361,"kind":"word","origin":{"kind":"local","local":1712}},{"byte_end":4363,"byte_start":4362,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":4365,"byte_start":4364,"kind":"word","origin":{"kind":"local","local":1721}},{"byte_end":4366,"byte_start":4365,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":4368,"byte_start":4366,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4369,"byte_start":4368,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4376,"byte_start":4370,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":4379,"byte_start":4377,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4380,"byte_start":4379,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":4382,"byte_start":4380,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4383,"byte_start":4382,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":4390,"byte_start":4384,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":4391,"byte_start":4390,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4396,"byte_start":4391,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4397,"byte_start":4396,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4404,"byte_start":4398,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":4407,"byte_start":4405,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4408,"byte_start":4407,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":4410,"byte_start":4408,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4411,"byte_start":4410,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":4418,"byte_start":4412,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":4419,"byte_start":4418,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4424,"byte_start":4419,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4425,"byte_start":4424,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4432,"byte_start":4426,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":4435,"byte_start":4433,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4436,"byte_start":4435,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":4438,"byte_start":4436,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4439,"byte_start":4438,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":4446,"byte_start":4440,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":4447,"byte_start":4446,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4452,"byte_start":4447,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4453,"byte_start":4452,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4457,"byte_start":4454,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":4462,"byte_start":4458,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":4470,"byte_start":4463,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":4475,"byte_start":4471,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":4478,"byte_start":4476,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4480,"byte_start":4478,"kind":"word","origin":{"kind":"local","local":4504}},{"byte_end":4482,"byte_start":4480,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4483,"byte_start":4482,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4488,"byte_start":4484,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":4489,"byte_start":4488,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4494,"byte_start":4489,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4495,"byte_start":4494,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4502,"byte_start":4496,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":4505,"byte_start":4503,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4506,"byte_start":4505,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":4508,"byte_start":4506,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4509,"byte_start":4508,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":4516,"byte_start":4510,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":4517,"byte_start":4516,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4522,"byte_start":4517,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4523,"byte_start":4522,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4527,"byte_start":4524,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":4532,"byte_start":4528,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":4540,"byte_start":4533,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":4545,"byte_start":4541,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":4548,"byte_start":4546,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4550,"byte_start":4548,"kind":"word","origin":{"kind":"local","local":4485}},{"byte_end":4552,"byte_start":4550,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4553,"byte_start":4552,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4558,"byte_start":4554,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":4559,"byte_start":4558,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4564,"byte_start":4559,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4565,"byte_start":4564,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4570,"byte_start":4566,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":4571,"byte_start":4570,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4576,"byte_start":4571,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4577,"byte_start":4576,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4584,"byte_start":4578,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":4587,"byte_start":4585,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4588,"byte_start":4587,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":4590,"byte_start":4588,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4591,"byte_start":4590,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":4598,"byte_start":4592,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":4599,"byte_start":4598,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4604,"byte_start":4599,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4605,"byte_start":4604,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4609,"byte_start":4606,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":4614,"byte_start":4610,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":4622,"byte_start":4615,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":4627,"byte_start":4623,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":4630,"byte_start":4628,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4632,"byte_start":4630,"kind":"word","origin":{"kind":"local","local":4491}},{"byte_end":4634,"byte_start":4632,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4635,"byte_start":4634,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4640,"byte_start":4636,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":4641,"byte_start":4640,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4646,"byte_start":4641,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4647,"byte_start":4646,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4652,"byte_start":4648,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":4653,"byte_start":4652,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4658,"byte_start":4653,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4659,"byte_start":4658,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4666,"byte_start":4660,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":4669,"byte_start":4667,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4670,"byte_start":4669,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":4672,"byte_start":4670,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4673,"byte_start":4672,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":4680,"byte_start":4674,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":4681,"byte_start":4680,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4686,"byte_start":4681,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4687,"byte_start":4686,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4691,"byte_start":4688,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":4696,"byte_start":4692,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":4704,"byte_start":4697,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":4709,"byte_start":4705,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":4712,"byte_start":4710,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4714,"byte_start":4712,"kind":"word","origin":{"kind":"local","local":4498}},{"byte_end":4716,"byte_start":4714,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4717,"byte_start":4716,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":4722,"byte_start":4718,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":4723,"byte_start":4722,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4728,"byte_start":4723,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":4729,"byte_start":4728,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4734,"byte_start":4730,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":4735,"byte_start":4734,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4740,"byte_start":4735,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":4741,"byte_start":4740,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":4746,"byte_start":4742,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":4747,"byte_start":4746,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":4755,"byte_start":4747,"kind":"word","origin":{"kind":"renderer-token","token":"document"}},{"byte_end":4756,"byte_start":4755,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}}],"lean":[{"byte_end":6,"byte_start":0,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":13,"byte_start":7,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":20,"byte_start":14,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":43,"byte_start":21,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":50,"byte_start":44,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":57,"byte_start":51,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":70,"byte_start":58,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":77,"byte_start":71,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":84,"byte_start":78,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":112,"byte_start":85,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":119,"byte_start":113,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":126,"byte_start":120,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":150,"byte_start":127,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":161,"byte_start":151,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":174,"byte_start":162,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":180,"byte_start":175,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":190,"byte_start":181,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":212,"byte_start":191,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":220,"byte_start":214,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":228,"byte_start":221,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":243,"byte_start":229,"kind":"identifier","origin":{"component":"mixing-inverse","kind":"reference","module":"Mixing"}},{"byte_end":245,"byte_start":244,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":249,"byte_start":245,"kind":"identifier","origin":{"kind":"local","local":1709}},{"byte_end":251,"byte_start":250,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":258,"byte_start":252,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":261,"byte_start":259,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":262,"byte_start":261,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":264,"byte_start":263,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":268,"byte_start":264,"kind":"identifier","origin":{"kind":"local","local":1712}},{"byte_end":270,"byte_start":269,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":277,"byte_start":271,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":280,"byte_start":278,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":281,"byte_start":280,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":283,"byte_start":282,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":287,"byte_start":283,"kind":"identifier","origin":{"kind":"local","local":1715}},{"byte_end":289,"byte_start":288,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":296,"byte_start":290,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":299,"byte_start":297,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":300,"byte_start":299,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":302,"byte_start":301,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":306,"byte_start":302,"kind":"identifier","origin":{"kind":"local","local":1718}},{"byte_end":308,"byte_start":307,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":315,"byte_start":309,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":318,"byte_start":316,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":319,"byte_start":318,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":321,"byte_start":320,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":325,"byte_start":321,"kind":"identifier","origin":{"kind":"local","local":1721}},{"byte_end":327,"byte_start":326,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":334,"byte_start":328,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":337,"byte_start":335,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":338,"byte_start":337,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":340,"byte_start":339,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":344,"byte_start":340,"kind":"identifier","origin":{"kind":"local","local":1724}},{"byte_end":346,"byte_start":345,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":353,"byte_start":347,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":356,"byte_start":354,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":357,"byte_start":356,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":359,"byte_start":358,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":363,"byte_start":359,"kind":"identifier","origin":{"kind":"local","local":1727}},{"byte_end":365,"byte_start":364,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":372,"byte_start":366,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":375,"byte_start":373,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":376,"byte_start":375,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":378,"byte_start":377,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":382,"byte_start":378,"kind":"identifier","origin":{"kind":"local","local":1730}},{"byte_end":384,"byte_start":383,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":391,"byte_start":385,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":394,"byte_start":392,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":395,"byte_start":394,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":397,"byte_start":396,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":401,"byte_start":397,"kind":"identifier","origin":{"kind":"local","local":1733}},{"byte_end":403,"byte_start":402,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":410,"byte_start":404,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":413,"byte_start":411,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":414,"byte_start":413,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":416,"byte_start":415,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":420,"byte_start":416,"kind":"identifier","origin":{"kind":"local","local":1736}},{"byte_end":422,"byte_start":421,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":429,"byte_start":423,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":432,"byte_start":430,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":433,"byte_start":432,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":435,"byte_start":434,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":440,"byte_start":435,"kind":"identifier","origin":{"kind":"local","local":1739}},{"byte_end":442,"byte_start":441,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":449,"byte_start":443,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":452,"byte_start":450,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":453,"byte_start":452,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":455,"byte_start":454,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":460,"byte_start":455,"kind":"identifier","origin":{"kind":"local","local":1742}},{"byte_end":462,"byte_start":461,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":469,"byte_start":463,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":472,"byte_start":470,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":473,"byte_start":472,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":475,"byte_start":474,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":480,"byte_start":475,"kind":"identifier","origin":{"kind":"local","local":1745}},{"byte_end":482,"byte_start":481,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":489,"byte_start":483,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":492,"byte_start":490,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":493,"byte_start":492,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":495,"byte_start":494,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":500,"byte_start":495,"kind":"identifier","origin":{"kind":"local","local":1748}},{"byte_end":502,"byte_start":501,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":509,"byte_start":503,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":512,"byte_start":510,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":513,"byte_start":512,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":515,"byte_start":514,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":520,"byte_start":515,"kind":"identifier","origin":{"kind":"local","local":1751}},{"byte_end":522,"byte_start":521,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":529,"byte_start":523,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":532,"byte_start":530,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":533,"byte_start":532,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":535,"byte_start":534,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":540,"byte_start":535,"kind":"identifier","origin":{"kind":"local","local":1754}},{"byte_end":542,"byte_start":541,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":549,"byte_start":543,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":552,"byte_start":550,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":553,"byte_start":552,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":555,"byte_start":554,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":560,"byte_start":555,"kind":"identifier","origin":{"kind":"local","local":1757}},{"byte_end":562,"byte_start":561,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":569,"byte_start":563,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":572,"byte_start":570,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":573,"byte_start":572,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":575,"byte_start":574,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":580,"byte_start":575,"kind":"identifier","origin":{"kind":"local","local":1760}},{"byte_end":582,"byte_start":581,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":589,"byte_start":583,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":592,"byte_start":590,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":593,"byte_start":592,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":595,"byte_start":594,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":600,"byte_start":595,"kind":"identifier","origin":{"kind":"local","local":1763}},{"byte_end":602,"byte_start":601,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":609,"byte_start":603,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":612,"byte_start":610,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":613,"byte_start":612,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":615,"byte_start":614,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":620,"byte_start":615,"kind":"identifier","origin":{"kind":"local","local":1766}},{"byte_end":622,"byte_start":621,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":629,"byte_start":623,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":632,"byte_start":630,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":633,"byte_start":632,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":635,"byte_start":634,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":640,"byte_start":635,"kind":"identifier","origin":{"kind":"local","local":1769}},{"byte_end":642,"byte_start":641,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":649,"byte_start":643,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":652,"byte_start":650,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":653,"byte_start":652,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":655,"byte_start":654,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":660,"byte_start":655,"kind":"identifier","origin":{"kind":"local","local":1772}},{"byte_end":662,"byte_start":661,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":669,"byte_start":663,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":672,"byte_start":670,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":673,"byte_start":672,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":675,"byte_start":674,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":677,"byte_start":676,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":679,"byte_start":677,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":684,"byte_start":680,"kind":"identifier","origin":{"kind":"local","local":1727}},{"byte_end":686,"byte_start":685,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":695,"byte_start":686,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":697,"byte_start":696,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":706,"byte_start":697,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":711,"byte_start":707,"kind":"identifier","origin":{"kind":"local","local":1709}},{"byte_end":716,"byte_start":712,"kind":"identifier","origin":{"kind":"local","local":1712}},{"byte_end":717,"byte_start":716,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":722,"byte_start":718,"kind":"identifier","origin":{"kind":"local","local":1721}},{"byte_end":723,"byte_start":722,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":724,"byte_start":723,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":728,"byte_start":725,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":730,"byte_start":729,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":732,"byte_start":730,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":737,"byte_start":733,"kind":"identifier","origin":{"kind":"local","local":1736}},{"byte_end":739,"byte_start":738,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":757,"byte_start":739,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":759,"byte_start":758,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":768,"byte_start":759,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":773,"byte_start":769,"kind":"identifier","origin":{"kind":"local","local":1718}},{"byte_end":778,"byte_start":774,"kind":"identifier","origin":{"kind":"local","local":1727}},{"byte_end":779,"byte_start":778,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":782,"byte_start":780,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":783,"byte_start":782,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":784,"byte_start":783,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":788,"byte_start":785,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":790,"byte_start":789,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":792,"byte_start":790,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":797,"byte_start":793,"kind":"identifier","origin":{"kind":"local","local":1733}},{"byte_end":799,"byte_start":798,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":808,"byte_start":799,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":813,"byte_start":809,"kind":"identifier","origin":{"kind":"local","local":1715}},{"byte_end":818,"byte_start":814,"kind":"identifier","origin":{"kind":"local","local":1736}},{"byte_end":819,"byte_start":818,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":820,"byte_start":819,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":824,"byte_start":821,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":826,"byte_start":825,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":828,"byte_start":826,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":833,"byte_start":829,"kind":"identifier","origin":{"kind":"local","local":1730}},{"byte_end":835,"byte_start":834,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":853,"byte_start":835,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":855,"byte_start":854,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":864,"byte_start":855,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":869,"byte_start":865,"kind":"identifier","origin":{"kind":"local","local":1712}},{"byte_end":874,"byte_start":870,"kind":"identifier","origin":{"kind":"local","local":1733}},{"byte_end":875,"byte_start":874,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":878,"byte_start":876,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":879,"byte_start":878,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":880,"byte_start":879,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":884,"byte_start":881,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":886,"byte_start":885,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":888,"byte_start":886,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":894,"byte_start":889,"kind":"identifier","origin":{"kind":"local","local":1739}},{"byte_end":896,"byte_start":895,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":905,"byte_start":896,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":907,"byte_start":906,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":916,"byte_start":907,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":921,"byte_start":917,"kind":"identifier","origin":{"kind":"local","local":1727}},{"byte_end":926,"byte_start":922,"kind":"identifier","origin":{"kind":"local","local":1730}},{"byte_end":927,"byte_start":926,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":932,"byte_start":928,"kind":"identifier","origin":{"kind":"local","local":1724}},{"byte_end":933,"byte_start":932,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":934,"byte_start":933,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":938,"byte_start":935,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":940,"byte_start":939,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":942,"byte_start":940,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":948,"byte_start":943,"kind":"identifier","origin":{"kind":"local","local":1748}},{"byte_end":950,"byte_start":949,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":968,"byte_start":950,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":970,"byte_start":969,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":979,"byte_start":970,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":984,"byte_start":980,"kind":"identifier","origin":{"kind":"local","local":1736}},{"byte_end":990,"byte_start":985,"kind":"identifier","origin":{"kind":"local","local":1739}},{"byte_end":991,"byte_start":990,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":993,"byte_start":992,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":994,"byte_start":993,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":995,"byte_start":994,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":999,"byte_start":996,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1001,"byte_start":1000,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1003,"byte_start":1001,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1009,"byte_start":1004,"kind":"identifier","origin":{"kind":"local","local":1745}},{"byte_end":1011,"byte_start":1010,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1020,"byte_start":1011,"kind":"identifier","origin":{"entry":"h-add.h-add","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1025,"byte_start":1021,"kind":"identifier","origin":{"kind":"local","local":1733}},{"byte_end":1031,"byte_start":1026,"kind":"identifier","origin":{"kind":"local","local":1748}},{"byte_end":1032,"byte_start":1031,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1033,"byte_start":1032,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1037,"byte_start":1034,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1039,"byte_start":1038,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1041,"byte_start":1039,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1047,"byte_start":1042,"kind":"identifier","origin":{"kind":"local","local":1742}},{"byte_end":1049,"byte_start":1048,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1067,"byte_start":1049,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1069,"byte_start":1068,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1078,"byte_start":1069,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1083,"byte_start":1079,"kind":"identifier","origin":{"kind":"local","local":1730}},{"byte_end":1089,"byte_start":1084,"kind":"identifier","origin":{"kind":"local","local":1745}},{"byte_end":1090,"byte_start":1089,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1092,"byte_start":1091,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1093,"byte_start":1092,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1094,"byte_start":1093,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1098,"byte_start":1095,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1100,"byte_start":1099,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1102,"byte_start":1100,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1108,"byte_start":1103,"kind":"identifier","origin":{"kind":"local","local":1751}},{"byte_end":1110,"byte_start":1109,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1119,"byte_start":1110,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1121,"byte_start":1120,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1138,"byte_start":1121,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1144,"byte_start":1139,"kind":"identifier","origin":{"kind":"local","local":1742}},{"byte_end":1146,"byte_start":1145,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1147,"byte_start":1146,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1153,"byte_start":1148,"kind":"identifier","origin":{"kind":"local","local":1745}},{"byte_end":1154,"byte_start":1153,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1155,"byte_start":1154,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1159,"byte_start":1156,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1161,"byte_start":1160,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1163,"byte_start":1161,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1169,"byte_start":1164,"kind":"identifier","origin":{"kind":"local","local":1754}},{"byte_end":1171,"byte_start":1170,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1180,"byte_start":1171,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1186,"byte_start":1181,"kind":"identifier","origin":{"kind":"local","local":1745}},{"byte_end":1192,"byte_start":1187,"kind":"identifier","origin":{"kind":"local","local":1748}},{"byte_end":1193,"byte_start":1192,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1194,"byte_start":1193,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1198,"byte_start":1195,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1200,"byte_start":1199,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1202,"byte_start":1200,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1208,"byte_start":1203,"kind":"identifier","origin":{"kind":"local","local":1757}},{"byte_end":1210,"byte_start":1209,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1219,"byte_start":1210,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1221,"byte_start":1220,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1238,"byte_start":1221,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1244,"byte_start":1239,"kind":"identifier","origin":{"kind":"local","local":1748}},{"byte_end":1246,"byte_start":1245,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1247,"byte_start":1246,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1253,"byte_start":1248,"kind":"identifier","origin":{"kind":"local","local":1739}},{"byte_end":1254,"byte_start":1253,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1255,"byte_start":1254,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1259,"byte_start":1256,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1261,"byte_start":1260,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1263,"byte_start":1261,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1269,"byte_start":1264,"kind":"identifier","origin":{"kind":"local","local":1760}},{"byte_end":1271,"byte_start":1270,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1280,"byte_start":1271,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1282,"byte_start":1281,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1291,"byte_start":1282,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1297,"byte_start":1292,"kind":"identifier","origin":{"kind":"local","local":1739}},{"byte_end":1303,"byte_start":1298,"kind":"identifier","origin":{"kind":"local","local":1751}},{"byte_end":1304,"byte_start":1303,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1309,"byte_start":1305,"kind":"identifier","origin":{"kind":"local","local":1724}},{"byte_end":1310,"byte_start":1309,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1311,"byte_start":1310,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1315,"byte_start":1312,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1317,"byte_start":1316,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1319,"byte_start":1317,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1325,"byte_start":1320,"kind":"identifier","origin":{"kind":"local","local":1766}},{"byte_end":1327,"byte_start":1326,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1336,"byte_start":1327,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1338,"byte_start":1337,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1355,"byte_start":1338,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1361,"byte_start":1356,"kind":"identifier","origin":{"kind":"local","local":1751}},{"byte_end":1364,"byte_start":1362,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1365,"byte_start":1364,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1371,"byte_start":1366,"kind":"identifier","origin":{"kind":"local","local":1754}},{"byte_end":1372,"byte_start":1371,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1373,"byte_start":1372,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1377,"byte_start":1374,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1379,"byte_start":1378,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1381,"byte_start":1379,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1387,"byte_start":1382,"kind":"identifier","origin":{"kind":"local","local":1769}},{"byte_end":1389,"byte_start":1388,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1398,"byte_start":1389,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1404,"byte_start":1399,"kind":"identifier","origin":{"kind":"local","local":1754}},{"byte_end":1410,"byte_start":1405,"kind":"identifier","origin":{"kind":"local","local":1757}},{"byte_end":1411,"byte_start":1410,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1412,"byte_start":1411,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1416,"byte_start":1413,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1418,"byte_start":1417,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1420,"byte_start":1418,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1426,"byte_start":1421,"kind":"identifier","origin":{"kind":"local","local":1772}},{"byte_end":1428,"byte_start":1427,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1437,"byte_start":1428,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1439,"byte_start":1438,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1456,"byte_start":1439,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1462,"byte_start":1457,"kind":"identifier","origin":{"kind":"local","local":1757}},{"byte_end":1465,"byte_start":1463,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1466,"byte_start":1465,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1472,"byte_start":1467,"kind":"identifier","origin":{"kind":"local","local":1760}},{"byte_end":1473,"byte_start":1472,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1474,"byte_start":1473,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1478,"byte_start":1475,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1480,"byte_start":1479,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1482,"byte_start":1480,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1488,"byte_start":1483,"kind":"identifier","origin":{"kind":"local","local":1763}},{"byte_end":1490,"byte_start":1489,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1499,"byte_start":1490,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1501,"byte_start":1500,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1510,"byte_start":1501,"kind":"identifier","origin":{"entry":"h-sub.h-sub","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1516,"byte_start":1511,"kind":"identifier","origin":{"kind":"local","local":1760}},{"byte_end":1522,"byte_start":1517,"kind":"identifier","origin":{"kind":"local","local":1766}},{"byte_end":1523,"byte_start":1522,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1528,"byte_start":1524,"kind":"identifier","origin":{"kind":"local","local":1721}},{"byte_end":1529,"byte_start":1528,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1530,"byte_start":1529,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1534,"byte_start":1531,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1538,"byte_start":1535,"kind":"identifier","origin":{"entry":"land","kind":"structural","package":"lexlean.core"}},{"byte_end":1540,"byte_start":1539,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1543,"byte_start":1540,"kind":"identifier","origin":{"entry":"land","kind":"structural","package":"lexlean.core"}},{"byte_end":1545,"byte_start":1544,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1548,"byte_start":1545,"kind":"identifier","origin":{"entry":"land","kind":"structural","package":"lexlean.core"}},{"byte_end":1550,"byte_start":1549,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1552,"byte_start":1550,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1558,"byte_start":1553,"kind":"identifier","origin":{"kind":"local","local":1763}},{"byte_end":1563,"byte_start":1559,"kind":"identifier","origin":{"kind":"local","local":1709}},{"byte_end":1564,"byte_start":1563,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1566,"byte_start":1565,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1568,"byte_start":1566,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1574,"byte_start":1569,"kind":"identifier","origin":{"kind":"local","local":1766}},{"byte_end":1579,"byte_start":1575,"kind":"identifier","origin":{"kind":"local","local":1712}},{"byte_end":1580,"byte_start":1579,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1581,"byte_start":1580,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1583,"byte_start":1582,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1585,"byte_start":1583,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1591,"byte_start":1586,"kind":"identifier","origin":{"kind":"local","local":1769}},{"byte_end":1596,"byte_start":1592,"kind":"identifier","origin":{"kind":"local","local":1715}},{"byte_end":1597,"byte_start":1596,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1598,"byte_start":1597,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1600,"byte_start":1599,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1602,"byte_start":1600,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1608,"byte_start":1603,"kind":"identifier","origin":{"kind":"local","local":1772}},{"byte_end":1613,"byte_start":1609,"kind":"identifier","origin":{"kind":"local","local":1718}},{"byte_end":1614,"byte_start":1613,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1617,"byte_start":1615,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1620,"byte_start":1618,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1628,"byte_start":1623,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1633,"byte_start":1629,"kind":"identifier","origin":{"kind":"local","local":2400}},{"byte_end":1638,"byte_start":1634,"kind":"identifier","origin":{"kind":"local","local":2399}},{"byte_end":1643,"byte_start":1639,"kind":"identifier","origin":{"kind":"local","local":2398}},{"byte_end":1648,"byte_start":1644,"kind":"identifier","origin":{"kind":"local","local":2397}},{"byte_end":1653,"byte_start":1649,"kind":"identifier","origin":{"kind":"local","local":2396}},{"byte_end":1658,"byte_start":1654,"kind":"identifier","origin":{"kind":"local","local":2395}},{"byte_end":1663,"byte_start":1659,"kind":"identifier","origin":{"kind":"local","local":2394}},{"byte_end":1668,"byte_start":1664,"kind":"identifier","origin":{"kind":"local","local":2393}},{"byte_end":1673,"byte_start":1669,"kind":"identifier","origin":{"kind":"local","local":2392}},{"byte_end":1678,"byte_start":1674,"kind":"identifier","origin":{"kind":"local","local":2391}},{"byte_end":1684,"byte_start":1679,"kind":"identifier","origin":{"kind":"local","local":2390}},{"byte_end":1690,"byte_start":1685,"kind":"identifier","origin":{"kind":"local","local":2389}},{"byte_end":1696,"byte_start":1691,"kind":"identifier","origin":{"kind":"local","local":2388}},{"byte_end":1702,"byte_start":1697,"kind":"identifier","origin":{"kind":"local","local":2387}},{"byte_end":1708,"byte_start":1703,"kind":"identifier","origin":{"kind":"local","local":2386}},{"byte_end":1714,"byte_start":1709,"kind":"identifier","origin":{"kind":"local","local":2385}},{"byte_end":1721,"byte_start":1717,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1727,"byte_start":1722,"kind":"identifier","origin":{"kind":"local","local":4459}},{"byte_end":1729,"byte_start":1728,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1732,"byte_start":1730,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1738,"byte_start":1733,"kind":"identifier","origin":{"kind":"local","local":1751}},{"byte_end":1743,"byte_start":1739,"kind":"identifier","origin":{"kind":"local","local":1730}},{"byte_end":1746,"byte_start":1744,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1749,"byte_start":1747,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1756,"byte_start":1754,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1758,"byte_start":1757,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1762,"byte_start":1758,"kind":"identifier","origin":{"kind":"local","local":2392}},{"byte_end":1763,"byte_start":1762,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1768,"byte_start":1764,"kind":"identifier","origin":{"kind":"local","local":2393}},{"byte_end":1769,"byte_start":1768,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1779,"byte_start":1774,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1809,"byte_start":1780,"kind":"identifier","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":1814,"byte_start":1810,"kind":"identifier","origin":{"kind":"local","local":1730}},{"byte_end":1820,"byte_start":1815,"kind":"identifier","origin":{"kind":"local","local":1745}},{"byte_end":1822,"byte_start":1821,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1823,"byte_start":1822,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1825,"byte_start":1824,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1829,"byte_start":1826,"kind":"identifier","origin":{"entry":"nat","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1830,"byte_start":1829,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1837,"byte_start":1833,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1843,"byte_start":1838,"kind":"identifier","origin":{"kind":"local","local":4465}},{"byte_end":1845,"byte_start":1844,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1848,"byte_start":1846,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1854,"byte_start":1849,"kind":"identifier","origin":{"kind":"local","local":1754}},{"byte_end":1859,"byte_start":1855,"kind":"identifier","origin":{"kind":"local","local":1733}},{"byte_end":1862,"byte_start":1860,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1865,"byte_start":1863,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1872,"byte_start":1870,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1874,"byte_start":1873,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1878,"byte_start":1874,"kind":"identifier","origin":{"kind":"local","local":2391}},{"byte_end":1879,"byte_start":1878,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1884,"byte_start":1880,"kind":"identifier","origin":{"kind":"local","local":2394}},{"byte_end":1885,"byte_start":1884,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1895,"byte_start":1890,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1938,"byte_start":1896,"kind":"identifier","origin":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":1943,"byte_start":1939,"kind":"identifier","origin":{"kind":"local","local":1733}},{"byte_end":1949,"byte_start":1944,"kind":"identifier","origin":{"kind":"local","local":1748}},{"byte_end":1956,"byte_start":1952,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1962,"byte_start":1957,"kind":"identifier","origin":{"kind":"local","local":4472}},{"byte_end":1964,"byte_start":1963,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1967,"byte_start":1965,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":1973,"byte_start":1968,"kind":"identifier","origin":{"kind":"local","local":1757}},{"byte_end":1978,"byte_start":1974,"kind":"identifier","origin":{"kind":"local","local":1736}},{"byte_end":1981,"byte_start":1979,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1984,"byte_start":1982,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1991,"byte_start":1989,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1993,"byte_start":1992,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1998,"byte_start":1993,"kind":"identifier","origin":{"kind":"local","local":2390}},{"byte_end":1999,"byte_start":1998,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2004,"byte_start":2000,"kind":"identifier","origin":{"kind":"local","local":2395}},{"byte_end":2005,"byte_start":2004,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2015,"byte_start":2010,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2045,"byte_start":2016,"kind":"identifier","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":2050,"byte_start":2046,"kind":"identifier","origin":{"kind":"local","local":1736}},{"byte_end":2056,"byte_start":2051,"kind":"identifier","origin":{"kind":"local","local":1739}},{"byte_end":2058,"byte_start":2057,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2059,"byte_start":2058,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2061,"byte_start":2060,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2065,"byte_start":2062,"kind":"identifier","origin":{"entry":"nat","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":2066,"byte_start":2065,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2073,"byte_start":2069,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2079,"byte_start":2074,"kind":"identifier","origin":{"kind":"local","local":4478}},{"byte_end":2081,"byte_start":2080,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2084,"byte_start":2082,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":2090,"byte_start":2085,"kind":"identifier","origin":{"kind":"local","local":1760}},{"byte_end":2095,"byte_start":2091,"kind":"identifier","origin":{"kind":"local","local":1727}},{"byte_end":2098,"byte_start":2096,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2101,"byte_start":2099,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2108,"byte_start":2106,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2110,"byte_start":2109,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2115,"byte_start":2110,"kind":"identifier","origin":{"kind":"local","local":2389}},{"byte_end":2116,"byte_start":2115,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2122,"byte_start":2117,"kind":"identifier","origin":{"kind":"local","local":4459}},{"byte_end":2123,"byte_start":2122,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2128,"byte_start":2124,"kind":"identifier","origin":{"kind":"local","local":2396}},{"byte_end":2129,"byte_start":2128,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2139,"byte_start":2134,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2186,"byte_start":2140,"kind":"identifier","origin":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":2191,"byte_start":2187,"kind":"identifier","origin":{"kind":"local","local":1727}},{"byte_end":2196,"byte_start":2192,"kind":"identifier","origin":{"kind":"local","local":1730}},{"byte_end":2201,"byte_start":2197,"kind":"identifier","origin":{"kind":"local","local":1724}},{"byte_end":2208,"byte_start":2204,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2214,"byte_start":2209,"kind":"identifier","origin":{"kind":"local","local":4485}},{"byte_end":2216,"byte_start":2215,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2219,"byte_start":2217,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":2225,"byte_start":2220,"kind":"identifier","origin":{"kind":"local","local":1766}},{"byte_end":2230,"byte_start":2226,"kind":"identifier","origin":{"kind":"local","local":1712}},{"byte_end":2233,"byte_start":2231,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2236,"byte_start":2234,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2243,"byte_start":2241,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2245,"byte_start":2244,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2250,"byte_start":2245,"kind":"identifier","origin":{"kind":"local","local":2388}},{"byte_end":2251,"byte_start":2250,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2257,"byte_start":2252,"kind":"identifier","origin":{"kind":"local","local":4459}},{"byte_end":2258,"byte_start":2257,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2264,"byte_start":2259,"kind":"identifier","origin":{"kind":"local","local":4465}},{"byte_end":2265,"byte_start":2264,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2270,"byte_start":2266,"kind":"identifier","origin":{"kind":"local","local":2397}},{"byte_end":2271,"byte_start":2270,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2281,"byte_start":2276,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2311,"byte_start":2282,"kind":"identifier","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":2316,"byte_start":2312,"kind":"identifier","origin":{"kind":"local","local":1712}},{"byte_end":2321,"byte_start":2317,"kind":"identifier","origin":{"kind":"local","local":1733}},{"byte_end":2323,"byte_start":2322,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2325,"byte_start":2323,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2327,"byte_start":2326,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2331,"byte_start":2328,"kind":"identifier","origin":{"entry":"nat","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":2332,"byte_start":2331,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2339,"byte_start":2335,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2345,"byte_start":2340,"kind":"identifier","origin":{"kind":"local","local":4491}},{"byte_end":2347,"byte_start":2346,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2350,"byte_start":2348,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":2356,"byte_start":2351,"kind":"identifier","origin":{"kind":"local","local":1769}},{"byte_end":2361,"byte_start":2357,"kind":"identifier","origin":{"kind":"local","local":1715}},{"byte_end":2364,"byte_start":2362,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2367,"byte_start":2365,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2374,"byte_start":2372,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2376,"byte_start":2375,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2381,"byte_start":2376,"kind":"identifier","origin":{"kind":"local","local":2387}},{"byte_end":2382,"byte_start":2381,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2388,"byte_start":2383,"kind":"identifier","origin":{"kind":"local","local":4465}},{"byte_end":2389,"byte_start":2388,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2395,"byte_start":2390,"kind":"identifier","origin":{"kind":"local","local":4472}},{"byte_end":2396,"byte_start":2395,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2401,"byte_start":2397,"kind":"identifier","origin":{"kind":"local","local":2398}},{"byte_end":2402,"byte_start":2401,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2412,"byte_start":2407,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2455,"byte_start":2413,"kind":"identifier","origin":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":2460,"byte_start":2456,"kind":"identifier","origin":{"kind":"local","local":1715}},{"byte_end":2465,"byte_start":2461,"kind":"identifier","origin":{"kind":"local","local":1736}},{"byte_end":2472,"byte_start":2468,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2478,"byte_start":2473,"kind":"identifier","origin":{"kind":"local","local":4498}},{"byte_end":2480,"byte_start":2479,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2483,"byte_start":2481,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":2489,"byte_start":2484,"kind":"identifier","origin":{"kind":"local","local":1772}},{"byte_end":2494,"byte_start":2490,"kind":"identifier","origin":{"kind":"local","local":1718}},{"byte_end":2497,"byte_start":2495,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2500,"byte_start":2498,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2507,"byte_start":2505,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2509,"byte_start":2508,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2514,"byte_start":2509,"kind":"identifier","origin":{"kind":"local","local":2386}},{"byte_end":2515,"byte_start":2514,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2521,"byte_start":2516,"kind":"identifier","origin":{"kind":"local","local":4472}},{"byte_end":2522,"byte_start":2521,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2528,"byte_start":2523,"kind":"identifier","origin":{"kind":"local","local":4478}},{"byte_end":2529,"byte_start":2528,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2534,"byte_start":2530,"kind":"identifier","origin":{"kind":"local","local":2399}},{"byte_end":2535,"byte_start":2534,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2545,"byte_start":2540,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2575,"byte_start":2546,"kind":"identifier","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":2580,"byte_start":2576,"kind":"identifier","origin":{"kind":"local","local":1718}},{"byte_end":2585,"byte_start":2581,"kind":"identifier","origin":{"kind":"local","local":1727}},{"byte_end":2587,"byte_start":2586,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2589,"byte_start":2587,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":2591,"byte_start":2590,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2595,"byte_start":2592,"kind":"identifier","origin":{"entry":"nat","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":2596,"byte_start":2595,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2603,"byte_start":2599,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2609,"byte_start":2604,"kind":"identifier","origin":{"kind":"local","local":4504}},{"byte_end":2611,"byte_start":2610,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2614,"byte_start":2612,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":2620,"byte_start":2615,"kind":"identifier","origin":{"kind":"local","local":1763}},{"byte_end":2625,"byte_start":2621,"kind":"identifier","origin":{"kind":"local","local":1709}},{"byte_end":2628,"byte_start":2626,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2631,"byte_start":2629,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2638,"byte_start":2636,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2640,"byte_start":2639,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2645,"byte_start":2640,"kind":"identifier","origin":{"kind":"local","local":2385}},{"byte_end":2646,"byte_start":2645,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2652,"byte_start":2647,"kind":"identifier","origin":{"kind":"local","local":4478}},{"byte_end":2653,"byte_start":2652,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2659,"byte_start":2654,"kind":"identifier","origin":{"kind":"local","local":4485}},{"byte_end":2660,"byte_start":2659,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2665,"byte_start":2661,"kind":"identifier","origin":{"kind":"local","local":2400}},{"byte_end":2666,"byte_start":2665,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2676,"byte_start":2671,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2723,"byte_start":2677,"kind":"identifier","origin":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":2728,"byte_start":2724,"kind":"identifier","origin":{"kind":"local","local":1709}},{"byte_end":2733,"byte_start":2729,"kind":"identifier","origin":{"kind":"local","local":1712}},{"byte_end":2738,"byte_start":2734,"kind":"identifier","origin":{"kind":"local","local":1721}},{"byte_end":2752,"byte_start":2741,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2766,"byte_start":2755,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2780,"byte_start":2769,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2788,"byte_start":2783,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2794,"byte_start":2789,"kind":"identifier","origin":{"kind":"local","local":4504}},{"byte_end":2802,"byte_start":2797,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2808,"byte_start":2803,"kind":"identifier","origin":{"kind":"local","local":4485}},{"byte_end":2816,"byte_start":2811,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2822,"byte_start":2817,"kind":"identifier","origin":{"kind":"local","local":4491}},{"byte_end":2830,"byte_start":2825,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2836,"byte_start":2831,"kind":"identifier","origin":{"kind":"local","local":4498}},{"byte_end":2841,"byte_start":2838,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":2863,"byte_start":2842,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}}],"module":"Mixing","source":[{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":6,"byte_start":0,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":7,"byte_start":6,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.lexlean","kind":"structural","package":"lexlean.core"},"byte_end":14,"byte_start":7,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":15,"byte_start":14,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":16,"byte_start":15,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lexlean"},"byte_end":22,"byte_start":16,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":23,"byte_start":22,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"useglossary","kind":"structural","package":"lexlean.core"},"byte_end":36,"byte_start":24,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":37,"byte_start":36,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":42,"byte_start":37,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":43,"byte_start":42,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":44,"byte_start":43,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":45,"byte_start":44,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":46,"byte_start":45,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":47,"byte_start":46,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":48,"byte_start":47,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":49,"byte_start":48,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":50,"byte_start":49,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":51,"byte_start":50,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":52,"byte_start":51,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"useglossary","kind":"structural","package":"lexlean.core"},"byte_end":65,"byte_start":53,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":66,"byte_start":65,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":70,"byte_start":66,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":71,"byte_start":70,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":78,"byte_start":71,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":79,"byte_start":78,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":80,"byte_start":79,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":81,"byte_start":80,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":82,"byte_start":81,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":83,"byte_start":82,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":84,"byte_start":83,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":85,"byte_start":84,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"importmodule","kind":"structural","package":"lexlean.core"},"byte_end":99,"byte_start":86,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":100,"byte_start":99,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::importmodule"},"byte_end":112,"byte_start":100,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":113,"byte_start":112,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"importmodule","kind":"structural","package":"lexlean.core"},"byte_end":127,"byte_start":114,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":128,"byte_start":127,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::importmodule"},"byte_end":136,"byte_start":128,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":137,"byte_start":136,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"title","kind":"structural","package":"lexlean.core"},"byte_end":144,"byte_start":138,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":145,"byte_start":144,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"mixing","form":"mixing","kind":"form","package":"blake3.g"},"byte_end":151,"byte_start":145,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"function","form":"function","kind":"form","package":"blake3.g"},"byte_end":160,"byte_start":152,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"inverse","form":"inverse","kind":"form","package":"blake3.g"},"byte_end":168,"byte_start":161,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":169,"byte_start":168,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":177,"byte_start":171,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":178,"byte_start":177,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.section","kind":"structural","package":"lexlean.core"},"byte_end":185,"byte_start":178,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":186,"byte_start":185,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":187,"byte_start":186,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.section"},"byte_end":194,"byte_start":187,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":195,"byte_start":194,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"heading","kind":"structural","package":"lexlean.core"},"byte_end":204,"byte_start":196,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":205,"byte_start":204,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"mixing","form":"mixing","kind":"form","package":"blake3.g"},"byte_end":211,"byte_start":205,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"function","form":"function","kind":"form","package":"blake3.g"},"byte_end":220,"byte_start":212,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"inverse","form":"inverse","kind":"form","package":"blake3.g"},"byte_end":228,"byte_start":221,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":229,"byte_start":228,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":238,"byte_start":232,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":239,"byte_start":238,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":246,"byte_start":239,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":247,"byte_start":246,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":248,"byte_start":247,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":254,"byte_start":248,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":255,"byte_start":254,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":262,"byte_start":255,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":263,"byte_start":262,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":278,"byte_start":266,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":279,"byte_start":278,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":288,"byte_start":279,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":289,"byte_start":288,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":295,"byte_start":289,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":296,"byte_start":295,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":300,"byte_start":296,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":301,"byte_start":300,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":306,"byte_start":301,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":307,"byte_start":306,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":314,"byte_start":307,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":315,"byte_start":314,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":321,"byte_start":318,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":327,"byte_start":322,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":330,"byte_start":328,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":336,"byte_start":330,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":337,"byte_start":336,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":339,"byte_start":337,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":340,"byte_start":339,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":342,"byte_start":340,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":345,"byte_start":343,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1709},"byte_end":346,"byte_start":345,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":348,"byte_start":346,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":352,"byte_start":349,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":355,"byte_start":353,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":361,"byte_start":355,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":362,"byte_start":361,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":364,"byte_start":362,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":365,"byte_start":364,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":367,"byte_start":365,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":370,"byte_start":368,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1712},"byte_end":371,"byte_start":370,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":373,"byte_start":371,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":377,"byte_start":374,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":380,"byte_start":378,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":386,"byte_start":380,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":387,"byte_start":386,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":389,"byte_start":387,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":390,"byte_start":389,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":392,"byte_start":390,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":395,"byte_start":393,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1715},"byte_end":396,"byte_start":395,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":398,"byte_start":396,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":402,"byte_start":399,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":405,"byte_start":403,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":411,"byte_start":405,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":412,"byte_start":411,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":414,"byte_start":412,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":415,"byte_start":414,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":417,"byte_start":415,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":420,"byte_start":418,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1718},"byte_end":421,"byte_start":420,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":423,"byte_start":421,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":427,"byte_start":424,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":430,"byte_start":428,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":436,"byte_start":430,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":437,"byte_start":436,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":439,"byte_start":437,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":440,"byte_start":439,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":442,"byte_start":440,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":445,"byte_start":443,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1721},"byte_end":446,"byte_start":445,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":448,"byte_start":446,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":452,"byte_start":449,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":455,"byte_start":453,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":461,"byte_start":455,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":462,"byte_start":461,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":464,"byte_start":462,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":465,"byte_start":464,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":467,"byte_start":465,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":470,"byte_start":468,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1724},"byte_end":471,"byte_start":470,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":473,"byte_start":471,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":477,"byte_start":474,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":480,"byte_start":478,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":486,"byte_start":480,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":487,"byte_start":486,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":489,"byte_start":487,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":490,"byte_start":489,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":492,"byte_start":490,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":495,"byte_start":493,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1727},"byte_end":497,"byte_start":495,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":499,"byte_start":497,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":503,"byte_start":500,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":506,"byte_start":504,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":512,"byte_start":506,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":513,"byte_start":512,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":515,"byte_start":513,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":516,"byte_start":515,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":518,"byte_start":516,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":521,"byte_start":519,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1730},"byte_end":523,"byte_start":521,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":525,"byte_start":523,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":529,"byte_start":526,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":532,"byte_start":530,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":538,"byte_start":532,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":539,"byte_start":538,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":541,"byte_start":539,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":542,"byte_start":541,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":544,"byte_start":542,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":547,"byte_start":545,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1733},"byte_end":549,"byte_start":547,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":551,"byte_start":549,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":555,"byte_start":552,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":558,"byte_start":556,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":564,"byte_start":558,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":565,"byte_start":564,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":567,"byte_start":565,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":568,"byte_start":567,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":570,"byte_start":568,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":573,"byte_start":571,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1736},"byte_end":575,"byte_start":573,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":577,"byte_start":575,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":581,"byte_start":578,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":584,"byte_start":582,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":590,"byte_start":584,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":591,"byte_start":590,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":593,"byte_start":591,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":594,"byte_start":593,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":596,"byte_start":594,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":599,"byte_start":597,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1739},"byte_end":601,"byte_start":599,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":603,"byte_start":601,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":607,"byte_start":604,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":610,"byte_start":608,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":616,"byte_start":610,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":617,"byte_start":616,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":619,"byte_start":617,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":620,"byte_start":619,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":622,"byte_start":620,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":625,"byte_start":623,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1742},"byte_end":627,"byte_start":625,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":629,"byte_start":627,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":633,"byte_start":630,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":636,"byte_start":634,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":642,"byte_start":636,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":643,"byte_start":642,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":645,"byte_start":643,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":646,"byte_start":645,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":648,"byte_start":646,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":651,"byte_start":649,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1745},"byte_end":653,"byte_start":651,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":655,"byte_start":653,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":659,"byte_start":656,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":662,"byte_start":660,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":668,"byte_start":662,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":669,"byte_start":668,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":671,"byte_start":669,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":672,"byte_start":671,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":674,"byte_start":672,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":677,"byte_start":675,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1748},"byte_end":679,"byte_start":677,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":681,"byte_start":679,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":685,"byte_start":682,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":688,"byte_start":686,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":694,"byte_start":688,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":695,"byte_start":694,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":697,"byte_start":695,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":698,"byte_start":697,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":700,"byte_start":698,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":703,"byte_start":701,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1751},"byte_end":706,"byte_start":703,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":708,"byte_start":706,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":712,"byte_start":709,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":715,"byte_start":713,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":721,"byte_start":715,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":722,"byte_start":721,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":724,"byte_start":722,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":725,"byte_start":724,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":727,"byte_start":725,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":730,"byte_start":728,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1754},"byte_end":733,"byte_start":730,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":735,"byte_start":733,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":739,"byte_start":736,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":742,"byte_start":740,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":748,"byte_start":742,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":749,"byte_start":748,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":751,"byte_start":749,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":752,"byte_start":751,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":754,"byte_start":752,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":757,"byte_start":755,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1757},"byte_end":760,"byte_start":757,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":762,"byte_start":760,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":766,"byte_start":763,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":769,"byte_start":767,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":775,"byte_start":769,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":776,"byte_start":775,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":778,"byte_start":776,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":779,"byte_start":778,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":781,"byte_start":779,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":784,"byte_start":782,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1760},"byte_end":787,"byte_start":784,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":789,"byte_start":787,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":793,"byte_start":790,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":796,"byte_start":794,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":802,"byte_start":796,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":803,"byte_start":802,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":805,"byte_start":803,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":806,"byte_start":805,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":808,"byte_start":806,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":811,"byte_start":809,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1763},"byte_end":813,"byte_start":811,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":815,"byte_start":813,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":819,"byte_start":816,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":822,"byte_start":820,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":828,"byte_start":822,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":829,"byte_start":828,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":831,"byte_start":829,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":832,"byte_start":831,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":834,"byte_start":832,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":837,"byte_start":835,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1766},"byte_end":839,"byte_start":837,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":841,"byte_start":839,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":845,"byte_start":842,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":848,"byte_start":846,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":854,"byte_start":848,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":855,"byte_start":854,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":857,"byte_start":855,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":858,"byte_start":857,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":860,"byte_start":858,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":863,"byte_start":861,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1769},"byte_end":865,"byte_start":863,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":867,"byte_start":865,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":871,"byte_start":868,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":874,"byte_start":872,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":880,"byte_start":874,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":881,"byte_start":880,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":883,"byte_start":881,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":884,"byte_start":883,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":886,"byte_start":884,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":889,"byte_start":887,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1772},"byte_end":891,"byte_start":889,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":893,"byte_start":891,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":894,"byte_start":893,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":897,"byte_start":895,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":900,"byte_start":898,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1727},"byte_end":902,"byte_start":900,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":904,"byte_start":903,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":913,"byte_start":905,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":914,"byte_start":913,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":922,"byte_start":914,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":923,"byte_start":922,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1709},"byte_end":924,"byte_start":923,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":925,"byte_start":924,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1712},"byte_end":927,"byte_start":926,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":928,"byte_start":927,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":929,"byte_start":928,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1721},"byte_end":931,"byte_start":930,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":932,"byte_start":931,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":934,"byte_start":932,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":935,"byte_start":934,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":940,"byte_start":936,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":943,"byte_start":941,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":946,"byte_start":944,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1736},"byte_end":948,"byte_start":946,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":950,"byte_start":949,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":968,"byte_start":951,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":969,"byte_start":968,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":977,"byte_start":969,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":978,"byte_start":977,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1718},"byte_end":979,"byte_start":978,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":980,"byte_start":979,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1727},"byte_end":983,"byte_start":981,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":984,"byte_start":983,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":985,"byte_start":984,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":988,"byte_start":986,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":989,"byte_start":988,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":991,"byte_start":989,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":992,"byte_start":991,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":997,"byte_start":993,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1000,"byte_start":998,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1003,"byte_start":1001,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1733},"byte_end":1005,"byte_start":1003,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1007,"byte_start":1006,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":1016,"byte_start":1008,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1017,"byte_start":1016,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1715},"byte_end":1018,"byte_start":1017,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1019,"byte_start":1018,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1736},"byte_end":1022,"byte_start":1020,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1023,"byte_start":1022,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1025,"byte_start":1023,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1026,"byte_start":1025,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1031,"byte_start":1027,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1034,"byte_start":1032,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1037,"byte_start":1035,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1730},"byte_end":1039,"byte_start":1037,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1041,"byte_start":1040,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":1059,"byte_start":1042,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1060,"byte_start":1059,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1068,"byte_start":1060,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1069,"byte_start":1068,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1712},"byte_end":1070,"byte_start":1069,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1071,"byte_start":1070,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1733},"byte_end":1074,"byte_start":1072,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1075,"byte_start":1074,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1076,"byte_start":1075,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1079,"byte_start":1077,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1080,"byte_start":1079,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1082,"byte_start":1080,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1083,"byte_start":1082,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1088,"byte_start":1084,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1091,"byte_start":1089,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1094,"byte_start":1092,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1739},"byte_end":1096,"byte_start":1094,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1098,"byte_start":1097,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":1107,"byte_start":1099,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1108,"byte_start":1107,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":1116,"byte_start":1108,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1117,"byte_start":1116,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1727},"byte_end":1119,"byte_start":1117,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1120,"byte_start":1119,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1730},"byte_end":1123,"byte_start":1121,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1124,"byte_start":1123,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1125,"byte_start":1124,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1724},"byte_end":1127,"byte_start":1126,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1128,"byte_start":1127,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1130,"byte_start":1128,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1131,"byte_start":1130,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1136,"byte_start":1132,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1139,"byte_start":1137,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1142,"byte_start":1140,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1748},"byte_end":1144,"byte_start":1142,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1146,"byte_start":1145,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":1164,"byte_start":1147,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1165,"byte_start":1164,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1173,"byte_start":1165,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1174,"byte_start":1173,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1736},"byte_end":1176,"byte_start":1174,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1177,"byte_start":1176,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1739},"byte_end":1180,"byte_start":1178,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1181,"byte_start":1180,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1182,"byte_start":1181,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1184,"byte_start":1183,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1185,"byte_start":1184,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1187,"byte_start":1185,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1188,"byte_start":1187,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1193,"byte_start":1189,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1196,"byte_start":1194,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1199,"byte_start":1197,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1745},"byte_end":1201,"byte_start":1199,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1203,"byte_start":1202,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-add.h-add","form":"h-add","kind":"form","package":"lean.mathlib"},"byte_end":1212,"byte_start":1204,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1213,"byte_start":1212,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1733},"byte_end":1215,"byte_start":1213,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1216,"byte_start":1215,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1748},"byte_end":1219,"byte_start":1217,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1220,"byte_start":1219,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1222,"byte_start":1220,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1223,"byte_start":1222,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1228,"byte_start":1224,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1231,"byte_start":1229,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1234,"byte_start":1232,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1742},"byte_end":1236,"byte_start":1234,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1238,"byte_start":1237,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":1256,"byte_start":1239,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1257,"byte_start":1256,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1265,"byte_start":1257,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1266,"byte_start":1265,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1730},"byte_end":1268,"byte_start":1266,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1269,"byte_start":1268,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1745},"byte_end":1272,"byte_start":1270,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1273,"byte_start":1272,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1274,"byte_start":1273,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1276,"byte_start":1275,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1277,"byte_start":1276,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1279,"byte_start":1277,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1280,"byte_start":1279,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1285,"byte_start":1281,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1288,"byte_start":1286,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1291,"byte_start":1289,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1751},"byte_end":1294,"byte_start":1291,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1296,"byte_start":1295,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1305,"byte_start":1297,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1306,"byte_start":1305,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":1322,"byte_start":1306,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1323,"byte_start":1322,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1742},"byte_end":1325,"byte_start":1323,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1326,"byte_start":1325,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1328,"byte_start":1327,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1329,"byte_start":1328,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1330,"byte_start":1329,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1745},"byte_end":1333,"byte_start":1331,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1334,"byte_start":1333,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1336,"byte_start":1334,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1337,"byte_start":1336,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1342,"byte_start":1338,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1345,"byte_start":1343,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1348,"byte_start":1346,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1754},"byte_end":1351,"byte_start":1348,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1353,"byte_start":1352,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":1362,"byte_start":1354,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1363,"byte_start":1362,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1745},"byte_end":1365,"byte_start":1363,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1366,"byte_start":1365,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1748},"byte_end":1369,"byte_start":1367,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1370,"byte_start":1369,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1372,"byte_start":1370,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1373,"byte_start":1372,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1378,"byte_start":1374,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1381,"byte_start":1379,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1384,"byte_start":1382,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1757},"byte_end":1387,"byte_start":1384,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1389,"byte_start":1388,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1398,"byte_start":1390,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1399,"byte_start":1398,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":1415,"byte_start":1399,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1416,"byte_start":1415,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1748},"byte_end":1418,"byte_start":1416,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1419,"byte_start":1418,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1421,"byte_start":1420,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1422,"byte_start":1421,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1423,"byte_start":1422,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1739},"byte_end":1426,"byte_start":1424,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1427,"byte_start":1426,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1429,"byte_start":1427,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1430,"byte_start":1429,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1435,"byte_start":1431,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1438,"byte_start":1436,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1441,"byte_start":1439,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1760},"byte_end":1444,"byte_start":1441,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1446,"byte_start":1445,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":1455,"byte_start":1447,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1456,"byte_start":1455,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":1464,"byte_start":1456,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1465,"byte_start":1464,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1739},"byte_end":1467,"byte_start":1465,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1468,"byte_start":1467,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1751},"byte_end":1472,"byte_start":1469,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1473,"byte_start":1472,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1474,"byte_start":1473,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1724},"byte_end":1476,"byte_start":1475,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1477,"byte_start":1476,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1479,"byte_start":1477,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1480,"byte_start":1479,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1485,"byte_start":1481,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1488,"byte_start":1486,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1491,"byte_start":1489,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1766},"byte_end":1493,"byte_start":1491,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1495,"byte_start":1494,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1504,"byte_start":1496,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1505,"byte_start":1504,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":1521,"byte_start":1505,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1522,"byte_start":1521,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1751},"byte_end":1525,"byte_start":1522,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1526,"byte_start":1525,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1529,"byte_start":1527,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1530,"byte_start":1529,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1531,"byte_start":1530,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1754},"byte_end":1535,"byte_start":1532,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1536,"byte_start":1535,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1538,"byte_start":1536,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1539,"byte_start":1538,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1544,"byte_start":1540,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1547,"byte_start":1545,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1550,"byte_start":1548,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1769},"byte_end":1552,"byte_start":1550,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1554,"byte_start":1553,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":1563,"byte_start":1555,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1564,"byte_start":1563,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1754},"byte_end":1567,"byte_start":1564,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1568,"byte_start":1567,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1757},"byte_end":1572,"byte_start":1569,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1573,"byte_start":1572,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1575,"byte_start":1573,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1576,"byte_start":1575,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1581,"byte_start":1577,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1584,"byte_start":1582,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1587,"byte_start":1585,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1772},"byte_end":1589,"byte_start":1587,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1591,"byte_start":1590,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1600,"byte_start":1592,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1601,"byte_start":1600,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":1617,"byte_start":1601,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1618,"byte_start":1617,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1757},"byte_end":1621,"byte_start":1618,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1622,"byte_start":1621,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1625,"byte_start":1623,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1626,"byte_start":1625,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1627,"byte_start":1626,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1760},"byte_end":1631,"byte_start":1628,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1632,"byte_start":1631,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1634,"byte_start":1632,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1635,"byte_start":1634,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1640,"byte_start":1636,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"if","kind":"structural","package":"lexlean.core"},"byte_end":1643,"byte_start":1641,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1646,"byte_start":1644,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1763},"byte_end":1648,"byte_start":1646,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1650,"byte_start":1649,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":1659,"byte_start":1651,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1660,"byte_start":1659,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"h-sub.h-sub","form":"h-sub","kind":"form","package":"lean.mathlib"},"byte_end":1668,"byte_start":1660,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1669,"byte_start":1668,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1760},"byte_end":1672,"byte_start":1669,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1673,"byte_start":1672,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1766},"byte_end":1676,"byte_start":1674,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1677,"byte_start":1676,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1678,"byte_start":1677,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1721},"byte_end":1680,"byte_start":1679,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1681,"byte_start":1680,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1683,"byte_start":1681,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1684,"byte_start":1683,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"then","kind":"structural","package":"lexlean.core"},"byte_end":1689,"byte_start":1685,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1692,"byte_start":1690,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1763},"byte_end":1694,"byte_start":1692,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1696,"byte_start":1695,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1709},"byte_end":1698,"byte_start":1697,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1700,"byte_start":1698,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":1704,"byte_start":1701,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1707,"byte_start":1705,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1766},"byte_end":1709,"byte_start":1707,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1711,"byte_start":1710,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1712},"byte_end":1713,"byte_start":1712,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1715,"byte_start":1713,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":1719,"byte_start":1716,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1722,"byte_start":1720,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1769},"byte_end":1724,"byte_start":1722,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1726,"byte_start":1725,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1715},"byte_end":1728,"byte_start":1727,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1730,"byte_start":1728,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":1734,"byte_start":1731,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1737,"byte_start":1735,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1772},"byte_end":1739,"byte_start":1737,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1741,"byte_start":1740,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1718},"byte_end":1743,"byte_start":1742,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1745,"byte_start":1743,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":1746,"byte_start":1745,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1755,"byte_start":1749,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1756,"byte_start":1755,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1761,"byte_start":1756,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1762,"byte_start":1761,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"assume","kind":"structural","package":"lexlean.core"},"byte_end":1771,"byte_start":1765,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1774,"byte_start":1772,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2400},"byte_end":1776,"byte_start":1774,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1778,"byte_start":1776,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1779,"byte_start":1778,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1782,"byte_start":1780,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2399},"byte_end":1784,"byte_start":1782,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1786,"byte_start":1784,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1787,"byte_start":1786,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1790,"byte_start":1788,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2398},"byte_end":1792,"byte_start":1790,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1794,"byte_start":1792,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1795,"byte_start":1794,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1798,"byte_start":1796,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2397},"byte_end":1800,"byte_start":1798,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1802,"byte_start":1800,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1803,"byte_start":1802,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1806,"byte_start":1804,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2396},"byte_end":1808,"byte_start":1806,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1810,"byte_start":1808,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1811,"byte_start":1810,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1814,"byte_start":1812,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2395},"byte_end":1816,"byte_start":1814,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1818,"byte_start":1816,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1819,"byte_start":1818,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1822,"byte_start":1820,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2394},"byte_end":1824,"byte_start":1822,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1826,"byte_start":1824,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1827,"byte_start":1826,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1830,"byte_start":1828,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2393},"byte_end":1832,"byte_start":1830,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1834,"byte_start":1832,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1835,"byte_start":1834,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1838,"byte_start":1836,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2392},"byte_end":1840,"byte_start":1838,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1842,"byte_start":1840,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1843,"byte_start":1842,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1846,"byte_start":1844,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2391},"byte_end":1848,"byte_start":1846,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1850,"byte_start":1848,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1851,"byte_start":1850,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1854,"byte_start":1852,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2390},"byte_end":1856,"byte_start":1854,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1858,"byte_start":1856,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1859,"byte_start":1858,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1862,"byte_start":1860,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2389},"byte_end":1864,"byte_start":1862,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1866,"byte_start":1864,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1867,"byte_start":1866,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1870,"byte_start":1868,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2388},"byte_end":1872,"byte_start":1870,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1874,"byte_start":1872,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1875,"byte_start":1874,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1878,"byte_start":1876,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2387},"byte_end":1880,"byte_start":1878,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1882,"byte_start":1880,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1883,"byte_start":1882,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1886,"byte_start":1884,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2386},"byte_end":1888,"byte_start":1886,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1890,"byte_start":1888,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1891,"byte_start":1890,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1894,"byte_start":1892,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2385},"byte_end":1896,"byte_start":1894,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1898,"byte_start":1896,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":1899,"byte_start":1898,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1908,"byte_start":1902,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1909,"byte_start":1908,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":1913,"byte_start":1909,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1914,"byte_start":1913,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1915,"byte_start":1914,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":1917,"byte_start":1915,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":1918,"byte_start":1917,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1919,"byte_start":1918,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1924,"byte_start":1922,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1751},"byte_end":1927,"byte_start":1924,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1929,"byte_start":1928,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1730},"byte_end":1932,"byte_start":1930,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1934,"byte_start":1932,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":1935,"byte_start":1934,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1944,"byte_start":1938,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1945,"byte_start":1944,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1950,"byte_start":1945,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1951,"byte_start":1950,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1960,"byte_start":1954,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1961,"byte_start":1960,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":1968,"byte_start":1961,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1969,"byte_start":1968,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1970,"byte_start":1969,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":1974,"byte_start":1970,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1975,"byte_start":1974,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":1986,"byte_start":1978,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1987,"byte_start":1986,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2392},"byte_end":1989,"byte_start":1987,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1990,"byte_start":1989,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2001,"byte_start":1993,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2002,"byte_start":2001,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2393},"byte_end":2004,"byte_start":2002,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2005,"byte_start":2004,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2012,"byte_start":2008,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2013,"byte_start":2012,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2020,"byte_start":2013,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2021,"byte_start":2020,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":2029,"byte_start":2024,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":2033,"byte_start":2030,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":2038,"byte_start":2034,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":2043,"byte_start":2039,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2046,"byte_start":2044,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":2056,"byte_start":2046,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2057,"byte_start":2056,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2065,"byte_start":2057,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2066,"byte_start":2065,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2067,"byte_start":2066,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2072,"byte_start":2067,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2073,"byte_start":2072,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":2074,"byte_start":2073,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1730},"byte_end":2076,"byte_start":2074,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2077,"byte_start":2076,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1745},"byte_end":2080,"byte_start":2078,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2081,"byte_start":2080,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":2083,"byte_start":2082,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":2084,"byte_start":2083,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2086,"byte_start":2084,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2087,"byte_start":2086,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2094,"byte_start":2090,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2095,"byte_start":2094,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2100,"byte_start":2095,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2101,"byte_start":2100,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2108,"byte_start":2104,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2109,"byte_start":2108,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":2113,"byte_start":2109,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2114,"byte_start":2113,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2123,"byte_start":2117,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2124,"byte_start":2123,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":2128,"byte_start":2124,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2129,"byte_start":2128,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2130,"byte_start":2129,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":2132,"byte_start":2130,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":2133,"byte_start":2132,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2134,"byte_start":2133,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2139,"byte_start":2137,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1754},"byte_end":2142,"byte_start":2139,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":2144,"byte_start":2143,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1733},"byte_end":2147,"byte_start":2145,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2149,"byte_start":2147,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2150,"byte_start":2149,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2159,"byte_start":2153,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2160,"byte_start":2159,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2165,"byte_start":2160,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2166,"byte_start":2165,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2175,"byte_start":2169,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2176,"byte_start":2175,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2183,"byte_start":2176,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2184,"byte_start":2183,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2185,"byte_start":2184,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":2189,"byte_start":2185,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2190,"byte_start":2189,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2201,"byte_start":2193,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2202,"byte_start":2201,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2391},"byte_end":2204,"byte_start":2202,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2205,"byte_start":2204,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2216,"byte_start":2208,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2217,"byte_start":2216,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2394},"byte_end":2219,"byte_start":2217,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2220,"byte_start":2219,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2227,"byte_start":2223,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2228,"byte_start":2227,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2235,"byte_start":2228,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2236,"byte_start":2235,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":2244,"byte_start":2239,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":2248,"byte_start":2245,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":2253,"byte_start":2249,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":2258,"byte_start":2254,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2261,"byte_start":2259,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":2271,"byte_start":2261,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2272,"byte_start":2271,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2284,"byte_start":2272,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2285,"byte_start":2284,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2286,"byte_start":2285,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2289,"byte_start":2286,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2290,"byte_start":2289,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2293,"byte_start":2290,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2294,"byte_start":2293,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2300,"byte_start":2294,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2301,"byte_start":2300,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":2302,"byte_start":2301,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1733},"byte_end":2304,"byte_start":2302,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2305,"byte_start":2304,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1748},"byte_end":2308,"byte_start":2306,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":2309,"byte_start":2308,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2311,"byte_start":2309,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2312,"byte_start":2311,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2319,"byte_start":2315,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2320,"byte_start":2319,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2325,"byte_start":2320,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2326,"byte_start":2325,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2333,"byte_start":2329,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2334,"byte_start":2333,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":2338,"byte_start":2334,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2339,"byte_start":2338,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2348,"byte_start":2342,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2349,"byte_start":2348,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":2353,"byte_start":2349,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2354,"byte_start":2353,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2355,"byte_start":2354,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":2357,"byte_start":2355,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":2358,"byte_start":2357,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2359,"byte_start":2358,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2364,"byte_start":2362,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1757},"byte_end":2367,"byte_start":2364,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":2369,"byte_start":2368,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1736},"byte_end":2372,"byte_start":2370,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2374,"byte_start":2372,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2375,"byte_start":2374,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2384,"byte_start":2378,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2385,"byte_start":2384,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2390,"byte_start":2385,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2391,"byte_start":2390,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2400,"byte_start":2394,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2401,"byte_start":2400,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2408,"byte_start":2401,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2409,"byte_start":2408,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2410,"byte_start":2409,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":2414,"byte_start":2410,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2415,"byte_start":2414,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2426,"byte_start":2418,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2427,"byte_start":2426,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2390},"byte_end":2429,"byte_start":2427,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2430,"byte_start":2429,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2441,"byte_start":2433,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2442,"byte_start":2441,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2395},"byte_end":2444,"byte_start":2442,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2445,"byte_start":2444,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2452,"byte_start":2448,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2453,"byte_start":2452,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2460,"byte_start":2453,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2461,"byte_start":2460,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":2469,"byte_start":2464,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":2473,"byte_start":2470,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":2478,"byte_start":2474,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":2483,"byte_start":2479,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2486,"byte_start":2484,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":2496,"byte_start":2486,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2497,"byte_start":2496,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2505,"byte_start":2497,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2506,"byte_start":2505,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2507,"byte_start":2506,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2512,"byte_start":2507,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2513,"byte_start":2512,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":2514,"byte_start":2513,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1736},"byte_end":2516,"byte_start":2514,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2517,"byte_start":2516,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1739},"byte_end":2520,"byte_start":2518,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2521,"byte_start":2520,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":2523,"byte_start":2522,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":2524,"byte_start":2523,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2526,"byte_start":2524,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2527,"byte_start":2526,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2534,"byte_start":2530,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2535,"byte_start":2534,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2540,"byte_start":2535,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2541,"byte_start":2540,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2548,"byte_start":2544,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2549,"byte_start":2548,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":2553,"byte_start":2549,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2554,"byte_start":2553,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2563,"byte_start":2557,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2564,"byte_start":2563,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":2568,"byte_start":2564,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2569,"byte_start":2568,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2570,"byte_start":2569,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":2572,"byte_start":2570,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":2573,"byte_start":2572,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2574,"byte_start":2573,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2579,"byte_start":2577,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1760},"byte_end":2582,"byte_start":2579,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":2584,"byte_start":2583,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1727},"byte_end":2587,"byte_start":2585,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2589,"byte_start":2587,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2590,"byte_start":2589,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2599,"byte_start":2593,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2600,"byte_start":2599,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2605,"byte_start":2600,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2606,"byte_start":2605,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2615,"byte_start":2609,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2616,"byte_start":2615,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2623,"byte_start":2616,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2624,"byte_start":2623,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2625,"byte_start":2624,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":2629,"byte_start":2625,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2630,"byte_start":2629,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2641,"byte_start":2633,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2642,"byte_start":2641,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2389},"byte_end":2644,"byte_start":2642,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2645,"byte_start":2644,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2656,"byte_start":2648,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2657,"byte_start":2656,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4459},"byte_end":2660,"byte_start":2657,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2661,"byte_start":2660,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2672,"byte_start":2664,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2673,"byte_start":2672,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2396},"byte_end":2675,"byte_start":2673,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2676,"byte_start":2675,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2683,"byte_start":2679,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2684,"byte_start":2683,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2691,"byte_start":2684,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2692,"byte_start":2691,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":2700,"byte_start":2695,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":2704,"byte_start":2701,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":2709,"byte_start":2705,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":2714,"byte_start":2710,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2717,"byte_start":2715,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":2727,"byte_start":2717,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2728,"byte_start":2727,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2740,"byte_start":2728,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2741,"byte_start":2740,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2742,"byte_start":2741,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2745,"byte_start":2742,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2746,"byte_start":2745,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2749,"byte_start":2746,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2750,"byte_start":2749,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2753,"byte_start":2750,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2754,"byte_start":2753,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":2760,"byte_start":2754,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2761,"byte_start":2760,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":2762,"byte_start":2761,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1727},"byte_end":2764,"byte_start":2762,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2765,"byte_start":2764,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1730},"byte_end":2768,"byte_start":2766,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":2769,"byte_start":2768,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1724},"byte_end":2771,"byte_start":2770,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":2772,"byte_start":2771,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2774,"byte_start":2772,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2775,"byte_start":2774,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2782,"byte_start":2778,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2783,"byte_start":2782,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2788,"byte_start":2783,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2789,"byte_start":2788,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2796,"byte_start":2792,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2797,"byte_start":2796,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":2801,"byte_start":2797,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2802,"byte_start":2801,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2811,"byte_start":2805,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2812,"byte_start":2811,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":2816,"byte_start":2812,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2817,"byte_start":2816,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2818,"byte_start":2817,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":2820,"byte_start":2818,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2821,"byte_start":2820,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2826,"byte_start":2824,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1766},"byte_end":2828,"byte_start":2826,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":2830,"byte_start":2829,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1712},"byte_end":2832,"byte_start":2831,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":2834,"byte_start":2832,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":2835,"byte_start":2834,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2844,"byte_start":2838,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2845,"byte_start":2844,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":2850,"byte_start":2845,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2851,"byte_start":2850,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":2860,"byte_start":2854,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2861,"byte_start":2860,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2868,"byte_start":2861,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2869,"byte_start":2868,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2870,"byte_start":2869,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":2874,"byte_start":2870,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2875,"byte_start":2874,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2886,"byte_start":2878,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2887,"byte_start":2886,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2388},"byte_end":2889,"byte_start":2887,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2890,"byte_start":2889,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2901,"byte_start":2893,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2902,"byte_start":2901,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4459},"byte_end":2905,"byte_start":2902,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2906,"byte_start":2905,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2917,"byte_start":2909,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2918,"byte_start":2917,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4465},"byte_end":2921,"byte_start":2918,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2922,"byte_start":2921,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":2933,"byte_start":2925,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2934,"byte_start":2933,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2397},"byte_end":2936,"byte_start":2934,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2937,"byte_start":2936,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":2944,"byte_start":2940,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2945,"byte_start":2944,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":2952,"byte_start":2945,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":2953,"byte_start":2952,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":2961,"byte_start":2956,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":2965,"byte_start":2962,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":2970,"byte_start":2966,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":2975,"byte_start":2971,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":2978,"byte_start":2976,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":2988,"byte_start":2978,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":2989,"byte_start":2988,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2997,"byte_start":2989,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2998,"byte_start":2997,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":2999,"byte_start":2998,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":3004,"byte_start":2999,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3005,"byte_start":3004,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":3006,"byte_start":3005,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1712},"byte_end":3007,"byte_start":3006,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":3008,"byte_start":3007,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1733},"byte_end":3011,"byte_start":3009,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":3012,"byte_start":3011,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":3015,"byte_start":3013,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":3016,"byte_start":3015,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":3018,"byte_start":3016,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":3019,"byte_start":3018,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3026,"byte_start":3022,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3027,"byte_start":3026,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":3032,"byte_start":3027,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3033,"byte_start":3032,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3040,"byte_start":3036,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3041,"byte_start":3040,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":3045,"byte_start":3041,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3046,"byte_start":3045,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3055,"byte_start":3049,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3056,"byte_start":3055,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":3060,"byte_start":3056,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3061,"byte_start":3060,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3062,"byte_start":3061,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":3064,"byte_start":3062,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3065,"byte_start":3064,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":3070,"byte_start":3068,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1769},"byte_end":3072,"byte_start":3070,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":3074,"byte_start":3073,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1715},"byte_end":3076,"byte_start":3075,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":3078,"byte_start":3076,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":3079,"byte_start":3078,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3088,"byte_start":3082,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3089,"byte_start":3088,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":3094,"byte_start":3089,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3095,"byte_start":3094,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3104,"byte_start":3098,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3105,"byte_start":3104,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":3112,"byte_start":3105,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3113,"byte_start":3112,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3114,"byte_start":3113,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":3118,"byte_start":3114,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3119,"byte_start":3118,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3130,"byte_start":3122,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3131,"byte_start":3130,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2387},"byte_end":3133,"byte_start":3131,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3134,"byte_start":3133,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3145,"byte_start":3137,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3146,"byte_start":3145,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4465},"byte_end":3149,"byte_start":3146,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3150,"byte_start":3149,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3161,"byte_start":3153,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3162,"byte_start":3161,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4472},"byte_end":3165,"byte_start":3162,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3166,"byte_start":3165,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3177,"byte_start":3169,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3178,"byte_start":3177,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2398},"byte_end":3180,"byte_start":3178,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3181,"byte_start":3180,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3188,"byte_start":3184,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3189,"byte_start":3188,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":3196,"byte_start":3189,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3197,"byte_start":3196,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":3205,"byte_start":3200,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":3209,"byte_start":3206,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":3214,"byte_start":3210,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":3219,"byte_start":3215,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":3222,"byte_start":3220,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":3232,"byte_start":3222,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3233,"byte_start":3232,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3245,"byte_start":3233,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3246,"byte_start":3245,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3247,"byte_start":3246,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3250,"byte_start":3247,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3251,"byte_start":3250,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3254,"byte_start":3251,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3255,"byte_start":3254,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3261,"byte_start":3255,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3262,"byte_start":3261,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":3263,"byte_start":3262,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1715},"byte_end":3264,"byte_start":3263,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":3265,"byte_start":3264,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1736},"byte_end":3268,"byte_start":3266,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":3269,"byte_start":3268,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":3271,"byte_start":3269,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":3272,"byte_start":3271,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3279,"byte_start":3275,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3280,"byte_start":3279,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":3285,"byte_start":3280,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3286,"byte_start":3285,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3293,"byte_start":3289,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3294,"byte_start":3293,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":3298,"byte_start":3294,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3299,"byte_start":3298,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3308,"byte_start":3302,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3309,"byte_start":3308,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":3313,"byte_start":3309,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3314,"byte_start":3313,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3315,"byte_start":3314,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":3317,"byte_start":3315,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3318,"byte_start":3317,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":3323,"byte_start":3321,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1772},"byte_end":3325,"byte_start":3323,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":3327,"byte_start":3326,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1718},"byte_end":3329,"byte_start":3328,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":3331,"byte_start":3329,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":3332,"byte_start":3331,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3341,"byte_start":3335,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3342,"byte_start":3341,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":3347,"byte_start":3342,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3348,"byte_start":3347,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3357,"byte_start":3351,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3358,"byte_start":3357,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":3365,"byte_start":3358,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3366,"byte_start":3365,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3367,"byte_start":3366,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":3371,"byte_start":3367,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3372,"byte_start":3371,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3383,"byte_start":3375,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3384,"byte_start":3383,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2386},"byte_end":3386,"byte_start":3384,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3387,"byte_start":3386,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3398,"byte_start":3390,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3399,"byte_start":3398,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4472},"byte_end":3402,"byte_start":3399,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3403,"byte_start":3402,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3414,"byte_start":3406,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3415,"byte_start":3414,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4478},"byte_end":3418,"byte_start":3415,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3419,"byte_start":3418,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3430,"byte_start":3422,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3431,"byte_start":3430,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2399},"byte_end":3433,"byte_start":3431,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3434,"byte_start":3433,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3441,"byte_start":3437,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3442,"byte_start":3441,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":3449,"byte_start":3442,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3450,"byte_start":3449,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":3458,"byte_start":3453,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":3462,"byte_start":3459,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":3467,"byte_start":3463,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":3472,"byte_start":3468,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":3475,"byte_start":3473,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":3485,"byte_start":3475,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3486,"byte_start":3485,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":3494,"byte_start":3486,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":3495,"byte_start":3494,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":3496,"byte_start":3495,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"unmix","kind":"reference","module":"Rotation"},"byte_end":3501,"byte_start":3496,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3502,"byte_start":3501,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":3503,"byte_start":3502,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1718},"byte_end":3504,"byte_start":3503,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":3505,"byte_start":3504,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1727},"byte_end":3508,"byte_start":3506,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":3509,"byte_start":3508,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":3512,"byte_start":3510,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":3513,"byte_start":3512,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":3515,"byte_start":3513,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":3516,"byte_start":3515,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3523,"byte_start":3519,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3524,"byte_start":3523,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":3529,"byte_start":3524,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3530,"byte_start":3529,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3537,"byte_start":3533,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3538,"byte_start":3537,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":3542,"byte_start":3538,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3543,"byte_start":3542,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3552,"byte_start":3546,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3553,"byte_start":3552,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":3557,"byte_start":3553,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3558,"byte_start":3557,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3559,"byte_start":3558,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.have"},"byte_end":3561,"byte_start":3559,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3562,"byte_start":3561,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":3567,"byte_start":3565,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1763},"byte_end":3569,"byte_start":3567,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":3571,"byte_start":3570,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1709},"byte_end":3573,"byte_start":3572,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":3575,"byte_start":3573,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":3576,"byte_start":3575,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3585,"byte_start":3579,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3586,"byte_start":3585,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":3591,"byte_start":3586,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3592,"byte_start":3591,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3601,"byte_start":3595,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3602,"byte_start":3601,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":3609,"byte_start":3602,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3610,"byte_start":3609,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3611,"byte_start":3610,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":3615,"byte_start":3611,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3616,"byte_start":3615,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3627,"byte_start":3619,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3628,"byte_start":3627,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2385},"byte_end":3630,"byte_start":3628,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3631,"byte_start":3630,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3642,"byte_start":3634,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3643,"byte_start":3642,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4478},"byte_end":3646,"byte_start":3643,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3647,"byte_start":3646,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3658,"byte_start":3650,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3659,"byte_start":3658,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4485},"byte_end":3661,"byte_start":3659,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3662,"byte_start":3661,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":3673,"byte_start":3665,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3674,"byte_start":3673,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":2400},"byte_end":3676,"byte_start":3674,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3677,"byte_start":3676,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3684,"byte_start":3680,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3685,"byte_start":3684,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":3692,"byte_start":3685,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3693,"byte_start":3692,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":3701,"byte_start":3696,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":3705,"byte_start":3702,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":3710,"byte_start":3706,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":3715,"byte_start":3711,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":3718,"byte_start":3716,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":3728,"byte_start":3718,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3729,"byte_start":3728,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3741,"byte_start":3729,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3742,"byte_start":3741,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3743,"byte_start":3742,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3746,"byte_start":3743,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3747,"byte_start":3746,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3750,"byte_start":3747,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3751,"byte_start":3750,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3754,"byte_start":3751,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3755,"byte_start":3754,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"component":"add-sub-sub-cancel","kind":"reference","module":"Cancellation"},"byte_end":3761,"byte_start":3755,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3762,"byte_start":3761,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":3763,"byte_start":3762,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1709},"byte_end":3764,"byte_start":3763,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":3765,"byte_start":3764,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1712},"byte_end":3767,"byte_start":3766,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":3768,"byte_start":3767,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":1721},"byte_end":3770,"byte_start":3769,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":3771,"byte_start":3770,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":3773,"byte_start":3771,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":3774,"byte_start":3773,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3781,"byte_start":3777,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3782,"byte_start":3781,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":3787,"byte_start":3782,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3788,"byte_start":3787,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3795,"byte_start":3791,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3796,"byte_start":3795,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.have","kind":"structural","package":"lexlean.core"},"byte_end":3800,"byte_start":3796,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3801,"byte_start":3800,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3810,"byte_start":3804,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3811,"byte_start":3810,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":3822,"byte_start":3811,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3823,"byte_start":3822,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3832,"byte_start":3826,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3833,"byte_start":3832,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":3839,"byte_start":3833,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3840,"byte_start":3839,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3841,"byte_start":3840,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":3842,"byte_start":3841,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3843,"byte_start":3842,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3852,"byte_start":3846,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3853,"byte_start":3852,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":3864,"byte_start":3853,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3865,"byte_start":3864,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3874,"byte_start":3868,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3875,"byte_start":3874,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":3881,"byte_start":3875,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3882,"byte_start":3881,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3883,"byte_start":3882,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":3884,"byte_start":3883,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3885,"byte_start":3884,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3894,"byte_start":3888,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3895,"byte_start":3894,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":3906,"byte_start":3895,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3907,"byte_start":3906,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3916,"byte_start":3910,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3917,"byte_start":3916,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":3923,"byte_start":3917,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3924,"byte_start":3923,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3925,"byte_start":3924,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":3926,"byte_start":3925,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3927,"byte_start":3926,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":3935,"byte_start":3930,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":3939,"byte_start":3936,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":3944,"byte_start":3940,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":3949,"byte_start":3945,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":3952,"byte_start":3950,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4504},"byte_end":3954,"byte_start":3952,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":3956,"byte_start":3954,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":3957,"byte_start":3956,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":3964,"byte_start":3960,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3965,"byte_start":3964,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":3971,"byte_start":3965,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3972,"byte_start":3971,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":3981,"byte_start":3975,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3982,"byte_start":3981,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":3988,"byte_start":3982,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3989,"byte_start":3988,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":3990,"byte_start":3989,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":3991,"byte_start":3990,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":3992,"byte_start":3991,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":4000,"byte_start":3995,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":4004,"byte_start":4001,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":4009,"byte_start":4005,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":4014,"byte_start":4010,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":4017,"byte_start":4015,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4485},"byte_end":4019,"byte_start":4017,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":4021,"byte_start":4019,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":4022,"byte_start":4021,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4029,"byte_start":4025,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4030,"byte_start":4029,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":4036,"byte_start":4030,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4037,"byte_start":4036,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4044,"byte_start":4040,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4045,"byte_start":4044,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":4056,"byte_start":4045,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4057,"byte_start":4056,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4064,"byte_start":4060,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4065,"byte_start":4064,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":4071,"byte_start":4065,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4072,"byte_start":4071,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":4081,"byte_start":4075,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4082,"byte_start":4081,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":4088,"byte_start":4082,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4089,"byte_start":4088,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4090,"byte_start":4089,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":4091,"byte_start":4090,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4092,"byte_start":4091,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":4100,"byte_start":4095,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":4104,"byte_start":4101,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":4109,"byte_start":4105,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":4114,"byte_start":4110,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":4117,"byte_start":4115,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4491},"byte_end":4119,"byte_start":4117,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":4121,"byte_start":4119,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":4122,"byte_start":4121,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4129,"byte_start":4125,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4130,"byte_start":4129,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":4136,"byte_start":4130,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4137,"byte_start":4136,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4144,"byte_start":4140,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4145,"byte_start":4144,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":4156,"byte_start":4145,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4157,"byte_start":4156,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4164,"byte_start":4160,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4165,"byte_start":4164,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":4171,"byte_start":4165,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4172,"byte_start":4171,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":4181,"byte_start":4175,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4182,"byte_start":4181,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":4188,"byte_start":4182,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4189,"byte_start":4188,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4190,"byte_start":4189,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":4191,"byte_start":4190,"class":"numeral","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4192,"byte_start":4191,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":4200,"byte_start":4195,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":4204,"byte_start":4201,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":4209,"byte_start":4205,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":4214,"byte_start":4210,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":4217,"byte_start":4215,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"kind":"local","local":4498},"byte_end":4219,"byte_start":4217,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":4221,"byte_start":4219,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":4222,"byte_start":4221,"class":"ascii-symbol","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4229,"byte_start":4225,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4230,"byte_start":4229,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":4236,"byte_start":4230,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4237,"byte_start":4236,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4244,"byte_start":4240,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4245,"byte_start":4244,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":4256,"byte_start":4245,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4257,"byte_start":4256,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4264,"byte_start":4260,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4265,"byte_start":4264,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":4270,"byte_start":4265,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4271,"byte_start":4270,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4278,"byte_start":4274,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4279,"byte_start":4278,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":4286,"byte_start":4279,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4287,"byte_start":4286,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4292,"byte_start":4288,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4293,"byte_start":4292,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.section","kind":"structural","package":"lexlean.core"},"byte_end":4300,"byte_start":4293,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4301,"byte_start":4300,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":4306,"byte_start":4302,"class":"control","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":4307,"byte_start":4306,"class":"delimiter","path":"src/Mixing.lex.tex"},{"binding":{"entry":"env.lexlean","kind":"structural","package":"lexlean.core"},"byte_end":4314,"byte_start":4307,"class":"word","path":"src/Mixing.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":4315,"byte_start":4314,"class":"delimiter","path":"src/Mixing.lex.tex"}],"spec":"lexlean/coverage/1"} diff --git a/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Rotation.coverage.json b/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Rotation.coverage.json new file mode 100644 index 0000000000..5597b69471 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/coverage/MathlibBlake3G/Rotation.coverage.json @@ -0,0 +1 @@ +{"latex":[{"byte_end":14,"byte_start":0,"kind":"control","origin":{"kind":"renderer-token","token":"documentclass"}},{"byte_end":15,"byte_start":14,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":19,"byte_start":15,"kind":"word","origin":{"kind":"renderer-token","token":"opt-11pt"}},{"byte_end":20,"byte_start":19,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":21,"byte_start":20,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":28,"byte_start":21,"kind":"word","origin":{"kind":"renderer-token","token":"article"}},{"byte_end":29,"byte_start":28,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":41,"byte_start":30,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":42,"byte_start":41,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":44,"byte_start":42,"kind":"word","origin":{"kind":"renderer-token","token":"opt-t1"}},{"byte_end":45,"byte_start":44,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":46,"byte_start":45,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":53,"byte_start":46,"kind":"word","origin":{"kind":"renderer-token","token":"fontenc"}},{"byte_end":54,"byte_start":53,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":66,"byte_start":55,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":67,"byte_start":66,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":74,"byte_start":67,"kind":"word","origin":{"kind":"renderer-token","token":"amsmath"}},{"byte_end":75,"byte_start":74,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":87,"byte_start":76,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":88,"byte_start":87,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":95,"byte_start":88,"kind":"word","origin":{"kind":"renderer-token","token":"amssymb"}},{"byte_end":96,"byte_start":95,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":108,"byte_start":97,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":109,"byte_start":108,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":115,"byte_start":109,"kind":"word","origin":{"kind":"renderer-token","token":"amsthm"}},{"byte_end":116,"byte_start":115,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":128,"byte_start":117,"kind":"control","origin":{"kind":"renderer-token","token":"usepackage"}},{"byte_end":129,"byte_start":128,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":138,"byte_start":129,"kind":"word","origin":{"kind":"renderer-token","token":"hidelinks"}},{"byte_end":139,"byte_start":138,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":140,"byte_start":139,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":148,"byte_start":140,"kind":"word","origin":{"kind":"renderer-token","token":"hyperref"}},{"byte_end":149,"byte_start":148,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":161,"byte_start":150,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":162,"byte_start":161,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":169,"byte_start":162,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":170,"byte_start":169,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":171,"byte_start":170,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":178,"byte_start":171,"kind":"word","origin":{"kind":"renderer-token","token":"theorem-title"}},{"byte_end":179,"byte_start":178,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":180,"byte_start":179,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":187,"byte_start":180,"kind":"word","origin":{"kind":"renderer-token","token":"section-counter"}},{"byte_end":188,"byte_start":187,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":200,"byte_start":189,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":201,"byte_start":200,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":206,"byte_start":201,"kind":"word","origin":{"kind":"renderer-token","token":"lemma"}},{"byte_end":207,"byte_start":206,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":208,"byte_start":207,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":215,"byte_start":208,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":216,"byte_start":215,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":217,"byte_start":216,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":222,"byte_start":217,"kind":"word","origin":{"kind":"renderer-token","token":"lemma-title"}},{"byte_end":223,"byte_start":222,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":235,"byte_start":224,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":236,"byte_start":235,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":245,"byte_start":236,"kind":"word","origin":{"kind":"renderer-token","token":"corollary"}},{"byte_end":246,"byte_start":245,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":247,"byte_start":246,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":254,"byte_start":247,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":255,"byte_start":254,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":256,"byte_start":255,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":265,"byte_start":256,"kind":"word","origin":{"kind":"renderer-token","token":"corollary-title"}},{"byte_end":266,"byte_start":265,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":280,"byte_start":267,"kind":"control","origin":{"kind":"renderer-token","token":"theoremstyle"}},{"byte_end":281,"byte_start":280,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":291,"byte_start":281,"kind":"word","origin":{"kind":"renderer-token","token":"definition"}},{"byte_end":292,"byte_start":291,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":304,"byte_start":293,"kind":"control","origin":{"kind":"renderer-token","token":"newtheorem"}},{"byte_end":305,"byte_start":304,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":315,"byte_start":305,"kind":"word","origin":{"kind":"renderer-token","token":"definition"}},{"byte_end":316,"byte_start":315,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":317,"byte_start":316,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-bracket"}},{"byte_end":324,"byte_start":317,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":325,"byte_start":324,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-bracket"}},{"byte_end":326,"byte_start":325,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":336,"byte_start":326,"kind":"word","origin":{"kind":"renderer-token","token":"definition-title"}},{"byte_end":337,"byte_start":336,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":344,"byte_start":338,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":345,"byte_start":344,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":353,"byte_start":345,"kind":"word","origin":{"kind":"renderer-token","token":"document"}},{"byte_end":354,"byte_start":353,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":361,"byte_start":355,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":362,"byte_start":361,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":368,"byte_start":362,"kind":"word","origin":{"kind":"renderer-token","token":"center"}},{"byte_end":369,"byte_start":368,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":371,"byte_start":370,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":377,"byte_start":371,"kind":"control","origin":{"kind":"renderer-token","token":"large"}},{"byte_end":386,"byte_start":378,"kind":"word","origin":{"entry":"rotation","form":"rotation","kind":"form","package":"blake3.g"}},{"byte_end":387,"byte_start":386,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":392,"byte_start":388,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":393,"byte_start":392,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":399,"byte_start":393,"kind":"word","origin":{"kind":"renderer-token","token":"center"}},{"byte_end":400,"byte_start":399,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":409,"byte_start":401,"kind":"control","origin":{"kind":"renderer-token","token":"section"}},{"byte_end":410,"byte_start":409,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":418,"byte_start":410,"kind":"word","origin":{"entry":"rotation","form":"rotation","kind":"form","package":"blake3.g"}},{"byte_end":419,"byte_start":418,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":426,"byte_start":420,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":427,"byte_start":426,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":447,"byte_start":427,"kind":"word","origin":{"kind":"metadata","owner":"Rotation::rotation"}},{"byte_end":448,"byte_start":447,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":455,"byte_start":449,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":456,"byte_start":455,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":463,"byte_start":456,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":464,"byte_start":463,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":471,"byte_start":465,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":472,"byte_start":471,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":501,"byte_start":472,"kind":"word","origin":{"kind":"metadata","owner":"Rotation::rotate-left-right"}},{"byte_end":502,"byte_start":501,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":506,"byte_start":503,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":512,"byte_start":507,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":515,"byte_start":513,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":528,"byte_start":515,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":529,"byte_start":528,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":535,"byte_start":529,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":536,"byte_start":535,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":537,"byte_start":536,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":539,"byte_start":537,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":540,"byte_start":539,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":542,"byte_start":540,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":545,"byte_start":543,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":546,"byte_start":545,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":548,"byte_start":546,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":549,"byte_start":548,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":552,"byte_start":550,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":565,"byte_start":552,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":566,"byte_start":565,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":582,"byte_start":566,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":583,"byte_start":582,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":584,"byte_start":583,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":597,"byte_start":584,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":598,"byte_start":597,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":615,"byte_start":598,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":616,"byte_start":615,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":617,"byte_start":616,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":618,"byte_start":617,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":619,"byte_start":618,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":621,"byte_start":620,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":622,"byte_start":621,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":623,"byte_start":622,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":625,"byte_start":624,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":626,"byte_start":625,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":628,"byte_start":627,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":630,"byte_start":629,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":632,"byte_start":630,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":636,"byte_start":633,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":639,"byte_start":637,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":652,"byte_start":639,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":653,"byte_start":652,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":669,"byte_start":653,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":670,"byte_start":669,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":671,"byte_start":670,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":684,"byte_start":671,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":685,"byte_start":684,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":702,"byte_start":685,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":703,"byte_start":702,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":704,"byte_start":703,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":705,"byte_start":704,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":706,"byte_start":705,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":708,"byte_start":707,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":709,"byte_start":708,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":710,"byte_start":709,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":712,"byte_start":711,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":713,"byte_start":712,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":715,"byte_start":714,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":717,"byte_start":716,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":719,"byte_start":717,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":723,"byte_start":720,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":726,"byte_start":724,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":739,"byte_start":726,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":740,"byte_start":739,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":756,"byte_start":740,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":757,"byte_start":756,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":758,"byte_start":757,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":771,"byte_start":758,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":772,"byte_start":771,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":789,"byte_start":772,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":790,"byte_start":789,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":791,"byte_start":790,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":792,"byte_start":791,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":793,"byte_start":792,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":796,"byte_start":794,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":797,"byte_start":796,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":798,"byte_start":797,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":801,"byte_start":799,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":802,"byte_start":801,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":804,"byte_start":803,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":806,"byte_start":805,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":808,"byte_start":806,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":812,"byte_start":809,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":815,"byte_start":813,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":828,"byte_start":815,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":829,"byte_start":828,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":845,"byte_start":829,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":846,"byte_start":845,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":847,"byte_start":846,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":860,"byte_start":847,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":861,"byte_start":860,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":878,"byte_start":861,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":879,"byte_start":878,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":880,"byte_start":879,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":881,"byte_start":880,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":882,"byte_start":881,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":885,"byte_start":883,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":886,"byte_start":885,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":887,"byte_start":886,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":890,"byte_start":888,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":891,"byte_start":890,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":893,"byte_start":892,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":895,"byte_start":894,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":897,"byte_start":895,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":898,"byte_start":897,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":903,"byte_start":899,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":904,"byte_start":903,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":911,"byte_start":904,"kind":"word","origin":{"kind":"renderer-token","token":"theorem"}},{"byte_end":912,"byte_start":911,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":919,"byte_start":913,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":920,"byte_start":919,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":925,"byte_start":920,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":926,"byte_start":925,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":933,"byte_start":927,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":936,"byte_start":934,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":937,"byte_start":936,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":939,"byte_start":937,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":940,"byte_start":939,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":947,"byte_start":941,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":948,"byte_start":947,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":953,"byte_start":948,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":954,"byte_start":953,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":961,"byte_start":955,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":964,"byte_start":962,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":965,"byte_start":964,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":967,"byte_start":965,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":968,"byte_start":967,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":975,"byte_start":969,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":976,"byte_start":975,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":981,"byte_start":976,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":982,"byte_start":981,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":989,"byte_start":983,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":992,"byte_start":990,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":993,"byte_start":992,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":995,"byte_start":993,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":996,"byte_start":995,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":1003,"byte_start":997,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1004,"byte_start":1003,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1009,"byte_start":1004,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1010,"byte_start":1009,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1014,"byte_start":1011,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":1019,"byte_start":1015,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1027,"byte_start":1020,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":1032,"byte_start":1028,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":1035,"byte_start":1033,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1048,"byte_start":1035,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1049,"byte_start":1048,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1081,"byte_start":1049,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::blake3-g-host.rotate-left-rotate-right"}},{"byte_end":1082,"byte_start":1081,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1083,"byte_start":1082,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1084,"byte_start":1083,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":1085,"byte_start":1084,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1087,"byte_start":1086,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1088,"byte_start":1087,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1090,"byte_start":1088,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1091,"byte_start":1090,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1096,"byte_start":1092,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1097,"byte_start":1096,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1102,"byte_start":1097,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1103,"byte_start":1102,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1110,"byte_start":1104,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":1113,"byte_start":1111,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1114,"byte_start":1113,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1116,"byte_start":1114,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1117,"byte_start":1116,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":1124,"byte_start":1118,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1125,"byte_start":1124,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1130,"byte_start":1125,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1131,"byte_start":1130,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1135,"byte_start":1132,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":1140,"byte_start":1136,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1148,"byte_start":1141,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":1153,"byte_start":1149,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":1156,"byte_start":1154,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1169,"byte_start":1156,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1170,"byte_start":1169,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1202,"byte_start":1170,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::blake3-g-host.rotate-left-rotate-right"}},{"byte_end":1203,"byte_start":1202,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1204,"byte_start":1203,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1205,"byte_start":1204,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":1206,"byte_start":1205,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1208,"byte_start":1207,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1209,"byte_start":1208,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1211,"byte_start":1209,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1212,"byte_start":1211,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1217,"byte_start":1213,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1218,"byte_start":1217,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1223,"byte_start":1218,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1224,"byte_start":1223,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1229,"byte_start":1225,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1230,"byte_start":1229,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1235,"byte_start":1230,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1236,"byte_start":1235,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1243,"byte_start":1237,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":1246,"byte_start":1244,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1247,"byte_start":1246,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1249,"byte_start":1247,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1250,"byte_start":1249,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":1257,"byte_start":1251,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1258,"byte_start":1257,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1263,"byte_start":1258,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1264,"byte_start":1263,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1268,"byte_start":1265,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":1273,"byte_start":1269,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1281,"byte_start":1274,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":1286,"byte_start":1282,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":1289,"byte_start":1287,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1302,"byte_start":1289,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1303,"byte_start":1302,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1335,"byte_start":1303,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::blake3-g-host.rotate-left-rotate-right"}},{"byte_end":1336,"byte_start":1335,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1337,"byte_start":1336,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1338,"byte_start":1337,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":1339,"byte_start":1338,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1342,"byte_start":1340,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1343,"byte_start":1342,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1345,"byte_start":1343,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1346,"byte_start":1345,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1351,"byte_start":1347,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1352,"byte_start":1351,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1357,"byte_start":1352,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1358,"byte_start":1357,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1363,"byte_start":1359,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1364,"byte_start":1363,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1369,"byte_start":1364,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1370,"byte_start":1369,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1377,"byte_start":1371,"kind":"word","origin":{"entry":"branch-word","form":"branch","kind":"form","package":"lexlean.core"}},{"byte_end":1380,"byte_start":1378,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1381,"byte_start":1380,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1383,"byte_start":1381,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1384,"byte_start":1383,"kind":"punctuation","origin":{"entry":"colon","kind":"structural","package":"lexlean.core"}},{"byte_end":1391,"byte_start":1385,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1392,"byte_start":1391,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1397,"byte_start":1392,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1398,"byte_start":1397,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1402,"byte_start":1399,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":1407,"byte_start":1403,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1415,"byte_start":1408,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":1420,"byte_start":1416,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":1423,"byte_start":1421,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1436,"byte_start":1423,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1437,"byte_start":1436,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1469,"byte_start":1437,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::blake3-g-host.rotate-left-rotate-right"}},{"byte_end":1470,"byte_start":1469,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1471,"byte_start":1470,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1472,"byte_start":1471,"kind":"word","origin":{"kind":"local","local":1172}},{"byte_end":1473,"byte_start":1472,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1476,"byte_start":1474,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1477,"byte_start":1476,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1479,"byte_start":1477,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1480,"byte_start":1479,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1485,"byte_start":1481,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1486,"byte_start":1485,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1491,"byte_start":1486,"kind":"word","origin":{"kind":"renderer-token","token":"quote"}},{"byte_end":1492,"byte_start":1491,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1497,"byte_start":1493,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1498,"byte_start":1497,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1503,"byte_start":1498,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":1504,"byte_start":1503,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1511,"byte_start":1505,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1512,"byte_start":1511,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1517,"byte_start":1512,"kind":"word","origin":{"kind":"renderer-token","token":"lemma"}},{"byte_end":1518,"byte_start":1517,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1525,"byte_start":1519,"kind":"control","origin":{"kind":"renderer-token","token":"label"}},{"byte_end":1526,"byte_start":1525,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1543,"byte_start":1526,"kind":"word","origin":{"kind":"metadata","owner":"Rotation::unmix"}},{"byte_end":1544,"byte_start":1543,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1548,"byte_start":1545,"kind":"word","origin":{"entry":"for","form":"for-s","kind":"form","package":"lexlean.core"}},{"byte_end":1554,"byte_start":1549,"kind":"word","origin":{"entry":"every","form":"every-l","kind":"form","package":"lexlean.core"}},{"byte_end":1557,"byte_start":1555,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1570,"byte_start":1557,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1571,"byte_start":1570,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1577,"byte_start":1571,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1578,"byte_start":1577,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1579,"byte_start":1578,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1581,"byte_start":1579,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1582,"byte_start":1581,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1584,"byte_start":1582,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1587,"byte_start":1585,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1588,"byte_start":1587,"kind":"word","origin":{"kind":"local","local":1584}},{"byte_end":1590,"byte_start":1588,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1594,"byte_start":1591,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1597,"byte_start":1595,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1610,"byte_start":1597,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1611,"byte_start":1610,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1617,"byte_start":1611,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec"}},{"byte_end":1618,"byte_start":1617,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1619,"byte_start":1618,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1621,"byte_start":1619,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":1622,"byte_start":1621,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1624,"byte_start":1622,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1627,"byte_start":1625,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1628,"byte_start":1627,"kind":"word","origin":{"kind":"local","local":1587}},{"byte_end":1630,"byte_start":1628,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1634,"byte_start":1631,"kind":"word","origin":{"entry":"and","form":"and-l","kind":"form","package":"lexlean.core"}},{"byte_end":1637,"byte_start":1635,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1650,"byte_start":1637,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1651,"byte_start":1650,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1654,"byte_start":1651,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::nat"}},{"byte_end":1655,"byte_start":1654,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1657,"byte_start":1655,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1660,"byte_start":1658,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1661,"byte_start":1660,"kind":"word","origin":{"kind":"local","local":1588}},{"byte_end":1663,"byte_start":1661,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1664,"byte_start":1663,"kind":"punctuation","origin":{"entry":"comma","kind":"structural","package":"lexlean.core"}},{"byte_end":1667,"byte_start":1665,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1680,"byte_start":1667,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1681,"byte_start":1680,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1689,"byte_start":1681,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":1690,"byte_start":1689,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1691,"byte_start":1690,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1704,"byte_start":1691,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1705,"byte_start":1704,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1721,"byte_start":1705,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-left"}},{"byte_end":1722,"byte_start":1721,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1723,"byte_start":1722,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1736,"byte_start":1723,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1737,"byte_start":1736,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1754,"byte_start":1737,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::bit-vec.rotate-right"}},{"byte_end":1755,"byte_start":1754,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1756,"byte_start":1755,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1769,"byte_start":1756,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1770,"byte_start":1769,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1778,"byte_start":1770,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":1779,"byte_start":1778,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1780,"byte_start":1779,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1781,"byte_start":1780,"kind":"word","origin":{"kind":"local","local":1584}},{"byte_end":1782,"byte_start":1781,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1784,"byte_start":1783,"kind":"word","origin":{"kind":"local","local":1587}},{"byte_end":1785,"byte_start":1784,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1786,"byte_start":1785,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1788,"byte_start":1787,"kind":"word","origin":{"kind":"local","local":1588}},{"byte_end":1789,"byte_start":1788,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1790,"byte_start":1789,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1792,"byte_start":1791,"kind":"word","origin":{"kind":"local","local":1588}},{"byte_end":1793,"byte_start":1792,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1794,"byte_start":1793,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1796,"byte_start":1795,"kind":"word","origin":{"kind":"local","local":1587}},{"byte_end":1797,"byte_start":1796,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1799,"byte_start":1798,"kind":"punctuation","origin":{"kind":"renderer-token","token":"equals"}},{"byte_end":1801,"byte_start":1800,"kind":"word","origin":{"kind":"local","local":1584}},{"byte_end":1803,"byte_start":1801,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1804,"byte_start":1803,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1809,"byte_start":1805,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":1810,"byte_start":1809,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1815,"byte_start":1810,"kind":"word","origin":{"kind":"renderer-token","token":"lemma"}},{"byte_end":1816,"byte_start":1815,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1823,"byte_start":1817,"kind":"control","origin":{"kind":"renderer-token","token":"begin"}},{"byte_end":1824,"byte_start":1823,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1829,"byte_start":1824,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":1830,"byte_start":1829,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1838,"byte_start":1831,"kind":"word","origin":{"entry":"rewrite-verb","form":"rewrite-s","kind":"form","package":"lexlean.core"}},{"byte_end":1842,"byte_start":1839,"kind":"word","origin":{"entry":"the","form":"the-l","kind":"form","package":"lexlean.core"}},{"byte_end":1847,"byte_start":1843,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1853,"byte_start":1848,"kind":"word","origin":{"entry":"using","form":"using-l","kind":"form","package":"lexlean.core"}},{"byte_end":1856,"byte_start":1854,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1867,"byte_start":1856,"kind":"control","origin":{"kind":"renderer-token","token":"arrow"}},{"byte_end":1881,"byte_start":1868,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1882,"byte_start":1881,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1914,"byte_start":1882,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::blake3-g-host.rotate-left-rotate-right"}},{"byte_end":1915,"byte_start":1914,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1916,"byte_start":1915,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1929,"byte_start":1916,"kind":"control","origin":{"kind":"renderer-token","token":"operatorname"}},{"byte_end":1930,"byte_start":1929,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1938,"byte_start":1930,"kind":"word","origin":{"kind":"metadata","owner":"lean.mathlib::h-xor.h-xor"}},{"byte_end":1939,"byte_start":1938,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1940,"byte_start":1939,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":1941,"byte_start":1940,"kind":"word","origin":{"kind":"local","local":1584}},{"byte_end":1942,"byte_start":1941,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1944,"byte_start":1943,"kind":"word","origin":{"kind":"local","local":1587}},{"byte_end":1945,"byte_start":1944,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1946,"byte_start":1945,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":1948,"byte_start":1947,"kind":"word","origin":{"kind":"local","local":1588}},{"byte_end":1949,"byte_start":1948,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":1951,"byte_start":1949,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":1952,"byte_start":1951,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":1956,"byte_start":1953,"kind":"word","origin":{"entry":"the","form":"the-s","kind":"form","package":"lexlean.core"}},{"byte_end":1961,"byte_start":1957,"kind":"word","origin":{"entry":"goal","form":"goal-l","kind":"form","package":"lexlean.core"}},{"byte_end":1969,"byte_start":1962,"kind":"word","origin":{"entry":"follows","form":"follows-l","kind":"form","package":"lexlean.core"}},{"byte_end":1974,"byte_start":1970,"kind":"word","origin":{"entry":"from","form":"from-l","kind":"form","package":"lexlean.core"}},{"byte_end":1977,"byte_start":1975,"kind":"control","origin":{"entry":"math-open","kind":"structural","package":"lexlean.core"}},{"byte_end":1984,"byte_start":1977,"kind":"control","origin":{"kind":"renderer-token","token":"texttt"}},{"byte_end":1985,"byte_start":1984,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2009,"byte_start":1985,"kind":"word","origin":{"component":"xor-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":2010,"byte_start":2009,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2011,"byte_start":2010,"kind":"punctuation","origin":{"kind":"renderer-token","token":"left-paren"}},{"byte_end":2012,"byte_start":2011,"kind":"word","origin":{"kind":"local","local":1584}},{"byte_end":2013,"byte_start":2012,"kind":"punctuation","origin":{"kind":"renderer-token","token":"comma"}},{"byte_end":2015,"byte_start":2014,"kind":"word","origin":{"kind":"local","local":1587}},{"byte_end":2016,"byte_start":2015,"kind":"punctuation","origin":{"kind":"renderer-token","token":"right-paren"}},{"byte_end":2018,"byte_start":2016,"kind":"control","origin":{"entry":"math-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2019,"byte_start":2018,"kind":"punctuation","origin":{"entry":"period","kind":"structural","package":"lexlean.core"}},{"byte_end":2024,"byte_start":2020,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":2025,"byte_start":2024,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2030,"byte_start":2025,"kind":"word","origin":{"kind":"renderer-token","token":"proof"}},{"byte_end":2031,"byte_start":2030,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}},{"byte_end":2036,"byte_start":2032,"kind":"control","origin":{"kind":"renderer-token","token":"end"}},{"byte_end":2037,"byte_start":2036,"kind":"delimiter","origin":{"entry":"brace-open","kind":"structural","package":"lexlean.core"}},{"byte_end":2045,"byte_start":2037,"kind":"word","origin":{"kind":"renderer-token","token":"document"}},{"byte_end":2046,"byte_start":2045,"kind":"delimiter","origin":{"entry":"brace-close","kind":"structural","package":"lexlean.core"}}],"lean":[{"byte_end":6,"byte_start":0,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":13,"byte_start":7,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":20,"byte_start":14,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":32,"byte_start":21,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":39,"byte_start":33,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":46,"byte_start":40,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":69,"byte_start":47,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":76,"byte_start":70,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":83,"byte_start":77,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":96,"byte_start":84,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":103,"byte_start":97,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":110,"byte_start":104,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":138,"byte_start":111,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":149,"byte_start":139,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":162,"byte_start":150,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":168,"byte_start":163,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":178,"byte_start":169,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":202,"byte_start":179,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}},{"byte_end":210,"byte_start":204,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":218,"byte_start":211,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":236,"byte_start":219,"kind":"identifier","origin":{"component":"rotate-left-right","kind":"reference","module":"Rotation"}},{"byte_end":238,"byte_start":237,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":242,"byte_start":238,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":244,"byte_start":243,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":251,"byte_start":245,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":254,"byte_start":252,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":255,"byte_start":254,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":257,"byte_start":256,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":261,"byte_start":258,"kind":"identifier","origin":{"entry":"land","kind":"structural","package":"lexlean.core"}},{"byte_end":263,"byte_start":262,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":266,"byte_start":263,"kind":"identifier","origin":{"entry":"land","kind":"structural","package":"lexlean.core"}},{"byte_end":268,"byte_start":267,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":271,"byte_start":268,"kind":"identifier","origin":{"entry":"land","kind":"structural","package":"lexlean.core"}},{"byte_end":273,"byte_start":272,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":275,"byte_start":273,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":277,"byte_start":276,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":294,"byte_start":277,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":296,"byte_start":295,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":314,"byte_start":296,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":319,"byte_start":315,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":321,"byte_start":320,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":322,"byte_start":321,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":324,"byte_start":323,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":325,"byte_start":324,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":330,"byte_start":326,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":331,"byte_start":330,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":333,"byte_start":332,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":335,"byte_start":333,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":337,"byte_start":336,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":354,"byte_start":337,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":356,"byte_start":355,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":374,"byte_start":356,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":379,"byte_start":375,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":381,"byte_start":380,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":382,"byte_start":381,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":384,"byte_start":383,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":385,"byte_start":384,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":390,"byte_start":386,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":391,"byte_start":390,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":392,"byte_start":391,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":394,"byte_start":393,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":396,"byte_start":394,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":398,"byte_start":397,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":415,"byte_start":398,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":417,"byte_start":416,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":435,"byte_start":417,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":440,"byte_start":436,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":443,"byte_start":441,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":444,"byte_start":443,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":447,"byte_start":445,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":448,"byte_start":447,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":453,"byte_start":449,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":454,"byte_start":453,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":455,"byte_start":454,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":457,"byte_start":456,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":459,"byte_start":457,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":461,"byte_start":460,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":478,"byte_start":461,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":480,"byte_start":479,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":498,"byte_start":480,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":503,"byte_start":499,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":506,"byte_start":504,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":507,"byte_start":506,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":510,"byte_start":508,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":511,"byte_start":510,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":516,"byte_start":512,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":517,"byte_start":516,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":520,"byte_start":518,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":523,"byte_start":521,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":537,"byte_start":526,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":551,"byte_start":540,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":565,"byte_start":554,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":573,"byte_start":568,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":608,"byte_start":574,"kind":"identifier","origin":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":613,"byte_start":609,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":615,"byte_start":614,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":623,"byte_start":618,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":658,"byte_start":624,"kind":"identifier","origin":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":663,"byte_start":659,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":665,"byte_start":664,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":673,"byte_start":668,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":708,"byte_start":674,"kind":"identifier","origin":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":713,"byte_start":709,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":716,"byte_start":714,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":724,"byte_start":719,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":759,"byte_start":725,"kind":"identifier","origin":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":764,"byte_start":760,"kind":"identifier","origin":{"kind":"local","local":1172}},{"byte_end":767,"byte_start":765,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":775,"byte_start":769,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":783,"byte_start":776,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":789,"byte_start":784,"kind":"identifier","origin":{"component":"unmix","kind":"reference","module":"Rotation"}},{"byte_end":791,"byte_start":790,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":795,"byte_start":791,"kind":"identifier","origin":{"kind":"local","local":1584}},{"byte_end":797,"byte_start":796,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":804,"byte_start":798,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":807,"byte_start":805,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":808,"byte_start":807,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":810,"byte_start":809,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":814,"byte_start":810,"kind":"identifier","origin":{"kind":"local","local":1587}},{"byte_end":816,"byte_start":815,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":823,"byte_start":817,"kind":"identifier","origin":{"entry":"bit-vec","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":826,"byte_start":824,"kind":"numeral","origin":{"kind":"numeral"}},{"byte_end":827,"byte_start":826,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":829,"byte_start":828,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":833,"byte_start":829,"kind":"identifier","origin":{"kind":"local","local":1588}},{"byte_end":835,"byte_start":834,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":839,"byte_start":836,"kind":"identifier","origin":{"entry":"nat","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":840,"byte_start":839,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":842,"byte_start":841,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":845,"byte_start":843,"kind":"identifier","origin":{"entry":"eq","kind":"structural","package":"lexlean.core"}},{"byte_end":847,"byte_start":846,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":856,"byte_start":847,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":858,"byte_start":857,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":875,"byte_start":858,"kind":"identifier","origin":{"entry":"bit-vec.rotate-left","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":877,"byte_start":876,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":895,"byte_start":877,"kind":"identifier","origin":{"entry":"bit-vec.rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":897,"byte_start":896,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":906,"byte_start":897,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":911,"byte_start":907,"kind":"identifier","origin":{"kind":"local","local":1584}},{"byte_end":916,"byte_start":912,"kind":"identifier","origin":{"kind":"local","local":1587}},{"byte_end":917,"byte_start":916,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":922,"byte_start":918,"kind":"identifier","origin":{"kind":"local","local":1588}},{"byte_end":923,"byte_start":922,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":928,"byte_start":924,"kind":"identifier","origin":{"kind":"local","local":1588}},{"byte_end":929,"byte_start":928,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":934,"byte_start":930,"kind":"identifier","origin":{"kind":"local","local":1587}},{"byte_end":935,"byte_start":934,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":940,"byte_start":936,"kind":"identifier","origin":{"kind":"local","local":1584}},{"byte_end":943,"byte_start":941,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":946,"byte_start":944,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":951,"byte_start":949,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":953,"byte_start":952,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":987,"byte_start":953,"kind":"identifier","origin":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":989,"byte_start":988,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":998,"byte_start":989,"kind":"identifier","origin":{"entry":"h-xor.h-xor","form":"denotation","kind":"form","package":"lean.mathlib"}},{"byte_end":1003,"byte_start":999,"kind":"identifier","origin":{"kind":"local","local":1584}},{"byte_end":1008,"byte_start":1004,"kind":"identifier","origin":{"kind":"local","local":1587}},{"byte_end":1009,"byte_start":1008,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1014,"byte_start":1010,"kind":"identifier","origin":{"kind":"local","local":1588}},{"byte_end":1015,"byte_start":1014,"kind":"symbol","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1023,"byte_start":1018,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1062,"byte_start":1024,"kind":"identifier","origin":{"component":"xor-cancel","kind":"reference","module":"Cancellation"}},{"byte_end":1067,"byte_start":1063,"kind":"identifier","origin":{"kind":"local","local":1584}},{"byte_end":1072,"byte_start":1068,"kind":"identifier","origin":{"kind":"local","local":1587}},{"byte_end":1077,"byte_start":1074,"kind":"keyword","origin":{"kind":"synthetic","origin":"core:lean-syntax/1"}},{"byte_end":1101,"byte_start":1078,"kind":"identifier","origin":{"kind":"synthetic","origin":"core:lean-preamble/1"}}],"module":"Rotation","source":[{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":6,"byte_start":0,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":7,"byte_start":6,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.lexlean","kind":"structural","package":"lexlean.core"},"byte_end":14,"byte_start":7,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":15,"byte_start":14,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":16,"byte_start":15,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lexlean"},"byte_end":24,"byte_start":16,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":25,"byte_start":24,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"useglossary","kind":"structural","package":"lexlean.core"},"byte_end":38,"byte_start":26,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":39,"byte_start":38,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":44,"byte_start":39,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":45,"byte_start":44,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":46,"byte_start":45,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":47,"byte_start":46,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":48,"byte_start":47,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":49,"byte_start":48,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":50,"byte_start":49,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":51,"byte_start":50,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":52,"byte_start":51,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":53,"byte_start":52,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":54,"byte_start":53,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"useglossary","kind":"structural","package":"lexlean.core"},"byte_end":67,"byte_start":55,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":68,"byte_start":67,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":72,"byte_start":68,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":73,"byte_start":72,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":80,"byte_start":73,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":81,"byte_start":80,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":82,"byte_start":81,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":83,"byte_start":82,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":84,"byte_start":83,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":85,"byte_start":84,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::useglossary"},"byte_end":86,"byte_start":85,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":87,"byte_start":86,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"importmodule","kind":"structural","package":"lexlean.core"},"byte_end":101,"byte_start":88,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":102,"byte_start":101,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::importmodule"},"byte_end":114,"byte_start":102,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":115,"byte_start":114,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"title","kind":"structural","package":"lexlean.core"},"byte_end":122,"byte_start":116,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":123,"byte_start":122,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"rotation","form":"rotation","kind":"form","package":"blake3.g"},"byte_end":131,"byte_start":123,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":132,"byte_start":131,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":140,"byte_start":134,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":141,"byte_start":140,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.section","kind":"structural","package":"lexlean.core"},"byte_end":148,"byte_start":141,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":149,"byte_start":148,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":150,"byte_start":149,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.section"},"byte_end":158,"byte_start":150,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":159,"byte_start":158,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"heading","kind":"structural","package":"lexlean.core"},"byte_end":168,"byte_start":160,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":169,"byte_start":168,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"rotation","form":"rotation","kind":"form","package":"blake3.g"},"byte_end":177,"byte_start":169,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":178,"byte_start":177,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":187,"byte_start":181,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":188,"byte_start":187,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":195,"byte_start":188,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":196,"byte_start":195,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":197,"byte_start":196,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":203,"byte_start":197,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":204,"byte_start":203,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":208,"byte_start":204,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":209,"byte_start":208,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.theorem"},"byte_end":214,"byte_start":209,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":215,"byte_start":214,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":230,"byte_start":218,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":231,"byte_start":230,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":235,"byte_start":231,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":236,"byte_start":235,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":241,"byte_start":236,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":242,"byte_start":241,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":249,"byte_start":242,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":250,"byte_start":249,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":256,"byte_start":253,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":262,"byte_start":257,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":265,"byte_start":263,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":271,"byte_start":265,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":272,"byte_start":271,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":274,"byte_start":272,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":275,"byte_start":274,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":277,"byte_start":275,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":280,"byte_start":278,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":281,"byte_start":280,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":283,"byte_start":281,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":284,"byte_start":283,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":287,"byte_start":285,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":303,"byte_start":287,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":304,"byte_start":303,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":321,"byte_start":304,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":322,"byte_start":321,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":323,"byte_start":322,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":324,"byte_start":323,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":326,"byte_start":325,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":327,"byte_start":326,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":328,"byte_start":327,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":330,"byte_start":329,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":331,"byte_start":330,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":333,"byte_start":332,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":335,"byte_start":334,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":337,"byte_start":335,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":341,"byte_start":338,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":344,"byte_start":342,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":360,"byte_start":344,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":361,"byte_start":360,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":378,"byte_start":361,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":379,"byte_start":378,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":380,"byte_start":379,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":381,"byte_start":380,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":383,"byte_start":382,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":384,"byte_start":383,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":385,"byte_start":384,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":387,"byte_start":386,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":388,"byte_start":387,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":390,"byte_start":389,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":392,"byte_start":391,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":394,"byte_start":392,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":398,"byte_start":395,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":401,"byte_start":399,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":417,"byte_start":401,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":418,"byte_start":417,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":435,"byte_start":418,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":436,"byte_start":435,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":437,"byte_start":436,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":438,"byte_start":437,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":441,"byte_start":439,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":442,"byte_start":441,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":443,"byte_start":442,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":446,"byte_start":444,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":447,"byte_start":446,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":449,"byte_start":448,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":451,"byte_start":450,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":453,"byte_start":451,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":457,"byte_start":454,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":460,"byte_start":458,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":476,"byte_start":460,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":477,"byte_start":476,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":494,"byte_start":477,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":495,"byte_start":494,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":496,"byte_start":495,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":497,"byte_start":496,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":500,"byte_start":498,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":501,"byte_start":500,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":502,"byte_start":501,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":505,"byte_start":503,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":506,"byte_start":505,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":508,"byte_start":507,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":510,"byte_start":509,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":512,"byte_start":510,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":513,"byte_start":512,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":522,"byte_start":516,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":523,"byte_start":522,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":528,"byte_start":523,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":529,"byte_start":528,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":538,"byte_start":532,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":539,"byte_start":538,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":550,"byte_start":539,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":551,"byte_start":550,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":560,"byte_start":554,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":561,"byte_start":560,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":567,"byte_start":561,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":568,"byte_start":567,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":569,"byte_start":568,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":570,"byte_start":569,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":571,"byte_start":570,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":580,"byte_start":574,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":581,"byte_start":580,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":592,"byte_start":581,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":593,"byte_start":592,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":602,"byte_start":596,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":603,"byte_start":602,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":609,"byte_start":603,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":610,"byte_start":609,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":611,"byte_start":610,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":612,"byte_start":611,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":613,"byte_start":612,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":622,"byte_start":616,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":623,"byte_start":622,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":634,"byte_start":623,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":635,"byte_start":634,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":644,"byte_start":638,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":645,"byte_start":644,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":651,"byte_start":645,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":652,"byte_start":651,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":653,"byte_start":652,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":654,"byte_start":653,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":655,"byte_start":654,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":663,"byte_start":658,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":667,"byte_start":664,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":672,"byte_start":668,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":677,"byte_start":673,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":680,"byte_start":678,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"rotate-left-rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":712,"byte_start":680,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":713,"byte_start":712,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":714,"byte_start":713,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":715,"byte_start":714,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":717,"byte_start":716,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":718,"byte_start":717,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":720,"byte_start":718,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":721,"byte_start":720,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":728,"byte_start":724,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":729,"byte_start":728,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":735,"byte_start":729,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":736,"byte_start":735,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":745,"byte_start":739,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":746,"byte_start":745,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":752,"byte_start":746,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":753,"byte_start":752,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":754,"byte_start":753,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":755,"byte_start":754,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":756,"byte_start":755,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":764,"byte_start":759,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":768,"byte_start":765,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":773,"byte_start":769,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":778,"byte_start":774,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":781,"byte_start":779,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"rotate-left-rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":813,"byte_start":781,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":814,"byte_start":813,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":815,"byte_start":814,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":816,"byte_start":815,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":818,"byte_start":817,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":819,"byte_start":818,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":821,"byte_start":819,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":822,"byte_start":821,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":829,"byte_start":825,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":830,"byte_start":829,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":836,"byte_start":830,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":837,"byte_start":836,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":844,"byte_start":840,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":845,"byte_start":844,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":856,"byte_start":845,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":857,"byte_start":856,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":864,"byte_start":860,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":865,"byte_start":864,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":871,"byte_start":865,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":872,"byte_start":871,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":881,"byte_start":875,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":882,"byte_start":881,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":888,"byte_start":882,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":889,"byte_start":888,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":890,"byte_start":889,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":891,"byte_start":890,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":892,"byte_start":891,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":900,"byte_start":895,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":904,"byte_start":901,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":909,"byte_start":905,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":914,"byte_start":910,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":917,"byte_start":915,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"rotate-left-rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":949,"byte_start":917,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":950,"byte_start":949,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":951,"byte_start":950,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":952,"byte_start":951,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":955,"byte_start":953,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":956,"byte_start":955,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":958,"byte_start":956,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":959,"byte_start":958,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":966,"byte_start":962,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":967,"byte_start":966,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":973,"byte_start":967,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":974,"byte_start":973,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":981,"byte_start":977,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":982,"byte_start":981,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":993,"byte_start":982,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":994,"byte_start":993,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1001,"byte_start":997,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1002,"byte_start":1001,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":1008,"byte_start":1002,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1009,"byte_start":1008,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1018,"byte_start":1012,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1019,"byte_start":1018,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":1025,"byte_start":1019,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1026,"byte_start":1025,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1027,"byte_start":1026,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.branch"},"byte_end":1028,"byte_start":1027,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1029,"byte_start":1028,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":1037,"byte_start":1032,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":1041,"byte_start":1038,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":1046,"byte_start":1042,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":1051,"byte_start":1047,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1054,"byte_start":1052,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"rotate-left-rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":1086,"byte_start":1054,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1087,"byte_start":1086,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1172},"byte_end":1088,"byte_start":1087,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1089,"byte_start":1088,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1092,"byte_start":1090,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1093,"byte_start":1092,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1095,"byte_start":1093,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":1096,"byte_start":1095,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1103,"byte_start":1099,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1104,"byte_start":1103,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.branch","kind":"structural","package":"lexlean.core"},"byte_end":1110,"byte_start":1104,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1111,"byte_start":1110,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1118,"byte_start":1114,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1119,"byte_start":1118,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.constructor","kind":"structural","package":"lexlean.core"},"byte_end":1130,"byte_start":1119,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1131,"byte_start":1130,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1138,"byte_start":1134,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1139,"byte_start":1138,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1144,"byte_start":1139,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1145,"byte_start":1144,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1152,"byte_start":1148,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1153,"byte_start":1152,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.theorem","kind":"structural","package":"lexlean.core"},"byte_end":1160,"byte_start":1153,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1161,"byte_start":1160,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1171,"byte_start":1165,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1172,"byte_start":1171,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.lemma","kind":"structural","package":"lexlean.core"},"byte_end":1177,"byte_start":1172,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1178,"byte_start":1177,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1179,"byte_start":1178,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.lemma"},"byte_end":1184,"byte_start":1179,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1185,"byte_start":1184,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"exactaxioms","kind":"structural","package":"lexlean.core"},"byte_end":1200,"byte_start":1188,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1201,"byte_start":1200,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1205,"byte_start":1201,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1206,"byte_start":1205,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1211,"byte_start":1206,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1212,"byte_start":1211,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::exactaxioms"},"byte_end":1219,"byte_start":1212,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1220,"byte_start":1219,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"for","kind":"structural","package":"lexlean.core"},"byte_end":1226,"byte_start":1223,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"every","kind":"structural","package":"lexlean.core"},"byte_end":1232,"byte_start":1227,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1235,"byte_start":1233,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":1241,"byte_start":1235,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1242,"byte_start":1241,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1244,"byte_start":1242,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1245,"byte_start":1244,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1247,"byte_start":1245,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1250,"byte_start":1248,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1584},"byte_end":1251,"byte_start":1250,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1253,"byte_start":1251,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":1257,"byte_start":1254,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1260,"byte_start":1258,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec","form":"bit-vec","kind":"form","package":"lean.mathlib"},"byte_end":1266,"byte_start":1260,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1267,"byte_start":1266,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"numeral"},"byte_end":1269,"byte_start":1267,"class":"numeral","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1270,"byte_start":1269,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1272,"byte_start":1270,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1275,"byte_start":1273,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1587},"byte_end":1276,"byte_start":1275,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1278,"byte_start":1276,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"and","kind":"structural","package":"lexlean.core"},"byte_end":1282,"byte_start":1279,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1285,"byte_start":1283,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"nat","form":"nat","kind":"form","package":"lean.mathlib"},"byte_end":1288,"byte_start":1285,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1290,"byte_start":1288,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1293,"byte_start":1291,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1588},"byte_end":1294,"byte_start":1293,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1296,"byte_start":1294,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1297,"byte_start":1296,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1300,"byte_start":1298,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1308,"byte_start":1300,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1309,"byte_start":1308,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-left","form":"rotate-left","kind":"form","package":"lean.mathlib"},"byte_end":1325,"byte_start":1309,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1326,"byte_start":1325,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"bit-vec.rotate-right","form":"rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":1343,"byte_start":1326,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1344,"byte_start":1343,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1352,"byte_start":1344,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1353,"byte_start":1352,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1584},"byte_end":1354,"byte_start":1353,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1355,"byte_start":1354,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1587},"byte_end":1357,"byte_start":1356,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1358,"byte_start":1357,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1359,"byte_start":1358,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1588},"byte_end":1361,"byte_start":1360,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1362,"byte_start":1361,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1363,"byte_start":1362,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1588},"byte_end":1365,"byte_start":1364,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1366,"byte_start":1365,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1367,"byte_start":1366,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1587},"byte_end":1369,"byte_start":1368,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1370,"byte_start":1369,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"eq","form":"eq","kind":"form","package":"lexlean.core"},"byte_end":1372,"byte_start":1371,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1584},"byte_end":1374,"byte_start":1373,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1376,"byte_start":1374,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":1377,"byte_start":1376,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1386,"byte_start":1380,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1387,"byte_start":1386,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1392,"byte_start":1387,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1393,"byte_start":1392,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"begin","kind":"structural","package":"lexlean.core"},"byte_end":1402,"byte_start":1396,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1403,"byte_start":1402,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":1410,"byte_start":1403,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1411,"byte_start":1410,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1412,"byte_start":1411,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"metadata","owner":"lexlean.core::env.rewrite"},"byte_end":1416,"byte_start":1412,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1417,"byte_start":1416,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"forward","kind":"structural","package":"lexlean.core"},"byte_end":1428,"byte_start":1420,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1429,"byte_start":1428,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"blake3-g-host.rotate-left-rotate-right","form":"rotate-left-rotate-right","kind":"form","package":"lean.mathlib"},"byte_end":1461,"byte_start":1429,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1462,"byte_start":1461,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"h-xor.h-xor","form":"h-xor","kind":"form","package":"lean.mathlib"},"byte_end":1470,"byte_start":1462,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1471,"byte_start":1470,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1584},"byte_end":1472,"byte_start":1471,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1473,"byte_start":1472,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1587},"byte_end":1475,"byte_start":1474,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1476,"byte_start":1475,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1477,"byte_start":1476,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1588},"byte_end":1479,"byte_start":1478,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1480,"byte_start":1479,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1481,"byte_start":1480,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1488,"byte_start":1484,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1489,"byte_start":1488,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.rewrite","kind":"structural","package":"lexlean.core"},"byte_end":1496,"byte_start":1489,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1497,"byte_start":1496,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"close","kind":"structural","package":"lexlean.core"},"byte_end":1505,"byte_start":1500,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"the","kind":"structural","package":"lexlean.core"},"byte_end":1509,"byte_start":1506,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"goal","kind":"structural","package":"lexlean.core"},"byte_end":1514,"byte_start":1510,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"with","kind":"structural","package":"lexlean.core"},"byte_end":1519,"byte_start":1515,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-open","kind":"structural","package":"lexlean.core"},"byte_end":1522,"byte_start":1520,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"reference","kind":"structural","package":"lexlean.core"},"byte_end":1532,"byte_start":1522,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1533,"byte_start":1532,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"component":"xor-cancel","kind":"reference","module":"Cancellation"},"byte_end":1545,"byte_start":1533,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"component":"xor-cancel","kind":"reference","module":"Cancellation"},"byte_end":1546,"byte_start":1545,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"component":"xor-cancel","kind":"reference","module":"Cancellation"},"byte_end":1547,"byte_start":1546,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"component":"xor-cancel","kind":"reference","module":"Cancellation"},"byte_end":1550,"byte_start":1547,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"component":"xor-cancel","kind":"reference","module":"Cancellation"},"byte_end":1551,"byte_start":1550,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"component":"xor-cancel","kind":"reference","module":"Cancellation"},"byte_end":1557,"byte_start":1551,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1558,"byte_start":1557,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-open","kind":"structural","package":"lexlean.core"},"byte_end":1559,"byte_start":1558,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1584},"byte_end":1560,"byte_start":1559,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"comma","kind":"structural","package":"lexlean.core"},"byte_end":1561,"byte_start":1560,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"kind":"local","local":1587},"byte_end":1563,"byte_start":1562,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"paren-close","kind":"structural","package":"lexlean.core"},"byte_end":1564,"byte_start":1563,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"math-close","kind":"structural","package":"lexlean.core"},"byte_end":1566,"byte_start":1564,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"period","kind":"structural","package":"lexlean.core"},"byte_end":1567,"byte_start":1566,"class":"ascii-symbol","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1574,"byte_start":1570,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1575,"byte_start":1574,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.proof","kind":"structural","package":"lexlean.core"},"byte_end":1580,"byte_start":1575,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1581,"byte_start":1580,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1588,"byte_start":1584,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1589,"byte_start":1588,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.lemma","kind":"structural","package":"lexlean.core"},"byte_end":1594,"byte_start":1589,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1595,"byte_start":1594,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1600,"byte_start":1596,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1601,"byte_start":1600,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.section","kind":"structural","package":"lexlean.core"},"byte_end":1608,"byte_start":1601,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1609,"byte_start":1608,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"end","kind":"structural","package":"lexlean.core"},"byte_end":1614,"byte_start":1610,"class":"control","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-open","kind":"structural","package":"lexlean.core"},"byte_end":1615,"byte_start":1614,"class":"delimiter","path":"src/Rotation.lex.tex"},{"binding":{"entry":"env.lexlean","kind":"structural","package":"lexlean.core"},"byte_end":1622,"byte_start":1615,"class":"word","path":"src/Rotation.lex.tex"},{"binding":{"entry":"brace-close","kind":"structural","package":"lexlean.core"},"byte_end":1623,"byte_start":1622,"class":"delimiter","path":"src/Rotation.lex.tex"}],"spec":"lexlean/coverage/1"} diff --git a/demos/mathlib-blake3-g/expected/build/lexicons/Cancellation.closure.json b/demos/mathlib-blake3-g/expected/build/lexicons/Cancellation.closure.json new file mode 100644 index 0000000000..08adbb1f7d --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/lexicons/Cancellation.closure.json @@ -0,0 +1 @@ +{"module":"Cancellation","packages":[{"entries":[{"category":"grammar","id":"a"},{"category":"structural","id":"allowaxioms"},{"category":"grammar","id":"alternative"},{"category":"grammar","id":"an"},{"category":"grammar","id":"and"},{"category":"proof-constant","id":"and-intro","signature_sha256":"3ae5651d6fc8a15bcaba9d07d64ab88cbbabfd966e66953e27a652c892b5b490"},{"category":"grammar","id":"apply-verb"},{"category":"infix-function","id":"arrow","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"grammar","id":"as"},{"category":"grammar","id":"assume"},{"category":"structural","id":"at"},{"category":"structural","id":"backward"},{"category":"structural","id":"begin"},{"category":"structural","id":"bind"},{"category":"structural","id":"brace-close"},{"category":"structural","id":"brace-open"},{"category":"structural","id":"bracket-close"},{"category":"structural","id":"bracket-open"},{"category":"label-word","id":"branch-word"},{"category":"grammar","id":"by"},{"category":"label-word","id":"case-word"},{"category":"grammar","id":"cases-noun"},{"category":"grammar","id":"close"},{"category":"structural","id":"colon"},{"category":"structural","id":"comma"},{"category":"grammar","id":"consider"},{"category":"grammar","id":"defined"},{"category":"structural","id":"display-close"},{"category":"structural","id":"display-open"},{"category":"structural","id":"end"},{"category":"structural","id":"env.apply"},{"category":"structural","id":"env.branch"},{"category":"structural","id":"env.calculate"},{"category":"structural","id":"env.case"},{"category":"structural","id":"env.cases"},{"category":"structural","id":"env.constructor"},{"category":"structural","id":"env.corollary"},{"category":"structural","id":"env.have"},{"category":"structural","id":"env.induction"},{"category":"structural","id":"env.lemma"},{"category":"structural","id":"env.lexlean"},{"category":"structural","id":"env.predicatedefinition"},{"category":"structural","id":"env.premise"},{"category":"structural","id":"env.proof"},{"category":"structural","id":"env.rewrite"},{"category":"structural","id":"env.section"},{"category":"structural","id":"env.simplify"},{"category":"structural","id":"env.termdefinition"},{"category":"structural","id":"env.theorem"},{"category":"structural","id":"env.typedefinition"},{"category":"infix-predicate","id":"eq","signature_sha256":"fff6703047a5db5ce2f1084729d26de7c98b060880f10d11bf993e61583a417a"},{"category":"grammar","id":"establish"},{"category":"grammar","id":"every"},{"category":"structural","id":"exactaxioms"},{"category":"grammar","id":"exactly"},{"category":"grammar","id":"exists"},{"category":"proof-constant","id":"exists-intro","signature_sha256":"826877f0c5dacbef193c11d1e3e4338883dd1db68a5ec9d73640e4fa6ab856f9"},{"category":"function","id":"exists-op","signature_sha256":"6fe6ba416d461756b942d1a826db5ba62ecb89ad10c83e5429fda5676ef1987b"},{"category":"grammar","id":"first"},{"category":"grammar","id":"follows"},{"category":"grammar","id":"for"},{"category":"structural","id":"forward"},{"category":"grammar","id":"from"},{"category":"grammar","id":"goal"},{"category":"structural","id":"heading"},{"category":"grammar","id":"holds"},{"category":"structural","id":"hyphen"},{"category":"grammar","id":"if"},{"category":"infix-function","id":"iff","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"proof-constant","id":"iff-intro","signature_sha256":"916fefdef3740a5a417db539a07f7c64c80b167b4b56376e04ae5a34ef2a24d3"},{"category":"grammar","id":"implies"},{"category":"structural","id":"importmodule"},{"category":"grammar","id":"induction-noun"},{"category":"grammar","id":"is"},{"category":"infix-function","id":"land","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"grammar","id":"left"},{"category":"structural","id":"lexeme"},{"category":"prefix-function","id":"lnot","signature_sha256":"b58227252ab1afe7522f2d168e1d8bb96947273b77d8d69d9d5d62a5616e45f7"},{"category":"infix-function","id":"lor","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"structural","id":"math-close"},{"category":"structural","id":"math-open"},{"category":"structural","id":"noaxioms"},{"category":"grammar","id":"not"},{"category":"grammar","id":"of"},{"category":"grammar","id":"on"},{"category":"grammar","id":"one"},{"category":"grammar","id":"only"},{"category":"grammar","id":"or"},{"category":"proof-constant","id":"or-inl","signature_sha256":"15bc04b85dd3fa7919a5346eb884241553989ba798adf2a7d070b80d77d6d46a"},{"category":"proof-constant","id":"or-inr","signature_sha256":"8e845723a60966714d93537e9cf60ab49f228514f7c617e0f66e119b3a642a2c"},{"category":"structural","id":"parameters"},{"category":"label-word","id":"parameters-concept"},{"category":"structural","id":"paren-close"},{"category":"structural","id":"paren-open"},{"category":"structural","id":"period"},{"category":"label-word","id":"premise-word"},{"category":"grammar","id":"proceed"},{"category":"structural","id":"reference"},{"category":"grammar","id":"reflexivity"},{"category":"grammar","id":"rewrite-verb"},{"category":"grammar","id":"right"},{"category":"structural","id":"rule"},{"category":"grammar","id":"select"},{"category":"structural","id":"semicolon"},{"category":"grammar","id":"simplify-verb"},{"category":"structural","id":"start"},{"category":"structural","id":"step"},{"category":"grammar","id":"such"},{"category":"grammar","id":"that"},{"category":"grammar","id":"the"},{"category":"grammar","id":"then"},{"category":"grammar","id":"there"},{"category":"structural","id":"title"},{"category":"grammar","id":"use"},{"category":"structural","id":"useglossary"},{"category":"grammar","id":"using"},{"category":"grammar","id":"we"},{"category":"grammar","id":"when"},{"category":"grammar","id":"with"},{"category":"grammar","id":"witness"}],"id":"lexlean.core","manifest_sha256":"271079763d269cc873531f515e56da960cd6321393b9460ff0e617666fa01d71","tree_sha256":"827317cae68c162f3a96c8a8de4e53ab348e7d3724fd2b834fa85ecde1a1b392","version":"1.2.0"},{"entries":[{"category":"function","id":"bit-vec","signature_sha256":"ef51c07c0352003eb9256193fe4f5238c9f2eff18e8902097c86254e4cfe66d3"},{"category":"function","id":"bit-vec.of-fin","signature_sha256":"6d69bdd6ece79d89fcdabc52452ebfcef870a57ec484287acb8b3fc17aec99c7"},{"category":"function","id":"bit-vec.of-nat","signature_sha256":"2bf979d5fa67fa7c5d9835206aebfe494d421dacdc5f9c48f05bd39916c9c270"},{"category":"function","id":"bit-vec.rotate-left","signature_sha256":"8858eafb9b41221e42c1589acbc51c34f011926857de8f08c3512e3b5a958e34"},{"category":"function","id":"bit-vec.rotate-right","signature_sha256":"8858eafb9b41221e42c1589acbc51c34f011926857de8f08c3512e3b5a958e34"},{"category":"proof-constant","id":"blake3-g-host.rotate-left-rotate-right","signature_sha256":"0918c627869a3b6ad82ad7bd77d3c847c3bd4549e0e6c624f4381ae19d0f55df"},{"category":"function","id":"fin","signature_sha256":"ef51c07c0352003eb9256193fe4f5238c9f2eff18e8902097c86254e4cfe66d3"},{"category":"function","id":"fin.mk","signature_sha256":"a2fd47811877682d1ab71fddde763e25b708f07801b5c276d0ac2b753e237830"},{"category":"function","id":"h-add","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-add.h-add","signature_sha256":"79e9807430fefc0417c358774fb99ff95f086b7625a0a75fe631513384289fa3"},{"category":"function","id":"h-add.mk","signature_sha256":"e0122d9062c68623b5acf5ce56b742252dabd56342ae454af584575d7252eed4"},{"category":"function","id":"h-pow","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-pow.h-pow","signature_sha256":"6c510ad8c52d2e3273a4773810b2279f12763fbca510d42ae90ed394d3f7bbfb"},{"category":"function","id":"h-pow.mk","signature_sha256":"51fce6dea0bcc769c2fdaac92e0f74c78d1df192f90fe426cfcce29261f950c6"},{"category":"function","id":"h-sub","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-sub.h-sub","signature_sha256":"8317fe7c474a3b09315329dde8b1a4130e22b4c9be2a07bf190fbb90209cbb28"},{"category":"function","id":"h-sub.mk","signature_sha256":"a0b9c5aa87bdfa4e8a3134fa9b6e9e7b97cd40071ce7e6946a9d09e808dbd921"},{"category":"function","id":"h-xor","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-xor.h-xor","signature_sha256":"d629b1e8b76b33d52260fd6d9de40f9175acc9681c8a7bbdff750f9056db6c04"},{"category":"function","id":"h-xor.mk","signature_sha256":"bc40d830917a47de56c2039d395e120cfd6930b52210b6e11d28b569ff4bd86c"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.add-right-comm","signature_sha256":"8325d9e486f49fdf11e570d8d8bdfb2efa710b4f3e4062cc98c07315bcaeb3c5"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.add-sub-cancel-right","signature_sha256":"55a30417cb19ba1f4a01b282411f5ada7a711dcbc7a7dc794c198499fe14317e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.add-sub-cancel","signature_sha256":"55a30417cb19ba1f4a01b282411f5ada7a711dcbc7a7dc794c198499fe14317e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-assoc","signature_sha256":"0065db47714cbd8c7bdb362b0bb291c2ba123fd5535b6941e6df69dac8b3b53f"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-self","signature_sha256":"9a4a63646fbc8f1adb137d5764cf2230ca2a37242e08a0f8e69eee68085eb33e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-zero","signature_sha256":"b724178cf6202822e6681814182057fe92af3c7be28356fc0410149b76440e18"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.add-sub-cancel","signature_sha256":"74d368eb26f5be970fec0677ab7e789ecbe77cf9f97dfad6374ecd7295c003c2"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-assoc","signature_sha256":"e61808165472216f2d73facc85d10d74e524a896427a0e11ec3ae62b98fa9fda"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-self","signature_sha256":"74d7d4f0b01591dc84b5f20d5ee389ebefc68f4272362d387f32e338c804ad4d"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-zero","signature_sha256":"efb4130997c532b1da46708abff25bf087871d69b85e7ef57385e377f2ea9429"},{"category":"function","id":"lt","signature_sha256":"21650756a1284d8cbcc6260c5a276f4e67dc0d7ea792413e8e1227976125ba31"},{"category":"transitive-predicate","id":"lt.lt","signature_sha256":"f139b50c8f104811e41c38999d9c60d3401cfaf7efa926164351a550bb4e02ef"},{"category":"function","id":"lt.mk","signature_sha256":"d9a1b6618368260fedff1dec29779eaeae20c0f6476007952b19312689bc0d2d"},{"category":"type-noun","id":"nat","signature_sha256":"f23ac5c59894fab109f943cb71f3f118d39c2a11dd566054b9cca7baeb70e9d1"},{"category":"function","id":"nat.succ","signature_sha256":"f48648e010438e6f25eada153abf5e6e9c362401c8e166d5046d66ee2e8aaea8"},{"category":"term-constant","id":"nat.zero","signature_sha256":"a5673dda9b78a7ce779f16345d44847ed48477922ac4b734c9a1c94b9e26a898"},{"category":"type-noun","id":"u-int32","signature_sha256":"f23ac5c59894fab109f943cb71f3f118d39c2a11dd566054b9cca7baeb70e9d1"},{"category":"function","id":"u-int32.of-bit-vec","signature_sha256":"5add337f97d3a6942b3fedfc1ffa2102dee61dd5c1802e898895731fac659b66"}],"id":"lean.mathlib","manifest_sha256":"5fef012739e28a5bff0b8f40825d9813776d8ab87ba5b715f654d1f36ce17f28","tree_sha256":"62069b4dd8ba1e164384095b9dd931f1689274a22500b5e8693374471bf94547","version":"1.0.0"},{"entries":[{"category":"label-word","id":"arithmetic"},{"category":"label-word","id":"cancellation"},{"category":"label-word","id":"function"},{"category":"label-word","id":"inverse"},{"category":"label-word","id":"mixing"},{"category":"label-word","id":"rotation"},{"category":"label-word","id":"word"},{"category":"label-word","id":"xor"}],"id":"blake3.g","manifest_sha256":"d35dcc6762613da08688086b3378cb0099b1b6da4c9cabdd809396bacc6fd196","tree_sha256":"2c3540b8390722fb229212b60f4a4930e5a9b0bbea3a11d327484c5804c80546","version":"1.0.0"}],"spec":"lexlean/lexicon-closure/1"} diff --git a/demos/mathlib-blake3-g/expected/build/lexicons/Main.closure.json b/demos/mathlib-blake3-g/expected/build/lexicons/Main.closure.json new file mode 100644 index 0000000000..fc60586863 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/lexicons/Main.closure.json @@ -0,0 +1 @@ +{"module":"Main","packages":[{"entries":[{"category":"grammar","id":"a"},{"category":"structural","id":"allowaxioms"},{"category":"grammar","id":"alternative"},{"category":"grammar","id":"an"},{"category":"grammar","id":"and"},{"category":"proof-constant","id":"and-intro","signature_sha256":"3ae5651d6fc8a15bcaba9d07d64ab88cbbabfd966e66953e27a652c892b5b490"},{"category":"grammar","id":"apply-verb"},{"category":"infix-function","id":"arrow","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"grammar","id":"as"},{"category":"grammar","id":"assume"},{"category":"structural","id":"at"},{"category":"structural","id":"backward"},{"category":"structural","id":"begin"},{"category":"structural","id":"bind"},{"category":"structural","id":"brace-close"},{"category":"structural","id":"brace-open"},{"category":"structural","id":"bracket-close"},{"category":"structural","id":"bracket-open"},{"category":"label-word","id":"branch-word"},{"category":"grammar","id":"by"},{"category":"label-word","id":"case-word"},{"category":"grammar","id":"cases-noun"},{"category":"grammar","id":"close"},{"category":"structural","id":"colon"},{"category":"structural","id":"comma"},{"category":"grammar","id":"consider"},{"category":"grammar","id":"defined"},{"category":"structural","id":"display-close"},{"category":"structural","id":"display-open"},{"category":"structural","id":"end"},{"category":"structural","id":"env.apply"},{"category":"structural","id":"env.branch"},{"category":"structural","id":"env.calculate"},{"category":"structural","id":"env.case"},{"category":"structural","id":"env.cases"},{"category":"structural","id":"env.constructor"},{"category":"structural","id":"env.corollary"},{"category":"structural","id":"env.have"},{"category":"structural","id":"env.induction"},{"category":"structural","id":"env.lemma"},{"category":"structural","id":"env.lexlean"},{"category":"structural","id":"env.predicatedefinition"},{"category":"structural","id":"env.premise"},{"category":"structural","id":"env.proof"},{"category":"structural","id":"env.rewrite"},{"category":"structural","id":"env.section"},{"category":"structural","id":"env.simplify"},{"category":"structural","id":"env.termdefinition"},{"category":"structural","id":"env.theorem"},{"category":"structural","id":"env.typedefinition"},{"category":"infix-predicate","id":"eq","signature_sha256":"fff6703047a5db5ce2f1084729d26de7c98b060880f10d11bf993e61583a417a"},{"category":"grammar","id":"establish"},{"category":"grammar","id":"every"},{"category":"structural","id":"exactaxioms"},{"category":"grammar","id":"exactly"},{"category":"grammar","id":"exists"},{"category":"proof-constant","id":"exists-intro","signature_sha256":"826877f0c5dacbef193c11d1e3e4338883dd1db68a5ec9d73640e4fa6ab856f9"},{"category":"function","id":"exists-op","signature_sha256":"6fe6ba416d461756b942d1a826db5ba62ecb89ad10c83e5429fda5676ef1987b"},{"category":"grammar","id":"first"},{"category":"grammar","id":"follows"},{"category":"grammar","id":"for"},{"category":"structural","id":"forward"},{"category":"grammar","id":"from"},{"category":"grammar","id":"goal"},{"category":"structural","id":"heading"},{"category":"grammar","id":"holds"},{"category":"structural","id":"hyphen"},{"category":"grammar","id":"if"},{"category":"infix-function","id":"iff","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"proof-constant","id":"iff-intro","signature_sha256":"916fefdef3740a5a417db539a07f7c64c80b167b4b56376e04ae5a34ef2a24d3"},{"category":"grammar","id":"implies"},{"category":"structural","id":"importmodule"},{"category":"grammar","id":"induction-noun"},{"category":"grammar","id":"is"},{"category":"infix-function","id":"land","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"grammar","id":"left"},{"category":"structural","id":"lexeme"},{"category":"prefix-function","id":"lnot","signature_sha256":"b58227252ab1afe7522f2d168e1d8bb96947273b77d8d69d9d5d62a5616e45f7"},{"category":"infix-function","id":"lor","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"structural","id":"math-close"},{"category":"structural","id":"math-open"},{"category":"structural","id":"noaxioms"},{"category":"grammar","id":"not"},{"category":"grammar","id":"of"},{"category":"grammar","id":"on"},{"category":"grammar","id":"one"},{"category":"grammar","id":"only"},{"category":"grammar","id":"or"},{"category":"proof-constant","id":"or-inl","signature_sha256":"15bc04b85dd3fa7919a5346eb884241553989ba798adf2a7d070b80d77d6d46a"},{"category":"proof-constant","id":"or-inr","signature_sha256":"8e845723a60966714d93537e9cf60ab49f228514f7c617e0f66e119b3a642a2c"},{"category":"structural","id":"parameters"},{"category":"label-word","id":"parameters-concept"},{"category":"structural","id":"paren-close"},{"category":"structural","id":"paren-open"},{"category":"structural","id":"period"},{"category":"label-word","id":"premise-word"},{"category":"grammar","id":"proceed"},{"category":"structural","id":"reference"},{"category":"grammar","id":"reflexivity"},{"category":"grammar","id":"rewrite-verb"},{"category":"grammar","id":"right"},{"category":"structural","id":"rule"},{"category":"grammar","id":"select"},{"category":"structural","id":"semicolon"},{"category":"grammar","id":"simplify-verb"},{"category":"structural","id":"start"},{"category":"structural","id":"step"},{"category":"grammar","id":"such"},{"category":"grammar","id":"that"},{"category":"grammar","id":"the"},{"category":"grammar","id":"then"},{"category":"grammar","id":"there"},{"category":"structural","id":"title"},{"category":"grammar","id":"use"},{"category":"structural","id":"useglossary"},{"category":"grammar","id":"using"},{"category":"grammar","id":"we"},{"category":"grammar","id":"when"},{"category":"grammar","id":"with"},{"category":"grammar","id":"witness"}],"id":"lexlean.core","manifest_sha256":"271079763d269cc873531f515e56da960cd6321393b9460ff0e617666fa01d71","tree_sha256":"827317cae68c162f3a96c8a8de4e53ab348e7d3724fd2b834fa85ecde1a1b392","version":"1.2.0"},{"entries":[{"category":"function","id":"bit-vec","signature_sha256":"ef51c07c0352003eb9256193fe4f5238c9f2eff18e8902097c86254e4cfe66d3"},{"category":"function","id":"bit-vec.of-fin","signature_sha256":"6d69bdd6ece79d89fcdabc52452ebfcef870a57ec484287acb8b3fc17aec99c7"},{"category":"function","id":"bit-vec.of-nat","signature_sha256":"2bf979d5fa67fa7c5d9835206aebfe494d421dacdc5f9c48f05bd39916c9c270"},{"category":"function","id":"bit-vec.rotate-left","signature_sha256":"8858eafb9b41221e42c1589acbc51c34f011926857de8f08c3512e3b5a958e34"},{"category":"function","id":"bit-vec.rotate-right","signature_sha256":"8858eafb9b41221e42c1589acbc51c34f011926857de8f08c3512e3b5a958e34"},{"category":"proof-constant","id":"blake3-g-host.rotate-left-rotate-right","signature_sha256":"0918c627869a3b6ad82ad7bd77d3c847c3bd4549e0e6c624f4381ae19d0f55df"},{"category":"function","id":"fin","signature_sha256":"ef51c07c0352003eb9256193fe4f5238c9f2eff18e8902097c86254e4cfe66d3"},{"category":"function","id":"fin.mk","signature_sha256":"a2fd47811877682d1ab71fddde763e25b708f07801b5c276d0ac2b753e237830"},{"category":"function","id":"h-add","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-add.h-add","signature_sha256":"79e9807430fefc0417c358774fb99ff95f086b7625a0a75fe631513384289fa3"},{"category":"function","id":"h-add.mk","signature_sha256":"e0122d9062c68623b5acf5ce56b742252dabd56342ae454af584575d7252eed4"},{"category":"function","id":"h-pow","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-pow.h-pow","signature_sha256":"6c510ad8c52d2e3273a4773810b2279f12763fbca510d42ae90ed394d3f7bbfb"},{"category":"function","id":"h-pow.mk","signature_sha256":"51fce6dea0bcc769c2fdaac92e0f74c78d1df192f90fe426cfcce29261f950c6"},{"category":"function","id":"h-sub","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-sub.h-sub","signature_sha256":"8317fe7c474a3b09315329dde8b1a4130e22b4c9be2a07bf190fbb90209cbb28"},{"category":"function","id":"h-sub.mk","signature_sha256":"a0b9c5aa87bdfa4e8a3134fa9b6e9e7b97cd40071ce7e6946a9d09e808dbd921"},{"category":"function","id":"h-xor","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-xor.h-xor","signature_sha256":"d629b1e8b76b33d52260fd6d9de40f9175acc9681c8a7bbdff750f9056db6c04"},{"category":"function","id":"h-xor.mk","signature_sha256":"bc40d830917a47de56c2039d395e120cfd6930b52210b6e11d28b569ff4bd86c"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.add-right-comm","signature_sha256":"8325d9e486f49fdf11e570d8d8bdfb2efa710b4f3e4062cc98c07315bcaeb3c5"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.add-sub-cancel-right","signature_sha256":"55a30417cb19ba1f4a01b282411f5ada7a711dcbc7a7dc794c198499fe14317e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.add-sub-cancel","signature_sha256":"55a30417cb19ba1f4a01b282411f5ada7a711dcbc7a7dc794c198499fe14317e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-assoc","signature_sha256":"0065db47714cbd8c7bdb362b0bb291c2ba123fd5535b6941e6df69dac8b3b53f"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-self","signature_sha256":"9a4a63646fbc8f1adb137d5764cf2230ca2a37242e08a0f8e69eee68085eb33e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-zero","signature_sha256":"b724178cf6202822e6681814182057fe92af3c7be28356fc0410149b76440e18"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.add-sub-cancel","signature_sha256":"74d368eb26f5be970fec0677ab7e789ecbe77cf9f97dfad6374ecd7295c003c2"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-assoc","signature_sha256":"e61808165472216f2d73facc85d10d74e524a896427a0e11ec3ae62b98fa9fda"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-self","signature_sha256":"74d7d4f0b01591dc84b5f20d5ee389ebefc68f4272362d387f32e338c804ad4d"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-zero","signature_sha256":"efb4130997c532b1da46708abff25bf087871d69b85e7ef57385e377f2ea9429"},{"category":"function","id":"lt","signature_sha256":"21650756a1284d8cbcc6260c5a276f4e67dc0d7ea792413e8e1227976125ba31"},{"category":"transitive-predicate","id":"lt.lt","signature_sha256":"f139b50c8f104811e41c38999d9c60d3401cfaf7efa926164351a550bb4e02ef"},{"category":"function","id":"lt.mk","signature_sha256":"d9a1b6618368260fedff1dec29779eaeae20c0f6476007952b19312689bc0d2d"},{"category":"type-noun","id":"nat","signature_sha256":"f23ac5c59894fab109f943cb71f3f118d39c2a11dd566054b9cca7baeb70e9d1"},{"category":"function","id":"nat.succ","signature_sha256":"f48648e010438e6f25eada153abf5e6e9c362401c8e166d5046d66ee2e8aaea8"},{"category":"term-constant","id":"nat.zero","signature_sha256":"a5673dda9b78a7ce779f16345d44847ed48477922ac4b734c9a1c94b9e26a898"},{"category":"type-noun","id":"u-int32","signature_sha256":"f23ac5c59894fab109f943cb71f3f118d39c2a11dd566054b9cca7baeb70e9d1"},{"category":"function","id":"u-int32.of-bit-vec","signature_sha256":"5add337f97d3a6942b3fedfc1ffa2102dee61dd5c1802e898895731fac659b66"}],"id":"lean.mathlib","manifest_sha256":"5fef012739e28a5bff0b8f40825d9813776d8ab87ba5b715f654d1f36ce17f28","tree_sha256":"62069b4dd8ba1e164384095b9dd931f1689274a22500b5e8693374471bf94547","version":"1.0.0"},{"entries":[{"category":"label-word","id":"arithmetic"},{"category":"label-word","id":"cancellation"},{"category":"label-word","id":"function"},{"category":"label-word","id":"inverse"},{"category":"label-word","id":"mixing"},{"category":"label-word","id":"rotation"},{"category":"label-word","id":"word"},{"category":"label-word","id":"xor"}],"id":"blake3.g","manifest_sha256":"d35dcc6762613da08688086b3378cb0099b1b6da4c9cabdd809396bacc6fd196","tree_sha256":"2c3540b8390722fb229212b60f4a4930e5a9b0bbea3a11d327484c5804c80546","version":"1.0.0"}],"spec":"lexlean/lexicon-closure/1"} diff --git a/demos/mathlib-blake3-g/expected/build/lexicons/Mixing.closure.json b/demos/mathlib-blake3-g/expected/build/lexicons/Mixing.closure.json new file mode 100644 index 0000000000..165992a9f0 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/lexicons/Mixing.closure.json @@ -0,0 +1 @@ +{"module":"Mixing","packages":[{"entries":[{"category":"grammar","id":"a"},{"category":"structural","id":"allowaxioms"},{"category":"grammar","id":"alternative"},{"category":"grammar","id":"an"},{"category":"grammar","id":"and"},{"category":"proof-constant","id":"and-intro","signature_sha256":"3ae5651d6fc8a15bcaba9d07d64ab88cbbabfd966e66953e27a652c892b5b490"},{"category":"grammar","id":"apply-verb"},{"category":"infix-function","id":"arrow","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"grammar","id":"as"},{"category":"grammar","id":"assume"},{"category":"structural","id":"at"},{"category":"structural","id":"backward"},{"category":"structural","id":"begin"},{"category":"structural","id":"bind"},{"category":"structural","id":"brace-close"},{"category":"structural","id":"brace-open"},{"category":"structural","id":"bracket-close"},{"category":"structural","id":"bracket-open"},{"category":"label-word","id":"branch-word"},{"category":"grammar","id":"by"},{"category":"label-word","id":"case-word"},{"category":"grammar","id":"cases-noun"},{"category":"grammar","id":"close"},{"category":"structural","id":"colon"},{"category":"structural","id":"comma"},{"category":"grammar","id":"consider"},{"category":"grammar","id":"defined"},{"category":"structural","id":"display-close"},{"category":"structural","id":"display-open"},{"category":"structural","id":"end"},{"category":"structural","id":"env.apply"},{"category":"structural","id":"env.branch"},{"category":"structural","id":"env.calculate"},{"category":"structural","id":"env.case"},{"category":"structural","id":"env.cases"},{"category":"structural","id":"env.constructor"},{"category":"structural","id":"env.corollary"},{"category":"structural","id":"env.have"},{"category":"structural","id":"env.induction"},{"category":"structural","id":"env.lemma"},{"category":"structural","id":"env.lexlean"},{"category":"structural","id":"env.predicatedefinition"},{"category":"structural","id":"env.premise"},{"category":"structural","id":"env.proof"},{"category":"structural","id":"env.rewrite"},{"category":"structural","id":"env.section"},{"category":"structural","id":"env.simplify"},{"category":"structural","id":"env.termdefinition"},{"category":"structural","id":"env.theorem"},{"category":"structural","id":"env.typedefinition"},{"category":"infix-predicate","id":"eq","signature_sha256":"fff6703047a5db5ce2f1084729d26de7c98b060880f10d11bf993e61583a417a"},{"category":"grammar","id":"establish"},{"category":"grammar","id":"every"},{"category":"structural","id":"exactaxioms"},{"category":"grammar","id":"exactly"},{"category":"grammar","id":"exists"},{"category":"proof-constant","id":"exists-intro","signature_sha256":"826877f0c5dacbef193c11d1e3e4338883dd1db68a5ec9d73640e4fa6ab856f9"},{"category":"function","id":"exists-op","signature_sha256":"6fe6ba416d461756b942d1a826db5ba62ecb89ad10c83e5429fda5676ef1987b"},{"category":"grammar","id":"first"},{"category":"grammar","id":"follows"},{"category":"grammar","id":"for"},{"category":"structural","id":"forward"},{"category":"grammar","id":"from"},{"category":"grammar","id":"goal"},{"category":"structural","id":"heading"},{"category":"grammar","id":"holds"},{"category":"structural","id":"hyphen"},{"category":"grammar","id":"if"},{"category":"infix-function","id":"iff","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"proof-constant","id":"iff-intro","signature_sha256":"916fefdef3740a5a417db539a07f7c64c80b167b4b56376e04ae5a34ef2a24d3"},{"category":"grammar","id":"implies"},{"category":"structural","id":"importmodule"},{"category":"grammar","id":"induction-noun"},{"category":"grammar","id":"is"},{"category":"infix-function","id":"land","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"grammar","id":"left"},{"category":"structural","id":"lexeme"},{"category":"prefix-function","id":"lnot","signature_sha256":"b58227252ab1afe7522f2d168e1d8bb96947273b77d8d69d9d5d62a5616e45f7"},{"category":"infix-function","id":"lor","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"structural","id":"math-close"},{"category":"structural","id":"math-open"},{"category":"structural","id":"noaxioms"},{"category":"grammar","id":"not"},{"category":"grammar","id":"of"},{"category":"grammar","id":"on"},{"category":"grammar","id":"one"},{"category":"grammar","id":"only"},{"category":"grammar","id":"or"},{"category":"proof-constant","id":"or-inl","signature_sha256":"15bc04b85dd3fa7919a5346eb884241553989ba798adf2a7d070b80d77d6d46a"},{"category":"proof-constant","id":"or-inr","signature_sha256":"8e845723a60966714d93537e9cf60ab49f228514f7c617e0f66e119b3a642a2c"},{"category":"structural","id":"parameters"},{"category":"label-word","id":"parameters-concept"},{"category":"structural","id":"paren-close"},{"category":"structural","id":"paren-open"},{"category":"structural","id":"period"},{"category":"label-word","id":"premise-word"},{"category":"grammar","id":"proceed"},{"category":"structural","id":"reference"},{"category":"grammar","id":"reflexivity"},{"category":"grammar","id":"rewrite-verb"},{"category":"grammar","id":"right"},{"category":"structural","id":"rule"},{"category":"grammar","id":"select"},{"category":"structural","id":"semicolon"},{"category":"grammar","id":"simplify-verb"},{"category":"structural","id":"start"},{"category":"structural","id":"step"},{"category":"grammar","id":"such"},{"category":"grammar","id":"that"},{"category":"grammar","id":"the"},{"category":"grammar","id":"then"},{"category":"grammar","id":"there"},{"category":"structural","id":"title"},{"category":"grammar","id":"use"},{"category":"structural","id":"useglossary"},{"category":"grammar","id":"using"},{"category":"grammar","id":"we"},{"category":"grammar","id":"when"},{"category":"grammar","id":"with"},{"category":"grammar","id":"witness"}],"id":"lexlean.core","manifest_sha256":"271079763d269cc873531f515e56da960cd6321393b9460ff0e617666fa01d71","tree_sha256":"827317cae68c162f3a96c8a8de4e53ab348e7d3724fd2b834fa85ecde1a1b392","version":"1.2.0"},{"entries":[{"category":"function","id":"bit-vec","signature_sha256":"ef51c07c0352003eb9256193fe4f5238c9f2eff18e8902097c86254e4cfe66d3"},{"category":"function","id":"bit-vec.of-fin","signature_sha256":"6d69bdd6ece79d89fcdabc52452ebfcef870a57ec484287acb8b3fc17aec99c7"},{"category":"function","id":"bit-vec.of-nat","signature_sha256":"2bf979d5fa67fa7c5d9835206aebfe494d421dacdc5f9c48f05bd39916c9c270"},{"category":"function","id":"bit-vec.rotate-left","signature_sha256":"8858eafb9b41221e42c1589acbc51c34f011926857de8f08c3512e3b5a958e34"},{"category":"function","id":"bit-vec.rotate-right","signature_sha256":"8858eafb9b41221e42c1589acbc51c34f011926857de8f08c3512e3b5a958e34"},{"category":"proof-constant","id":"blake3-g-host.rotate-left-rotate-right","signature_sha256":"0918c627869a3b6ad82ad7bd77d3c847c3bd4549e0e6c624f4381ae19d0f55df"},{"category":"function","id":"fin","signature_sha256":"ef51c07c0352003eb9256193fe4f5238c9f2eff18e8902097c86254e4cfe66d3"},{"category":"function","id":"fin.mk","signature_sha256":"a2fd47811877682d1ab71fddde763e25b708f07801b5c276d0ac2b753e237830"},{"category":"function","id":"h-add","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-add.h-add","signature_sha256":"79e9807430fefc0417c358774fb99ff95f086b7625a0a75fe631513384289fa3"},{"category":"function","id":"h-add.mk","signature_sha256":"e0122d9062c68623b5acf5ce56b742252dabd56342ae454af584575d7252eed4"},{"category":"function","id":"h-pow","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-pow.h-pow","signature_sha256":"6c510ad8c52d2e3273a4773810b2279f12763fbca510d42ae90ed394d3f7bbfb"},{"category":"function","id":"h-pow.mk","signature_sha256":"51fce6dea0bcc769c2fdaac92e0f74c78d1df192f90fe426cfcce29261f950c6"},{"category":"function","id":"h-sub","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-sub.h-sub","signature_sha256":"8317fe7c474a3b09315329dde8b1a4130e22b4c9be2a07bf190fbb90209cbb28"},{"category":"function","id":"h-sub.mk","signature_sha256":"a0b9c5aa87bdfa4e8a3134fa9b6e9e7b97cd40071ce7e6946a9d09e808dbd921"},{"category":"function","id":"h-xor","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-xor.h-xor","signature_sha256":"d629b1e8b76b33d52260fd6d9de40f9175acc9681c8a7bbdff750f9056db6c04"},{"category":"function","id":"h-xor.mk","signature_sha256":"bc40d830917a47de56c2039d395e120cfd6930b52210b6e11d28b569ff4bd86c"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.add-right-comm","signature_sha256":"8325d9e486f49fdf11e570d8d8bdfb2efa710b4f3e4062cc98c07315bcaeb3c5"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.add-sub-cancel-right","signature_sha256":"55a30417cb19ba1f4a01b282411f5ada7a711dcbc7a7dc794c198499fe14317e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.add-sub-cancel","signature_sha256":"55a30417cb19ba1f4a01b282411f5ada7a711dcbc7a7dc794c198499fe14317e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-assoc","signature_sha256":"0065db47714cbd8c7bdb362b0bb291c2ba123fd5535b6941e6df69dac8b3b53f"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-self","signature_sha256":"9a4a63646fbc8f1adb137d5764cf2230ca2a37242e08a0f8e69eee68085eb33e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-zero","signature_sha256":"b724178cf6202822e6681814182057fe92af3c7be28356fc0410149b76440e18"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.add-sub-cancel","signature_sha256":"74d368eb26f5be970fec0677ab7e789ecbe77cf9f97dfad6374ecd7295c003c2"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-assoc","signature_sha256":"e61808165472216f2d73facc85d10d74e524a896427a0e11ec3ae62b98fa9fda"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-self","signature_sha256":"74d7d4f0b01591dc84b5f20d5ee389ebefc68f4272362d387f32e338c804ad4d"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-zero","signature_sha256":"efb4130997c532b1da46708abff25bf087871d69b85e7ef57385e377f2ea9429"},{"category":"function","id":"lt","signature_sha256":"21650756a1284d8cbcc6260c5a276f4e67dc0d7ea792413e8e1227976125ba31"},{"category":"transitive-predicate","id":"lt.lt","signature_sha256":"f139b50c8f104811e41c38999d9c60d3401cfaf7efa926164351a550bb4e02ef"},{"category":"function","id":"lt.mk","signature_sha256":"d9a1b6618368260fedff1dec29779eaeae20c0f6476007952b19312689bc0d2d"},{"category":"type-noun","id":"nat","signature_sha256":"f23ac5c59894fab109f943cb71f3f118d39c2a11dd566054b9cca7baeb70e9d1"},{"category":"function","id":"nat.succ","signature_sha256":"f48648e010438e6f25eada153abf5e6e9c362401c8e166d5046d66ee2e8aaea8"},{"category":"term-constant","id":"nat.zero","signature_sha256":"a5673dda9b78a7ce779f16345d44847ed48477922ac4b734c9a1c94b9e26a898"},{"category":"type-noun","id":"u-int32","signature_sha256":"f23ac5c59894fab109f943cb71f3f118d39c2a11dd566054b9cca7baeb70e9d1"},{"category":"function","id":"u-int32.of-bit-vec","signature_sha256":"5add337f97d3a6942b3fedfc1ffa2102dee61dd5c1802e898895731fac659b66"}],"id":"lean.mathlib","manifest_sha256":"5fef012739e28a5bff0b8f40825d9813776d8ab87ba5b715f654d1f36ce17f28","tree_sha256":"62069b4dd8ba1e164384095b9dd931f1689274a22500b5e8693374471bf94547","version":"1.0.0"},{"entries":[{"category":"label-word","id":"arithmetic"},{"category":"label-word","id":"cancellation"},{"category":"label-word","id":"function"},{"category":"label-word","id":"inverse"},{"category":"label-word","id":"mixing"},{"category":"label-word","id":"rotation"},{"category":"label-word","id":"word"},{"category":"label-word","id":"xor"}],"id":"blake3.g","manifest_sha256":"d35dcc6762613da08688086b3378cb0099b1b6da4c9cabdd809396bacc6fd196","tree_sha256":"2c3540b8390722fb229212b60f4a4930e5a9b0bbea3a11d327484c5804c80546","version":"1.0.0"}],"spec":"lexlean/lexicon-closure/1"} diff --git a/demos/mathlib-blake3-g/expected/build/lexicons/Rotation.closure.json b/demos/mathlib-blake3-g/expected/build/lexicons/Rotation.closure.json new file mode 100644 index 0000000000..dc5ea766b4 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/lexicons/Rotation.closure.json @@ -0,0 +1 @@ +{"module":"Rotation","packages":[{"entries":[{"category":"grammar","id":"a"},{"category":"structural","id":"allowaxioms"},{"category":"grammar","id":"alternative"},{"category":"grammar","id":"an"},{"category":"grammar","id":"and"},{"category":"proof-constant","id":"and-intro","signature_sha256":"3ae5651d6fc8a15bcaba9d07d64ab88cbbabfd966e66953e27a652c892b5b490"},{"category":"grammar","id":"apply-verb"},{"category":"infix-function","id":"arrow","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"grammar","id":"as"},{"category":"grammar","id":"assume"},{"category":"structural","id":"at"},{"category":"structural","id":"backward"},{"category":"structural","id":"begin"},{"category":"structural","id":"bind"},{"category":"structural","id":"brace-close"},{"category":"structural","id":"brace-open"},{"category":"structural","id":"bracket-close"},{"category":"structural","id":"bracket-open"},{"category":"label-word","id":"branch-word"},{"category":"grammar","id":"by"},{"category":"label-word","id":"case-word"},{"category":"grammar","id":"cases-noun"},{"category":"grammar","id":"close"},{"category":"structural","id":"colon"},{"category":"structural","id":"comma"},{"category":"grammar","id":"consider"},{"category":"grammar","id":"defined"},{"category":"structural","id":"display-close"},{"category":"structural","id":"display-open"},{"category":"structural","id":"end"},{"category":"structural","id":"env.apply"},{"category":"structural","id":"env.branch"},{"category":"structural","id":"env.calculate"},{"category":"structural","id":"env.case"},{"category":"structural","id":"env.cases"},{"category":"structural","id":"env.constructor"},{"category":"structural","id":"env.corollary"},{"category":"structural","id":"env.have"},{"category":"structural","id":"env.induction"},{"category":"structural","id":"env.lemma"},{"category":"structural","id":"env.lexlean"},{"category":"structural","id":"env.predicatedefinition"},{"category":"structural","id":"env.premise"},{"category":"structural","id":"env.proof"},{"category":"structural","id":"env.rewrite"},{"category":"structural","id":"env.section"},{"category":"structural","id":"env.simplify"},{"category":"structural","id":"env.termdefinition"},{"category":"structural","id":"env.theorem"},{"category":"structural","id":"env.typedefinition"},{"category":"infix-predicate","id":"eq","signature_sha256":"fff6703047a5db5ce2f1084729d26de7c98b060880f10d11bf993e61583a417a"},{"category":"grammar","id":"establish"},{"category":"grammar","id":"every"},{"category":"structural","id":"exactaxioms"},{"category":"grammar","id":"exactly"},{"category":"grammar","id":"exists"},{"category":"proof-constant","id":"exists-intro","signature_sha256":"826877f0c5dacbef193c11d1e3e4338883dd1db68a5ec9d73640e4fa6ab856f9"},{"category":"function","id":"exists-op","signature_sha256":"6fe6ba416d461756b942d1a826db5ba62ecb89ad10c83e5429fda5676ef1987b"},{"category":"grammar","id":"first"},{"category":"grammar","id":"follows"},{"category":"grammar","id":"for"},{"category":"structural","id":"forward"},{"category":"grammar","id":"from"},{"category":"grammar","id":"goal"},{"category":"structural","id":"heading"},{"category":"grammar","id":"holds"},{"category":"structural","id":"hyphen"},{"category":"grammar","id":"if"},{"category":"infix-function","id":"iff","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"proof-constant","id":"iff-intro","signature_sha256":"916fefdef3740a5a417db539a07f7c64c80b167b4b56376e04ae5a34ef2a24d3"},{"category":"grammar","id":"implies"},{"category":"structural","id":"importmodule"},{"category":"grammar","id":"induction-noun"},{"category":"grammar","id":"is"},{"category":"infix-function","id":"land","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"grammar","id":"left"},{"category":"structural","id":"lexeme"},{"category":"prefix-function","id":"lnot","signature_sha256":"b58227252ab1afe7522f2d168e1d8bb96947273b77d8d69d9d5d62a5616e45f7"},{"category":"infix-function","id":"lor","signature_sha256":"4ab8273d45e3bda75d484468dd51cd1f4614a5d9b73a6fc066388aa72636a717"},{"category":"structural","id":"math-close"},{"category":"structural","id":"math-open"},{"category":"structural","id":"noaxioms"},{"category":"grammar","id":"not"},{"category":"grammar","id":"of"},{"category":"grammar","id":"on"},{"category":"grammar","id":"one"},{"category":"grammar","id":"only"},{"category":"grammar","id":"or"},{"category":"proof-constant","id":"or-inl","signature_sha256":"15bc04b85dd3fa7919a5346eb884241553989ba798adf2a7d070b80d77d6d46a"},{"category":"proof-constant","id":"or-inr","signature_sha256":"8e845723a60966714d93537e9cf60ab49f228514f7c617e0f66e119b3a642a2c"},{"category":"structural","id":"parameters"},{"category":"label-word","id":"parameters-concept"},{"category":"structural","id":"paren-close"},{"category":"structural","id":"paren-open"},{"category":"structural","id":"period"},{"category":"label-word","id":"premise-word"},{"category":"grammar","id":"proceed"},{"category":"structural","id":"reference"},{"category":"grammar","id":"reflexivity"},{"category":"grammar","id":"rewrite-verb"},{"category":"grammar","id":"right"},{"category":"structural","id":"rule"},{"category":"grammar","id":"select"},{"category":"structural","id":"semicolon"},{"category":"grammar","id":"simplify-verb"},{"category":"structural","id":"start"},{"category":"structural","id":"step"},{"category":"grammar","id":"such"},{"category":"grammar","id":"that"},{"category":"grammar","id":"the"},{"category":"grammar","id":"then"},{"category":"grammar","id":"there"},{"category":"structural","id":"title"},{"category":"grammar","id":"use"},{"category":"structural","id":"useglossary"},{"category":"grammar","id":"using"},{"category":"grammar","id":"we"},{"category":"grammar","id":"when"},{"category":"grammar","id":"with"},{"category":"grammar","id":"witness"}],"id":"lexlean.core","manifest_sha256":"271079763d269cc873531f515e56da960cd6321393b9460ff0e617666fa01d71","tree_sha256":"827317cae68c162f3a96c8a8de4e53ab348e7d3724fd2b834fa85ecde1a1b392","version":"1.2.0"},{"entries":[{"category":"function","id":"bit-vec","signature_sha256":"ef51c07c0352003eb9256193fe4f5238c9f2eff18e8902097c86254e4cfe66d3"},{"category":"function","id":"bit-vec.of-fin","signature_sha256":"6d69bdd6ece79d89fcdabc52452ebfcef870a57ec484287acb8b3fc17aec99c7"},{"category":"function","id":"bit-vec.of-nat","signature_sha256":"2bf979d5fa67fa7c5d9835206aebfe494d421dacdc5f9c48f05bd39916c9c270"},{"category":"function","id":"bit-vec.rotate-left","signature_sha256":"8858eafb9b41221e42c1589acbc51c34f011926857de8f08c3512e3b5a958e34"},{"category":"function","id":"bit-vec.rotate-right","signature_sha256":"8858eafb9b41221e42c1589acbc51c34f011926857de8f08c3512e3b5a958e34"},{"category":"proof-constant","id":"blake3-g-host.rotate-left-rotate-right","signature_sha256":"0918c627869a3b6ad82ad7bd77d3c847c3bd4549e0e6c624f4381ae19d0f55df"},{"category":"function","id":"fin","signature_sha256":"ef51c07c0352003eb9256193fe4f5238c9f2eff18e8902097c86254e4cfe66d3"},{"category":"function","id":"fin.mk","signature_sha256":"a2fd47811877682d1ab71fddde763e25b708f07801b5c276d0ac2b753e237830"},{"category":"function","id":"h-add","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-add.h-add","signature_sha256":"79e9807430fefc0417c358774fb99ff95f086b7625a0a75fe631513384289fa3"},{"category":"function","id":"h-add.mk","signature_sha256":"e0122d9062c68623b5acf5ce56b742252dabd56342ae454af584575d7252eed4"},{"category":"function","id":"h-pow","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-pow.h-pow","signature_sha256":"6c510ad8c52d2e3273a4773810b2279f12763fbca510d42ae90ed394d3f7bbfb"},{"category":"function","id":"h-pow.mk","signature_sha256":"51fce6dea0bcc769c2fdaac92e0f74c78d1df192f90fe426cfcce29261f950c6"},{"category":"function","id":"h-sub","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-sub.h-sub","signature_sha256":"8317fe7c474a3b09315329dde8b1a4130e22b4c9be2a07bf190fbb90209cbb28"},{"category":"function","id":"h-sub.mk","signature_sha256":"a0b9c5aa87bdfa4e8a3134fa9b6e9e7b97cd40071ce7e6946a9d09e808dbd921"},{"category":"function","id":"h-xor","signature_sha256":"374c09cde65fef6b9c8d198cfd2be581027559e7dfd58c0e5f4bfa8877dd783a"},{"category":"function","id":"h-xor.h-xor","signature_sha256":"d629b1e8b76b33d52260fd6d9de40f9175acc9681c8a7bbdff750f9056db6c04"},{"category":"function","id":"h-xor.mk","signature_sha256":"bc40d830917a47de56c2039d395e120cfd6930b52210b6e11d28b569ff4bd86c"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.add-right-comm","signature_sha256":"8325d9e486f49fdf11e570d8d8bdfb2efa710b4f3e4062cc98c07315bcaeb3c5"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.add-sub-cancel-right","signature_sha256":"55a30417cb19ba1f4a01b282411f5ada7a711dcbc7a7dc794c198499fe14317e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.add-sub-cancel","signature_sha256":"55a30417cb19ba1f4a01b282411f5ada7a711dcbc7a7dc794c198499fe14317e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-assoc","signature_sha256":"0065db47714cbd8c7bdb362b0bb291c2ba123fd5535b6941e6df69dac8b3b53f"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-self","signature_sha256":"9a4a63646fbc8f1adb137d5764cf2230ca2a37242e08a0f8e69eee68085eb33e"},{"category":"proof-constant","id":"lex-lean-spec.bit-vec32.bit-vec.xor-zero","signature_sha256":"b724178cf6202822e6681814182057fe92af3c7be28356fc0410149b76440e18"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.add-sub-cancel","signature_sha256":"74d368eb26f5be970fec0677ab7e789ecbe77cf9f97dfad6374ecd7295c003c2"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-assoc","signature_sha256":"e61808165472216f2d73facc85d10d74e524a896427a0e11ec3ae62b98fa9fda"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-self","signature_sha256":"74d7d4f0b01591dc84b5f20d5ee389ebefc68f4272362d387f32e338c804ad4d"},{"category":"proof-constant","id":"lex-lean-spec.u32.u-int32.xor-zero","signature_sha256":"efb4130997c532b1da46708abff25bf087871d69b85e7ef57385e377f2ea9429"},{"category":"function","id":"lt","signature_sha256":"21650756a1284d8cbcc6260c5a276f4e67dc0d7ea792413e8e1227976125ba31"},{"category":"transitive-predicate","id":"lt.lt","signature_sha256":"f139b50c8f104811e41c38999d9c60d3401cfaf7efa926164351a550bb4e02ef"},{"category":"function","id":"lt.mk","signature_sha256":"d9a1b6618368260fedff1dec29779eaeae20c0f6476007952b19312689bc0d2d"},{"category":"type-noun","id":"nat","signature_sha256":"f23ac5c59894fab109f943cb71f3f118d39c2a11dd566054b9cca7baeb70e9d1"},{"category":"function","id":"nat.succ","signature_sha256":"f48648e010438e6f25eada153abf5e6e9c362401c8e166d5046d66ee2e8aaea8"},{"category":"term-constant","id":"nat.zero","signature_sha256":"a5673dda9b78a7ce779f16345d44847ed48477922ac4b734c9a1c94b9e26a898"},{"category":"type-noun","id":"u-int32","signature_sha256":"f23ac5c59894fab109f943cb71f3f118d39c2a11dd566054b9cca7baeb70e9d1"},{"category":"function","id":"u-int32.of-bit-vec","signature_sha256":"5add337f97d3a6942b3fedfc1ffa2102dee61dd5c1802e898895731fac659b66"}],"id":"lean.mathlib","manifest_sha256":"5fef012739e28a5bff0b8f40825d9813776d8ab87ba5b715f654d1f36ce17f28","tree_sha256":"62069b4dd8ba1e164384095b9dd931f1689274a22500b5e8693374471bf94547","version":"1.0.0"},{"entries":[{"category":"label-word","id":"arithmetic"},{"category":"label-word","id":"cancellation"},{"category":"label-word","id":"function"},{"category":"label-word","id":"inverse"},{"category":"label-word","id":"mixing"},{"category":"label-word","id":"rotation"},{"category":"label-word","id":"word"},{"category":"label-word","id":"xor"}],"id":"blake3.g","manifest_sha256":"d35dcc6762613da08688086b3378cb0099b1b6da4c9cabdd809396bacc6fd196","tree_sha256":"2c3540b8390722fb229212b60f4a4930e5a9b0bbea3a11d327484c5804c80546","version":"1.0.0"}],"spec":"lexlean/lexicon-closure/1"} diff --git a/demos/mathlib-blake3-g/expected/build/manifest.json b/demos/mathlib-blake3-g/expected/build/manifest.json new file mode 100644 index 0000000000..88123aef06 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/manifest.json @@ -0,0 +1 @@ +{"build_id":"27c2061267470a5c7c0034038e9f35bad95f1deed7db1bcc4c1d10f640dfd471","compiler":{"semantics_id":"1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694","version":"0.4.0"},"inputs":[{"byte_length":2684,"kind":"lexicon","path":"embedded","sha256":"3bc0fb09d706ffa7d5a1363302ea87c049acc7c7dcafde63c62682620c11be9b"},{"byte_length":14885,"kind":"lexicon","path":"embedded","sha256":"e0db021e01b91d651c43921d66f6b0023c8efbf17cac2ec53192ce5305e4e1ac"},{"byte_length":36197,"kind":"lexicon","path":"embedded","sha256":"827317cae68c162f3a96c8a8de4e53ab348e7d3724fd2b834fa85ecde1a1b392"},{"byte_length":2537,"kind":"lexicon","path":"glossary/blake3.g","sha256":"2c3540b8390722fb229212b60f4a4930e5a9b0bbea3a11d327484c5804c80546"},{"byte_length":25015,"kind":"lexicon","path":"glossary/lean.mathlib","sha256":"62069b4dd8ba1e164384095b9dd931f1689274a22500b5e8693374471bf94547"},{"byte_length":2562,"kind":"lock","path":"lexlean.lock","sha256":"2406dee91bcabd2a293fdb95cfe7db21f63d96c267aaf6612ba67a87043957bf"},{"byte_length":971,"kind":"project-config","path":"lexlean.toml","sha256":"b399afc31f58ecde217d8822787f575e91223f8ddc76eac6c4afa7c922aa68ab"},{"byte_length":2357,"kind":"source","path":"src/Cancellation.lex.tex","sha256":"02835c5a2c0839a384cce4202d6aa0c99aca1f5c98fc95889d4eb7bfad776c28"},{"byte_length":196,"kind":"source","path":"src/Main.lex.tex","sha256":"6af5ceb6d1639867585c2ab7bc77fbdf01f153c5510dd327972dd62c98b7db6d"},{"byte_length":4316,"kind":"source","path":"src/Mixing.lex.tex","sha256":"877f09c3dc757d1a489d04484539b384044e2fddab458fc67454a6fbb560273d"},{"byte_length":1624,"kind":"source","path":"src/Rotation.lex.tex","sha256":"fb6120726f4c30cbc62c7746eac00e32232c94477e75d88b2daf9a61df64d5ce"}],"language":"1.2","lean_toolchain":"leanprover/lean4:v4.32.1","modules":[{"lean_module":"MathlibBlake3G.Cancellation","module":"Cancellation","source_path":"src/Cancellation.lex.tex"},{"lean_module":"MathlibBlake3G.Main","module":"Main","source_path":"src/Main.lex.tex"},{"lean_module":"MathlibBlake3G.Mixing","module":"Mixing","source_path":"src/Mixing.lex.tex"},{"lean_module":"MathlibBlake3G.Rotation","module":"Rotation","source_path":"src/Rotation.lex.tex"}],"outputs":[{"byte_length":215868,"kind":"coverage","path":"coverage/MathlibBlake3G/Cancellation.coverage.json","sha256":"f8c8daae491fd26c70001fffa1d2a010bcffbd1e8f678216e801f2204c91ffa6"},{"byte_length":21320,"kind":"coverage","path":"coverage/MathlibBlake3G/Main.coverage.json","sha256":"a50eddcaceea0bc9446ecc286e16edbdb7153b36da460312925059ef8151a86b"},{"byte_length":433450,"kind":"coverage","path":"coverage/MathlibBlake3G/Mixing.coverage.json","sha256":"0b16eb3ebd6154ae07e45663fe9d962633ec72e8e4521c2bff60ed6feae3f376"},{"byte_length":146006,"kind":"coverage","path":"coverage/MathlibBlake3G/Rotation.coverage.json","sha256":"f4f6c9c0cc0ffa3e38a7123e73fe401cd7f3145e185af13457425da0bf601ed5"},{"byte_length":1572,"kind":"lean","path":"modules/MathlibBlake3G/Cancellation.lean","sha256":"f3d1369e854345d4232407affc5a748c244a7dea986d8c6bb978d342a3f2c880"},{"byte_length":208,"kind":"lean","path":"modules/MathlibBlake3G/Main.lean","sha256":"ce6eb33941d604269142f5a21d8fa3296e8880f1cd5fa9ce3cf7efa3952014d1"},{"byte_length":2864,"kind":"lean","path":"modules/MathlibBlake3G/Mixing.lean","sha256":"fbc630a39ab4da364dc1cb94268db00542a12a5c459bc3e0cb4f46e22a4dacf3"},{"byte_length":1102,"kind":"lean","path":"modules/MathlibBlake3G/Rotation.lean","sha256":"ec14d4504b1cf82738553bb4c1a13a001e60df10fe8d71696d837a5f2450b7ef"},{"byte_length":12198,"kind":"lexicon-closure","path":"lexicons/Cancellation.closure.json","sha256":"e726dc417c038d699da7239990709fe00e4175ff5689b93a6994afd4fbb9827b"},{"byte_length":12190,"kind":"lexicon-closure","path":"lexicons/Main.closure.json","sha256":"9b0215637a73a9114f1e1494195077a074f9b8e333c6cb154b61c4adc879bdeb"},{"byte_length":12192,"kind":"lexicon-closure","path":"lexicons/Mixing.closure.json","sha256":"db1a47567c0e5d067b7c43544350dab75e3fd70793c86eebb2a0811d038f5756"},{"byte_length":12194,"kind":"lexicon-closure","path":"lexicons/Rotation.closure.json","sha256":"0f7bac72b2cf91e0cc7c1ab646351c0dbe091bccac517666d76dcde9cc6b7827"},{"byte_length":108659,"kind":"map","path":"maps/MathlibBlake3G/Cancellation.map.json","sha256":"dc3e07fb1b8a576d0fa7577b5601bea6a754d806af959771531b9e39141fec46"},{"byte_length":10434,"kind":"map","path":"maps/MathlibBlake3G/Main.map.json","sha256":"3ad82842f0a7f8b295bef76ceb2a90a7f07980dcedcdca3a456aa91bc1a3f5d4"},{"byte_length":217778,"kind":"map","path":"maps/MathlibBlake3G/Mixing.map.json","sha256":"7169e8ed3b8134a7816bb9431dee5024d623c2f8801a50aa3a95bea317d87c67"},{"byte_length":73308,"kind":"map","path":"maps/MathlibBlake3G/Rotation.map.json","sha256":"20832c240ae983b044a5e0bd0b3fe0bfe7df30bb1b4fc55baa477135204637e8"},{"byte_length":3080,"kind":"tex","path":"modules/MathlibBlake3G/Cancellation.tex","sha256":"c57744398f3fe691b7db3591a82ee7ed8c77693b5b38f29ff8b5bc699671d034"},{"byte_length":423,"kind":"tex","path":"modules/MathlibBlake3G/Main.tex","sha256":"eefe8b2f9b634996deea711726a8ff69524d12760799e5a130084d5a91eb8df3"},{"byte_length":4757,"kind":"tex","path":"modules/MathlibBlake3G/Mixing.tex","sha256":"b87dfcfadd328650a4ab43f9362f7f8d5d8d228f552014831ab487ddbf3c36a2"},{"byte_length":2047,"kind":"tex","path":"modules/MathlibBlake3G/Rotation.tex","sha256":"6e7d00e86615e0d884c798fbfe2e56421f98b9fb387ab872c1801dd85388b111"}],"project":"mathlib-blake3-g","selection":["Cancellation","Main","Mixing","Rotation"],"semantic_id":"57cec83963c5622a5bae3275babaf48f93ce430bff2f10c5e1ce0c64ab840c33","source_id":"792708753ed7f56107cfaf6ad5bd3463e9d55cbe68f90fb7f24e18b74b91a23e","spec":"lexlean/build-manifest/1"} diff --git a/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Cancellation.map.json b/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Cancellation.map.json new file mode 100644 index 0000000000..ca9c4c91fe --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Cancellation.map.json @@ -0,0 +1 @@ +{"artifacts":[{"id":0,"kind":"lean","path":"modules/MathlibBlake3G/Cancellation.lean"},{"id":1,"kind":"tex","path":"modules/MathlibBlake3G/Cancellation.tex"}],"mappings":[{"artifact":0,"gen_end":6,"gen_start":0,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":13,"gen_start":7,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":20,"gen_start":14,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":33,"gen_start":21,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":40,"gen_start":34,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":47,"gen_start":41,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":60,"gen_start":48,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":71,"gen_start":61,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":84,"gen_start":72,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":90,"gen_start":85,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":100,"gen_start":91,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":128,"gen_start":101,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":136,"gen_start":130,"node":1,"role":"declaration","source":0,"src_end":433,"src_start":165},{"artifact":0,"gen_end":144,"gen_start":137,"node":1,"role":"declaration","source":0,"src_end":433,"src_start":165},{"artifact":0,"gen_end":159,"gen_start":145,"node":1,"role":"declaration","source":0,"src_end":433,"src_start":165},{"artifact":0,"gen_end":161,"gen_start":160,"node":1,"role":"binder","source":0,"src_end":251,"src_start":250},{"artifact":0,"gen_end":165,"gen_start":161,"node":1,"role":"binder","source":0,"src_end":251,"src_start":250},{"artifact":0,"gen_end":167,"gen_start":166,"node":1,"role":"binder","source":0,"src_end":251,"src_start":250},{"artifact":0,"gen_end":174,"gen_start":168,"node":1,"role":"binder","source":0,"src_end":251,"src_start":250},{"artifact":0,"gen_end":177,"gen_start":175,"node":1,"role":"binder","source":0,"src_end":251,"src_start":250},{"artifact":0,"gen_end":178,"gen_start":177,"node":1,"role":"binder","source":0,"src_end":251,"src_start":250},{"artifact":0,"gen_end":180,"gen_start":179,"node":1,"role":"binder","source":0,"src_end":276,"src_start":275},{"artifact":0,"gen_end":184,"gen_start":180,"node":1,"role":"binder","source":0,"src_end":276,"src_start":275},{"artifact":0,"gen_end":186,"gen_start":185,"node":1,"role":"binder","source":0,"src_end":276,"src_start":275},{"artifact":0,"gen_end":193,"gen_start":187,"node":1,"role":"binder","source":0,"src_end":276,"src_start":275},{"artifact":0,"gen_end":196,"gen_start":194,"node":1,"role":"binder","source":0,"src_end":276,"src_start":275},{"artifact":0,"gen_end":197,"gen_start":196,"node":1,"role":"binder","source":0,"src_end":276,"src_start":275},{"artifact":0,"gen_end":199,"gen_start":198,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":202,"gen_start":200,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":204,"gen_start":203,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":213,"gen_start":204,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":215,"gen_start":214,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":224,"gen_start":215,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":229,"gen_start":225,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":234,"gen_start":230,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":235,"gen_start":234,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":240,"gen_start":236,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":241,"gen_start":240,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":246,"gen_start":242,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":249,"gen_start":247,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":252,"gen_start":250,"node":1,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":0,"gen_end":260,"gen_start":255,"node":1,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":0,"gen_end":303,"gen_start":261,"node":1,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":0,"gen_end":308,"gen_start":304,"node":1,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":0,"gen_end":313,"gen_start":309,"node":1,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":0,"gen_end":321,"gen_start":315,"node":2,"role":"declaration","source":0,"src_end":738,"src_start":437},{"artifact":0,"gen_end":329,"gen_start":322,"node":2,"role":"declaration","source":0,"src_end":738,"src_start":437},{"artifact":0,"gen_end":350,"gen_start":330,"node":2,"role":"declaration","source":0,"src_end":738,"src_start":437},{"artifact":0,"gen_end":352,"gen_start":351,"node":2,"role":"binder","source":0,"src_end":557,"src_start":556},{"artifact":0,"gen_end":356,"gen_start":352,"node":2,"role":"binder","source":0,"src_end":557,"src_start":556},{"artifact":0,"gen_end":358,"gen_start":357,"node":2,"role":"binder","source":0,"src_end":557,"src_start":556},{"artifact":0,"gen_end":365,"gen_start":359,"node":2,"role":"binder","source":0,"src_end":557,"src_start":556},{"artifact":0,"gen_end":368,"gen_start":366,"node":2,"role":"binder","source":0,"src_end":557,"src_start":556},{"artifact":0,"gen_end":369,"gen_start":368,"node":2,"role":"binder","source":0,"src_end":557,"src_start":556},{"artifact":0,"gen_end":371,"gen_start":370,"node":2,"role":"binder","source":0,"src_end":582,"src_start":581},{"artifact":0,"gen_end":375,"gen_start":371,"node":2,"role":"binder","source":0,"src_end":582,"src_start":581},{"artifact":0,"gen_end":377,"gen_start":376,"node":2,"role":"binder","source":0,"src_end":582,"src_start":581},{"artifact":0,"gen_end":384,"gen_start":378,"node":2,"role":"binder","source":0,"src_end":582,"src_start":581},{"artifact":0,"gen_end":387,"gen_start":385,"node":2,"role":"binder","source":0,"src_end":582,"src_start":581},{"artifact":0,"gen_end":388,"gen_start":387,"node":2,"role":"binder","source":0,"src_end":582,"src_start":581},{"artifact":0,"gen_end":390,"gen_start":389,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":393,"gen_start":391,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":395,"gen_start":394,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":404,"gen_start":395,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":406,"gen_start":405,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":415,"gen_start":406,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":420,"gen_start":416,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":425,"gen_start":421,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":426,"gen_start":425,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":431,"gen_start":427,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":432,"gen_start":431,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":437,"gen_start":433,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":440,"gen_start":438,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":443,"gen_start":441,"node":2,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":0,"gen_end":451,"gen_start":446,"node":2,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":0,"gen_end":493,"gen_start":452,"node":2,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":0,"gen_end":498,"gen_start":494,"node":2,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":0,"gen_end":503,"gen_start":499,"node":2,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":0,"gen_end":511,"gen_start":505,"node":3,"role":"declaration","source":0,"src_end":1001,"src_start":742},{"artifact":0,"gen_end":519,"gen_start":512,"node":3,"role":"declaration","source":0,"src_end":1001,"src_start":742},{"artifact":0,"gen_end":538,"gen_start":520,"node":3,"role":"declaration","source":0,"src_end":1001,"src_start":742},{"artifact":0,"gen_end":540,"gen_start":539,"node":3,"role":"binder","source":0,"src_end":828,"src_start":827},{"artifact":0,"gen_end":544,"gen_start":540,"node":3,"role":"binder","source":0,"src_end":828,"src_start":827},{"artifact":0,"gen_end":546,"gen_start":545,"node":3,"role":"binder","source":0,"src_end":828,"src_start":827},{"artifact":0,"gen_end":553,"gen_start":547,"node":3,"role":"binder","source":0,"src_end":828,"src_start":827},{"artifact":0,"gen_end":554,"gen_start":553,"node":3,"role":"binder","source":0,"src_end":828,"src_start":827},{"artifact":0,"gen_end":556,"gen_start":555,"node":3,"role":"binder","source":0,"src_end":849,"src_start":848},{"artifact":0,"gen_end":560,"gen_start":556,"node":3,"role":"binder","source":0,"src_end":849,"src_start":848},{"artifact":0,"gen_end":562,"gen_start":561,"node":3,"role":"binder","source":0,"src_end":849,"src_start":848},{"artifact":0,"gen_end":569,"gen_start":563,"node":3,"role":"binder","source":0,"src_end":849,"src_start":848},{"artifact":0,"gen_end":570,"gen_start":569,"node":3,"role":"binder","source":0,"src_end":849,"src_start":848},{"artifact":0,"gen_end":572,"gen_start":571,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":575,"gen_start":573,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":577,"gen_start":576,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":586,"gen_start":577,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":588,"gen_start":587,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":597,"gen_start":588,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":602,"gen_start":598,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":607,"gen_start":603,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":608,"gen_start":607,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":613,"gen_start":609,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":614,"gen_start":613,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":619,"gen_start":615,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":622,"gen_start":620,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":625,"gen_start":623,"node":3,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":0,"gen_end":633,"gen_start":628,"node":3,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":0,"gen_end":671,"gen_start":634,"node":3,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":0,"gen_end":676,"gen_start":672,"node":3,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":0,"gen_end":681,"gen_start":677,"node":3,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":0,"gen_end":689,"gen_start":683,"node":4,"role":"declaration","source":0,"src_end":1497,"src_start":1005},{"artifact":0,"gen_end":697,"gen_start":690,"node":4,"role":"declaration","source":0,"src_end":1497,"src_start":1005},{"artifact":0,"gen_end":716,"gen_start":698,"node":4,"role":"declaration","source":0,"src_end":1497,"src_start":1005},{"artifact":0,"gen_end":718,"gen_start":717,"node":4,"role":"binder","source":0,"src_end":1121,"src_start":1120},{"artifact":0,"gen_end":722,"gen_start":718,"node":4,"role":"binder","source":0,"src_end":1121,"src_start":1120},{"artifact":0,"gen_end":724,"gen_start":723,"node":4,"role":"binder","source":0,"src_end":1121,"src_start":1120},{"artifact":0,"gen_end":731,"gen_start":725,"node":4,"role":"binder","source":0,"src_end":1121,"src_start":1120},{"artifact":0,"gen_end":734,"gen_start":732,"node":4,"role":"binder","source":0,"src_end":1121,"src_start":1120},{"artifact":0,"gen_end":735,"gen_start":734,"node":4,"role":"binder","source":0,"src_end":1121,"src_start":1120},{"artifact":0,"gen_end":737,"gen_start":736,"node":4,"role":"binder","source":0,"src_end":1146,"src_start":1145},{"artifact":0,"gen_end":741,"gen_start":737,"node":4,"role":"binder","source":0,"src_end":1146,"src_start":1145},{"artifact":0,"gen_end":743,"gen_start":742,"node":4,"role":"binder","source":0,"src_end":1146,"src_start":1145},{"artifact":0,"gen_end":750,"gen_start":744,"node":4,"role":"binder","source":0,"src_end":1146,"src_start":1145},{"artifact":0,"gen_end":753,"gen_start":751,"node":4,"role":"binder","source":0,"src_end":1146,"src_start":1145},{"artifact":0,"gen_end":754,"gen_start":753,"node":4,"role":"binder","source":0,"src_end":1146,"src_start":1145},{"artifact":0,"gen_end":756,"gen_start":755,"node":4,"role":"binder","source":0,"src_end":1171,"src_start":1170},{"artifact":0,"gen_end":760,"gen_start":756,"node":4,"role":"binder","source":0,"src_end":1171,"src_start":1170},{"artifact":0,"gen_end":762,"gen_start":761,"node":4,"role":"binder","source":0,"src_end":1171,"src_start":1170},{"artifact":0,"gen_end":769,"gen_start":763,"node":4,"role":"binder","source":0,"src_end":1171,"src_start":1170},{"artifact":0,"gen_end":772,"gen_start":770,"node":4,"role":"binder","source":0,"src_end":1171,"src_start":1170},{"artifact":0,"gen_end":773,"gen_start":772,"node":4,"role":"binder","source":0,"src_end":1171,"src_start":1170},{"artifact":0,"gen_end":775,"gen_start":774,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":778,"gen_start":776,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":780,"gen_start":779,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":789,"gen_start":780,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":791,"gen_start":790,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":800,"gen_start":791,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":802,"gen_start":801,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":811,"gen_start":802,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":813,"gen_start":812,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":822,"gen_start":813,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":827,"gen_start":823,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":832,"gen_start":828,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":833,"gen_start":832,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":838,"gen_start":834,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":839,"gen_start":838,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":844,"gen_start":840,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":845,"gen_start":844,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":850,"gen_start":846,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":851,"gen_start":850,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":856,"gen_start":852,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":859,"gen_start":857,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":862,"gen_start":860,"node":4,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":0,"gen_end":867,"gen_start":865,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":869,"gen_start":868,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":904,"gen_start":869,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":909,"gen_start":905,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":914,"gen_start":910,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":919,"gen_start":915,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":920,"gen_start":919,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":962,"gen_start":921,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":964,"gen_start":963,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":973,"gen_start":964,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":978,"gen_start":974,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":983,"gen_start":979,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":984,"gen_start":983,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":989,"gen_start":985,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":990,"gen_start":989,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":1032,"gen_start":991,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":1037,"gen_start":1033,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":1042,"gen_start":1038,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":1043,"gen_start":1042,"node":4,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":0,"gen_end":1051,"gen_start":1045,"node":5,"role":"declaration","source":0,"src_end":1954,"src_start":1565},{"artifact":0,"gen_end":1059,"gen_start":1052,"node":5,"role":"declaration","source":0,"src_end":1954,"src_start":1565},{"artifact":0,"gen_end":1070,"gen_start":1060,"node":5,"role":"declaration","source":0,"src_end":1954,"src_start":1565},{"artifact":0,"gen_end":1072,"gen_start":1071,"node":5,"role":"binder","source":0,"src_end":1658,"src_start":1657},{"artifact":0,"gen_end":1076,"gen_start":1072,"node":5,"role":"binder","source":0,"src_end":1658,"src_start":1657},{"artifact":0,"gen_end":1078,"gen_start":1077,"node":5,"role":"binder","source":0,"src_end":1658,"src_start":1657},{"artifact":0,"gen_end":1085,"gen_start":1079,"node":5,"role":"binder","source":0,"src_end":1658,"src_start":1657},{"artifact":0,"gen_end":1088,"gen_start":1086,"node":5,"role":"binder","source":0,"src_end":1658,"src_start":1657},{"artifact":0,"gen_end":1089,"gen_start":1088,"node":5,"role":"binder","source":0,"src_end":1658,"src_start":1657},{"artifact":0,"gen_end":1091,"gen_start":1090,"node":5,"role":"binder","source":0,"src_end":1683,"src_start":1682},{"artifact":0,"gen_end":1095,"gen_start":1091,"node":5,"role":"binder","source":0,"src_end":1683,"src_start":1682},{"artifact":0,"gen_end":1097,"gen_start":1096,"node":5,"role":"binder","source":0,"src_end":1683,"src_start":1682},{"artifact":0,"gen_end":1104,"gen_start":1098,"node":5,"role":"binder","source":0,"src_end":1683,"src_start":1682},{"artifact":0,"gen_end":1107,"gen_start":1105,"node":5,"role":"binder","source":0,"src_end":1683,"src_start":1682},{"artifact":0,"gen_end":1108,"gen_start":1107,"node":5,"role":"binder","source":0,"src_end":1683,"src_start":1682},{"artifact":0,"gen_end":1110,"gen_start":1109,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1113,"gen_start":1111,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1115,"gen_start":1114,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1124,"gen_start":1115,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1126,"gen_start":1125,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1135,"gen_start":1126,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1140,"gen_start":1136,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1145,"gen_start":1141,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1146,"gen_start":1145,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1151,"gen_start":1147,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1152,"gen_start":1151,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1157,"gen_start":1153,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1160,"gen_start":1158,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1163,"gen_start":1161,"node":5,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":0,"gen_end":1168,"gen_start":1166,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1170,"gen_start":1169,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1207,"gen_start":1170,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1212,"gen_start":1208,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1217,"gen_start":1213,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1222,"gen_start":1218,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1223,"gen_start":1222,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1260,"gen_start":1224,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1261,"gen_start":1260,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1298,"gen_start":1262,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1299,"gen_start":1298,"node":5,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":0,"gen_end":1307,"gen_start":1301,"node":6,"role":"declaration","source":0,"src_end":2328,"src_start":1958},{"artifact":0,"gen_end":1315,"gen_start":1308,"node":6,"role":"declaration","source":0,"src_end":2328,"src_start":1958},{"artifact":0,"gen_end":1330,"gen_start":1316,"node":6,"role":"declaration","source":0,"src_end":2328,"src_start":1958},{"artifact":0,"gen_end":1332,"gen_start":1331,"node":6,"role":"binder","source":0,"src_end":2051,"src_start":2050},{"artifact":0,"gen_end":1336,"gen_start":1332,"node":6,"role":"binder","source":0,"src_end":2051,"src_start":2050},{"artifact":0,"gen_end":1338,"gen_start":1337,"node":6,"role":"binder","source":0,"src_end":2051,"src_start":2050},{"artifact":0,"gen_end":1345,"gen_start":1339,"node":6,"role":"binder","source":0,"src_end":2051,"src_start":2050},{"artifact":0,"gen_end":1346,"gen_start":1345,"node":6,"role":"binder","source":0,"src_end":2051,"src_start":2050},{"artifact":0,"gen_end":1348,"gen_start":1347,"node":6,"role":"binder","source":0,"src_end":2072,"src_start":2071},{"artifact":0,"gen_end":1352,"gen_start":1348,"node":6,"role":"binder","source":0,"src_end":2072,"src_start":2071},{"artifact":0,"gen_end":1354,"gen_start":1353,"node":6,"role":"binder","source":0,"src_end":2072,"src_start":2071},{"artifact":0,"gen_end":1361,"gen_start":1355,"node":6,"role":"binder","source":0,"src_end":2072,"src_start":2071},{"artifact":0,"gen_end":1362,"gen_start":1361,"node":6,"role":"binder","source":0,"src_end":2072,"src_start":2071},{"artifact":0,"gen_end":1364,"gen_start":1363,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1367,"gen_start":1365,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1369,"gen_start":1368,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1378,"gen_start":1369,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1380,"gen_start":1379,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1389,"gen_start":1380,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1394,"gen_start":1390,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1399,"gen_start":1395,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1400,"gen_start":1399,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1405,"gen_start":1401,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1406,"gen_start":1405,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1411,"gen_start":1407,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1414,"gen_start":1412,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1417,"gen_start":1415,"node":6,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":0,"gen_end":1422,"gen_start":1420,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1424,"gen_start":1423,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1456,"gen_start":1424,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1461,"gen_start":1457,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1466,"gen_start":1462,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1471,"gen_start":1467,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1472,"gen_start":1471,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1504,"gen_start":1473,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1505,"gen_start":1504,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1537,"gen_start":1506,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1538,"gen_start":1537,"node":6,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":0,"gen_end":1543,"gen_start":1540,"node":7,"role":"synthetic","source":1},{"artifact":0,"gen_end":1571,"gen_start":1544,"node":7,"role":"synthetic","source":1},{"artifact":1,"gen_end":14,"gen_start":0,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":15,"gen_start":14,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":19,"gen_start":15,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":20,"gen_start":19,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":21,"gen_start":20,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":28,"gen_start":21,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":29,"gen_start":28,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":41,"gen_start":30,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":42,"gen_start":41,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":44,"gen_start":42,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":45,"gen_start":44,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":46,"gen_start":45,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":53,"gen_start":46,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":54,"gen_start":53,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":66,"gen_start":55,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":67,"gen_start":66,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":74,"gen_start":67,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":75,"gen_start":74,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":87,"gen_start":76,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":88,"gen_start":87,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":95,"gen_start":88,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":96,"gen_start":95,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":108,"gen_start":97,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":109,"gen_start":108,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":115,"gen_start":109,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":116,"gen_start":115,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":128,"gen_start":117,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":129,"gen_start":128,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":138,"gen_start":129,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":139,"gen_start":138,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":140,"gen_start":139,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":148,"gen_start":140,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":149,"gen_start":148,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":161,"gen_start":150,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":162,"gen_start":161,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":169,"gen_start":162,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":170,"gen_start":169,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":171,"gen_start":170,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":178,"gen_start":171,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":179,"gen_start":178,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":180,"gen_start":179,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":187,"gen_start":180,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":188,"gen_start":187,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":200,"gen_start":189,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":201,"gen_start":200,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":206,"gen_start":201,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":207,"gen_start":206,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":208,"gen_start":207,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":215,"gen_start":208,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":216,"gen_start":215,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":217,"gen_start":216,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":222,"gen_start":217,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":223,"gen_start":222,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":235,"gen_start":224,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":236,"gen_start":235,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":245,"gen_start":236,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":246,"gen_start":245,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":247,"gen_start":246,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":254,"gen_start":247,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":255,"gen_start":254,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":256,"gen_start":255,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":265,"gen_start":256,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":266,"gen_start":265,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":280,"gen_start":267,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":281,"gen_start":280,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":291,"gen_start":281,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":292,"gen_start":291,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":304,"gen_start":293,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":305,"gen_start":304,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":315,"gen_start":305,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":316,"gen_start":315,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":317,"gen_start":316,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":324,"gen_start":317,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":325,"gen_start":324,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":326,"gen_start":325,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":336,"gen_start":326,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":337,"gen_start":336,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":344,"gen_start":338,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":345,"gen_start":344,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":353,"gen_start":345,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":354,"gen_start":353,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":361,"gen_start":355,"node":9,"role":"renderer","source":3},{"artifact":1,"gen_end":362,"gen_start":361,"node":9,"role":"structure","source":3},{"artifact":1,"gen_end":368,"gen_start":362,"node":9,"role":"renderer","source":3},{"artifact":1,"gen_end":369,"gen_start":368,"node":9,"role":"structure","source":3},{"artifact":1,"gen_end":371,"gen_start":370,"node":9,"role":"structure","source":3},{"artifact":1,"gen_end":377,"gen_start":371,"node":9,"role":"renderer","source":3},{"artifact":1,"gen_end":390,"gen_start":378,"node":9,"role":"structure","source":3},{"artifact":1,"gen_end":391,"gen_start":390,"node":9,"role":"structure","source":3},{"artifact":1,"gen_end":396,"gen_start":392,"node":9,"role":"renderer","source":3},{"artifact":1,"gen_end":397,"gen_start":396,"node":9,"role":"structure","source":3},{"artifact":1,"gen_end":403,"gen_start":397,"node":9,"role":"renderer","source":3},{"artifact":1,"gen_end":404,"gen_start":403,"node":9,"role":"structure","source":3},{"artifact":1,"gen_end":413,"gen_start":405,"node":10,"role":"renderer","source":3},{"artifact":1,"gen_end":414,"gen_start":413,"node":10,"role":"structure","source":3},{"artifact":1,"gen_end":426,"gen_start":414,"node":10,"role":"structure","source":3},{"artifact":1,"gen_end":427,"gen_start":426,"node":10,"role":"structure","source":3},{"artifact":1,"gen_end":434,"gen_start":428,"node":10,"role":"renderer","source":3},{"artifact":1,"gen_end":435,"gen_start":434,"node":10,"role":"structure","source":3},{"artifact":1,"gen_end":459,"gen_start":435,"node":10,"role":"structure","source":3},{"artifact":1,"gen_end":460,"gen_start":459,"node":10,"role":"structure","source":3},{"artifact":1,"gen_end":467,"gen_start":461,"node":11,"role":"renderer","source":0,"src_end":433,"src_start":165},{"artifact":1,"gen_end":468,"gen_start":467,"node":11,"role":"structure","source":0,"src_end":433,"src_start":165},{"artifact":1,"gen_end":475,"gen_start":468,"node":11,"role":"renderer","source":0,"src_end":433,"src_start":165},{"artifact":1,"gen_end":476,"gen_start":475,"node":11,"role":"structure","source":0,"src_end":433,"src_start":165},{"artifact":1,"gen_end":483,"gen_start":477,"node":11,"role":"renderer","source":0,"src_end":433,"src_start":165},{"artifact":1,"gen_end":484,"gen_start":483,"node":11,"role":"structure","source":0,"src_end":433,"src_start":165},{"artifact":1,"gen_end":514,"gen_start":484,"node":11,"role":"structure","source":0,"src_end":433,"src_start":165},{"artifact":1,"gen_end":515,"gen_start":514,"node":11,"role":"structure","source":0,"src_end":433,"src_start":165},{"artifact":1,"gen_end":519,"gen_start":516,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":525,"gen_start":520,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":528,"gen_start":526,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":541,"gen_start":528,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":542,"gen_start":541,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":548,"gen_start":542,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":549,"gen_start":548,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":550,"gen_start":549,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":552,"gen_start":550,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":553,"gen_start":552,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":555,"gen_start":553,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":558,"gen_start":556,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":559,"gen_start":558,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":561,"gen_start":559,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":565,"gen_start":562,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":568,"gen_start":566,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":581,"gen_start":568,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":582,"gen_start":581,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":588,"gen_start":582,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":589,"gen_start":588,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":590,"gen_start":589,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":592,"gen_start":590,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":593,"gen_start":592,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":595,"gen_start":593,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":598,"gen_start":596,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":599,"gen_start":598,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":601,"gen_start":599,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":602,"gen_start":601,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":605,"gen_start":603,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":618,"gen_start":605,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":619,"gen_start":618,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":627,"gen_start":619,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":628,"gen_start":627,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":629,"gen_start":628,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":642,"gen_start":629,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":643,"gen_start":642,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":651,"gen_start":643,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":652,"gen_start":651,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":653,"gen_start":652,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":654,"gen_start":653,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":655,"gen_start":654,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":657,"gen_start":656,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":658,"gen_start":657,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":659,"gen_start":658,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":661,"gen_start":660,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":662,"gen_start":661,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":664,"gen_start":663,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":666,"gen_start":665,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":668,"gen_start":666,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":669,"gen_start":668,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":674,"gen_start":670,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":675,"gen_start":674,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":682,"gen_start":675,"node":11,"role":"renderer","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":683,"gen_start":682,"node":11,"role":"term","source":0,"src_end":316,"src_start":223},{"artifact":1,"gen_end":690,"gen_start":684,"node":12,"role":"renderer","source":0,"src_end":433,"src_start":319},{"artifact":1,"gen_end":691,"gen_start":690,"node":12,"role":"proof","source":0,"src_end":433,"src_start":319},{"artifact":1,"gen_end":696,"gen_start":691,"node":12,"role":"renderer","source":0,"src_end":433,"src_start":319},{"artifact":1,"gen_end":697,"gen_start":696,"node":12,"role":"proof","source":0,"src_end":433,"src_start":319},{"artifact":1,"gen_end":701,"gen_start":698,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":706,"gen_start":702,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":714,"gen_start":707,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":719,"gen_start":715,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":722,"gen_start":720,"node":12,"role":"renderer","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":735,"gen_start":722,"node":12,"role":"renderer","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":736,"gen_start":735,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":773,"gen_start":736,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":774,"gen_start":773,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":775,"gen_start":774,"node":12,"role":"renderer","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":776,"gen_start":775,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":777,"gen_start":776,"node":12,"role":"renderer","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":779,"gen_start":778,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":780,"gen_start":779,"node":12,"role":"renderer","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":782,"gen_start":780,"node":12,"role":"renderer","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":783,"gen_start":782,"node":12,"role":"proof","source":0,"src_end":403,"src_start":335},{"artifact":1,"gen_end":788,"gen_start":784,"node":12,"role":"renderer","source":0,"src_end":433,"src_start":319},{"artifact":1,"gen_end":789,"gen_start":788,"node":12,"role":"proof","source":0,"src_end":433,"src_start":319},{"artifact":1,"gen_end":794,"gen_start":789,"node":12,"role":"renderer","source":0,"src_end":433,"src_start":319},{"artifact":1,"gen_end":795,"gen_start":794,"node":12,"role":"proof","source":0,"src_end":433,"src_start":319},{"artifact":1,"gen_end":802,"gen_start":796,"node":13,"role":"renderer","source":0,"src_end":738,"src_start":437},{"artifact":1,"gen_end":803,"gen_start":802,"node":13,"role":"structure","source":0,"src_end":738,"src_start":437},{"artifact":1,"gen_end":810,"gen_start":803,"node":13,"role":"renderer","source":0,"src_end":738,"src_start":437},{"artifact":1,"gen_end":811,"gen_start":810,"node":13,"role":"structure","source":0,"src_end":738,"src_start":437},{"artifact":1,"gen_end":818,"gen_start":812,"node":13,"role":"renderer","source":0,"src_end":738,"src_start":437},{"artifact":1,"gen_end":819,"gen_start":818,"node":13,"role":"structure","source":0,"src_end":738,"src_start":437},{"artifact":1,"gen_end":855,"gen_start":819,"node":13,"role":"structure","source":0,"src_end":738,"src_start":437},{"artifact":1,"gen_end":856,"gen_start":855,"node":13,"role":"structure","source":0,"src_end":738,"src_start":437},{"artifact":1,"gen_end":860,"gen_start":857,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":866,"gen_start":861,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":869,"gen_start":867,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":882,"gen_start":869,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":883,"gen_start":882,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":889,"gen_start":883,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":890,"gen_start":889,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":891,"gen_start":890,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":893,"gen_start":891,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":894,"gen_start":893,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":896,"gen_start":894,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":899,"gen_start":897,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":900,"gen_start":899,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":902,"gen_start":900,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":906,"gen_start":903,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":909,"gen_start":907,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":922,"gen_start":909,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":923,"gen_start":922,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":929,"gen_start":923,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":930,"gen_start":929,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":931,"gen_start":930,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":933,"gen_start":931,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":934,"gen_start":933,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":936,"gen_start":934,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":939,"gen_start":937,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":940,"gen_start":939,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":942,"gen_start":940,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":943,"gen_start":942,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":946,"gen_start":944,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":959,"gen_start":946,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":960,"gen_start":959,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":968,"gen_start":960,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":969,"gen_start":968,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":970,"gen_start":969,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":983,"gen_start":970,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":984,"gen_start":983,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":992,"gen_start":984,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":993,"gen_start":992,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":994,"gen_start":993,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":995,"gen_start":994,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":996,"gen_start":995,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":998,"gen_start":997,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":999,"gen_start":998,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1000,"gen_start":999,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1002,"gen_start":1001,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1003,"gen_start":1002,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1005,"gen_start":1004,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1007,"gen_start":1006,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1009,"gen_start":1007,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1010,"gen_start":1009,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1015,"gen_start":1011,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1016,"gen_start":1015,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1023,"gen_start":1016,"node":13,"role":"renderer","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1024,"gen_start":1023,"node":13,"role":"term","source":0,"src_end":622,"src_start":529},{"artifact":1,"gen_end":1031,"gen_start":1025,"node":14,"role":"renderer","source":0,"src_end":738,"src_start":625},{"artifact":1,"gen_end":1032,"gen_start":1031,"node":14,"role":"proof","source":0,"src_end":738,"src_start":625},{"artifact":1,"gen_end":1037,"gen_start":1032,"node":14,"role":"renderer","source":0,"src_end":738,"src_start":625},{"artifact":1,"gen_end":1038,"gen_start":1037,"node":14,"role":"proof","source":0,"src_end":738,"src_start":625},{"artifact":1,"gen_end":1042,"gen_start":1039,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1047,"gen_start":1043,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1055,"gen_start":1048,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1060,"gen_start":1056,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1063,"gen_start":1061,"node":14,"role":"renderer","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1076,"gen_start":1063,"node":14,"role":"renderer","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1077,"gen_start":1076,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1113,"gen_start":1077,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1114,"gen_start":1113,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1115,"gen_start":1114,"node":14,"role":"renderer","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1116,"gen_start":1115,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1117,"gen_start":1116,"node":14,"role":"renderer","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1119,"gen_start":1118,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1120,"gen_start":1119,"node":14,"role":"renderer","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1122,"gen_start":1120,"node":14,"role":"renderer","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1123,"gen_start":1122,"node":14,"role":"proof","source":0,"src_end":708,"src_start":641},{"artifact":1,"gen_end":1128,"gen_start":1124,"node":14,"role":"renderer","source":0,"src_end":738,"src_start":625},{"artifact":1,"gen_end":1129,"gen_start":1128,"node":14,"role":"proof","source":0,"src_end":738,"src_start":625},{"artifact":1,"gen_end":1134,"gen_start":1129,"node":14,"role":"renderer","source":0,"src_end":738,"src_start":625},{"artifact":1,"gen_end":1135,"gen_start":1134,"node":14,"role":"proof","source":0,"src_end":738,"src_start":625},{"artifact":1,"gen_end":1142,"gen_start":1136,"node":15,"role":"renderer","source":0,"src_end":1001,"src_start":742},{"artifact":1,"gen_end":1143,"gen_start":1142,"node":15,"role":"structure","source":0,"src_end":1001,"src_start":742},{"artifact":1,"gen_end":1150,"gen_start":1143,"node":15,"role":"renderer","source":0,"src_end":1001,"src_start":742},{"artifact":1,"gen_end":1151,"gen_start":1150,"node":15,"role":"structure","source":0,"src_end":1001,"src_start":742},{"artifact":1,"gen_end":1158,"gen_start":1152,"node":15,"role":"renderer","source":0,"src_end":1001,"src_start":742},{"artifact":1,"gen_end":1159,"gen_start":1158,"node":15,"role":"structure","source":0,"src_end":1001,"src_start":742},{"artifact":1,"gen_end":1193,"gen_start":1159,"node":15,"role":"structure","source":0,"src_end":1001,"src_start":742},{"artifact":1,"gen_end":1194,"gen_start":1193,"node":15,"role":"structure","source":0,"src_end":1001,"src_start":742},{"artifact":1,"gen_end":1198,"gen_start":1195,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1204,"gen_start":1199,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1207,"gen_start":1205,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1220,"gen_start":1207,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1221,"gen_start":1220,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1227,"gen_start":1221,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1228,"gen_start":1227,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1230,"gen_start":1228,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1233,"gen_start":1231,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1234,"gen_start":1233,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1236,"gen_start":1234,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1240,"gen_start":1237,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1243,"gen_start":1241,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1256,"gen_start":1243,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1257,"gen_start":1256,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1263,"gen_start":1257,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1264,"gen_start":1263,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1266,"gen_start":1264,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1269,"gen_start":1267,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1270,"gen_start":1269,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1272,"gen_start":1270,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1273,"gen_start":1272,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1276,"gen_start":1274,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1289,"gen_start":1276,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1290,"gen_start":1289,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1298,"gen_start":1290,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1299,"gen_start":1298,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1300,"gen_start":1299,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1313,"gen_start":1300,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1314,"gen_start":1313,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1322,"gen_start":1314,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1323,"gen_start":1322,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1324,"gen_start":1323,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1325,"gen_start":1324,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1326,"gen_start":1325,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1328,"gen_start":1327,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1329,"gen_start":1328,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1330,"gen_start":1329,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1332,"gen_start":1331,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1333,"gen_start":1332,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1335,"gen_start":1334,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1337,"gen_start":1336,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1339,"gen_start":1337,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1340,"gen_start":1339,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1345,"gen_start":1341,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1346,"gen_start":1345,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1353,"gen_start":1346,"node":15,"role":"renderer","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1354,"gen_start":1353,"node":15,"role":"term","source":0,"src_end":889,"src_start":804},{"artifact":1,"gen_end":1361,"gen_start":1355,"node":16,"role":"renderer","source":0,"src_end":1001,"src_start":892},{"artifact":1,"gen_end":1362,"gen_start":1361,"node":16,"role":"proof","source":0,"src_end":1001,"src_start":892},{"artifact":1,"gen_end":1367,"gen_start":1362,"node":16,"role":"renderer","source":0,"src_end":1001,"src_start":892},{"artifact":1,"gen_end":1368,"gen_start":1367,"node":16,"role":"proof","source":0,"src_end":1001,"src_start":892},{"artifact":1,"gen_end":1372,"gen_start":1369,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1377,"gen_start":1373,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1385,"gen_start":1378,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1390,"gen_start":1386,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1393,"gen_start":1391,"node":16,"role":"renderer","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1406,"gen_start":1393,"node":16,"role":"renderer","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1407,"gen_start":1406,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1439,"gen_start":1407,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1440,"gen_start":1439,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1441,"gen_start":1440,"node":16,"role":"renderer","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1442,"gen_start":1441,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1443,"gen_start":1442,"node":16,"role":"renderer","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1445,"gen_start":1444,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1446,"gen_start":1445,"node":16,"role":"renderer","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1448,"gen_start":1446,"node":16,"role":"renderer","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1449,"gen_start":1448,"node":16,"role":"proof","source":0,"src_end":971,"src_start":908},{"artifact":1,"gen_end":1454,"gen_start":1450,"node":16,"role":"renderer","source":0,"src_end":1001,"src_start":892},{"artifact":1,"gen_end":1455,"gen_start":1454,"node":16,"role":"proof","source":0,"src_end":1001,"src_start":892},{"artifact":1,"gen_end":1460,"gen_start":1455,"node":16,"role":"renderer","source":0,"src_end":1001,"src_start":892},{"artifact":1,"gen_end":1461,"gen_start":1460,"node":16,"role":"proof","source":0,"src_end":1001,"src_start":892},{"artifact":1,"gen_end":1468,"gen_start":1462,"node":17,"role":"renderer","source":0,"src_end":1497,"src_start":1005},{"artifact":1,"gen_end":1469,"gen_start":1468,"node":17,"role":"structure","source":0,"src_end":1497,"src_start":1005},{"artifact":1,"gen_end":1474,"gen_start":1469,"node":17,"role":"renderer","source":0,"src_end":1497,"src_start":1005},{"artifact":1,"gen_end":1475,"gen_start":1474,"node":17,"role":"structure","source":0,"src_end":1497,"src_start":1005},{"artifact":1,"gen_end":1482,"gen_start":1476,"node":17,"role":"renderer","source":0,"src_end":1497,"src_start":1005},{"artifact":1,"gen_end":1483,"gen_start":1482,"node":17,"role":"structure","source":0,"src_end":1497,"src_start":1005},{"artifact":1,"gen_end":1517,"gen_start":1483,"node":17,"role":"structure","source":0,"src_end":1497,"src_start":1005},{"artifact":1,"gen_end":1518,"gen_start":1517,"node":17,"role":"structure","source":0,"src_end":1497,"src_start":1005},{"artifact":1,"gen_end":1522,"gen_start":1519,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1528,"gen_start":1523,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1531,"gen_start":1529,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1544,"gen_start":1531,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1545,"gen_start":1544,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1551,"gen_start":1545,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1552,"gen_start":1551,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1553,"gen_start":1552,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1555,"gen_start":1553,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1556,"gen_start":1555,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1558,"gen_start":1556,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1561,"gen_start":1559,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1562,"gen_start":1561,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1564,"gen_start":1562,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1568,"gen_start":1565,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1571,"gen_start":1569,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1584,"gen_start":1571,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1585,"gen_start":1584,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1591,"gen_start":1585,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1592,"gen_start":1591,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1593,"gen_start":1592,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1595,"gen_start":1593,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1596,"gen_start":1595,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1598,"gen_start":1596,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1601,"gen_start":1599,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1602,"gen_start":1601,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1604,"gen_start":1602,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1608,"gen_start":1605,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1611,"gen_start":1609,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1624,"gen_start":1611,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1625,"gen_start":1624,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1631,"gen_start":1625,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1632,"gen_start":1631,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1633,"gen_start":1632,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1635,"gen_start":1633,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1636,"gen_start":1635,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1638,"gen_start":1636,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1641,"gen_start":1639,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1642,"gen_start":1641,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1644,"gen_start":1642,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1645,"gen_start":1644,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1648,"gen_start":1646,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1661,"gen_start":1648,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1662,"gen_start":1661,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1670,"gen_start":1662,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1671,"gen_start":1670,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1672,"gen_start":1671,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1685,"gen_start":1672,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1686,"gen_start":1685,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1694,"gen_start":1686,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1695,"gen_start":1694,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1696,"gen_start":1695,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1709,"gen_start":1696,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1710,"gen_start":1709,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1718,"gen_start":1710,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1719,"gen_start":1718,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1720,"gen_start":1719,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1733,"gen_start":1720,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1734,"gen_start":1733,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1742,"gen_start":1734,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1743,"gen_start":1742,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1744,"gen_start":1743,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1745,"gen_start":1744,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1746,"gen_start":1745,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1748,"gen_start":1747,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1749,"gen_start":1748,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1750,"gen_start":1749,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1752,"gen_start":1751,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1753,"gen_start":1752,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1754,"gen_start":1753,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1756,"gen_start":1755,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1757,"gen_start":1756,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1758,"gen_start":1757,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1760,"gen_start":1759,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1761,"gen_start":1760,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1763,"gen_start":1762,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1765,"gen_start":1764,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1767,"gen_start":1765,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1768,"gen_start":1767,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1773,"gen_start":1769,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1774,"gen_start":1773,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1779,"gen_start":1774,"node":17,"role":"renderer","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1780,"gen_start":1779,"node":17,"role":"term","source":0,"src_end":1237,"src_start":1093},{"artifact":1,"gen_end":1787,"gen_start":1781,"node":18,"role":"renderer","source":0,"src_end":1497,"src_start":1240},{"artifact":1,"gen_end":1788,"gen_start":1787,"node":18,"role":"proof","source":0,"src_end":1497,"src_start":1240},{"artifact":1,"gen_end":1793,"gen_start":1788,"node":18,"role":"renderer","source":0,"src_end":1497,"src_start":1240},{"artifact":1,"gen_end":1794,"gen_start":1793,"node":18,"role":"proof","source":0,"src_end":1497,"src_start":1240},{"artifact":1,"gen_end":1802,"gen_start":1795,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1806,"gen_start":1803,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1811,"gen_start":1807,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1817,"gen_start":1812,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1820,"gen_start":1818,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1831,"gen_start":1820,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1845,"gen_start":1832,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1846,"gen_start":1845,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1877,"gen_start":1846,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1878,"gen_start":1877,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1879,"gen_start":1878,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1880,"gen_start":1879,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1881,"gen_start":1880,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1883,"gen_start":1882,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1884,"gen_start":1883,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1886,"gen_start":1885,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1887,"gen_start":1886,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1889,"gen_start":1887,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1890,"gen_start":1889,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1893,"gen_start":1891,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1904,"gen_start":1893,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1918,"gen_start":1905,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1919,"gen_start":1918,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1955,"gen_start":1919,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1956,"gen_start":1955,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1957,"gen_start":1956,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1970,"gen_start":1957,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1971,"gen_start":1970,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1979,"gen_start":1971,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1980,"gen_start":1979,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1981,"gen_start":1980,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1982,"gen_start":1981,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1983,"gen_start":1982,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1985,"gen_start":1984,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1986,"gen_start":1985,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1987,"gen_start":1986,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1989,"gen_start":1988,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1990,"gen_start":1989,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1992,"gen_start":1990,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1993,"gen_start":1992,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":1996,"gen_start":1994,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2007,"gen_start":1996,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2021,"gen_start":2008,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2022,"gen_start":2021,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2058,"gen_start":2022,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2059,"gen_start":2058,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2060,"gen_start":2059,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2061,"gen_start":2060,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2062,"gen_start":2061,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2064,"gen_start":2063,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2065,"gen_start":2064,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2067,"gen_start":2065,"node":18,"role":"renderer","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2068,"gen_start":2067,"node":18,"role":"proof","source":0,"src_end":1469,"src_start":1256},{"artifact":1,"gen_end":2073,"gen_start":2069,"node":18,"role":"renderer","source":0,"src_end":1497,"src_start":1240},{"artifact":1,"gen_end":2074,"gen_start":2073,"node":18,"role":"proof","source":0,"src_end":1497,"src_start":1240},{"artifact":1,"gen_end":2079,"gen_start":2074,"node":18,"role":"renderer","source":0,"src_end":1497,"src_start":1240},{"artifact":1,"gen_end":2080,"gen_start":2079,"node":18,"role":"proof","source":0,"src_end":1497,"src_start":1240},{"artifact":1,"gen_end":2089,"gen_start":2081,"node":19,"role":"renderer","source":3},{"artifact":1,"gen_end":2090,"gen_start":2089,"node":19,"role":"structure","source":3},{"artifact":1,"gen_end":2102,"gen_start":2090,"node":19,"role":"structure","source":3},{"artifact":1,"gen_end":2103,"gen_start":2102,"node":19,"role":"structure","source":3},{"artifact":1,"gen_end":2110,"gen_start":2104,"node":19,"role":"renderer","source":3},{"artifact":1,"gen_end":2111,"gen_start":2110,"node":19,"role":"structure","source":3},{"artifact":1,"gen_end":2136,"gen_start":2111,"node":19,"role":"structure","source":3},{"artifact":1,"gen_end":2137,"gen_start":2136,"node":19,"role":"structure","source":3},{"artifact":1,"gen_end":2144,"gen_start":2138,"node":20,"role":"renderer","source":0,"src_end":1954,"src_start":1565},{"artifact":1,"gen_end":2145,"gen_start":2144,"node":20,"role":"structure","source":0,"src_end":1954,"src_start":1565},{"artifact":1,"gen_end":2152,"gen_start":2145,"node":20,"role":"renderer","source":0,"src_end":1954,"src_start":1565},{"artifact":1,"gen_end":2153,"gen_start":2152,"node":20,"role":"structure","source":0,"src_end":1954,"src_start":1565},{"artifact":1,"gen_end":2160,"gen_start":2154,"node":20,"role":"renderer","source":0,"src_end":1954,"src_start":1565},{"artifact":1,"gen_end":2161,"gen_start":2160,"node":20,"role":"structure","source":0,"src_end":1954,"src_start":1565},{"artifact":1,"gen_end":2187,"gen_start":2161,"node":20,"role":"structure","source":0,"src_end":1954,"src_start":1565},{"artifact":1,"gen_end":2188,"gen_start":2187,"node":20,"role":"structure","source":0,"src_end":1954,"src_start":1565},{"artifact":1,"gen_end":2192,"gen_start":2189,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2198,"gen_start":2193,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2201,"gen_start":2199,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2214,"gen_start":2201,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2215,"gen_start":2214,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2221,"gen_start":2215,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2222,"gen_start":2221,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2223,"gen_start":2222,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2225,"gen_start":2223,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2226,"gen_start":2225,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2228,"gen_start":2226,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2231,"gen_start":2229,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2232,"gen_start":2231,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2234,"gen_start":2232,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2238,"gen_start":2235,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2241,"gen_start":2239,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2254,"gen_start":2241,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2255,"gen_start":2254,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2261,"gen_start":2255,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2262,"gen_start":2261,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2263,"gen_start":2262,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2265,"gen_start":2263,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2266,"gen_start":2265,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2268,"gen_start":2266,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2271,"gen_start":2269,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2272,"gen_start":2271,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2274,"gen_start":2272,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2275,"gen_start":2274,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2278,"gen_start":2276,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2291,"gen_start":2278,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2292,"gen_start":2291,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2300,"gen_start":2292,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2301,"gen_start":2300,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2302,"gen_start":2301,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2315,"gen_start":2302,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2316,"gen_start":2315,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2324,"gen_start":2316,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2325,"gen_start":2324,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2326,"gen_start":2325,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2327,"gen_start":2326,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2328,"gen_start":2327,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2330,"gen_start":2329,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2331,"gen_start":2330,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2332,"gen_start":2331,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2334,"gen_start":2333,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2335,"gen_start":2334,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2337,"gen_start":2336,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2339,"gen_start":2338,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2341,"gen_start":2339,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2342,"gen_start":2341,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2347,"gen_start":2343,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2348,"gen_start":2347,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2355,"gen_start":2348,"node":20,"role":"renderer","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2356,"gen_start":2355,"node":20,"role":"term","source":0,"src_end":1723,"src_start":1630},{"artifact":1,"gen_end":2363,"gen_start":2357,"node":21,"role":"renderer","source":0,"src_end":1954,"src_start":1726},{"artifact":1,"gen_end":2364,"gen_start":2363,"node":21,"role":"proof","source":0,"src_end":1954,"src_start":1726},{"artifact":1,"gen_end":2369,"gen_start":2364,"node":21,"role":"renderer","source":0,"src_end":1954,"src_start":1726},{"artifact":1,"gen_end":2370,"gen_start":2369,"node":21,"role":"proof","source":0,"src_end":1954,"src_start":1726},{"artifact":1,"gen_end":2378,"gen_start":2371,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2382,"gen_start":2379,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2387,"gen_start":2383,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2393,"gen_start":2388,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2396,"gen_start":2394,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2407,"gen_start":2396,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2421,"gen_start":2408,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2422,"gen_start":2421,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2455,"gen_start":2422,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2456,"gen_start":2455,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2457,"gen_start":2456,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2458,"gen_start":2457,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2459,"gen_start":2458,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2461,"gen_start":2460,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2462,"gen_start":2461,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2464,"gen_start":2463,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2465,"gen_start":2464,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2467,"gen_start":2465,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2468,"gen_start":2467,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2471,"gen_start":2469,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2482,"gen_start":2471,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2496,"gen_start":2483,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2497,"gen_start":2496,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2529,"gen_start":2497,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2530,"gen_start":2529,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2532,"gen_start":2530,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2533,"gen_start":2532,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2536,"gen_start":2534,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2547,"gen_start":2536,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2561,"gen_start":2548,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2562,"gen_start":2561,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2594,"gen_start":2562,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2595,"gen_start":2594,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2597,"gen_start":2595,"node":21,"role":"renderer","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2598,"gen_start":2597,"node":21,"role":"proof","source":0,"src_end":1924,"src_start":1742},{"artifact":1,"gen_end":2603,"gen_start":2599,"node":21,"role":"renderer","source":0,"src_end":1954,"src_start":1726},{"artifact":1,"gen_end":2604,"gen_start":2603,"node":21,"role":"proof","source":0,"src_end":1954,"src_start":1726},{"artifact":1,"gen_end":2609,"gen_start":2604,"node":21,"role":"renderer","source":0,"src_end":1954,"src_start":1726},{"artifact":1,"gen_end":2610,"gen_start":2609,"node":21,"role":"proof","source":0,"src_end":1954,"src_start":1726},{"artifact":1,"gen_end":2617,"gen_start":2611,"node":22,"role":"renderer","source":0,"src_end":2328,"src_start":1958},{"artifact":1,"gen_end":2618,"gen_start":2617,"node":22,"role":"structure","source":0,"src_end":2328,"src_start":1958},{"artifact":1,"gen_end":2625,"gen_start":2618,"node":22,"role":"renderer","source":0,"src_end":2328,"src_start":1958},{"artifact":1,"gen_end":2626,"gen_start":2625,"node":22,"role":"structure","source":0,"src_end":2328,"src_start":1958},{"artifact":1,"gen_end":2633,"gen_start":2627,"node":22,"role":"renderer","source":0,"src_end":2328,"src_start":1958},{"artifact":1,"gen_end":2634,"gen_start":2633,"node":22,"role":"structure","source":0,"src_end":2328,"src_start":1958},{"artifact":1,"gen_end":2664,"gen_start":2634,"node":22,"role":"structure","source":0,"src_end":2328,"src_start":1958},{"artifact":1,"gen_end":2665,"gen_start":2664,"node":22,"role":"structure","source":0,"src_end":2328,"src_start":1958},{"artifact":1,"gen_end":2669,"gen_start":2666,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2675,"gen_start":2670,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2678,"gen_start":2676,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2691,"gen_start":2678,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2692,"gen_start":2691,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2698,"gen_start":2692,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2699,"gen_start":2698,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2701,"gen_start":2699,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2704,"gen_start":2702,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2705,"gen_start":2704,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2707,"gen_start":2705,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2711,"gen_start":2708,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2714,"gen_start":2712,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2727,"gen_start":2714,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2728,"gen_start":2727,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2734,"gen_start":2728,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2735,"gen_start":2734,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2737,"gen_start":2735,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2740,"gen_start":2738,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2741,"gen_start":2740,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2743,"gen_start":2741,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2744,"gen_start":2743,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2747,"gen_start":2745,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2760,"gen_start":2747,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2761,"gen_start":2760,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2769,"gen_start":2761,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2770,"gen_start":2769,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2771,"gen_start":2770,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2784,"gen_start":2771,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2785,"gen_start":2784,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2793,"gen_start":2785,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2794,"gen_start":2793,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2795,"gen_start":2794,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2796,"gen_start":2795,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2797,"gen_start":2796,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2799,"gen_start":2798,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2800,"gen_start":2799,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2801,"gen_start":2800,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2803,"gen_start":2802,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2804,"gen_start":2803,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2806,"gen_start":2805,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2808,"gen_start":2807,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2810,"gen_start":2808,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2811,"gen_start":2810,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2816,"gen_start":2812,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2817,"gen_start":2816,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2824,"gen_start":2817,"node":22,"role":"renderer","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2825,"gen_start":2824,"node":22,"role":"term","source":0,"src_end":2112,"src_start":2027},{"artifact":1,"gen_end":2832,"gen_start":2826,"node":23,"role":"renderer","source":0,"src_end":2328,"src_start":2115},{"artifact":1,"gen_end":2833,"gen_start":2832,"node":23,"role":"proof","source":0,"src_end":2328,"src_start":2115},{"artifact":1,"gen_end":2838,"gen_start":2833,"node":23,"role":"renderer","source":0,"src_end":2328,"src_start":2115},{"artifact":1,"gen_end":2839,"gen_start":2838,"node":23,"role":"proof","source":0,"src_end":2328,"src_start":2115},{"artifact":1,"gen_end":2847,"gen_start":2840,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2851,"gen_start":2848,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2856,"gen_start":2852,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2862,"gen_start":2857,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2865,"gen_start":2863,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2876,"gen_start":2865,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2890,"gen_start":2877,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2891,"gen_start":2890,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2919,"gen_start":2891,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2920,"gen_start":2919,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2921,"gen_start":2920,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2922,"gen_start":2921,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2923,"gen_start":2922,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2925,"gen_start":2924,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2926,"gen_start":2925,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2928,"gen_start":2927,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2929,"gen_start":2928,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2931,"gen_start":2929,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2932,"gen_start":2931,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2935,"gen_start":2933,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2946,"gen_start":2935,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2960,"gen_start":2947,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2961,"gen_start":2960,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2988,"gen_start":2961,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2989,"gen_start":2988,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2991,"gen_start":2989,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2992,"gen_start":2991,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":2995,"gen_start":2993,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":3006,"gen_start":2995,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":3020,"gen_start":3007,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":3021,"gen_start":3020,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":3048,"gen_start":3021,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":3049,"gen_start":3048,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":3051,"gen_start":3049,"node":23,"role":"renderer","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":3052,"gen_start":3051,"node":23,"role":"proof","source":0,"src_end":2298,"src_start":2131},{"artifact":1,"gen_end":3057,"gen_start":3053,"node":23,"role":"renderer","source":0,"src_end":2328,"src_start":2115},{"artifact":1,"gen_end":3058,"gen_start":3057,"node":23,"role":"proof","source":0,"src_end":2328,"src_start":2115},{"artifact":1,"gen_end":3063,"gen_start":3058,"node":23,"role":"renderer","source":0,"src_end":2328,"src_start":2115},{"artifact":1,"gen_end":3064,"gen_start":3063,"node":23,"role":"proof","source":0,"src_end":2328,"src_start":2115},{"artifact":1,"gen_end":3069,"gen_start":3065,"node":24,"role":"synthetic","source":2},{"artifact":1,"gen_end":3070,"gen_start":3069,"node":24,"role":"synthetic","source":2},{"artifact":1,"gen_end":3078,"gen_start":3070,"node":24,"role":"synthetic","source":2},{"artifact":1,"gen_end":3079,"gen_start":3078,"node":24,"role":"synthetic","source":2}],"module":"Cancellation","nodes":[{"id":0,"kind":"lean-preamble"},{"id":1,"kind":"declaration"},{"id":2,"kind":"declaration"},{"id":3,"kind":"declaration"},{"id":4,"kind":"declaration"},{"id":5,"kind":"declaration"},{"id":6,"kind":"declaration"},{"id":7,"kind":"lean-preamble"},{"id":8,"kind":"latex-preamble"},{"id":9,"kind":"title"},{"id":10,"kind":"section"},{"id":11,"kind":"declaration"},{"id":12,"kind":"proof"},{"id":13,"kind":"declaration"},{"id":14,"kind":"proof"},{"id":15,"kind":"declaration"},{"id":16,"kind":"proof"},{"id":17,"kind":"declaration"},{"id":18,"kind":"proof"},{"id":19,"kind":"section"},{"id":20,"kind":"declaration"},{"id":21,"kind":"proof"},{"id":22,"kind":"declaration"},{"id":23,"kind":"proof"},{"id":24,"kind":"latex-preamble"}],"semantic_id":"57cec83963c5622a5bae3275babaf48f93ce430bff2f10c5e1ce0c64ab840c33","source_id":"792708753ed7f56107cfaf6ad5bd3463e9d55cbe68f90fb7f24e18b74b91a23e","sources":[{"id":0,"kind":"file","path":"src/Cancellation.lex.tex","sha256":"02835c5a2c0839a384cce4202d6aa0c99aca1f5c98fc95889d4eb7bfad776c28"},{"id":1,"kind":"synthetic","origin":"core:lean-preamble/1"},{"id":2,"kind":"synthetic","origin":"core:latex-preamble/1"},{"id":3,"kind":"synthetic","origin":"core:latex-structure/1"}],"spec":"lexlean/source-map/1"} diff --git a/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Main.map.json b/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Main.map.json new file mode 100644 index 0000000000..681537b1aa --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Main.map.json @@ -0,0 +1 @@ +{"artifacts":[{"id":0,"kind":"lean","path":"modules/MathlibBlake3G/Main.lean"},{"id":1,"kind":"tex","path":"modules/MathlibBlake3G/Main.tex"}],"mappings":[{"artifact":0,"gen_end":6,"gen_start":0,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":13,"gen_start":7,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":20,"gen_start":14,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":48,"gen_start":21,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":55,"gen_start":49,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":62,"gen_start":56,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":84,"gen_start":63,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":91,"gen_start":85,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":98,"gen_start":92,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":122,"gen_start":99,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":133,"gen_start":123,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":146,"gen_start":134,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":152,"gen_start":147,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":162,"gen_start":153,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":182,"gen_start":163,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":187,"gen_start":184,"node":1,"role":"synthetic","source":1},{"artifact":0,"gen_end":207,"gen_start":188,"node":1,"role":"synthetic","source":1},{"artifact":1,"gen_end":14,"gen_start":0,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":15,"gen_start":14,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":19,"gen_start":15,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":20,"gen_start":19,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":21,"gen_start":20,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":28,"gen_start":21,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":29,"gen_start":28,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":41,"gen_start":30,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":42,"gen_start":41,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":44,"gen_start":42,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":45,"gen_start":44,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":46,"gen_start":45,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":53,"gen_start":46,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":54,"gen_start":53,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":66,"gen_start":55,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":67,"gen_start":66,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":74,"gen_start":67,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":75,"gen_start":74,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":87,"gen_start":76,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":88,"gen_start":87,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":95,"gen_start":88,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":96,"gen_start":95,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":108,"gen_start":97,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":109,"gen_start":108,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":115,"gen_start":109,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":116,"gen_start":115,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":128,"gen_start":117,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":129,"gen_start":128,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":138,"gen_start":129,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":139,"gen_start":138,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":140,"gen_start":139,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":148,"gen_start":140,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":149,"gen_start":148,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":161,"gen_start":150,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":162,"gen_start":161,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":169,"gen_start":162,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":170,"gen_start":169,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":171,"gen_start":170,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":178,"gen_start":171,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":179,"gen_start":178,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":180,"gen_start":179,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":187,"gen_start":180,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":188,"gen_start":187,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":200,"gen_start":189,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":201,"gen_start":200,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":206,"gen_start":201,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":207,"gen_start":206,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":208,"gen_start":207,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":215,"gen_start":208,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":216,"gen_start":215,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":217,"gen_start":216,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":222,"gen_start":217,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":223,"gen_start":222,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":235,"gen_start":224,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":236,"gen_start":235,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":245,"gen_start":236,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":246,"gen_start":245,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":247,"gen_start":246,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":254,"gen_start":247,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":255,"gen_start":254,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":256,"gen_start":255,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":265,"gen_start":256,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":266,"gen_start":265,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":280,"gen_start":267,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":281,"gen_start":280,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":291,"gen_start":281,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":292,"gen_start":291,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":304,"gen_start":293,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":305,"gen_start":304,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":315,"gen_start":305,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":316,"gen_start":315,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":317,"gen_start":316,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":324,"gen_start":317,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":325,"gen_start":324,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":326,"gen_start":325,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":336,"gen_start":326,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":337,"gen_start":336,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":344,"gen_start":338,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":345,"gen_start":344,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":353,"gen_start":345,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":354,"gen_start":353,"node":2,"role":"synthetic","source":2},{"artifact":1,"gen_end":361,"gen_start":355,"node":3,"role":"renderer","source":3},{"artifact":1,"gen_end":362,"gen_start":361,"node":3,"role":"structure","source":3},{"artifact":1,"gen_end":368,"gen_start":362,"node":3,"role":"renderer","source":3},{"artifact":1,"gen_end":369,"gen_start":368,"node":3,"role":"structure","source":3},{"artifact":1,"gen_end":371,"gen_start":370,"node":3,"role":"structure","source":3},{"artifact":1,"gen_end":377,"gen_start":371,"node":3,"role":"renderer","source":3},{"artifact":1,"gen_end":382,"gen_start":378,"node":3,"role":"structure","source":3},{"artifact":1,"gen_end":393,"gen_start":383,"node":3,"role":"structure","source":3},{"artifact":1,"gen_end":394,"gen_start":393,"node":3,"role":"structure","source":3},{"artifact":1,"gen_end":399,"gen_start":395,"node":3,"role":"renderer","source":3},{"artifact":1,"gen_end":400,"gen_start":399,"node":3,"role":"structure","source":3},{"artifact":1,"gen_end":406,"gen_start":400,"node":3,"role":"renderer","source":3},{"artifact":1,"gen_end":407,"gen_start":406,"node":3,"role":"structure","source":3},{"artifact":1,"gen_end":412,"gen_start":408,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":413,"gen_start":412,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":421,"gen_start":413,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":422,"gen_start":421,"node":4,"role":"synthetic","source":2}],"module":"Main","nodes":[{"id":0,"kind":"lean-preamble"},{"id":1,"kind":"lean-preamble"},{"id":2,"kind":"latex-preamble"},{"id":3,"kind":"title"},{"id":4,"kind":"latex-preamble"}],"semantic_id":"57cec83963c5622a5bae3275babaf48f93ce430bff2f10c5e1ce0c64ab840c33","source_id":"792708753ed7f56107cfaf6ad5bd3463e9d55cbe68f90fb7f24e18b74b91a23e","sources":[{"id":0,"kind":"file","path":"src/Main.lex.tex","sha256":"6af5ceb6d1639867585c2ab7bc77fbdf01f153c5510dd327972dd62c98b7db6d"},{"id":1,"kind":"synthetic","origin":"core:lean-preamble/1"},{"id":2,"kind":"synthetic","origin":"core:latex-preamble/1"},{"id":3,"kind":"synthetic","origin":"core:latex-structure/1"}],"spec":"lexlean/source-map/1"} diff --git a/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Mixing.map.json b/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Mixing.map.json new file mode 100644 index 0000000000..891ee3ff8a --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Mixing.map.json @@ -0,0 +1 @@ +{"artifacts":[{"id":0,"kind":"lean","path":"modules/MathlibBlake3G/Mixing.lean"},{"id":1,"kind":"tex","path":"modules/MathlibBlake3G/Mixing.tex"}],"mappings":[{"artifact":0,"gen_end":6,"gen_start":0,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":13,"gen_start":7,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":20,"gen_start":14,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":43,"gen_start":21,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":50,"gen_start":44,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":57,"gen_start":51,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":70,"gen_start":58,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":77,"gen_start":71,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":84,"gen_start":78,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":112,"gen_start":85,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":119,"gen_start":113,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":126,"gen_start":120,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":150,"gen_start":127,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":161,"gen_start":151,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":174,"gen_start":162,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":180,"gen_start":175,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":190,"gen_start":181,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":212,"gen_start":191,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":220,"gen_start":214,"node":1,"role":"declaration","source":0,"src_end":4287,"src_start":232},{"artifact":0,"gen_end":228,"gen_start":221,"node":1,"role":"declaration","source":0,"src_end":4287,"src_start":232},{"artifact":0,"gen_end":243,"gen_start":229,"node":1,"role":"declaration","source":0,"src_end":4287,"src_start":232},{"artifact":0,"gen_end":245,"gen_start":244,"node":1,"role":"binder","source":0,"src_end":346,"src_start":345},{"artifact":0,"gen_end":249,"gen_start":245,"node":1,"role":"binder","source":0,"src_end":346,"src_start":345},{"artifact":0,"gen_end":251,"gen_start":250,"node":1,"role":"binder","source":0,"src_end":346,"src_start":345},{"artifact":0,"gen_end":258,"gen_start":252,"node":1,"role":"binder","source":0,"src_end":346,"src_start":345},{"artifact":0,"gen_end":261,"gen_start":259,"node":1,"role":"binder","source":0,"src_end":346,"src_start":345},{"artifact":0,"gen_end":262,"gen_start":261,"node":1,"role":"binder","source":0,"src_end":346,"src_start":345},{"artifact":0,"gen_end":264,"gen_start":263,"node":1,"role":"binder","source":0,"src_end":371,"src_start":370},{"artifact":0,"gen_end":268,"gen_start":264,"node":1,"role":"binder","source":0,"src_end":371,"src_start":370},{"artifact":0,"gen_end":270,"gen_start":269,"node":1,"role":"binder","source":0,"src_end":371,"src_start":370},{"artifact":0,"gen_end":277,"gen_start":271,"node":1,"role":"binder","source":0,"src_end":371,"src_start":370},{"artifact":0,"gen_end":280,"gen_start":278,"node":1,"role":"binder","source":0,"src_end":371,"src_start":370},{"artifact":0,"gen_end":281,"gen_start":280,"node":1,"role":"binder","source":0,"src_end":371,"src_start":370},{"artifact":0,"gen_end":283,"gen_start":282,"node":1,"role":"binder","source":0,"src_end":396,"src_start":395},{"artifact":0,"gen_end":287,"gen_start":283,"node":1,"role":"binder","source":0,"src_end":396,"src_start":395},{"artifact":0,"gen_end":289,"gen_start":288,"node":1,"role":"binder","source":0,"src_end":396,"src_start":395},{"artifact":0,"gen_end":296,"gen_start":290,"node":1,"role":"binder","source":0,"src_end":396,"src_start":395},{"artifact":0,"gen_end":299,"gen_start":297,"node":1,"role":"binder","source":0,"src_end":396,"src_start":395},{"artifact":0,"gen_end":300,"gen_start":299,"node":1,"role":"binder","source":0,"src_end":396,"src_start":395},{"artifact":0,"gen_end":302,"gen_start":301,"node":1,"role":"binder","source":0,"src_end":421,"src_start":420},{"artifact":0,"gen_end":306,"gen_start":302,"node":1,"role":"binder","source":0,"src_end":421,"src_start":420},{"artifact":0,"gen_end":308,"gen_start":307,"node":1,"role":"binder","source":0,"src_end":421,"src_start":420},{"artifact":0,"gen_end":315,"gen_start":309,"node":1,"role":"binder","source":0,"src_end":421,"src_start":420},{"artifact":0,"gen_end":318,"gen_start":316,"node":1,"role":"binder","source":0,"src_end":421,"src_start":420},{"artifact":0,"gen_end":319,"gen_start":318,"node":1,"role":"binder","source":0,"src_end":421,"src_start":420},{"artifact":0,"gen_end":321,"gen_start":320,"node":1,"role":"binder","source":0,"src_end":446,"src_start":445},{"artifact":0,"gen_end":325,"gen_start":321,"node":1,"role":"binder","source":0,"src_end":446,"src_start":445},{"artifact":0,"gen_end":327,"gen_start":326,"node":1,"role":"binder","source":0,"src_end":446,"src_start":445},{"artifact":0,"gen_end":334,"gen_start":328,"node":1,"role":"binder","source":0,"src_end":446,"src_start":445},{"artifact":0,"gen_end":337,"gen_start":335,"node":1,"role":"binder","source":0,"src_end":446,"src_start":445},{"artifact":0,"gen_end":338,"gen_start":337,"node":1,"role":"binder","source":0,"src_end":446,"src_start":445},{"artifact":0,"gen_end":340,"gen_start":339,"node":1,"role":"binder","source":0,"src_end":471,"src_start":470},{"artifact":0,"gen_end":344,"gen_start":340,"node":1,"role":"binder","source":0,"src_end":471,"src_start":470},{"artifact":0,"gen_end":346,"gen_start":345,"node":1,"role":"binder","source":0,"src_end":471,"src_start":470},{"artifact":0,"gen_end":353,"gen_start":347,"node":1,"role":"binder","source":0,"src_end":471,"src_start":470},{"artifact":0,"gen_end":356,"gen_start":354,"node":1,"role":"binder","source":0,"src_end":471,"src_start":470},{"artifact":0,"gen_end":357,"gen_start":356,"node":1,"role":"binder","source":0,"src_end":471,"src_start":470},{"artifact":0,"gen_end":359,"gen_start":358,"node":1,"role":"binder","source":0,"src_end":497,"src_start":495},{"artifact":0,"gen_end":363,"gen_start":359,"node":1,"role":"binder","source":0,"src_end":497,"src_start":495},{"artifact":0,"gen_end":365,"gen_start":364,"node":1,"role":"binder","source":0,"src_end":497,"src_start":495},{"artifact":0,"gen_end":372,"gen_start":366,"node":1,"role":"binder","source":0,"src_end":497,"src_start":495},{"artifact":0,"gen_end":375,"gen_start":373,"node":1,"role":"binder","source":0,"src_end":497,"src_start":495},{"artifact":0,"gen_end":376,"gen_start":375,"node":1,"role":"binder","source":0,"src_end":497,"src_start":495},{"artifact":0,"gen_end":378,"gen_start":377,"node":1,"role":"binder","source":0,"src_end":523,"src_start":521},{"artifact":0,"gen_end":382,"gen_start":378,"node":1,"role":"binder","source":0,"src_end":523,"src_start":521},{"artifact":0,"gen_end":384,"gen_start":383,"node":1,"role":"binder","source":0,"src_end":523,"src_start":521},{"artifact":0,"gen_end":391,"gen_start":385,"node":1,"role":"binder","source":0,"src_end":523,"src_start":521},{"artifact":0,"gen_end":394,"gen_start":392,"node":1,"role":"binder","source":0,"src_end":523,"src_start":521},{"artifact":0,"gen_end":395,"gen_start":394,"node":1,"role":"binder","source":0,"src_end":523,"src_start":521},{"artifact":0,"gen_end":397,"gen_start":396,"node":1,"role":"binder","source":0,"src_end":549,"src_start":547},{"artifact":0,"gen_end":401,"gen_start":397,"node":1,"role":"binder","source":0,"src_end":549,"src_start":547},{"artifact":0,"gen_end":403,"gen_start":402,"node":1,"role":"binder","source":0,"src_end":549,"src_start":547},{"artifact":0,"gen_end":410,"gen_start":404,"node":1,"role":"binder","source":0,"src_end":549,"src_start":547},{"artifact":0,"gen_end":413,"gen_start":411,"node":1,"role":"binder","source":0,"src_end":549,"src_start":547},{"artifact":0,"gen_end":414,"gen_start":413,"node":1,"role":"binder","source":0,"src_end":549,"src_start":547},{"artifact":0,"gen_end":416,"gen_start":415,"node":1,"role":"binder","source":0,"src_end":575,"src_start":573},{"artifact":0,"gen_end":420,"gen_start":416,"node":1,"role":"binder","source":0,"src_end":575,"src_start":573},{"artifact":0,"gen_end":422,"gen_start":421,"node":1,"role":"binder","source":0,"src_end":575,"src_start":573},{"artifact":0,"gen_end":429,"gen_start":423,"node":1,"role":"binder","source":0,"src_end":575,"src_start":573},{"artifact":0,"gen_end":432,"gen_start":430,"node":1,"role":"binder","source":0,"src_end":575,"src_start":573},{"artifact":0,"gen_end":433,"gen_start":432,"node":1,"role":"binder","source":0,"src_end":575,"src_start":573},{"artifact":0,"gen_end":435,"gen_start":434,"node":1,"role":"binder","source":0,"src_end":601,"src_start":599},{"artifact":0,"gen_end":440,"gen_start":435,"node":1,"role":"binder","source":0,"src_end":601,"src_start":599},{"artifact":0,"gen_end":442,"gen_start":441,"node":1,"role":"binder","source":0,"src_end":601,"src_start":599},{"artifact":0,"gen_end":449,"gen_start":443,"node":1,"role":"binder","source":0,"src_end":601,"src_start":599},{"artifact":0,"gen_end":452,"gen_start":450,"node":1,"role":"binder","source":0,"src_end":601,"src_start":599},{"artifact":0,"gen_end":453,"gen_start":452,"node":1,"role":"binder","source":0,"src_end":601,"src_start":599},{"artifact":0,"gen_end":455,"gen_start":454,"node":1,"role":"binder","source":0,"src_end":627,"src_start":625},{"artifact":0,"gen_end":460,"gen_start":455,"node":1,"role":"binder","source":0,"src_end":627,"src_start":625},{"artifact":0,"gen_end":462,"gen_start":461,"node":1,"role":"binder","source":0,"src_end":627,"src_start":625},{"artifact":0,"gen_end":469,"gen_start":463,"node":1,"role":"binder","source":0,"src_end":627,"src_start":625},{"artifact":0,"gen_end":472,"gen_start":470,"node":1,"role":"binder","source":0,"src_end":627,"src_start":625},{"artifact":0,"gen_end":473,"gen_start":472,"node":1,"role":"binder","source":0,"src_end":627,"src_start":625},{"artifact":0,"gen_end":475,"gen_start":474,"node":1,"role":"binder","source":0,"src_end":653,"src_start":651},{"artifact":0,"gen_end":480,"gen_start":475,"node":1,"role":"binder","source":0,"src_end":653,"src_start":651},{"artifact":0,"gen_end":482,"gen_start":481,"node":1,"role":"binder","source":0,"src_end":653,"src_start":651},{"artifact":0,"gen_end":489,"gen_start":483,"node":1,"role":"binder","source":0,"src_end":653,"src_start":651},{"artifact":0,"gen_end":492,"gen_start":490,"node":1,"role":"binder","source":0,"src_end":653,"src_start":651},{"artifact":0,"gen_end":493,"gen_start":492,"node":1,"role":"binder","source":0,"src_end":653,"src_start":651},{"artifact":0,"gen_end":495,"gen_start":494,"node":1,"role":"binder","source":0,"src_end":679,"src_start":677},{"artifact":0,"gen_end":500,"gen_start":495,"node":1,"role":"binder","source":0,"src_end":679,"src_start":677},{"artifact":0,"gen_end":502,"gen_start":501,"node":1,"role":"binder","source":0,"src_end":679,"src_start":677},{"artifact":0,"gen_end":509,"gen_start":503,"node":1,"role":"binder","source":0,"src_end":679,"src_start":677},{"artifact":0,"gen_end":512,"gen_start":510,"node":1,"role":"binder","source":0,"src_end":679,"src_start":677},{"artifact":0,"gen_end":513,"gen_start":512,"node":1,"role":"binder","source":0,"src_end":679,"src_start":677},{"artifact":0,"gen_end":515,"gen_start":514,"node":1,"role":"binder","source":0,"src_end":706,"src_start":703},{"artifact":0,"gen_end":520,"gen_start":515,"node":1,"role":"binder","source":0,"src_end":706,"src_start":703},{"artifact":0,"gen_end":522,"gen_start":521,"node":1,"role":"binder","source":0,"src_end":706,"src_start":703},{"artifact":0,"gen_end":529,"gen_start":523,"node":1,"role":"binder","source":0,"src_end":706,"src_start":703},{"artifact":0,"gen_end":532,"gen_start":530,"node":1,"role":"binder","source":0,"src_end":706,"src_start":703},{"artifact":0,"gen_end":533,"gen_start":532,"node":1,"role":"binder","source":0,"src_end":706,"src_start":703},{"artifact":0,"gen_end":535,"gen_start":534,"node":1,"role":"binder","source":0,"src_end":733,"src_start":730},{"artifact":0,"gen_end":540,"gen_start":535,"node":1,"role":"binder","source":0,"src_end":733,"src_start":730},{"artifact":0,"gen_end":542,"gen_start":541,"node":1,"role":"binder","source":0,"src_end":733,"src_start":730},{"artifact":0,"gen_end":549,"gen_start":543,"node":1,"role":"binder","source":0,"src_end":733,"src_start":730},{"artifact":0,"gen_end":552,"gen_start":550,"node":1,"role":"binder","source":0,"src_end":733,"src_start":730},{"artifact":0,"gen_end":553,"gen_start":552,"node":1,"role":"binder","source":0,"src_end":733,"src_start":730},{"artifact":0,"gen_end":555,"gen_start":554,"node":1,"role":"binder","source":0,"src_end":760,"src_start":757},{"artifact":0,"gen_end":560,"gen_start":555,"node":1,"role":"binder","source":0,"src_end":760,"src_start":757},{"artifact":0,"gen_end":562,"gen_start":561,"node":1,"role":"binder","source":0,"src_end":760,"src_start":757},{"artifact":0,"gen_end":569,"gen_start":563,"node":1,"role":"binder","source":0,"src_end":760,"src_start":757},{"artifact":0,"gen_end":572,"gen_start":570,"node":1,"role":"binder","source":0,"src_end":760,"src_start":757},{"artifact":0,"gen_end":573,"gen_start":572,"node":1,"role":"binder","source":0,"src_end":760,"src_start":757},{"artifact":0,"gen_end":575,"gen_start":574,"node":1,"role":"binder","source":0,"src_end":787,"src_start":784},{"artifact":0,"gen_end":580,"gen_start":575,"node":1,"role":"binder","source":0,"src_end":787,"src_start":784},{"artifact":0,"gen_end":582,"gen_start":581,"node":1,"role":"binder","source":0,"src_end":787,"src_start":784},{"artifact":0,"gen_end":589,"gen_start":583,"node":1,"role":"binder","source":0,"src_end":787,"src_start":784},{"artifact":0,"gen_end":592,"gen_start":590,"node":1,"role":"binder","source":0,"src_end":787,"src_start":784},{"artifact":0,"gen_end":593,"gen_start":592,"node":1,"role":"binder","source":0,"src_end":787,"src_start":784},{"artifact":0,"gen_end":595,"gen_start":594,"node":1,"role":"binder","source":0,"src_end":813,"src_start":811},{"artifact":0,"gen_end":600,"gen_start":595,"node":1,"role":"binder","source":0,"src_end":813,"src_start":811},{"artifact":0,"gen_end":602,"gen_start":601,"node":1,"role":"binder","source":0,"src_end":813,"src_start":811},{"artifact":0,"gen_end":609,"gen_start":603,"node":1,"role":"binder","source":0,"src_end":813,"src_start":811},{"artifact":0,"gen_end":612,"gen_start":610,"node":1,"role":"binder","source":0,"src_end":813,"src_start":811},{"artifact":0,"gen_end":613,"gen_start":612,"node":1,"role":"binder","source":0,"src_end":813,"src_start":811},{"artifact":0,"gen_end":615,"gen_start":614,"node":1,"role":"binder","source":0,"src_end":839,"src_start":837},{"artifact":0,"gen_end":620,"gen_start":615,"node":1,"role":"binder","source":0,"src_end":839,"src_start":837},{"artifact":0,"gen_end":622,"gen_start":621,"node":1,"role":"binder","source":0,"src_end":839,"src_start":837},{"artifact":0,"gen_end":629,"gen_start":623,"node":1,"role":"binder","source":0,"src_end":839,"src_start":837},{"artifact":0,"gen_end":632,"gen_start":630,"node":1,"role":"binder","source":0,"src_end":839,"src_start":837},{"artifact":0,"gen_end":633,"gen_start":632,"node":1,"role":"binder","source":0,"src_end":839,"src_start":837},{"artifact":0,"gen_end":635,"gen_start":634,"node":1,"role":"binder","source":0,"src_end":865,"src_start":863},{"artifact":0,"gen_end":640,"gen_start":635,"node":1,"role":"binder","source":0,"src_end":865,"src_start":863},{"artifact":0,"gen_end":642,"gen_start":641,"node":1,"role":"binder","source":0,"src_end":865,"src_start":863},{"artifact":0,"gen_end":649,"gen_start":643,"node":1,"role":"binder","source":0,"src_end":865,"src_start":863},{"artifact":0,"gen_end":652,"gen_start":650,"node":1,"role":"binder","source":0,"src_end":865,"src_start":863},{"artifact":0,"gen_end":653,"gen_start":652,"node":1,"role":"binder","source":0,"src_end":865,"src_start":863},{"artifact":0,"gen_end":655,"gen_start":654,"node":1,"role":"binder","source":0,"src_end":891,"src_start":889},{"artifact":0,"gen_end":660,"gen_start":655,"node":1,"role":"binder","source":0,"src_end":891,"src_start":889},{"artifact":0,"gen_end":662,"gen_start":661,"node":1,"role":"binder","source":0,"src_end":891,"src_start":889},{"artifact":0,"gen_end":669,"gen_start":663,"node":1,"role":"binder","source":0,"src_end":891,"src_start":889},{"artifact":0,"gen_end":672,"gen_start":670,"node":1,"role":"binder","source":0,"src_end":891,"src_start":889},{"artifact":0,"gen_end":673,"gen_start":672,"node":1,"role":"binder","source":0,"src_end":891,"src_start":889},{"artifact":0,"gen_end":675,"gen_start":674,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":677,"gen_start":676,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":679,"gen_start":677,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":684,"gen_start":680,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":686,"gen_start":685,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":695,"gen_start":686,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":697,"gen_start":696,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":706,"gen_start":697,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":711,"gen_start":707,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":716,"gen_start":712,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":717,"gen_start":716,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":722,"gen_start":718,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":723,"gen_start":722,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":724,"gen_start":723,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":728,"gen_start":725,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":730,"gen_start":729,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":732,"gen_start":730,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":737,"gen_start":733,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":739,"gen_start":738,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":757,"gen_start":739,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":759,"gen_start":758,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":768,"gen_start":759,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":773,"gen_start":769,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":778,"gen_start":774,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":779,"gen_start":778,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":782,"gen_start":780,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":783,"gen_start":782,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":784,"gen_start":783,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":788,"gen_start":785,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":790,"gen_start":789,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":792,"gen_start":790,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":797,"gen_start":793,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":799,"gen_start":798,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":808,"gen_start":799,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":813,"gen_start":809,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":818,"gen_start":814,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":819,"gen_start":818,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":820,"gen_start":819,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":824,"gen_start":821,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":826,"gen_start":825,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":828,"gen_start":826,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":833,"gen_start":829,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":835,"gen_start":834,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":853,"gen_start":835,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":855,"gen_start":854,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":864,"gen_start":855,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":869,"gen_start":865,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":874,"gen_start":870,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":875,"gen_start":874,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":878,"gen_start":876,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":879,"gen_start":878,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":880,"gen_start":879,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":884,"gen_start":881,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":886,"gen_start":885,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":888,"gen_start":886,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":894,"gen_start":889,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":896,"gen_start":895,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":905,"gen_start":896,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":907,"gen_start":906,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":916,"gen_start":907,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":921,"gen_start":917,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":926,"gen_start":922,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":927,"gen_start":926,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":932,"gen_start":928,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":933,"gen_start":932,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":934,"gen_start":933,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":938,"gen_start":935,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":940,"gen_start":939,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":942,"gen_start":940,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":948,"gen_start":943,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":950,"gen_start":949,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":968,"gen_start":950,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":970,"gen_start":969,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":979,"gen_start":970,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":984,"gen_start":980,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":990,"gen_start":985,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":991,"gen_start":990,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":993,"gen_start":992,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":994,"gen_start":993,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":995,"gen_start":994,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":999,"gen_start":996,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1001,"gen_start":1000,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1003,"gen_start":1001,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1009,"gen_start":1004,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1011,"gen_start":1010,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1020,"gen_start":1011,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1025,"gen_start":1021,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1031,"gen_start":1026,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1032,"gen_start":1031,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1033,"gen_start":1032,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1037,"gen_start":1034,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1039,"gen_start":1038,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1041,"gen_start":1039,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1047,"gen_start":1042,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1049,"gen_start":1048,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1067,"gen_start":1049,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1069,"gen_start":1068,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1078,"gen_start":1069,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1083,"gen_start":1079,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1089,"gen_start":1084,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1090,"gen_start":1089,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1092,"gen_start":1091,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1093,"gen_start":1092,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1094,"gen_start":1093,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1098,"gen_start":1095,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1100,"gen_start":1099,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1102,"gen_start":1100,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1108,"gen_start":1103,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1110,"gen_start":1109,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1119,"gen_start":1110,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1121,"gen_start":1120,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1138,"gen_start":1121,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1144,"gen_start":1139,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1146,"gen_start":1145,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1147,"gen_start":1146,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1153,"gen_start":1148,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1154,"gen_start":1153,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1155,"gen_start":1154,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1159,"gen_start":1156,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1161,"gen_start":1160,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1163,"gen_start":1161,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1169,"gen_start":1164,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1171,"gen_start":1170,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1180,"gen_start":1171,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1186,"gen_start":1181,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1192,"gen_start":1187,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1193,"gen_start":1192,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1194,"gen_start":1193,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1198,"gen_start":1195,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1200,"gen_start":1199,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1202,"gen_start":1200,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1208,"gen_start":1203,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1210,"gen_start":1209,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1219,"gen_start":1210,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1221,"gen_start":1220,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1238,"gen_start":1221,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1244,"gen_start":1239,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1246,"gen_start":1245,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1247,"gen_start":1246,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1253,"gen_start":1248,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1254,"gen_start":1253,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1255,"gen_start":1254,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1259,"gen_start":1256,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1261,"gen_start":1260,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1263,"gen_start":1261,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1269,"gen_start":1264,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1271,"gen_start":1270,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1280,"gen_start":1271,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1282,"gen_start":1281,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1291,"gen_start":1282,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1297,"gen_start":1292,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1303,"gen_start":1298,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1304,"gen_start":1303,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1309,"gen_start":1305,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1310,"gen_start":1309,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1311,"gen_start":1310,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1315,"gen_start":1312,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1317,"gen_start":1316,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1319,"gen_start":1317,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1325,"gen_start":1320,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1327,"gen_start":1326,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1336,"gen_start":1327,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1338,"gen_start":1337,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1355,"gen_start":1338,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1361,"gen_start":1356,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1364,"gen_start":1362,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1365,"gen_start":1364,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1371,"gen_start":1366,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1372,"gen_start":1371,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1373,"gen_start":1372,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1377,"gen_start":1374,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1379,"gen_start":1378,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1381,"gen_start":1379,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1387,"gen_start":1382,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1389,"gen_start":1388,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1398,"gen_start":1389,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1404,"gen_start":1399,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1410,"gen_start":1405,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1411,"gen_start":1410,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1412,"gen_start":1411,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1416,"gen_start":1413,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1418,"gen_start":1417,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1420,"gen_start":1418,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1426,"gen_start":1421,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1428,"gen_start":1427,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1437,"gen_start":1428,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1439,"gen_start":1438,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1456,"gen_start":1439,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1462,"gen_start":1457,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1465,"gen_start":1463,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1466,"gen_start":1465,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1472,"gen_start":1467,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1473,"gen_start":1472,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1474,"gen_start":1473,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1478,"gen_start":1475,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1480,"gen_start":1479,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1482,"gen_start":1480,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1488,"gen_start":1483,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1490,"gen_start":1489,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1499,"gen_start":1490,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1501,"gen_start":1500,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1510,"gen_start":1501,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1516,"gen_start":1511,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1522,"gen_start":1517,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1523,"gen_start":1522,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1528,"gen_start":1524,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1529,"gen_start":1528,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1530,"gen_start":1529,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1534,"gen_start":1531,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1538,"gen_start":1535,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1540,"gen_start":1539,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1543,"gen_start":1540,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1545,"gen_start":1544,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1548,"gen_start":1545,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1550,"gen_start":1549,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1552,"gen_start":1550,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1558,"gen_start":1553,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1563,"gen_start":1559,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1564,"gen_start":1563,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1566,"gen_start":1565,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1568,"gen_start":1566,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1574,"gen_start":1569,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1579,"gen_start":1575,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1580,"gen_start":1579,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1581,"gen_start":1580,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1583,"gen_start":1582,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1585,"gen_start":1583,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1591,"gen_start":1586,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1596,"gen_start":1592,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1597,"gen_start":1596,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1598,"gen_start":1597,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1600,"gen_start":1599,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1602,"gen_start":1600,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1608,"gen_start":1603,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1613,"gen_start":1609,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1614,"gen_start":1613,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1617,"gen_start":1615,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1620,"gen_start":1618,"node":1,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":0,"gen_end":1628,"gen_start":1623,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1633,"gen_start":1629,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1638,"gen_start":1634,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1643,"gen_start":1639,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1648,"gen_start":1644,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1653,"gen_start":1649,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1658,"gen_start":1654,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1663,"gen_start":1659,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1668,"gen_start":1664,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1673,"gen_start":1669,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1678,"gen_start":1674,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1684,"gen_start":1679,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1690,"gen_start":1685,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1696,"gen_start":1691,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1702,"gen_start":1697,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1708,"gen_start":1703,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1714,"gen_start":1709,"node":1,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":0,"gen_end":1721,"gen_start":1717,"node":1,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":0,"gen_end":1727,"gen_start":1722,"node":1,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":0,"gen_end":1729,"gen_start":1728,"node":1,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":0,"gen_end":1732,"gen_start":1730,"node":1,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":0,"gen_end":1738,"gen_start":1733,"node":1,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":0,"gen_end":1743,"gen_start":1739,"node":1,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":0,"gen_end":1746,"gen_start":1744,"node":1,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":0,"gen_end":1749,"gen_start":1747,"node":1,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":0,"gen_end":1756,"gen_start":1754,"node":1,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":0,"gen_end":1758,"gen_start":1757,"node":1,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":0,"gen_end":1762,"gen_start":1758,"node":1,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":0,"gen_end":1763,"gen_start":1762,"node":1,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":0,"gen_end":1768,"gen_start":1764,"node":1,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":0,"gen_end":1769,"gen_start":1768,"node":1,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":0,"gen_end":1779,"gen_start":1774,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1809,"gen_start":1780,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1814,"gen_start":1810,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1820,"gen_start":1815,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1822,"gen_start":1821,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1823,"gen_start":1822,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1825,"gen_start":1824,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1829,"gen_start":1826,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1830,"gen_start":1829,"node":1,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":0,"gen_end":1837,"gen_start":1833,"node":1,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":0,"gen_end":1843,"gen_start":1838,"node":1,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":0,"gen_end":1845,"gen_start":1844,"node":1,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":0,"gen_end":1848,"gen_start":1846,"node":1,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":0,"gen_end":1854,"gen_start":1849,"node":1,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":0,"gen_end":1859,"gen_start":1855,"node":1,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":0,"gen_end":1862,"gen_start":1860,"node":1,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":0,"gen_end":1865,"gen_start":1863,"node":1,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":0,"gen_end":1872,"gen_start":1870,"node":1,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":0,"gen_end":1874,"gen_start":1873,"node":1,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":0,"gen_end":1878,"gen_start":1874,"node":1,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":0,"gen_end":1879,"gen_start":1878,"node":1,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":0,"gen_end":1884,"gen_start":1880,"node":1,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":0,"gen_end":1885,"gen_start":1884,"node":1,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":0,"gen_end":1895,"gen_start":1890,"node":1,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":0,"gen_end":1938,"gen_start":1896,"node":1,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":0,"gen_end":1943,"gen_start":1939,"node":1,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":0,"gen_end":1949,"gen_start":1944,"node":1,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":0,"gen_end":1956,"gen_start":1952,"node":1,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":0,"gen_end":1962,"gen_start":1957,"node":1,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":0,"gen_end":1964,"gen_start":1963,"node":1,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":0,"gen_end":1967,"gen_start":1965,"node":1,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":0,"gen_end":1973,"gen_start":1968,"node":1,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":0,"gen_end":1978,"gen_start":1974,"node":1,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":0,"gen_end":1981,"gen_start":1979,"node":1,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":0,"gen_end":1984,"gen_start":1982,"node":1,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":0,"gen_end":1991,"gen_start":1989,"node":1,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":0,"gen_end":1993,"gen_start":1992,"node":1,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":0,"gen_end":1998,"gen_start":1993,"node":1,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":0,"gen_end":1999,"gen_start":1998,"node":1,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":0,"gen_end":2004,"gen_start":2000,"node":1,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":0,"gen_end":2005,"gen_start":2004,"node":1,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":0,"gen_end":2015,"gen_start":2010,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2045,"gen_start":2016,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2050,"gen_start":2046,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2056,"gen_start":2051,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2058,"gen_start":2057,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2059,"gen_start":2058,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2061,"gen_start":2060,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2065,"gen_start":2062,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2066,"gen_start":2065,"node":1,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":0,"gen_end":2073,"gen_start":2069,"node":1,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":0,"gen_end":2079,"gen_start":2074,"node":1,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":0,"gen_end":2081,"gen_start":2080,"node":1,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":0,"gen_end":2084,"gen_start":2082,"node":1,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":0,"gen_end":2090,"gen_start":2085,"node":1,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":0,"gen_end":2095,"gen_start":2091,"node":1,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":0,"gen_end":2098,"gen_start":2096,"node":1,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":0,"gen_end":2101,"gen_start":2099,"node":1,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":0,"gen_end":2108,"gen_start":2106,"node":1,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":0,"gen_end":2110,"gen_start":2109,"node":1,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":0,"gen_end":2115,"gen_start":2110,"node":1,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":0,"gen_end":2116,"gen_start":2115,"node":1,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":0,"gen_end":2122,"gen_start":2117,"node":1,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":0,"gen_end":2123,"gen_start":2122,"node":1,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":0,"gen_end":2128,"gen_start":2124,"node":1,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":0,"gen_end":2129,"gen_start":2128,"node":1,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":0,"gen_end":2139,"gen_start":2134,"node":1,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":0,"gen_end":2186,"gen_start":2140,"node":1,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":0,"gen_end":2191,"gen_start":2187,"node":1,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":0,"gen_end":2196,"gen_start":2192,"node":1,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":0,"gen_end":2201,"gen_start":2197,"node":1,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":0,"gen_end":2208,"gen_start":2204,"node":1,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":0,"gen_end":2214,"gen_start":2209,"node":1,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":0,"gen_end":2216,"gen_start":2215,"node":1,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":0,"gen_end":2219,"gen_start":2217,"node":1,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":0,"gen_end":2225,"gen_start":2220,"node":1,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":0,"gen_end":2230,"gen_start":2226,"node":1,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":0,"gen_end":2233,"gen_start":2231,"node":1,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":0,"gen_end":2236,"gen_start":2234,"node":1,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":0,"gen_end":2243,"gen_start":2241,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2245,"gen_start":2244,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2250,"gen_start":2245,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2251,"gen_start":2250,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2257,"gen_start":2252,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2258,"gen_start":2257,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2264,"gen_start":2259,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2265,"gen_start":2264,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2270,"gen_start":2266,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2271,"gen_start":2270,"node":1,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":0,"gen_end":2281,"gen_start":2276,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2311,"gen_start":2282,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2316,"gen_start":2312,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2321,"gen_start":2317,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2323,"gen_start":2322,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2325,"gen_start":2323,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2327,"gen_start":2326,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2331,"gen_start":2328,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2332,"gen_start":2331,"node":1,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":0,"gen_end":2339,"gen_start":2335,"node":1,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":0,"gen_end":2345,"gen_start":2340,"node":1,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":0,"gen_end":2347,"gen_start":2346,"node":1,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":0,"gen_end":2350,"gen_start":2348,"node":1,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":0,"gen_end":2356,"gen_start":2351,"node":1,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":0,"gen_end":2361,"gen_start":2357,"node":1,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":0,"gen_end":2364,"gen_start":2362,"node":1,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":0,"gen_end":2367,"gen_start":2365,"node":1,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":0,"gen_end":2374,"gen_start":2372,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2376,"gen_start":2375,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2381,"gen_start":2376,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2382,"gen_start":2381,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2388,"gen_start":2383,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2389,"gen_start":2388,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2395,"gen_start":2390,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2396,"gen_start":2395,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2401,"gen_start":2397,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2402,"gen_start":2401,"node":1,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":0,"gen_end":2412,"gen_start":2407,"node":1,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":0,"gen_end":2455,"gen_start":2413,"node":1,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":0,"gen_end":2460,"gen_start":2456,"node":1,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":0,"gen_end":2465,"gen_start":2461,"node":1,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":0,"gen_end":2472,"gen_start":2468,"node":1,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":0,"gen_end":2478,"gen_start":2473,"node":1,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":0,"gen_end":2480,"gen_start":2479,"node":1,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":0,"gen_end":2483,"gen_start":2481,"node":1,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":0,"gen_end":2489,"gen_start":2484,"node":1,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":0,"gen_end":2494,"gen_start":2490,"node":1,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":0,"gen_end":2497,"gen_start":2495,"node":1,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":0,"gen_end":2500,"gen_start":2498,"node":1,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":0,"gen_end":2507,"gen_start":2505,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2509,"gen_start":2508,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2514,"gen_start":2509,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2515,"gen_start":2514,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2521,"gen_start":2516,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2522,"gen_start":2521,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2528,"gen_start":2523,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2529,"gen_start":2528,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2534,"gen_start":2530,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2535,"gen_start":2534,"node":1,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":0,"gen_end":2545,"gen_start":2540,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2575,"gen_start":2546,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2580,"gen_start":2576,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2585,"gen_start":2581,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2587,"gen_start":2586,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2589,"gen_start":2587,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2591,"gen_start":2590,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2595,"gen_start":2592,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2596,"gen_start":2595,"node":1,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":0,"gen_end":2603,"gen_start":2599,"node":1,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":0,"gen_end":2609,"gen_start":2604,"node":1,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":0,"gen_end":2611,"gen_start":2610,"node":1,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":0,"gen_end":2614,"gen_start":2612,"node":1,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":0,"gen_end":2620,"gen_start":2615,"node":1,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":0,"gen_end":2625,"gen_start":2621,"node":1,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":0,"gen_end":2628,"gen_start":2626,"node":1,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":0,"gen_end":2631,"gen_start":2629,"node":1,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":0,"gen_end":2638,"gen_start":2636,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2640,"gen_start":2639,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2645,"gen_start":2640,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2646,"gen_start":2645,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2652,"gen_start":2647,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2653,"gen_start":2652,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2659,"gen_start":2654,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2660,"gen_start":2659,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2665,"gen_start":2661,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2666,"gen_start":2665,"node":1,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":0,"gen_end":2676,"gen_start":2671,"node":1,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":0,"gen_end":2723,"gen_start":2677,"node":1,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":0,"gen_end":2728,"gen_start":2724,"node":1,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":0,"gen_end":2733,"gen_start":2729,"node":1,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":0,"gen_end":2738,"gen_start":2734,"node":1,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":0,"gen_end":2752,"gen_start":2741,"node":1,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":0,"gen_end":2766,"gen_start":2755,"node":1,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":0,"gen_end":2780,"gen_start":2769,"node":1,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":0,"gen_end":2788,"gen_start":2783,"node":1,"role":"proof","source":0,"src_end":3957,"src_start":3930},{"artifact":0,"gen_end":2794,"gen_start":2789,"node":1,"role":"proof","source":0,"src_end":3957,"src_start":3930},{"artifact":0,"gen_end":2802,"gen_start":2797,"node":1,"role":"proof","source":0,"src_end":4022,"src_start":3995},{"artifact":0,"gen_end":2808,"gen_start":2803,"node":1,"role":"proof","source":0,"src_end":4022,"src_start":3995},{"artifact":0,"gen_end":2816,"gen_start":2811,"node":1,"role":"proof","source":0,"src_end":4122,"src_start":4095},{"artifact":0,"gen_end":2822,"gen_start":2817,"node":1,"role":"proof","source":0,"src_end":4122,"src_start":4095},{"artifact":0,"gen_end":2830,"gen_start":2825,"node":1,"role":"proof","source":0,"src_end":4222,"src_start":4195},{"artifact":0,"gen_end":2836,"gen_start":2831,"node":1,"role":"proof","source":0,"src_end":4222,"src_start":4195},{"artifact":0,"gen_end":2841,"gen_start":2838,"node":2,"role":"synthetic","source":1},{"artifact":0,"gen_end":2863,"gen_start":2842,"node":2,"role":"synthetic","source":1},{"artifact":1,"gen_end":14,"gen_start":0,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":15,"gen_start":14,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":19,"gen_start":15,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":20,"gen_start":19,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":21,"gen_start":20,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":28,"gen_start":21,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":29,"gen_start":28,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":41,"gen_start":30,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":42,"gen_start":41,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":44,"gen_start":42,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":45,"gen_start":44,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":46,"gen_start":45,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":53,"gen_start":46,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":54,"gen_start":53,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":66,"gen_start":55,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":67,"gen_start":66,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":74,"gen_start":67,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":75,"gen_start":74,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":87,"gen_start":76,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":88,"gen_start":87,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":95,"gen_start":88,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":96,"gen_start":95,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":108,"gen_start":97,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":109,"gen_start":108,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":115,"gen_start":109,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":116,"gen_start":115,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":128,"gen_start":117,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":129,"gen_start":128,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":138,"gen_start":129,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":139,"gen_start":138,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":140,"gen_start":139,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":148,"gen_start":140,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":149,"gen_start":148,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":161,"gen_start":150,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":162,"gen_start":161,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":169,"gen_start":162,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":170,"gen_start":169,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":171,"gen_start":170,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":178,"gen_start":171,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":179,"gen_start":178,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":180,"gen_start":179,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":187,"gen_start":180,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":188,"gen_start":187,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":200,"gen_start":189,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":201,"gen_start":200,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":206,"gen_start":201,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":207,"gen_start":206,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":208,"gen_start":207,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":215,"gen_start":208,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":216,"gen_start":215,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":217,"gen_start":216,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":222,"gen_start":217,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":223,"gen_start":222,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":235,"gen_start":224,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":236,"gen_start":235,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":245,"gen_start":236,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":246,"gen_start":245,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":247,"gen_start":246,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":254,"gen_start":247,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":255,"gen_start":254,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":256,"gen_start":255,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":265,"gen_start":256,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":266,"gen_start":265,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":280,"gen_start":267,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":281,"gen_start":280,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":291,"gen_start":281,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":292,"gen_start":291,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":304,"gen_start":293,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":305,"gen_start":304,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":315,"gen_start":305,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":316,"gen_start":315,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":317,"gen_start":316,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":324,"gen_start":317,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":325,"gen_start":324,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":326,"gen_start":325,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":336,"gen_start":326,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":337,"gen_start":336,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":344,"gen_start":338,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":345,"gen_start":344,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":353,"gen_start":345,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":354,"gen_start":353,"node":3,"role":"synthetic","source":2},{"artifact":1,"gen_end":361,"gen_start":355,"node":4,"role":"renderer","source":3},{"artifact":1,"gen_end":362,"gen_start":361,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":368,"gen_start":362,"node":4,"role":"renderer","source":3},{"artifact":1,"gen_end":369,"gen_start":368,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":371,"gen_start":370,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":377,"gen_start":371,"node":4,"role":"renderer","source":3},{"artifact":1,"gen_end":384,"gen_start":378,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":393,"gen_start":385,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":401,"gen_start":394,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":402,"gen_start":401,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":407,"gen_start":403,"node":4,"role":"renderer","source":3},{"artifact":1,"gen_end":408,"gen_start":407,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":414,"gen_start":408,"node":4,"role":"renderer","source":3},{"artifact":1,"gen_end":415,"gen_start":414,"node":4,"role":"structure","source":3},{"artifact":1,"gen_end":424,"gen_start":416,"node":5,"role":"renderer","source":3},{"artifact":1,"gen_end":425,"gen_start":424,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":431,"gen_start":425,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":440,"gen_start":432,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":448,"gen_start":441,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":449,"gen_start":448,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":456,"gen_start":450,"node":5,"role":"renderer","source":3},{"artifact":1,"gen_end":457,"gen_start":456,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":474,"gen_start":457,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":475,"gen_start":474,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":482,"gen_start":476,"node":6,"role":"renderer","source":0,"src_end":4287,"src_start":232},{"artifact":1,"gen_end":483,"gen_start":482,"node":6,"role":"structure","source":0,"src_end":4287,"src_start":232},{"artifact":1,"gen_end":490,"gen_start":483,"node":6,"role":"renderer","source":0,"src_end":4287,"src_start":232},{"artifact":1,"gen_end":491,"gen_start":490,"node":6,"role":"structure","source":0,"src_end":4287,"src_start":232},{"artifact":1,"gen_end":498,"gen_start":492,"node":6,"role":"renderer","source":0,"src_end":4287,"src_start":232},{"artifact":1,"gen_end":499,"gen_start":498,"node":6,"role":"structure","source":0,"src_end":4287,"src_start":232},{"artifact":1,"gen_end":523,"gen_start":499,"node":6,"role":"structure","source":0,"src_end":4287,"src_start":232},{"artifact":1,"gen_end":524,"gen_start":523,"node":6,"role":"structure","source":0,"src_end":4287,"src_start":232},{"artifact":1,"gen_end":528,"gen_start":525,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":534,"gen_start":529,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":537,"gen_start":535,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":550,"gen_start":537,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":551,"gen_start":550,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":557,"gen_start":551,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":558,"gen_start":557,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":559,"gen_start":558,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":561,"gen_start":559,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":562,"gen_start":561,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":564,"gen_start":562,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":567,"gen_start":565,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":568,"gen_start":567,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":570,"gen_start":568,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":574,"gen_start":571,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":577,"gen_start":575,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":590,"gen_start":577,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":591,"gen_start":590,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":597,"gen_start":591,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":598,"gen_start":597,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":599,"gen_start":598,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":601,"gen_start":599,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":602,"gen_start":601,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":604,"gen_start":602,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":607,"gen_start":605,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":608,"gen_start":607,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":610,"gen_start":608,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":614,"gen_start":611,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":617,"gen_start":615,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":630,"gen_start":617,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":631,"gen_start":630,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":637,"gen_start":631,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":638,"gen_start":637,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":639,"gen_start":638,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":641,"gen_start":639,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":642,"gen_start":641,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":644,"gen_start":642,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":647,"gen_start":645,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":648,"gen_start":647,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":650,"gen_start":648,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":654,"gen_start":651,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":657,"gen_start":655,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":670,"gen_start":657,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":671,"gen_start":670,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":677,"gen_start":671,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":678,"gen_start":677,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":679,"gen_start":678,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":681,"gen_start":679,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":682,"gen_start":681,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":684,"gen_start":682,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":687,"gen_start":685,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":688,"gen_start":687,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":690,"gen_start":688,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":694,"gen_start":691,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":697,"gen_start":695,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":710,"gen_start":697,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":711,"gen_start":710,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":717,"gen_start":711,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":718,"gen_start":717,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":719,"gen_start":718,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":721,"gen_start":719,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":722,"gen_start":721,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":724,"gen_start":722,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":727,"gen_start":725,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":728,"gen_start":727,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":730,"gen_start":728,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":734,"gen_start":731,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":737,"gen_start":735,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":750,"gen_start":737,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":751,"gen_start":750,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":757,"gen_start":751,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":758,"gen_start":757,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":759,"gen_start":758,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":761,"gen_start":759,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":762,"gen_start":761,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":764,"gen_start":762,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":767,"gen_start":765,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":768,"gen_start":767,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":770,"gen_start":768,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":774,"gen_start":771,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":777,"gen_start":775,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":790,"gen_start":777,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":791,"gen_start":790,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":797,"gen_start":791,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":798,"gen_start":797,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":799,"gen_start":798,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":801,"gen_start":799,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":802,"gen_start":801,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":804,"gen_start":802,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":807,"gen_start":805,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":809,"gen_start":807,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":811,"gen_start":809,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":815,"gen_start":812,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":818,"gen_start":816,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":831,"gen_start":818,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":832,"gen_start":831,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":838,"gen_start":832,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":839,"gen_start":838,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":840,"gen_start":839,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":842,"gen_start":840,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":843,"gen_start":842,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":845,"gen_start":843,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":848,"gen_start":846,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":850,"gen_start":848,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":852,"gen_start":850,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":856,"gen_start":853,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":859,"gen_start":857,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":872,"gen_start":859,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":873,"gen_start":872,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":879,"gen_start":873,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":880,"gen_start":879,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":881,"gen_start":880,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":883,"gen_start":881,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":884,"gen_start":883,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":886,"gen_start":884,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":889,"gen_start":887,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":891,"gen_start":889,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":893,"gen_start":891,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":897,"gen_start":894,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":900,"gen_start":898,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":913,"gen_start":900,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":914,"gen_start":913,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":920,"gen_start":914,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":921,"gen_start":920,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":922,"gen_start":921,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":924,"gen_start":922,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":925,"gen_start":924,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":927,"gen_start":925,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":930,"gen_start":928,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":932,"gen_start":930,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":934,"gen_start":932,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":938,"gen_start":935,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":941,"gen_start":939,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":954,"gen_start":941,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":955,"gen_start":954,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":961,"gen_start":955,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":962,"gen_start":961,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":963,"gen_start":962,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":965,"gen_start":963,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":966,"gen_start":965,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":968,"gen_start":966,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":971,"gen_start":969,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":973,"gen_start":971,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":975,"gen_start":973,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":979,"gen_start":976,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":982,"gen_start":980,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":995,"gen_start":982,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":996,"gen_start":995,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1002,"gen_start":996,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1003,"gen_start":1002,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1004,"gen_start":1003,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1006,"gen_start":1004,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1007,"gen_start":1006,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1009,"gen_start":1007,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1012,"gen_start":1010,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1014,"gen_start":1012,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1016,"gen_start":1014,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1020,"gen_start":1017,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1023,"gen_start":1021,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1036,"gen_start":1023,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1037,"gen_start":1036,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1043,"gen_start":1037,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1044,"gen_start":1043,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1045,"gen_start":1044,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1047,"gen_start":1045,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1048,"gen_start":1047,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1050,"gen_start":1048,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1053,"gen_start":1051,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1055,"gen_start":1053,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1057,"gen_start":1055,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1061,"gen_start":1058,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1064,"gen_start":1062,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1077,"gen_start":1064,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1078,"gen_start":1077,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1084,"gen_start":1078,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1085,"gen_start":1084,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1086,"gen_start":1085,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1088,"gen_start":1086,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1089,"gen_start":1088,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1091,"gen_start":1089,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1094,"gen_start":1092,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1096,"gen_start":1094,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1098,"gen_start":1096,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1102,"gen_start":1099,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1105,"gen_start":1103,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1118,"gen_start":1105,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1119,"gen_start":1118,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1125,"gen_start":1119,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1126,"gen_start":1125,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1127,"gen_start":1126,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1129,"gen_start":1127,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1130,"gen_start":1129,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1132,"gen_start":1130,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1135,"gen_start":1133,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1138,"gen_start":1135,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1140,"gen_start":1138,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1144,"gen_start":1141,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1147,"gen_start":1145,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1160,"gen_start":1147,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1161,"gen_start":1160,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1167,"gen_start":1161,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1168,"gen_start":1167,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1169,"gen_start":1168,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1171,"gen_start":1169,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1172,"gen_start":1171,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1174,"gen_start":1172,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1177,"gen_start":1175,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1180,"gen_start":1177,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1182,"gen_start":1180,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1186,"gen_start":1183,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1189,"gen_start":1187,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1202,"gen_start":1189,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1203,"gen_start":1202,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1209,"gen_start":1203,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1210,"gen_start":1209,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1211,"gen_start":1210,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1213,"gen_start":1211,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1214,"gen_start":1213,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1216,"gen_start":1214,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1219,"gen_start":1217,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1222,"gen_start":1219,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1224,"gen_start":1222,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1228,"gen_start":1225,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1231,"gen_start":1229,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1244,"gen_start":1231,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1245,"gen_start":1244,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1251,"gen_start":1245,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1252,"gen_start":1251,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1253,"gen_start":1252,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1255,"gen_start":1253,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1256,"gen_start":1255,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1258,"gen_start":1256,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1261,"gen_start":1259,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1264,"gen_start":1261,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1266,"gen_start":1264,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1270,"gen_start":1267,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1273,"gen_start":1271,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1286,"gen_start":1273,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1287,"gen_start":1286,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1293,"gen_start":1287,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1294,"gen_start":1293,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1295,"gen_start":1294,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1297,"gen_start":1295,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1298,"gen_start":1297,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1300,"gen_start":1298,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1303,"gen_start":1301,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1305,"gen_start":1303,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1307,"gen_start":1305,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1311,"gen_start":1308,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1314,"gen_start":1312,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1327,"gen_start":1314,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1328,"gen_start":1327,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1334,"gen_start":1328,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1335,"gen_start":1334,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1336,"gen_start":1335,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1338,"gen_start":1336,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1339,"gen_start":1338,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1341,"gen_start":1339,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1344,"gen_start":1342,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1346,"gen_start":1344,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1348,"gen_start":1346,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1352,"gen_start":1349,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1355,"gen_start":1353,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1368,"gen_start":1355,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1369,"gen_start":1368,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1375,"gen_start":1369,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1376,"gen_start":1375,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1377,"gen_start":1376,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1379,"gen_start":1377,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1380,"gen_start":1379,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1382,"gen_start":1380,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1385,"gen_start":1383,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1387,"gen_start":1385,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1389,"gen_start":1387,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1393,"gen_start":1390,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1396,"gen_start":1394,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1409,"gen_start":1396,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1410,"gen_start":1409,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1416,"gen_start":1410,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1417,"gen_start":1416,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1418,"gen_start":1417,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1420,"gen_start":1418,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1421,"gen_start":1420,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1423,"gen_start":1421,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1426,"gen_start":1424,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1428,"gen_start":1426,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1430,"gen_start":1428,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1431,"gen_start":1430,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1434,"gen_start":1432,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1437,"gen_start":1435,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1439,"gen_start":1437,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1441,"gen_start":1440,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1455,"gen_start":1442,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1456,"gen_start":1455,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1464,"gen_start":1456,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1465,"gen_start":1464,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1466,"gen_start":1465,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1479,"gen_start":1466,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1480,"gen_start":1479,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1488,"gen_start":1480,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1489,"gen_start":1488,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1490,"gen_start":1489,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1491,"gen_start":1490,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1492,"gen_start":1491,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1494,"gen_start":1493,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1495,"gen_start":1494,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1496,"gen_start":1495,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1498,"gen_start":1497,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1499,"gen_start":1498,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1501,"gen_start":1499,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1502,"gen_start":1501,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1507,"gen_start":1503,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1510,"gen_start":1508,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1513,"gen_start":1511,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1515,"gen_start":1513,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1517,"gen_start":1516,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1531,"gen_start":1518,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1532,"gen_start":1531,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1549,"gen_start":1532,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1550,"gen_start":1549,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1551,"gen_start":1550,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1564,"gen_start":1551,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1565,"gen_start":1564,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1573,"gen_start":1565,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1574,"gen_start":1573,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1575,"gen_start":1574,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1576,"gen_start":1575,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1577,"gen_start":1576,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1580,"gen_start":1578,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1581,"gen_start":1580,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1582,"gen_start":1581,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1585,"gen_start":1583,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1586,"gen_start":1585,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1588,"gen_start":1586,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1589,"gen_start":1588,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1594,"gen_start":1590,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1597,"gen_start":1595,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1600,"gen_start":1598,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1602,"gen_start":1600,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1604,"gen_start":1603,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1618,"gen_start":1605,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1619,"gen_start":1618,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1627,"gen_start":1619,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1628,"gen_start":1627,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1629,"gen_start":1628,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1630,"gen_start":1629,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1631,"gen_start":1630,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1634,"gen_start":1632,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1635,"gen_start":1634,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1637,"gen_start":1635,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1638,"gen_start":1637,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1643,"gen_start":1639,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1646,"gen_start":1644,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1649,"gen_start":1647,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1651,"gen_start":1649,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1653,"gen_start":1652,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1667,"gen_start":1654,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1668,"gen_start":1667,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1685,"gen_start":1668,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1686,"gen_start":1685,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1687,"gen_start":1686,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1700,"gen_start":1687,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1701,"gen_start":1700,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1709,"gen_start":1701,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1710,"gen_start":1709,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1711,"gen_start":1710,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1712,"gen_start":1711,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1713,"gen_start":1712,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1716,"gen_start":1714,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1717,"gen_start":1716,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1718,"gen_start":1717,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1721,"gen_start":1719,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1722,"gen_start":1721,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1724,"gen_start":1722,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1725,"gen_start":1724,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1730,"gen_start":1726,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1733,"gen_start":1731,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1736,"gen_start":1734,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1738,"gen_start":1736,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1740,"gen_start":1739,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1754,"gen_start":1741,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1755,"gen_start":1754,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1763,"gen_start":1755,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1764,"gen_start":1763,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1765,"gen_start":1764,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1778,"gen_start":1765,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1779,"gen_start":1778,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1787,"gen_start":1779,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1788,"gen_start":1787,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1789,"gen_start":1788,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1791,"gen_start":1789,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1792,"gen_start":1791,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1795,"gen_start":1793,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1796,"gen_start":1795,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1797,"gen_start":1796,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1799,"gen_start":1798,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1800,"gen_start":1799,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1802,"gen_start":1800,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1803,"gen_start":1802,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1808,"gen_start":1804,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1811,"gen_start":1809,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1814,"gen_start":1812,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1816,"gen_start":1814,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1818,"gen_start":1817,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1832,"gen_start":1819,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1833,"gen_start":1832,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1850,"gen_start":1833,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1851,"gen_start":1850,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1852,"gen_start":1851,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1865,"gen_start":1852,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1866,"gen_start":1865,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1874,"gen_start":1866,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1875,"gen_start":1874,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1876,"gen_start":1875,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1878,"gen_start":1876,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1879,"gen_start":1878,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1882,"gen_start":1880,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1883,"gen_start":1882,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1884,"gen_start":1883,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1886,"gen_start":1885,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1887,"gen_start":1886,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1889,"gen_start":1887,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1890,"gen_start":1889,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1895,"gen_start":1891,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1898,"gen_start":1896,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1901,"gen_start":1899,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1903,"gen_start":1901,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1905,"gen_start":1904,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1919,"gen_start":1906,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1920,"gen_start":1919,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1928,"gen_start":1920,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1929,"gen_start":1928,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1930,"gen_start":1929,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1932,"gen_start":1930,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1933,"gen_start":1932,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1936,"gen_start":1934,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1937,"gen_start":1936,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1939,"gen_start":1937,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1940,"gen_start":1939,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1945,"gen_start":1941,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1948,"gen_start":1946,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1951,"gen_start":1949,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1953,"gen_start":1951,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1955,"gen_start":1954,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1969,"gen_start":1956,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1970,"gen_start":1969,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1987,"gen_start":1970,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1988,"gen_start":1987,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":1989,"gen_start":1988,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2002,"gen_start":1989,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2003,"gen_start":2002,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2011,"gen_start":2003,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2012,"gen_start":2011,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2013,"gen_start":2012,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2015,"gen_start":2013,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2016,"gen_start":2015,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2019,"gen_start":2017,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2020,"gen_start":2019,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2021,"gen_start":2020,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2023,"gen_start":2022,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2024,"gen_start":2023,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2026,"gen_start":2024,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2027,"gen_start":2026,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2032,"gen_start":2028,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2035,"gen_start":2033,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2038,"gen_start":2036,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2041,"gen_start":2038,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2043,"gen_start":2042,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2057,"gen_start":2044,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2058,"gen_start":2057,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2066,"gen_start":2058,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2067,"gen_start":2066,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2068,"gen_start":2067,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2081,"gen_start":2068,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2082,"gen_start":2081,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2098,"gen_start":2082,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2099,"gen_start":2098,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2100,"gen_start":2099,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2102,"gen_start":2100,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2103,"gen_start":2102,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2105,"gen_start":2104,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2106,"gen_start":2105,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2107,"gen_start":2106,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2110,"gen_start":2108,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2111,"gen_start":2110,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2113,"gen_start":2111,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2114,"gen_start":2113,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2119,"gen_start":2115,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2122,"gen_start":2120,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2125,"gen_start":2123,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2128,"gen_start":2125,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2130,"gen_start":2129,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2144,"gen_start":2131,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2145,"gen_start":2144,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2153,"gen_start":2145,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2154,"gen_start":2153,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2155,"gen_start":2154,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2157,"gen_start":2155,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2158,"gen_start":2157,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2161,"gen_start":2159,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2162,"gen_start":2161,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2164,"gen_start":2162,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2165,"gen_start":2164,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2170,"gen_start":2166,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2173,"gen_start":2171,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2176,"gen_start":2174,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2179,"gen_start":2176,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2181,"gen_start":2180,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2195,"gen_start":2182,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2196,"gen_start":2195,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2204,"gen_start":2196,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2205,"gen_start":2204,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2206,"gen_start":2205,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2219,"gen_start":2206,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2220,"gen_start":2219,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2236,"gen_start":2220,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2237,"gen_start":2236,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2238,"gen_start":2237,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2240,"gen_start":2238,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2241,"gen_start":2240,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2243,"gen_start":2242,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2244,"gen_start":2243,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2245,"gen_start":2244,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2248,"gen_start":2246,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2249,"gen_start":2248,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2251,"gen_start":2249,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2252,"gen_start":2251,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2257,"gen_start":2253,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2260,"gen_start":2258,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2263,"gen_start":2261,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2266,"gen_start":2263,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2268,"gen_start":2267,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2282,"gen_start":2269,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2283,"gen_start":2282,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2291,"gen_start":2283,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2292,"gen_start":2291,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2293,"gen_start":2292,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2306,"gen_start":2293,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2307,"gen_start":2306,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2315,"gen_start":2307,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2316,"gen_start":2315,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2317,"gen_start":2316,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2319,"gen_start":2317,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2320,"gen_start":2319,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2324,"gen_start":2321,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2325,"gen_start":2324,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2326,"gen_start":2325,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2328,"gen_start":2327,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2329,"gen_start":2328,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2331,"gen_start":2329,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2332,"gen_start":2331,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2337,"gen_start":2333,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2340,"gen_start":2338,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2343,"gen_start":2341,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2345,"gen_start":2343,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2347,"gen_start":2346,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2361,"gen_start":2348,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2362,"gen_start":2361,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2370,"gen_start":2362,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2371,"gen_start":2370,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2372,"gen_start":2371,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2385,"gen_start":2372,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2386,"gen_start":2385,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2402,"gen_start":2386,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2403,"gen_start":2402,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2404,"gen_start":2403,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2407,"gen_start":2404,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2408,"gen_start":2407,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2411,"gen_start":2409,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2412,"gen_start":2411,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2413,"gen_start":2412,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2417,"gen_start":2414,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2418,"gen_start":2417,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2420,"gen_start":2418,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2421,"gen_start":2420,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2426,"gen_start":2422,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2429,"gen_start":2427,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2432,"gen_start":2430,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2434,"gen_start":2432,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2436,"gen_start":2435,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2450,"gen_start":2437,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2451,"gen_start":2450,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2459,"gen_start":2451,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2460,"gen_start":2459,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2461,"gen_start":2460,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2464,"gen_start":2461,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2465,"gen_start":2464,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2469,"gen_start":2466,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2470,"gen_start":2469,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2472,"gen_start":2470,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2473,"gen_start":2472,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2478,"gen_start":2474,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2481,"gen_start":2479,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2484,"gen_start":2482,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2486,"gen_start":2484,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2488,"gen_start":2487,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2502,"gen_start":2489,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2503,"gen_start":2502,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2511,"gen_start":2503,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2512,"gen_start":2511,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2513,"gen_start":2512,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2526,"gen_start":2513,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2527,"gen_start":2526,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2543,"gen_start":2527,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2544,"gen_start":2543,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2545,"gen_start":2544,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2548,"gen_start":2545,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2549,"gen_start":2548,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2552,"gen_start":2550,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2553,"gen_start":2552,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2554,"gen_start":2553,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2558,"gen_start":2555,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2559,"gen_start":2558,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2561,"gen_start":2559,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2562,"gen_start":2561,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2567,"gen_start":2563,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2570,"gen_start":2568,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2573,"gen_start":2571,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2575,"gen_start":2573,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2577,"gen_start":2576,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2591,"gen_start":2578,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2592,"gen_start":2591,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2600,"gen_start":2592,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2601,"gen_start":2600,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2602,"gen_start":2601,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2615,"gen_start":2602,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2616,"gen_start":2615,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2624,"gen_start":2616,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2625,"gen_start":2624,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2626,"gen_start":2625,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2629,"gen_start":2626,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2630,"gen_start":2629,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2633,"gen_start":2631,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2634,"gen_start":2633,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2635,"gen_start":2634,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2637,"gen_start":2636,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2638,"gen_start":2637,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2640,"gen_start":2638,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2641,"gen_start":2640,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2646,"gen_start":2642,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2649,"gen_start":2647,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2651,"gen_start":2649,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2653,"gen_start":2652,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2655,"gen_start":2654,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2657,"gen_start":2655,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2661,"gen_start":2658,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2664,"gen_start":2662,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2666,"gen_start":2664,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2668,"gen_start":2667,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2670,"gen_start":2669,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2672,"gen_start":2670,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2676,"gen_start":2673,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2679,"gen_start":2677,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2681,"gen_start":2679,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2683,"gen_start":2682,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2685,"gen_start":2684,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2687,"gen_start":2685,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2691,"gen_start":2688,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2694,"gen_start":2692,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2696,"gen_start":2694,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2698,"gen_start":2697,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2700,"gen_start":2699,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2702,"gen_start":2700,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2703,"gen_start":2702,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2708,"gen_start":2704,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2709,"gen_start":2708,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2716,"gen_start":2709,"node":6,"role":"renderer","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2717,"gen_start":2716,"node":6,"role":"term","source":0,"src_end":1746,"src_start":318},{"artifact":1,"gen_end":2724,"gen_start":2718,"node":7,"role":"renderer","source":0,"src_end":4287,"src_start":1749},{"artifact":1,"gen_end":2725,"gen_start":2724,"node":7,"role":"proof","source":0,"src_end":4287,"src_start":1749},{"artifact":1,"gen_end":2730,"gen_start":2725,"node":7,"role":"renderer","source":0,"src_end":4287,"src_start":1749},{"artifact":1,"gen_end":2731,"gen_start":2730,"node":7,"role":"proof","source":0,"src_end":4287,"src_start":1749},{"artifact":1,"gen_end":2738,"gen_start":2732,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2741,"gen_start":2739,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2743,"gen_start":2741,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2745,"gen_start":2743,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2746,"gen_start":2745,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2749,"gen_start":2747,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2751,"gen_start":2749,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2753,"gen_start":2751,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2754,"gen_start":2753,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2757,"gen_start":2755,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2759,"gen_start":2757,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2761,"gen_start":2759,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2762,"gen_start":2761,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2765,"gen_start":2763,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2767,"gen_start":2765,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2769,"gen_start":2767,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2770,"gen_start":2769,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2773,"gen_start":2771,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2775,"gen_start":2773,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2777,"gen_start":2775,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2778,"gen_start":2777,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2781,"gen_start":2779,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2783,"gen_start":2781,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2785,"gen_start":2783,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2786,"gen_start":2785,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2789,"gen_start":2787,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2791,"gen_start":2789,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2793,"gen_start":2791,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2794,"gen_start":2793,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2797,"gen_start":2795,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2799,"gen_start":2797,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2801,"gen_start":2799,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2802,"gen_start":2801,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2805,"gen_start":2803,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2807,"gen_start":2805,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2809,"gen_start":2807,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2810,"gen_start":2809,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2813,"gen_start":2811,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2815,"gen_start":2813,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2817,"gen_start":2815,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2818,"gen_start":2817,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2821,"gen_start":2819,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2823,"gen_start":2821,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2825,"gen_start":2823,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2826,"gen_start":2825,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2829,"gen_start":2827,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2831,"gen_start":2829,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2833,"gen_start":2831,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2834,"gen_start":2833,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2837,"gen_start":2835,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2839,"gen_start":2837,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2841,"gen_start":2839,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2842,"gen_start":2841,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2845,"gen_start":2843,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2847,"gen_start":2845,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2849,"gen_start":2847,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2850,"gen_start":2849,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2853,"gen_start":2851,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2855,"gen_start":2853,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2857,"gen_start":2855,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2858,"gen_start":2857,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2861,"gen_start":2859,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2863,"gen_start":2861,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2865,"gen_start":2863,"node":7,"role":"renderer","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2866,"gen_start":2865,"node":7,"role":"proof","source":0,"src_end":1899,"src_start":1765},{"artifact":1,"gen_end":2869,"gen_start":2867,"node":7,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2875,"gen_start":2870,"node":7,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2885,"gen_start":2876,"node":7,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2888,"gen_start":2886,"node":7,"role":"renderer","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2891,"gen_start":2888,"node":7,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2893,"gen_start":2892,"node":7,"role":"renderer","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2896,"gen_start":2894,"node":7,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2898,"gen_start":2896,"node":7,"role":"renderer","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2899,"gen_start":2898,"node":7,"role":"proof","source":0,"src_end":2114,"src_start":1902},{"artifact":1,"gen_end":2907,"gen_start":2900,"node":7,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2911,"gen_start":2908,"node":7,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2916,"gen_start":2912,"node":7,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2922,"gen_start":2917,"node":7,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2925,"gen_start":2923,"node":7,"role":"renderer","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2936,"gen_start":2925,"node":7,"role":"renderer","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2939,"gen_start":2937,"node":7,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2941,"gen_start":2939,"node":7,"role":"renderer","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2942,"gen_start":2941,"node":7,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2945,"gen_start":2943,"node":7,"role":"renderer","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2956,"gen_start":2945,"node":7,"role":"renderer","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2959,"gen_start":2957,"node":7,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2961,"gen_start":2959,"node":7,"role":"renderer","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2962,"gen_start":2961,"node":7,"role":"proof","source":0,"src_end":2021,"src_start":1954},{"artifact":1,"gen_end":2966,"gen_start":2963,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":2971,"gen_start":2967,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":2979,"gen_start":2972,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":2984,"gen_start":2980,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":2987,"gen_start":2985,"node":7,"role":"renderer","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":2994,"gen_start":2987,"node":7,"role":"renderer","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":2995,"gen_start":2994,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3010,"gen_start":2995,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3011,"gen_start":3010,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3012,"gen_start":3011,"node":7,"role":"renderer","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3014,"gen_start":3012,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3015,"gen_start":3014,"node":7,"role":"renderer","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3018,"gen_start":3016,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3019,"gen_start":3018,"node":7,"role":"renderer","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3021,"gen_start":3020,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3022,"gen_start":3021,"node":7,"role":"renderer","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3024,"gen_start":3022,"node":7,"role":"renderer","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3025,"gen_start":3024,"node":7,"role":"proof","source":0,"src_end":2087,"src_start":2024},{"artifact":1,"gen_end":3028,"gen_start":3026,"node":7,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3034,"gen_start":3029,"node":7,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3044,"gen_start":3035,"node":7,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3047,"gen_start":3045,"node":7,"role":"renderer","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3050,"gen_start":3047,"node":7,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3052,"gen_start":3051,"node":7,"role":"renderer","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3055,"gen_start":3053,"node":7,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3057,"gen_start":3055,"node":7,"role":"renderer","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3058,"gen_start":3057,"node":7,"role":"proof","source":0,"src_end":2339,"src_start":2117},{"artifact":1,"gen_end":3066,"gen_start":3059,"node":7,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3070,"gen_start":3067,"node":7,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3075,"gen_start":3071,"node":7,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3081,"gen_start":3076,"node":7,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3084,"gen_start":3082,"node":7,"role":"renderer","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3095,"gen_start":3084,"node":7,"role":"renderer","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3098,"gen_start":3096,"node":7,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3100,"gen_start":3098,"node":7,"role":"renderer","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3101,"gen_start":3100,"node":7,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3104,"gen_start":3102,"node":7,"role":"renderer","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3115,"gen_start":3104,"node":7,"role":"renderer","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3118,"gen_start":3116,"node":7,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3120,"gen_start":3118,"node":7,"role":"renderer","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3121,"gen_start":3120,"node":7,"role":"proof","source":0,"src_end":2236,"src_start":2169},{"artifact":1,"gen_end":3125,"gen_start":3122,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3130,"gen_start":3126,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3138,"gen_start":3131,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3143,"gen_start":3139,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3146,"gen_start":3144,"node":7,"role":"renderer","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3153,"gen_start":3146,"node":7,"role":"renderer","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3154,"gen_start":3153,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3182,"gen_start":3154,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3183,"gen_start":3182,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3184,"gen_start":3183,"node":7,"role":"renderer","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3186,"gen_start":3184,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3187,"gen_start":3186,"node":7,"role":"renderer","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3190,"gen_start":3188,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3191,"gen_start":3190,"node":7,"role":"renderer","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3193,"gen_start":3191,"node":7,"role":"renderer","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3194,"gen_start":3193,"node":7,"role":"proof","source":0,"src_end":2312,"src_start":2239},{"artifact":1,"gen_end":3197,"gen_start":3195,"node":7,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3203,"gen_start":3198,"node":7,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3213,"gen_start":3204,"node":7,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3216,"gen_start":3214,"node":7,"role":"renderer","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3219,"gen_start":3216,"node":7,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3221,"gen_start":3220,"node":7,"role":"renderer","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3224,"gen_start":3222,"node":7,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3226,"gen_start":3224,"node":7,"role":"renderer","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3227,"gen_start":3226,"node":7,"role":"proof","source":0,"src_end":2554,"src_start":2342},{"artifact":1,"gen_end":3235,"gen_start":3228,"node":7,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3239,"gen_start":3236,"node":7,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3244,"gen_start":3240,"node":7,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3250,"gen_start":3245,"node":7,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3253,"gen_start":3251,"node":7,"role":"renderer","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3264,"gen_start":3253,"node":7,"role":"renderer","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3267,"gen_start":3265,"node":7,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3269,"gen_start":3267,"node":7,"role":"renderer","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3270,"gen_start":3269,"node":7,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3273,"gen_start":3271,"node":7,"role":"renderer","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3284,"gen_start":3273,"node":7,"role":"renderer","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3287,"gen_start":3285,"node":7,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3289,"gen_start":3287,"node":7,"role":"renderer","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3290,"gen_start":3289,"node":7,"role":"proof","source":0,"src_end":2461,"src_start":2394},{"artifact":1,"gen_end":3294,"gen_start":3291,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3299,"gen_start":3295,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3307,"gen_start":3300,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3312,"gen_start":3308,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3315,"gen_start":3313,"node":7,"role":"renderer","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3322,"gen_start":3315,"node":7,"role":"renderer","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3323,"gen_start":3322,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3338,"gen_start":3323,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3339,"gen_start":3338,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3340,"gen_start":3339,"node":7,"role":"renderer","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3342,"gen_start":3340,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3343,"gen_start":3342,"node":7,"role":"renderer","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3346,"gen_start":3344,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3347,"gen_start":3346,"node":7,"role":"renderer","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3349,"gen_start":3348,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3350,"gen_start":3349,"node":7,"role":"renderer","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3352,"gen_start":3350,"node":7,"role":"renderer","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3353,"gen_start":3352,"node":7,"role":"proof","source":0,"src_end":2527,"src_start":2464},{"artifact":1,"gen_end":3356,"gen_start":3354,"node":7,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3362,"gen_start":3357,"node":7,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3372,"gen_start":3363,"node":7,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3375,"gen_start":3373,"node":7,"role":"renderer","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3378,"gen_start":3375,"node":7,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3380,"gen_start":3379,"node":7,"role":"renderer","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3383,"gen_start":3381,"node":7,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3385,"gen_start":3383,"node":7,"role":"renderer","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3386,"gen_start":3385,"node":7,"role":"proof","source":0,"src_end":2802,"src_start":2557},{"artifact":1,"gen_end":3394,"gen_start":3387,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3398,"gen_start":3395,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3403,"gen_start":3399,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3409,"gen_start":3404,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3412,"gen_start":3410,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3423,"gen_start":3412,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3426,"gen_start":3424,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3428,"gen_start":3426,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3429,"gen_start":3428,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3432,"gen_start":3430,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3443,"gen_start":3432,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3447,"gen_start":3444,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3449,"gen_start":3447,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3450,"gen_start":3449,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3453,"gen_start":3451,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3464,"gen_start":3453,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3467,"gen_start":3465,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3469,"gen_start":3467,"node":7,"role":"renderer","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3470,"gen_start":3469,"node":7,"role":"proof","source":0,"src_end":2692,"src_start":2609},{"artifact":1,"gen_end":3474,"gen_start":3471,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3479,"gen_start":3475,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3487,"gen_start":3480,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3492,"gen_start":3488,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3495,"gen_start":3493,"node":7,"role":"renderer","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3502,"gen_start":3495,"node":7,"role":"renderer","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3503,"gen_start":3502,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3535,"gen_start":3503,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3536,"gen_start":3535,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3537,"gen_start":3536,"node":7,"role":"renderer","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3539,"gen_start":3537,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3540,"gen_start":3539,"node":7,"role":"renderer","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3543,"gen_start":3541,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3544,"gen_start":3543,"node":7,"role":"renderer","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3546,"gen_start":3545,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3547,"gen_start":3546,"node":7,"role":"renderer","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3549,"gen_start":3547,"node":7,"role":"renderer","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3550,"gen_start":3549,"node":7,"role":"proof","source":0,"src_end":2775,"src_start":2695},{"artifact":1,"gen_end":3553,"gen_start":3551,"node":7,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3559,"gen_start":3554,"node":7,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3569,"gen_start":3560,"node":7,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3572,"gen_start":3570,"node":7,"role":"renderer","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3574,"gen_start":3572,"node":7,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3576,"gen_start":3575,"node":7,"role":"renderer","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3578,"gen_start":3577,"node":7,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3580,"gen_start":3578,"node":7,"role":"renderer","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3581,"gen_start":3580,"node":7,"role":"proof","source":0,"src_end":3046,"src_start":2805},{"artifact":1,"gen_end":3589,"gen_start":3582,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3593,"gen_start":3590,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3598,"gen_start":3594,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3604,"gen_start":3599,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3607,"gen_start":3605,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3618,"gen_start":3607,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3621,"gen_start":3619,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3623,"gen_start":3621,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3624,"gen_start":3623,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3627,"gen_start":3625,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3638,"gen_start":3627,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3642,"gen_start":3639,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3644,"gen_start":3642,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3645,"gen_start":3644,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3648,"gen_start":3646,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3659,"gen_start":3648,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3663,"gen_start":3660,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3665,"gen_start":3663,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3666,"gen_start":3665,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3669,"gen_start":3667,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3680,"gen_start":3669,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3683,"gen_start":3681,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3685,"gen_start":3683,"node":7,"role":"renderer","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3686,"gen_start":3685,"node":7,"role":"proof","source":0,"src_end":2953,"src_start":2854},{"artifact":1,"gen_end":3690,"gen_start":3687,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3695,"gen_start":3691,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3703,"gen_start":3696,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3708,"gen_start":3704,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3711,"gen_start":3709,"node":7,"role":"renderer","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3718,"gen_start":3711,"node":7,"role":"renderer","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3719,"gen_start":3718,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3734,"gen_start":3719,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3735,"gen_start":3734,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3736,"gen_start":3735,"node":7,"role":"renderer","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3737,"gen_start":3736,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3738,"gen_start":3737,"node":7,"role":"renderer","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3741,"gen_start":3739,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3742,"gen_start":3741,"node":7,"role":"renderer","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3745,"gen_start":3743,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3746,"gen_start":3745,"node":7,"role":"renderer","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3748,"gen_start":3746,"node":7,"role":"renderer","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3749,"gen_start":3748,"node":7,"role":"proof","source":0,"src_end":3019,"src_start":2956},{"artifact":1,"gen_end":3752,"gen_start":3750,"node":7,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3758,"gen_start":3753,"node":7,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3768,"gen_start":3759,"node":7,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3771,"gen_start":3769,"node":7,"role":"renderer","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3773,"gen_start":3771,"node":7,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3775,"gen_start":3774,"node":7,"role":"renderer","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3777,"gen_start":3776,"node":7,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3779,"gen_start":3777,"node":7,"role":"renderer","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3780,"gen_start":3779,"node":7,"role":"proof","source":0,"src_end":3299,"src_start":3049},{"artifact":1,"gen_end":3788,"gen_start":3781,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3792,"gen_start":3789,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3797,"gen_start":3793,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3803,"gen_start":3798,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3806,"gen_start":3804,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3817,"gen_start":3806,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3820,"gen_start":3818,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3822,"gen_start":3820,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3823,"gen_start":3822,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3826,"gen_start":3824,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3837,"gen_start":3826,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3841,"gen_start":3838,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3843,"gen_start":3841,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3844,"gen_start":3843,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3847,"gen_start":3845,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3858,"gen_start":3847,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3862,"gen_start":3859,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3864,"gen_start":3862,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3865,"gen_start":3864,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3868,"gen_start":3866,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3879,"gen_start":3868,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3882,"gen_start":3880,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3884,"gen_start":3882,"node":7,"role":"renderer","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3885,"gen_start":3884,"node":7,"role":"proof","source":0,"src_end":3197,"src_start":3098},{"artifact":1,"gen_end":3889,"gen_start":3886,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3894,"gen_start":3890,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3902,"gen_start":3895,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3907,"gen_start":3903,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3910,"gen_start":3908,"node":7,"role":"renderer","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3917,"gen_start":3910,"node":7,"role":"renderer","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3918,"gen_start":3917,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3946,"gen_start":3918,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3947,"gen_start":3946,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3948,"gen_start":3947,"node":7,"role":"renderer","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3949,"gen_start":3948,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3950,"gen_start":3949,"node":7,"role":"renderer","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3953,"gen_start":3951,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3954,"gen_start":3953,"node":7,"role":"renderer","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3956,"gen_start":3954,"node":7,"role":"renderer","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3957,"gen_start":3956,"node":7,"role":"proof","source":0,"src_end":3272,"src_start":3200},{"artifact":1,"gen_end":3960,"gen_start":3958,"node":7,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3966,"gen_start":3961,"node":7,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3976,"gen_start":3967,"node":7,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3979,"gen_start":3977,"node":7,"role":"renderer","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3981,"gen_start":3979,"node":7,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3983,"gen_start":3982,"node":7,"role":"renderer","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3985,"gen_start":3984,"node":7,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3987,"gen_start":3985,"node":7,"role":"renderer","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3988,"gen_start":3987,"node":7,"role":"proof","source":0,"src_end":3543,"src_start":3302},{"artifact":1,"gen_end":3996,"gen_start":3989,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4000,"gen_start":3997,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4005,"gen_start":4001,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4011,"gen_start":4006,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4014,"gen_start":4012,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4025,"gen_start":4014,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4028,"gen_start":4026,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4030,"gen_start":4028,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4031,"gen_start":4030,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4034,"gen_start":4032,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4045,"gen_start":4034,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4049,"gen_start":4046,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4051,"gen_start":4049,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4052,"gen_start":4051,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4055,"gen_start":4053,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4066,"gen_start":4055,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4070,"gen_start":4067,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4072,"gen_start":4070,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4073,"gen_start":4072,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4076,"gen_start":4074,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4087,"gen_start":4076,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4090,"gen_start":4088,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4092,"gen_start":4090,"node":7,"role":"renderer","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4093,"gen_start":4092,"node":7,"role":"proof","source":0,"src_end":3450,"src_start":3351},{"artifact":1,"gen_end":4097,"gen_start":4094,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4102,"gen_start":4098,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4110,"gen_start":4103,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4115,"gen_start":4111,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4118,"gen_start":4116,"node":7,"role":"renderer","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4125,"gen_start":4118,"node":7,"role":"renderer","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4126,"gen_start":4125,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4141,"gen_start":4126,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4142,"gen_start":4141,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4143,"gen_start":4142,"node":7,"role":"renderer","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4144,"gen_start":4143,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4145,"gen_start":4144,"node":7,"role":"renderer","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4148,"gen_start":4146,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4149,"gen_start":4148,"node":7,"role":"renderer","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4152,"gen_start":4150,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4153,"gen_start":4152,"node":7,"role":"renderer","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4155,"gen_start":4153,"node":7,"role":"renderer","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4156,"gen_start":4155,"node":7,"role":"proof","source":0,"src_end":3516,"src_start":3453},{"artifact":1,"gen_end":4159,"gen_start":4157,"node":7,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4165,"gen_start":4160,"node":7,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4175,"gen_start":4166,"node":7,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4178,"gen_start":4176,"node":7,"role":"renderer","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4180,"gen_start":4178,"node":7,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4182,"gen_start":4181,"node":7,"role":"renderer","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4184,"gen_start":4183,"node":7,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4186,"gen_start":4184,"node":7,"role":"renderer","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4187,"gen_start":4186,"node":7,"role":"proof","source":0,"src_end":3801,"src_start":3546},{"artifact":1,"gen_end":4195,"gen_start":4188,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4199,"gen_start":4196,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4204,"gen_start":4200,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4210,"gen_start":4205,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4213,"gen_start":4211,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4224,"gen_start":4213,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4227,"gen_start":4225,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4229,"gen_start":4227,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4230,"gen_start":4229,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4233,"gen_start":4231,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4244,"gen_start":4233,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4248,"gen_start":4245,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4250,"gen_start":4248,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4251,"gen_start":4250,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4254,"gen_start":4252,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4265,"gen_start":4254,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4268,"gen_start":4266,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4270,"gen_start":4268,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4271,"gen_start":4270,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4274,"gen_start":4272,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4285,"gen_start":4274,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4288,"gen_start":4286,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4290,"gen_start":4288,"node":7,"role":"renderer","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4291,"gen_start":4290,"node":7,"role":"proof","source":0,"src_end":3693,"src_start":3595},{"artifact":1,"gen_end":4295,"gen_start":4292,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4300,"gen_start":4296,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4308,"gen_start":4301,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4313,"gen_start":4309,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4316,"gen_start":4314,"node":7,"role":"renderer","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4323,"gen_start":4316,"node":7,"role":"renderer","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4324,"gen_start":4323,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4356,"gen_start":4324,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4357,"gen_start":4356,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4358,"gen_start":4357,"node":7,"role":"renderer","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4359,"gen_start":4358,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4360,"gen_start":4359,"node":7,"role":"renderer","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4362,"gen_start":4361,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4363,"gen_start":4362,"node":7,"role":"renderer","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4365,"gen_start":4364,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4366,"gen_start":4365,"node":7,"role":"renderer","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4368,"gen_start":4366,"node":7,"role":"renderer","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4369,"gen_start":4368,"node":7,"role":"proof","source":0,"src_end":3774,"src_start":3696},{"artifact":1,"gen_end":4376,"gen_start":4370,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4379,"gen_start":4377,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4380,"gen_start":4379,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4382,"gen_start":4380,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4383,"gen_start":4382,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4390,"gen_start":4384,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4391,"gen_start":4390,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4396,"gen_start":4391,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4397,"gen_start":4396,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4404,"gen_start":4398,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4407,"gen_start":4405,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4408,"gen_start":4407,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4410,"gen_start":4408,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4411,"gen_start":4410,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4418,"gen_start":4412,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4419,"gen_start":4418,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4424,"gen_start":4419,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4425,"gen_start":4424,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4432,"gen_start":4426,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4435,"gen_start":4433,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4436,"gen_start":4435,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4438,"gen_start":4436,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4439,"gen_start":4438,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4446,"gen_start":4440,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4447,"gen_start":4446,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4452,"gen_start":4447,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4453,"gen_start":4452,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4457,"gen_start":4454,"node":7,"role":"proof","source":0,"src_end":3957,"src_start":3930},{"artifact":1,"gen_end":4462,"gen_start":4458,"node":7,"role":"proof","source":0,"src_end":3957,"src_start":3930},{"artifact":1,"gen_end":4470,"gen_start":4463,"node":7,"role":"proof","source":0,"src_end":3957,"src_start":3930},{"artifact":1,"gen_end":4475,"gen_start":4471,"node":7,"role":"proof","source":0,"src_end":3957,"src_start":3930},{"artifact":1,"gen_end":4478,"gen_start":4476,"node":7,"role":"renderer","source":0,"src_end":3957,"src_start":3930},{"artifact":1,"gen_end":4480,"gen_start":4478,"node":7,"role":"proof","source":0,"src_end":3957,"src_start":3930},{"artifact":1,"gen_end":4482,"gen_start":4480,"node":7,"role":"renderer","source":0,"src_end":3957,"src_start":3930},{"artifact":1,"gen_end":4483,"gen_start":4482,"node":7,"role":"proof","source":0,"src_end":3957,"src_start":3930},{"artifact":1,"gen_end":4488,"gen_start":4484,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4489,"gen_start":4488,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4494,"gen_start":4489,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4495,"gen_start":4494,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4502,"gen_start":4496,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4505,"gen_start":4503,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4506,"gen_start":4505,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4508,"gen_start":4506,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4509,"gen_start":4508,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4516,"gen_start":4510,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4517,"gen_start":4516,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4522,"gen_start":4517,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4523,"gen_start":4522,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4527,"gen_start":4524,"node":7,"role":"proof","source":0,"src_end":4022,"src_start":3995},{"artifact":1,"gen_end":4532,"gen_start":4528,"node":7,"role":"proof","source":0,"src_end":4022,"src_start":3995},{"artifact":1,"gen_end":4540,"gen_start":4533,"node":7,"role":"proof","source":0,"src_end":4022,"src_start":3995},{"artifact":1,"gen_end":4545,"gen_start":4541,"node":7,"role":"proof","source":0,"src_end":4022,"src_start":3995},{"artifact":1,"gen_end":4548,"gen_start":4546,"node":7,"role":"renderer","source":0,"src_end":4022,"src_start":3995},{"artifact":1,"gen_end":4550,"gen_start":4548,"node":7,"role":"proof","source":0,"src_end":4022,"src_start":3995},{"artifact":1,"gen_end":4552,"gen_start":4550,"node":7,"role":"renderer","source":0,"src_end":4022,"src_start":3995},{"artifact":1,"gen_end":4553,"gen_start":4552,"node":7,"role":"proof","source":0,"src_end":4022,"src_start":3995},{"artifact":1,"gen_end":4558,"gen_start":4554,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4559,"gen_start":4558,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4564,"gen_start":4559,"node":7,"role":"renderer","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4565,"gen_start":4564,"node":7,"role":"proof","source":0,"src_end":4057,"src_start":3888},{"artifact":1,"gen_end":4570,"gen_start":4566,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4571,"gen_start":4570,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4576,"gen_start":4571,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4577,"gen_start":4576,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4584,"gen_start":4578,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4587,"gen_start":4585,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4588,"gen_start":4587,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4590,"gen_start":4588,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4591,"gen_start":4590,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4598,"gen_start":4592,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4599,"gen_start":4598,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4604,"gen_start":4599,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4605,"gen_start":4604,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4609,"gen_start":4606,"node":7,"role":"proof","source":0,"src_end":4122,"src_start":4095},{"artifact":1,"gen_end":4614,"gen_start":4610,"node":7,"role":"proof","source":0,"src_end":4122,"src_start":4095},{"artifact":1,"gen_end":4622,"gen_start":4615,"node":7,"role":"proof","source":0,"src_end":4122,"src_start":4095},{"artifact":1,"gen_end":4627,"gen_start":4623,"node":7,"role":"proof","source":0,"src_end":4122,"src_start":4095},{"artifact":1,"gen_end":4630,"gen_start":4628,"node":7,"role":"renderer","source":0,"src_end":4122,"src_start":4095},{"artifact":1,"gen_end":4632,"gen_start":4630,"node":7,"role":"proof","source":0,"src_end":4122,"src_start":4095},{"artifact":1,"gen_end":4634,"gen_start":4632,"node":7,"role":"renderer","source":0,"src_end":4122,"src_start":4095},{"artifact":1,"gen_end":4635,"gen_start":4634,"node":7,"role":"proof","source":0,"src_end":4122,"src_start":4095},{"artifact":1,"gen_end":4640,"gen_start":4636,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4641,"gen_start":4640,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4646,"gen_start":4641,"node":7,"role":"renderer","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4647,"gen_start":4646,"node":7,"role":"proof","source":0,"src_end":4157,"src_start":3846},{"artifact":1,"gen_end":4652,"gen_start":4648,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4653,"gen_start":4652,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4658,"gen_start":4653,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4659,"gen_start":4658,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4666,"gen_start":4660,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4669,"gen_start":4667,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4670,"gen_start":4669,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4672,"gen_start":4670,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4673,"gen_start":4672,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4680,"gen_start":4674,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4681,"gen_start":4680,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4686,"gen_start":4681,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4687,"gen_start":4686,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4691,"gen_start":4688,"node":7,"role":"proof","source":0,"src_end":4222,"src_start":4195},{"artifact":1,"gen_end":4696,"gen_start":4692,"node":7,"role":"proof","source":0,"src_end":4222,"src_start":4195},{"artifact":1,"gen_end":4704,"gen_start":4697,"node":7,"role":"proof","source":0,"src_end":4222,"src_start":4195},{"artifact":1,"gen_end":4709,"gen_start":4705,"node":7,"role":"proof","source":0,"src_end":4222,"src_start":4195},{"artifact":1,"gen_end":4712,"gen_start":4710,"node":7,"role":"renderer","source":0,"src_end":4222,"src_start":4195},{"artifact":1,"gen_end":4714,"gen_start":4712,"node":7,"role":"proof","source":0,"src_end":4222,"src_start":4195},{"artifact":1,"gen_end":4716,"gen_start":4714,"node":7,"role":"renderer","source":0,"src_end":4222,"src_start":4195},{"artifact":1,"gen_end":4717,"gen_start":4716,"node":7,"role":"proof","source":0,"src_end":4222,"src_start":4195},{"artifact":1,"gen_end":4722,"gen_start":4718,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4723,"gen_start":4722,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4728,"gen_start":4723,"node":7,"role":"renderer","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4729,"gen_start":4728,"node":7,"role":"proof","source":0,"src_end":4257,"src_start":3804},{"artifact":1,"gen_end":4734,"gen_start":4730,"node":7,"role":"renderer","source":0,"src_end":4287,"src_start":1749},{"artifact":1,"gen_end":4735,"gen_start":4734,"node":7,"role":"proof","source":0,"src_end":4287,"src_start":1749},{"artifact":1,"gen_end":4740,"gen_start":4735,"node":7,"role":"renderer","source":0,"src_end":4287,"src_start":1749},{"artifact":1,"gen_end":4741,"gen_start":4740,"node":7,"role":"proof","source":0,"src_end":4287,"src_start":1749},{"artifact":1,"gen_end":4746,"gen_start":4742,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":4747,"gen_start":4746,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":4755,"gen_start":4747,"node":8,"role":"synthetic","source":2},{"artifact":1,"gen_end":4756,"gen_start":4755,"node":8,"role":"synthetic","source":2}],"module":"Mixing","nodes":[{"id":0,"kind":"lean-preamble"},{"id":1,"kind":"declaration"},{"id":2,"kind":"lean-preamble"},{"id":3,"kind":"latex-preamble"},{"id":4,"kind":"title"},{"id":5,"kind":"section"},{"id":6,"kind":"declaration"},{"id":7,"kind":"proof"},{"id":8,"kind":"latex-preamble"}],"semantic_id":"57cec83963c5622a5bae3275babaf48f93ce430bff2f10c5e1ce0c64ab840c33","source_id":"792708753ed7f56107cfaf6ad5bd3463e9d55cbe68f90fb7f24e18b74b91a23e","sources":[{"id":0,"kind":"file","path":"src/Mixing.lex.tex","sha256":"877f09c3dc757d1a489d04484539b384044e2fddab458fc67454a6fbb560273d"},{"id":1,"kind":"synthetic","origin":"core:lean-preamble/1"},{"id":2,"kind":"synthetic","origin":"core:latex-preamble/1"},{"id":3,"kind":"synthetic","origin":"core:latex-structure/1"}],"spec":"lexlean/source-map/1"} diff --git a/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Rotation.map.json b/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Rotation.map.json new file mode 100644 index 0000000000..742fba9f13 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/maps/MathlibBlake3G/Rotation.map.json @@ -0,0 +1 @@ +{"artifacts":[{"id":0,"kind":"lean","path":"modules/MathlibBlake3G/Rotation.lean"},{"id":1,"kind":"tex","path":"modules/MathlibBlake3G/Rotation.tex"}],"mappings":[{"artifact":0,"gen_end":6,"gen_start":0,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":13,"gen_start":7,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":20,"gen_start":14,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":32,"gen_start":21,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":39,"gen_start":33,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":46,"gen_start":40,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":69,"gen_start":47,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":76,"gen_start":70,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":83,"gen_start":77,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":96,"gen_start":84,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":103,"gen_start":97,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":110,"gen_start":104,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":138,"gen_start":111,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":149,"gen_start":139,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":162,"gen_start":150,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":168,"gen_start":163,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":178,"gen_start":169,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":202,"gen_start":179,"node":0,"role":"synthetic","source":1},{"artifact":0,"gen_end":210,"gen_start":204,"node":1,"role":"declaration","source":0,"src_end":1161,"src_start":181},{"artifact":0,"gen_end":218,"gen_start":211,"node":1,"role":"declaration","source":0,"src_end":1161,"src_start":181},{"artifact":0,"gen_end":236,"gen_start":219,"node":1,"role":"declaration","source":0,"src_end":1161,"src_start":181},{"artifact":0,"gen_end":238,"gen_start":237,"node":1,"role":"binder","source":0,"src_end":281,"src_start":280},{"artifact":0,"gen_end":242,"gen_start":238,"node":1,"role":"binder","source":0,"src_end":281,"src_start":280},{"artifact":0,"gen_end":244,"gen_start":243,"node":1,"role":"binder","source":0,"src_end":281,"src_start":280},{"artifact":0,"gen_end":251,"gen_start":245,"node":1,"role":"binder","source":0,"src_end":281,"src_start":280},{"artifact":0,"gen_end":254,"gen_start":252,"node":1,"role":"binder","source":0,"src_end":281,"src_start":280},{"artifact":0,"gen_end":255,"gen_start":254,"node":1,"role":"binder","source":0,"src_end":281,"src_start":280},{"artifact":0,"gen_end":257,"gen_start":256,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":261,"gen_start":258,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":263,"gen_start":262,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":266,"gen_start":263,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":268,"gen_start":267,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":271,"gen_start":268,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":273,"gen_start":272,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":275,"gen_start":273,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":277,"gen_start":276,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":294,"gen_start":277,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":296,"gen_start":295,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":314,"gen_start":296,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":319,"gen_start":315,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":321,"gen_start":320,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":322,"gen_start":321,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":324,"gen_start":323,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":325,"gen_start":324,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":330,"gen_start":326,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":331,"gen_start":330,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":333,"gen_start":332,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":335,"gen_start":333,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":337,"gen_start":336,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":354,"gen_start":337,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":356,"gen_start":355,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":374,"gen_start":356,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":379,"gen_start":375,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":381,"gen_start":380,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":382,"gen_start":381,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":384,"gen_start":383,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":385,"gen_start":384,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":390,"gen_start":386,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":391,"gen_start":390,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":392,"gen_start":391,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":394,"gen_start":393,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":396,"gen_start":394,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":398,"gen_start":397,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":415,"gen_start":398,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":417,"gen_start":416,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":435,"gen_start":417,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":440,"gen_start":436,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":443,"gen_start":441,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":444,"gen_start":443,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":447,"gen_start":445,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":448,"gen_start":447,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":453,"gen_start":449,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":454,"gen_start":453,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":455,"gen_start":454,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":457,"gen_start":456,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":459,"gen_start":457,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":461,"gen_start":460,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":478,"gen_start":461,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":480,"gen_start":479,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":498,"gen_start":480,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":503,"gen_start":499,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":506,"gen_start":504,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":507,"gen_start":506,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":510,"gen_start":508,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":511,"gen_start":510,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":516,"gen_start":512,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":517,"gen_start":516,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":520,"gen_start":518,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":523,"gen_start":521,"node":1,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":0,"gen_end":537,"gen_start":526,"node":1,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":0,"gen_end":551,"gen_start":540,"node":1,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":0,"gen_end":565,"gen_start":554,"node":1,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":0,"gen_end":573,"gen_start":568,"node":1,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":0,"gen_end":608,"gen_start":574,"node":1,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":0,"gen_end":613,"gen_start":609,"node":1,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":0,"gen_end":615,"gen_start":614,"node":1,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":0,"gen_end":623,"gen_start":618,"node":1,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":0,"gen_end":658,"gen_start":624,"node":1,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":0,"gen_end":663,"gen_start":659,"node":1,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":0,"gen_end":665,"gen_start":664,"node":1,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":0,"gen_end":673,"gen_start":668,"node":1,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":0,"gen_end":708,"gen_start":674,"node":1,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":0,"gen_end":713,"gen_start":709,"node":1,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":0,"gen_end":716,"gen_start":714,"node":1,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":0,"gen_end":724,"gen_start":719,"node":1,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":0,"gen_end":759,"gen_start":725,"node":1,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":0,"gen_end":764,"gen_start":760,"node":1,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":0,"gen_end":767,"gen_start":765,"node":1,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":0,"gen_end":775,"gen_start":769,"node":2,"role":"declaration","source":0,"src_end":1595,"src_start":1165},{"artifact":0,"gen_end":783,"gen_start":776,"node":2,"role":"declaration","source":0,"src_end":1595,"src_start":1165},{"artifact":0,"gen_end":789,"gen_start":784,"node":2,"role":"declaration","source":0,"src_end":1595,"src_start":1165},{"artifact":0,"gen_end":791,"gen_start":790,"node":2,"role":"binder","source":0,"src_end":1251,"src_start":1250},{"artifact":0,"gen_end":795,"gen_start":791,"node":2,"role":"binder","source":0,"src_end":1251,"src_start":1250},{"artifact":0,"gen_end":797,"gen_start":796,"node":2,"role":"binder","source":0,"src_end":1251,"src_start":1250},{"artifact":0,"gen_end":804,"gen_start":798,"node":2,"role":"binder","source":0,"src_end":1251,"src_start":1250},{"artifact":0,"gen_end":807,"gen_start":805,"node":2,"role":"binder","source":0,"src_end":1251,"src_start":1250},{"artifact":0,"gen_end":808,"gen_start":807,"node":2,"role":"binder","source":0,"src_end":1251,"src_start":1250},{"artifact":0,"gen_end":810,"gen_start":809,"node":2,"role":"binder","source":0,"src_end":1276,"src_start":1275},{"artifact":0,"gen_end":814,"gen_start":810,"node":2,"role":"binder","source":0,"src_end":1276,"src_start":1275},{"artifact":0,"gen_end":816,"gen_start":815,"node":2,"role":"binder","source":0,"src_end":1276,"src_start":1275},{"artifact":0,"gen_end":823,"gen_start":817,"node":2,"role":"binder","source":0,"src_end":1276,"src_start":1275},{"artifact":0,"gen_end":826,"gen_start":824,"node":2,"role":"binder","source":0,"src_end":1276,"src_start":1275},{"artifact":0,"gen_end":827,"gen_start":826,"node":2,"role":"binder","source":0,"src_end":1276,"src_start":1275},{"artifact":0,"gen_end":829,"gen_start":828,"node":2,"role":"binder","source":0,"src_end":1294,"src_start":1293},{"artifact":0,"gen_end":833,"gen_start":829,"node":2,"role":"binder","source":0,"src_end":1294,"src_start":1293},{"artifact":0,"gen_end":835,"gen_start":834,"node":2,"role":"binder","source":0,"src_end":1294,"src_start":1293},{"artifact":0,"gen_end":839,"gen_start":836,"node":2,"role":"binder","source":0,"src_end":1294,"src_start":1293},{"artifact":0,"gen_end":840,"gen_start":839,"node":2,"role":"binder","source":0,"src_end":1294,"src_start":1293},{"artifact":0,"gen_end":842,"gen_start":841,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":845,"gen_start":843,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":847,"gen_start":846,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":856,"gen_start":847,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":858,"gen_start":857,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":875,"gen_start":858,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":877,"gen_start":876,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":895,"gen_start":877,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":897,"gen_start":896,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":906,"gen_start":897,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":911,"gen_start":907,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":916,"gen_start":912,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":917,"gen_start":916,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":922,"gen_start":918,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":923,"gen_start":922,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":928,"gen_start":924,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":929,"gen_start":928,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":934,"gen_start":930,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":935,"gen_start":934,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":940,"gen_start":936,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":943,"gen_start":941,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":946,"gen_start":944,"node":2,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":0,"gen_end":951,"gen_start":949,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":953,"gen_start":952,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":987,"gen_start":953,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":989,"gen_start":988,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":998,"gen_start":989,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":1003,"gen_start":999,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":1008,"gen_start":1004,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":1009,"gen_start":1008,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":1014,"gen_start":1010,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":1015,"gen_start":1014,"node":2,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":0,"gen_end":1023,"gen_start":1018,"node":2,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":0,"gen_end":1062,"gen_start":1024,"node":2,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":0,"gen_end":1067,"gen_start":1063,"node":2,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":0,"gen_end":1072,"gen_start":1068,"node":2,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":0,"gen_end":1077,"gen_start":1074,"node":3,"role":"synthetic","source":1},{"artifact":0,"gen_end":1101,"gen_start":1078,"node":3,"role":"synthetic","source":1},{"artifact":1,"gen_end":14,"gen_start":0,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":15,"gen_start":14,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":19,"gen_start":15,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":20,"gen_start":19,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":21,"gen_start":20,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":28,"gen_start":21,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":29,"gen_start":28,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":41,"gen_start":30,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":42,"gen_start":41,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":44,"gen_start":42,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":45,"gen_start":44,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":46,"gen_start":45,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":53,"gen_start":46,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":54,"gen_start":53,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":66,"gen_start":55,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":67,"gen_start":66,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":74,"gen_start":67,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":75,"gen_start":74,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":87,"gen_start":76,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":88,"gen_start":87,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":95,"gen_start":88,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":96,"gen_start":95,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":108,"gen_start":97,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":109,"gen_start":108,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":115,"gen_start":109,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":116,"gen_start":115,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":128,"gen_start":117,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":129,"gen_start":128,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":138,"gen_start":129,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":139,"gen_start":138,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":140,"gen_start":139,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":148,"gen_start":140,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":149,"gen_start":148,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":161,"gen_start":150,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":162,"gen_start":161,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":169,"gen_start":162,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":170,"gen_start":169,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":171,"gen_start":170,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":178,"gen_start":171,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":179,"gen_start":178,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":180,"gen_start":179,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":187,"gen_start":180,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":188,"gen_start":187,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":200,"gen_start":189,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":201,"gen_start":200,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":206,"gen_start":201,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":207,"gen_start":206,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":208,"gen_start":207,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":215,"gen_start":208,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":216,"gen_start":215,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":217,"gen_start":216,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":222,"gen_start":217,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":223,"gen_start":222,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":235,"gen_start":224,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":236,"gen_start":235,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":245,"gen_start":236,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":246,"gen_start":245,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":247,"gen_start":246,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":254,"gen_start":247,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":255,"gen_start":254,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":256,"gen_start":255,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":265,"gen_start":256,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":266,"gen_start":265,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":280,"gen_start":267,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":281,"gen_start":280,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":291,"gen_start":281,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":292,"gen_start":291,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":304,"gen_start":293,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":305,"gen_start":304,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":315,"gen_start":305,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":316,"gen_start":315,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":317,"gen_start":316,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":324,"gen_start":317,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":325,"gen_start":324,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":326,"gen_start":325,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":336,"gen_start":326,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":337,"gen_start":336,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":344,"gen_start":338,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":345,"gen_start":344,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":353,"gen_start":345,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":354,"gen_start":353,"node":4,"role":"synthetic","source":2},{"artifact":1,"gen_end":361,"gen_start":355,"node":5,"role":"renderer","source":3},{"artifact":1,"gen_end":362,"gen_start":361,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":368,"gen_start":362,"node":5,"role":"renderer","source":3},{"artifact":1,"gen_end":369,"gen_start":368,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":371,"gen_start":370,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":377,"gen_start":371,"node":5,"role":"renderer","source":3},{"artifact":1,"gen_end":386,"gen_start":378,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":387,"gen_start":386,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":392,"gen_start":388,"node":5,"role":"renderer","source":3},{"artifact":1,"gen_end":393,"gen_start":392,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":399,"gen_start":393,"node":5,"role":"renderer","source":3},{"artifact":1,"gen_end":400,"gen_start":399,"node":5,"role":"structure","source":3},{"artifact":1,"gen_end":409,"gen_start":401,"node":6,"role":"renderer","source":3},{"artifact":1,"gen_end":410,"gen_start":409,"node":6,"role":"structure","source":3},{"artifact":1,"gen_end":418,"gen_start":410,"node":6,"role":"structure","source":3},{"artifact":1,"gen_end":419,"gen_start":418,"node":6,"role":"structure","source":3},{"artifact":1,"gen_end":426,"gen_start":420,"node":6,"role":"renderer","source":3},{"artifact":1,"gen_end":427,"gen_start":426,"node":6,"role":"structure","source":3},{"artifact":1,"gen_end":447,"gen_start":427,"node":6,"role":"structure","source":3},{"artifact":1,"gen_end":448,"gen_start":447,"node":6,"role":"structure","source":3},{"artifact":1,"gen_end":455,"gen_start":449,"node":7,"role":"renderer","source":0,"src_end":1161,"src_start":181},{"artifact":1,"gen_end":456,"gen_start":455,"node":7,"role":"structure","source":0,"src_end":1161,"src_start":181},{"artifact":1,"gen_end":463,"gen_start":456,"node":7,"role":"renderer","source":0,"src_end":1161,"src_start":181},{"artifact":1,"gen_end":464,"gen_start":463,"node":7,"role":"structure","source":0,"src_end":1161,"src_start":181},{"artifact":1,"gen_end":471,"gen_start":465,"node":7,"role":"renderer","source":0,"src_end":1161,"src_start":181},{"artifact":1,"gen_end":472,"gen_start":471,"node":7,"role":"structure","source":0,"src_end":1161,"src_start":181},{"artifact":1,"gen_end":501,"gen_start":472,"node":7,"role":"structure","source":0,"src_end":1161,"src_start":181},{"artifact":1,"gen_end":502,"gen_start":501,"node":7,"role":"structure","source":0,"src_end":1161,"src_start":181},{"artifact":1,"gen_end":506,"gen_start":503,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":512,"gen_start":507,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":515,"gen_start":513,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":528,"gen_start":515,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":529,"gen_start":528,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":535,"gen_start":529,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":536,"gen_start":535,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":537,"gen_start":536,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":539,"gen_start":537,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":540,"gen_start":539,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":542,"gen_start":540,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":545,"gen_start":543,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":546,"gen_start":545,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":548,"gen_start":546,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":549,"gen_start":548,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":552,"gen_start":550,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":565,"gen_start":552,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":566,"gen_start":565,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":582,"gen_start":566,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":583,"gen_start":582,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":584,"gen_start":583,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":597,"gen_start":584,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":598,"gen_start":597,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":615,"gen_start":598,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":616,"gen_start":615,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":617,"gen_start":616,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":618,"gen_start":617,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":619,"gen_start":618,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":621,"gen_start":620,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":622,"gen_start":621,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":623,"gen_start":622,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":625,"gen_start":624,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":626,"gen_start":625,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":628,"gen_start":627,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":630,"gen_start":629,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":632,"gen_start":630,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":636,"gen_start":633,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":639,"gen_start":637,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":652,"gen_start":639,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":653,"gen_start":652,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":669,"gen_start":653,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":670,"gen_start":669,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":671,"gen_start":670,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":684,"gen_start":671,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":685,"gen_start":684,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":702,"gen_start":685,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":703,"gen_start":702,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":704,"gen_start":703,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":705,"gen_start":704,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":706,"gen_start":705,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":708,"gen_start":707,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":709,"gen_start":708,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":710,"gen_start":709,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":712,"gen_start":711,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":713,"gen_start":712,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":715,"gen_start":714,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":717,"gen_start":716,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":719,"gen_start":717,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":723,"gen_start":720,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":726,"gen_start":724,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":739,"gen_start":726,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":740,"gen_start":739,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":756,"gen_start":740,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":757,"gen_start":756,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":758,"gen_start":757,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":771,"gen_start":758,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":772,"gen_start":771,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":789,"gen_start":772,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":790,"gen_start":789,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":791,"gen_start":790,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":792,"gen_start":791,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":793,"gen_start":792,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":796,"gen_start":794,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":797,"gen_start":796,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":798,"gen_start":797,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":801,"gen_start":799,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":802,"gen_start":801,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":804,"gen_start":803,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":806,"gen_start":805,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":808,"gen_start":806,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":812,"gen_start":809,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":815,"gen_start":813,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":828,"gen_start":815,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":829,"gen_start":828,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":845,"gen_start":829,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":846,"gen_start":845,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":847,"gen_start":846,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":860,"gen_start":847,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":861,"gen_start":860,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":878,"gen_start":861,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":879,"gen_start":878,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":880,"gen_start":879,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":881,"gen_start":880,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":882,"gen_start":881,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":885,"gen_start":883,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":886,"gen_start":885,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":887,"gen_start":886,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":890,"gen_start":888,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":891,"gen_start":890,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":893,"gen_start":892,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":895,"gen_start":894,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":897,"gen_start":895,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":898,"gen_start":897,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":903,"gen_start":899,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":904,"gen_start":903,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":911,"gen_start":904,"node":7,"role":"renderer","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":912,"gen_start":911,"node":7,"role":"term","source":0,"src_end":513,"src_start":253},{"artifact":1,"gen_end":919,"gen_start":913,"node":8,"role":"renderer","source":0,"src_end":1161,"src_start":516},{"artifact":1,"gen_end":920,"gen_start":919,"node":8,"role":"proof","source":0,"src_end":1161,"src_start":516},{"artifact":1,"gen_end":925,"gen_start":920,"node":8,"role":"renderer","source":0,"src_end":1161,"src_start":516},{"artifact":1,"gen_end":926,"gen_start":925,"node":8,"role":"proof","source":0,"src_end":1161,"src_start":516},{"artifact":1,"gen_end":933,"gen_start":927,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":936,"gen_start":934,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":937,"gen_start":936,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":939,"gen_start":937,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":940,"gen_start":939,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":947,"gen_start":941,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":948,"gen_start":947,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":953,"gen_start":948,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":954,"gen_start":953,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":961,"gen_start":955,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":964,"gen_start":962,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":965,"gen_start":964,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":967,"gen_start":965,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":968,"gen_start":967,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":975,"gen_start":969,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":976,"gen_start":975,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":981,"gen_start":976,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":982,"gen_start":981,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":989,"gen_start":983,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":992,"gen_start":990,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":993,"gen_start":992,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":995,"gen_start":993,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":996,"gen_start":995,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1003,"gen_start":997,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1004,"gen_start":1003,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1009,"gen_start":1004,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1010,"gen_start":1009,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1014,"gen_start":1011,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1019,"gen_start":1015,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1027,"gen_start":1020,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1032,"gen_start":1028,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1035,"gen_start":1033,"node":8,"role":"renderer","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1048,"gen_start":1035,"node":8,"role":"renderer","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1049,"gen_start":1048,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1081,"gen_start":1049,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1082,"gen_start":1081,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1083,"gen_start":1082,"node":8,"role":"renderer","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1084,"gen_start":1083,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1085,"gen_start":1084,"node":8,"role":"renderer","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1087,"gen_start":1086,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1088,"gen_start":1087,"node":8,"role":"renderer","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1090,"gen_start":1088,"node":8,"role":"renderer","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1091,"gen_start":1090,"node":8,"role":"proof","source":0,"src_end":721,"src_start":658},{"artifact":1,"gen_end":1096,"gen_start":1092,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1097,"gen_start":1096,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1102,"gen_start":1097,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1103,"gen_start":1102,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1110,"gen_start":1104,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1113,"gen_start":1111,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1114,"gen_start":1113,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1116,"gen_start":1114,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1117,"gen_start":1116,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1124,"gen_start":1118,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1125,"gen_start":1124,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1130,"gen_start":1125,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1131,"gen_start":1130,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1135,"gen_start":1132,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1140,"gen_start":1136,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1148,"gen_start":1141,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1153,"gen_start":1149,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1156,"gen_start":1154,"node":8,"role":"renderer","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1169,"gen_start":1156,"node":8,"role":"renderer","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1170,"gen_start":1169,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1202,"gen_start":1170,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1203,"gen_start":1202,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1204,"gen_start":1203,"node":8,"role":"renderer","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1205,"gen_start":1204,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1206,"gen_start":1205,"node":8,"role":"renderer","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1208,"gen_start":1207,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1209,"gen_start":1208,"node":8,"role":"renderer","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1211,"gen_start":1209,"node":8,"role":"renderer","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1212,"gen_start":1211,"node":8,"role":"proof","source":0,"src_end":822,"src_start":759},{"artifact":1,"gen_end":1217,"gen_start":1213,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1218,"gen_start":1217,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1223,"gen_start":1218,"node":8,"role":"renderer","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1224,"gen_start":1223,"node":8,"role":"proof","source":0,"src_end":857,"src_start":616},{"artifact":1,"gen_end":1229,"gen_start":1225,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1230,"gen_start":1229,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1235,"gen_start":1230,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1236,"gen_start":1235,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1243,"gen_start":1237,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1246,"gen_start":1244,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1247,"gen_start":1246,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1249,"gen_start":1247,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1250,"gen_start":1249,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1257,"gen_start":1251,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1258,"gen_start":1257,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1263,"gen_start":1258,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1264,"gen_start":1263,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1268,"gen_start":1265,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1273,"gen_start":1269,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1281,"gen_start":1274,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1286,"gen_start":1282,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1289,"gen_start":1287,"node":8,"role":"renderer","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1302,"gen_start":1289,"node":8,"role":"renderer","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1303,"gen_start":1302,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1335,"gen_start":1303,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1336,"gen_start":1335,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1337,"gen_start":1336,"node":8,"role":"renderer","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1338,"gen_start":1337,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1339,"gen_start":1338,"node":8,"role":"renderer","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1342,"gen_start":1340,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1343,"gen_start":1342,"node":8,"role":"renderer","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1345,"gen_start":1343,"node":8,"role":"renderer","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1346,"gen_start":1345,"node":8,"role":"proof","source":0,"src_end":959,"src_start":895},{"artifact":1,"gen_end":1351,"gen_start":1347,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1352,"gen_start":1351,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1357,"gen_start":1352,"node":8,"role":"renderer","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1358,"gen_start":1357,"node":8,"role":"proof","source":0,"src_end":994,"src_start":574},{"artifact":1,"gen_end":1363,"gen_start":1359,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1364,"gen_start":1363,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1369,"gen_start":1364,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1370,"gen_start":1369,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1377,"gen_start":1371,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1380,"gen_start":1378,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1381,"gen_start":1380,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1383,"gen_start":1381,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1384,"gen_start":1383,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1391,"gen_start":1385,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1392,"gen_start":1391,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1397,"gen_start":1392,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1398,"gen_start":1397,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1402,"gen_start":1399,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1407,"gen_start":1403,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1415,"gen_start":1408,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1420,"gen_start":1416,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1423,"gen_start":1421,"node":8,"role":"renderer","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1436,"gen_start":1423,"node":8,"role":"renderer","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1437,"gen_start":1436,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1469,"gen_start":1437,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1470,"gen_start":1469,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1471,"gen_start":1470,"node":8,"role":"renderer","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1472,"gen_start":1471,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1473,"gen_start":1472,"node":8,"role":"renderer","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1476,"gen_start":1474,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1477,"gen_start":1476,"node":8,"role":"renderer","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1479,"gen_start":1477,"node":8,"role":"renderer","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1480,"gen_start":1479,"node":8,"role":"proof","source":0,"src_end":1096,"src_start":1032},{"artifact":1,"gen_end":1485,"gen_start":1481,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1486,"gen_start":1485,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1491,"gen_start":1486,"node":8,"role":"renderer","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1492,"gen_start":1491,"node":8,"role":"proof","source":0,"src_end":1131,"src_start":532},{"artifact":1,"gen_end":1497,"gen_start":1493,"node":8,"role":"renderer","source":0,"src_end":1161,"src_start":516},{"artifact":1,"gen_end":1498,"gen_start":1497,"node":8,"role":"proof","source":0,"src_end":1161,"src_start":516},{"artifact":1,"gen_end":1503,"gen_start":1498,"node":8,"role":"renderer","source":0,"src_end":1161,"src_start":516},{"artifact":1,"gen_end":1504,"gen_start":1503,"node":8,"role":"proof","source":0,"src_end":1161,"src_start":516},{"artifact":1,"gen_end":1511,"gen_start":1505,"node":9,"role":"renderer","source":0,"src_end":1595,"src_start":1165},{"artifact":1,"gen_end":1512,"gen_start":1511,"node":9,"role":"structure","source":0,"src_end":1595,"src_start":1165},{"artifact":1,"gen_end":1517,"gen_start":1512,"node":9,"role":"renderer","source":0,"src_end":1595,"src_start":1165},{"artifact":1,"gen_end":1518,"gen_start":1517,"node":9,"role":"structure","source":0,"src_end":1595,"src_start":1165},{"artifact":1,"gen_end":1525,"gen_start":1519,"node":9,"role":"renderer","source":0,"src_end":1595,"src_start":1165},{"artifact":1,"gen_end":1526,"gen_start":1525,"node":9,"role":"structure","source":0,"src_end":1595,"src_start":1165},{"artifact":1,"gen_end":1543,"gen_start":1526,"node":9,"role":"structure","source":0,"src_end":1595,"src_start":1165},{"artifact":1,"gen_end":1544,"gen_start":1543,"node":9,"role":"structure","source":0,"src_end":1595,"src_start":1165},{"artifact":1,"gen_end":1548,"gen_start":1545,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1554,"gen_start":1549,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1557,"gen_start":1555,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1570,"gen_start":1557,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1571,"gen_start":1570,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1577,"gen_start":1571,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1578,"gen_start":1577,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1579,"gen_start":1578,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1581,"gen_start":1579,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1582,"gen_start":1581,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1584,"gen_start":1582,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1587,"gen_start":1585,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1588,"gen_start":1587,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1590,"gen_start":1588,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1594,"gen_start":1591,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1597,"gen_start":1595,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1610,"gen_start":1597,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1611,"gen_start":1610,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1617,"gen_start":1611,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1618,"gen_start":1617,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1619,"gen_start":1618,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1621,"gen_start":1619,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1622,"gen_start":1621,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1624,"gen_start":1622,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1627,"gen_start":1625,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1628,"gen_start":1627,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1630,"gen_start":1628,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1634,"gen_start":1631,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1637,"gen_start":1635,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1650,"gen_start":1637,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1651,"gen_start":1650,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1654,"gen_start":1651,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1655,"gen_start":1654,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1657,"gen_start":1655,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1660,"gen_start":1658,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1661,"gen_start":1660,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1663,"gen_start":1661,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1664,"gen_start":1663,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1667,"gen_start":1665,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1680,"gen_start":1667,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1681,"gen_start":1680,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1689,"gen_start":1681,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1690,"gen_start":1689,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1691,"gen_start":1690,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1704,"gen_start":1691,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1705,"gen_start":1704,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1721,"gen_start":1705,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1722,"gen_start":1721,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1723,"gen_start":1722,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1736,"gen_start":1723,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1737,"gen_start":1736,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1754,"gen_start":1737,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1755,"gen_start":1754,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1756,"gen_start":1755,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1769,"gen_start":1756,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1770,"gen_start":1769,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1778,"gen_start":1770,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1779,"gen_start":1778,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1780,"gen_start":1779,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1781,"gen_start":1780,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1782,"gen_start":1781,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1784,"gen_start":1783,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1785,"gen_start":1784,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1786,"gen_start":1785,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1788,"gen_start":1787,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1789,"gen_start":1788,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1790,"gen_start":1789,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1792,"gen_start":1791,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1793,"gen_start":1792,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1794,"gen_start":1793,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1796,"gen_start":1795,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1797,"gen_start":1796,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1799,"gen_start":1798,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1801,"gen_start":1800,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1803,"gen_start":1801,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1804,"gen_start":1803,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1809,"gen_start":1805,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1810,"gen_start":1809,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1815,"gen_start":1810,"node":9,"role":"renderer","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1816,"gen_start":1815,"node":9,"role":"term","source":0,"src_end":1377,"src_start":1223},{"artifact":1,"gen_end":1823,"gen_start":1817,"node":10,"role":"renderer","source":0,"src_end":1595,"src_start":1380},{"artifact":1,"gen_end":1824,"gen_start":1823,"node":10,"role":"proof","source":0,"src_end":1595,"src_start":1380},{"artifact":1,"gen_end":1829,"gen_start":1824,"node":10,"role":"renderer","source":0,"src_end":1595,"src_start":1380},{"artifact":1,"gen_end":1830,"gen_start":1829,"node":10,"role":"proof","source":0,"src_end":1595,"src_start":1380},{"artifact":1,"gen_end":1838,"gen_start":1831,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1842,"gen_start":1839,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1847,"gen_start":1843,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1853,"gen_start":1848,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1856,"gen_start":1854,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1867,"gen_start":1856,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1881,"gen_start":1868,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1882,"gen_start":1881,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1914,"gen_start":1882,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1915,"gen_start":1914,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1916,"gen_start":1915,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1929,"gen_start":1916,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1930,"gen_start":1929,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1938,"gen_start":1930,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1939,"gen_start":1938,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1940,"gen_start":1939,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1941,"gen_start":1940,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1942,"gen_start":1941,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1944,"gen_start":1943,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1945,"gen_start":1944,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1946,"gen_start":1945,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1948,"gen_start":1947,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1949,"gen_start":1948,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1951,"gen_start":1949,"node":10,"role":"renderer","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1952,"gen_start":1951,"node":10,"role":"proof","source":0,"src_end":1497,"src_start":1396},{"artifact":1,"gen_end":1956,"gen_start":1953,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":1961,"gen_start":1957,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":1969,"gen_start":1962,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":1974,"gen_start":1970,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":1977,"gen_start":1975,"node":10,"role":"renderer","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":1984,"gen_start":1977,"node":10,"role":"renderer","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":1985,"gen_start":1984,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2009,"gen_start":1985,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2010,"gen_start":2009,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2011,"gen_start":2010,"node":10,"role":"renderer","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2012,"gen_start":2011,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2013,"gen_start":2012,"node":10,"role":"renderer","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2015,"gen_start":2014,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2016,"gen_start":2015,"node":10,"role":"renderer","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2018,"gen_start":2016,"node":10,"role":"renderer","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2019,"gen_start":2018,"node":10,"role":"proof","source":0,"src_end":1567,"src_start":1500},{"artifact":1,"gen_end":2024,"gen_start":2020,"node":10,"role":"renderer","source":0,"src_end":1595,"src_start":1380},{"artifact":1,"gen_end":2025,"gen_start":2024,"node":10,"role":"proof","source":0,"src_end":1595,"src_start":1380},{"artifact":1,"gen_end":2030,"gen_start":2025,"node":10,"role":"renderer","source":0,"src_end":1595,"src_start":1380},{"artifact":1,"gen_end":2031,"gen_start":2030,"node":10,"role":"proof","source":0,"src_end":1595,"src_start":1380},{"artifact":1,"gen_end":2036,"gen_start":2032,"node":11,"role":"synthetic","source":2},{"artifact":1,"gen_end":2037,"gen_start":2036,"node":11,"role":"synthetic","source":2},{"artifact":1,"gen_end":2045,"gen_start":2037,"node":11,"role":"synthetic","source":2},{"artifact":1,"gen_end":2046,"gen_start":2045,"node":11,"role":"synthetic","source":2}],"module":"Rotation","nodes":[{"id":0,"kind":"lean-preamble"},{"id":1,"kind":"declaration"},{"id":2,"kind":"declaration"},{"id":3,"kind":"lean-preamble"},{"id":4,"kind":"latex-preamble"},{"id":5,"kind":"title"},{"id":6,"kind":"section"},{"id":7,"kind":"declaration"},{"id":8,"kind":"proof"},{"id":9,"kind":"declaration"},{"id":10,"kind":"proof"},{"id":11,"kind":"latex-preamble"}],"semantic_id":"57cec83963c5622a5bae3275babaf48f93ce430bff2f10c5e1ce0c64ab840c33","source_id":"792708753ed7f56107cfaf6ad5bd3463e9d55cbe68f90fb7f24e18b74b91a23e","sources":[{"id":0,"kind":"file","path":"src/Rotation.lex.tex","sha256":"fb6120726f4c30cbc62c7746eac00e32232c94477e75d88b2daf9a61df64d5ce"},{"id":1,"kind":"synthetic","origin":"core:lean-preamble/1"},{"id":2,"kind":"synthetic","origin":"core:latex-preamble/1"},{"id":3,"kind":"synthetic","origin":"core:latex-structure/1"}],"spec":"lexlean/source-map/1"} diff --git a/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Cancellation.lean b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Cancellation.lean new file mode 100644 index 0000000000..11e3e8a51d --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Cancellation.lean @@ -0,0 +1,25 @@ +module +public import Blake3GSpecs +public import Init.Prelude +set_option autoImplicit false +namespace MathlibBlake3G.Cancellation + +public theorem add_sub_cancel (llv0 : BitVec 32) (llv1 : BitVec 32) : Eq (HSub.hSub (HAdd.hAdd llv0 llv1) llv1) llv0 := by + exact LexLeanSpec.BitVec32.BitVec.add_sub_cancel llv0 llv1 + +public theorem add_sub_cancel_group (llv0 : BitVec 32) (llv1 : BitVec 32) : Eq (HSub.hSub (HAdd.hAdd llv0 llv1) llv1) llv0 := by + exact LexLeanSpec.BitVec32.add_sub_cancel_right llv0 llv1 + +public theorem add_sub_cancel_u32 (llv0 : UInt32) (llv1 : UInt32) : Eq (HSub.hSub (HAdd.hAdd llv0 llv1) llv1) llv0 := by + exact LexLeanSpec.U32.UInt32.add_sub_cancel llv0 llv1 + +public theorem add_sub_sub_cancel (llv0 : BitVec 32) (llv1 : BitVec 32) (llv2 : BitVec 32) : Eq (HSub.hSub (HSub.hSub (HAdd.hAdd (HAdd.hAdd llv0 llv1) llv2) llv1) llv2) llv0 := by + rw [LexLeanSpec.BitVec32.add_right_comm llv0 llv1 llv2, LexLeanSpec.BitVec32.add_sub_cancel_right (HAdd.hAdd llv0 llv2) llv1, LexLeanSpec.BitVec32.add_sub_cancel_right llv0 llv2] + +public theorem xor_cancel (llv0 : BitVec 32) (llv1 : BitVec 32) : Eq (HXor.hXor (HXor.hXor llv0 llv1) llv1) llv0 := by + rw [LexLeanSpec.BitVec32.BitVec.xor_assoc llv0 llv1 llv1, LexLeanSpec.BitVec32.BitVec.xor_self, LexLeanSpec.BitVec32.BitVec.xor_zero] + +public theorem xor_cancel_u32 (llv0 : UInt32) (llv1 : UInt32) : Eq (HXor.hXor (HXor.hXor llv0 llv1) llv1) llv0 := by + rw [LexLeanSpec.U32.UInt32.xor_assoc llv0 llv1 llv1, LexLeanSpec.U32.UInt32.xor_self, LexLeanSpec.U32.UInt32.xor_zero] + +end MathlibBlake3G.Cancellation diff --git a/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Cancellation.tex b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Cancellation.tex new file mode 100644 index 0000000000..476f4398d0 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Cancellation.tex @@ -0,0 +1,62 @@ +\documentclass[11pt]{article} +\usepackage[T1]{fontenc} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{amsthm} +\usepackage[hidelinks]{hyperref} +\newtheorem{theorem}{Theorem}[section] +\newtheorem{lemma}[theorem]{Lemma} +\newtheorem{corollary}[theorem]{Corollary} +\theoremstyle{definition} +\newtheorem{definition}[theorem]{Definition} +\begin{document} +\begin{center} +{\LARGE Cancellation} +\end{center} +\section{Cancellation} +\label{ll:cancellation:addition} +\begin{theorem} +\label{ll:cancellation:add-sub-cancel} +For every \(\operatorname{bitVec}(32)\) \(a\) and \(\operatorname{bitVec}(32)\) \(b\), \(\operatorname{hSubHSub}(\operatorname{hAddHAdd}(a, b), b) = a\). +\end{theorem} +\begin{proof} +The goal follows from \(\operatorname{lexLeanSpecBitVec32BitVecAddSubCancel}(a, b)\). +\end{proof} +\begin{theorem} +\label{ll:cancellation:add-sub-cancel-group} +For every \(\operatorname{bitVec}(32)\) \(a\) and \(\operatorname{bitVec}(32)\) \(b\), \(\operatorname{hSubHSub}(\operatorname{hAddHAdd}(a, b), b) = a\). +\end{theorem} +\begin{proof} +The goal follows from \(\operatorname{lexLeanSpecBitVec32AddSubCancelRight}(a, b)\). +\end{proof} +\begin{theorem} +\label{ll:cancellation:add-sub-cancel-u32} +For every \(\operatorname{uInt32}\) \(a\) and \(\operatorname{uInt32}\) \(b\), \(\operatorname{hSubHSub}(\operatorname{hAddHAdd}(a, b), b) = a\). +\end{theorem} +\begin{proof} +The goal follows from \(\operatorname{lexLeanSpecU32UInt32AddSubCancel}(a, b)\). +\end{proof} +\begin{lemma} +\label{ll:cancellation:add-sub-sub-cancel} +For every \(\operatorname{bitVec}(32)\) \(p\) and \(\operatorname{bitVec}(32)\) \(q\) and \(\operatorname{bitVec}(32)\) \(r\), \(\operatorname{hSubHSub}(\operatorname{hSubHSub}(\operatorname{hAddHAdd}(\operatorname{hAddHAdd}(p, q), r), q), r) = p\). +\end{lemma} +\begin{proof} +Rewrite the goal using \(\rightarrow \operatorname{lexLeanSpecBitVec32AddRightComm}(p, q, r)\), \(\rightarrow \operatorname{lexLeanSpecBitVec32AddSubCancelRight}(\operatorname{hAddHAdd}(p, r), q)\), \(\rightarrow \operatorname{lexLeanSpecBitVec32AddSubCancelRight}(p, r)\). +\end{proof} +\section{Cancellation} +\label{ll:cancellation:exclusive} +\begin{theorem} +\label{ll:cancellation:xor-cancel} +For every \(\operatorname{bitVec}(32)\) \(a\) and \(\operatorname{bitVec}(32)\) \(b\), \(\operatorname{hXorHXor}(\operatorname{hXorHXor}(a, b), b) = a\). +\end{theorem} +\begin{proof} +Rewrite the goal using \(\rightarrow \operatorname{lexLeanSpecBitVec32BitVecXorAssoc}(a, b, b)\), \(\rightarrow \operatorname{lexLeanSpecBitVec32BitVecXorSelf}\), \(\rightarrow \operatorname{lexLeanSpecBitVec32BitVecXorZero}\). +\end{proof} +\begin{theorem} +\label{ll:cancellation:xor-cancel-u32} +For every \(\operatorname{uInt32}\) \(a\) and \(\operatorname{uInt32}\) \(b\), \(\operatorname{hXorHXor}(\operatorname{hXorHXor}(a, b), b) = a\). +\end{theorem} +\begin{proof} +Rewrite the goal using \(\rightarrow \operatorname{lexLeanSpecU32UInt32XorAssoc}(a, b, b)\), \(\rightarrow \operatorname{lexLeanSpecU32UInt32XorSelf}\), \(\rightarrow \operatorname{lexLeanSpecU32UInt32XorZero}\). +\end{proof} +\end{document} diff --git a/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Main.lean b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Main.lean new file mode 100644 index 0000000000..2690a3036e --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Main.lean @@ -0,0 +1,8 @@ +module +public import MathlibBlake3G.Cancellation +public import MathlibBlake3G.Mixing +public import MathlibBlake3G.Rotation +set_option autoImplicit false +namespace MathlibBlake3G.Main + +end MathlibBlake3G.Main diff --git a/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Main.tex b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Main.tex new file mode 100644 index 0000000000..8043106816 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Main.tex @@ -0,0 +1,16 @@ +\documentclass[11pt]{article} +\usepackage[T1]{fontenc} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{amsthm} +\usepackage[hidelinks]{hyperref} +\newtheorem{theorem}{Theorem}[section] +\newtheorem{lemma}[theorem]{Lemma} +\newtheorem{corollary}[theorem]{Corollary} +\theoremstyle{definition} +\newtheorem{definition}[theorem]{Definition} +\begin{document} +\begin{center} +{\LARGE Word arithmetic} +\end{center} +\end{document} diff --git a/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Mixing.lean b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Mixing.lean new file mode 100644 index 0000000000..82b0bc8329 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Mixing.lean @@ -0,0 +1,43 @@ +module +public import Init.Data.BitVec.Basic +public import Init.Prelude +public import MathlibBlake3G.Cancellation +public import MathlibBlake3G.Rotation +set_option autoImplicit false +namespace MathlibBlake3G.Mixing + +public theorem mixing_inverse (llv0 : BitVec 32) (llv1 : BitVec 32) (llv2 : BitVec 32) (llv3 : BitVec 32) (llv4 : BitVec 32) (llv5 : BitVec 32) (llv6 : BitVec 32) (llv7 : BitVec 32) (llv8 : BitVec 32) (llv9 : BitVec 32) (llv10 : BitVec 32) (llv11 : BitVec 32) (llv12 : BitVec 32) (llv13 : BitVec 32) (llv14 : BitVec 32) (llv15 : BitVec 32) (llv16 : BitVec 32) (llv17 : BitVec 32) (llv18 : BitVec 32) (llv19 : BitVec 32) (llv20 : BitVec 32) (llv21 : BitVec 32) : (Eq llv6 (HAdd.hAdd (HAdd.hAdd llv0 llv1) llv4)) → (Eq llv9 (BitVec.rotateRight (HXor.hXor llv3 llv6) 16)) → (Eq llv8 (HAdd.hAdd llv2 llv9)) → (Eq llv7 (BitVec.rotateRight (HXor.hXor llv1 llv8) 12)) → (Eq llv10 (HAdd.hAdd (HAdd.hAdd llv6 llv7) llv5)) → (Eq llv13 (BitVec.rotateRight (HXor.hXor llv9 llv10) 8)) → (Eq llv12 (HAdd.hAdd llv8 llv13)) → (Eq llv11 (BitVec.rotateRight (HXor.hXor llv7 llv12) 7)) → (Eq llv14 (HXor.hXor (BitVec.rotateLeft llv11 7) llv12)) → (Eq llv15 (HSub.hSub llv12 llv13)) → (Eq llv16 (HXor.hXor (BitVec.rotateLeft llv13 8) llv10)) → (Eq llv17 (HSub.hSub (HSub.hSub llv10 llv14) llv5)) → (Eq llv19 (HXor.hXor (BitVec.rotateLeft llv14 12) llv15)) → (Eq llv20 (HSub.hSub llv15 llv16)) → (Eq llv21 (HXor.hXor (BitVec.rotateLeft llv16 16) llv17)) → (Eq llv18 (HSub.hSub (HSub.hSub llv17 llv19) llv4)) → And (And (And (Eq llv18 llv0) (Eq llv19 llv1)) (Eq llv20 llv2)) (Eq llv21 llv3) := by + intro llh0 llh1 llh2 llh3 llh4 llh5 llh6 llh7 llh8 llh9 llh10 llh11 llh12 llh13 llh14 llh15 + have llh16 : Eq llv14 llv7 := by + rw [llh8, llh7] + exact MathlibBlake3G.Rotation.unmix llv7 llv12 (7 : Nat) + have llh17 : Eq llv15 llv8 := by + rw [llh9, llh6] + exact MathlibBlake3G.Cancellation.add_sub_cancel llv8 llv13 + have llh18 : Eq llv16 llv9 := by + rw [llh10, llh5] + exact MathlibBlake3G.Rotation.unmix llv9 llv10 (8 : Nat) + have llh19 : Eq llv17 llv6 := by + rw [llh11, llh16, llh4] + exact MathlibBlake3G.Cancellation.add_sub_sub_cancel llv6 llv7 llv5 + have llh20 : Eq llv19 llv1 := by + rw [llh12, llh16, llh17, llh3] + exact MathlibBlake3G.Rotation.unmix llv1 llv8 (12 : Nat) + have llh21 : Eq llv20 llv2 := by + rw [llh13, llh17, llh18, llh2] + exact MathlibBlake3G.Cancellation.add_sub_cancel llv2 llv9 + have llh22 : Eq llv21 llv3 := by + rw [llh14, llh18, llh19, llh1] + exact MathlibBlake3G.Rotation.unmix llv3 llv6 (16 : Nat) + have llh23 : Eq llv18 llv0 := by + rw [llh15, llh19, llh20, llh0] + exact MathlibBlake3G.Cancellation.add_sub_sub_cancel llv0 llv1 llv4 + constructor + constructor + constructor + exact llh23 + exact llh20 + exact llh21 + exact llh22 + +end MathlibBlake3G.Mixing diff --git a/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Mixing.tex b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Mixing.tex new file mode 100644 index 0000000000..7665392519 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Mixing.tex @@ -0,0 +1,71 @@ +\documentclass[11pt]{article} +\usepackage[T1]{fontenc} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{amsthm} +\usepackage[hidelinks]{hyperref} +\newtheorem{theorem}{Theorem}[section] +\newtheorem{lemma}[theorem]{Lemma} +\newtheorem{corollary}[theorem]{Corollary} +\theoremstyle{definition} +\newtheorem{definition}[theorem]{Definition} +\begin{document} +\begin{center} +{\LARGE Mixing function inverse} +\end{center} +\section{Mixing function inverse} +\label{ll:mixing:inverse} +\begin{theorem} +\label{ll:mixing:mixing-inverse} +For every \(\operatorname{bitVec}(32)\) \(a\) and \(\operatorname{bitVec}(32)\) \(b\) and \(\operatorname{bitVec}(32)\) \(c\) and \(\operatorname{bitVec}(32)\) \(d\) and \(\operatorname{bitVec}(32)\) \(x\) and \(\operatorname{bitVec}(32)\) \(y\) and \(\operatorname{bitVec}(32)\) \(a1\) and \(\operatorname{bitVec}(32)\) \(b1\) and \(\operatorname{bitVec}(32)\) \(c1\) and \(\operatorname{bitVec}(32)\) \(d1\) and \(\operatorname{bitVec}(32)\) \(a2\) and \(\operatorname{bitVec}(32)\) \(b2\) and \(\operatorname{bitVec}(32)\) \(c2\) and \(\operatorname{bitVec}(32)\) \(d2\) and \(\operatorname{bitVec}(32)\) \(ib1\) and \(\operatorname{bitVec}(32)\) \(ic1\) and \(\operatorname{bitVec}(32)\) \(id1\) and \(\operatorname{bitVec}(32)\) \(ia1\) and \(\operatorname{bitVec}(32)\) \(ra\) and \(\operatorname{bitVec}(32)\) \(rb\) and \(\operatorname{bitVec}(32)\) \(rc\) and \(\operatorname{bitVec}(32)\) \(rd\), if \(a1 = \operatorname{hAddHAdd}(\operatorname{hAddHAdd}(a, b), x)\), then if \(d1 = \operatorname{bitVecRotateRight}(\operatorname{hXorHXor}(d, a1), 16)\), then if \(c1 = \operatorname{hAddHAdd}(c, d1)\), then if \(b1 = \operatorname{bitVecRotateRight}(\operatorname{hXorHXor}(b, c1), 12)\), then if \(a2 = \operatorname{hAddHAdd}(\operatorname{hAddHAdd}(a1, b1), y)\), then if \(d2 = \operatorname{bitVecRotateRight}(\operatorname{hXorHXor}(d1, a2), 8)\), then if \(c2 = \operatorname{hAddHAdd}(c1, d2)\), then if \(b2 = \operatorname{bitVecRotateRight}(\operatorname{hXorHXor}(b1, c2), 7)\), then if \(ib1 = \operatorname{hXorHXor}(\operatorname{bitVecRotateLeft}(b2, 7), c2)\), then if \(ic1 = \operatorname{hSubHSub}(c2, d2)\), then if \(id1 = \operatorname{hXorHXor}(\operatorname{bitVecRotateLeft}(d2, 8), a2)\), then if \(ia1 = \operatorname{hSubHSub}(\operatorname{hSubHSub}(a2, ib1), y)\), then if \(rb = \operatorname{hXorHXor}(\operatorname{bitVecRotateLeft}(ib1, 12), ic1)\), then if \(rc = \operatorname{hSubHSub}(ic1, id1)\), then if \(rd = \operatorname{hXorHXor}(\operatorname{bitVecRotateLeft}(id1, 16), ia1)\), then if \(ra = \operatorname{hSubHSub}(\operatorname{hSubHSub}(ia1, rb), x)\), then \(ra = a\) and \(rb = b\) and \(rc = c\) and \(rd = d\). +\end{theorem} +\begin{proof} +Assume \(e1\), \(e2\), \(e3\), \(e4\), \(e5\), \(e6\), \(e7\), \(e8\), \(f1\), \(f2\), \(f3\), \(f4\), \(f5\), \(f6\), \(f7\), \(f8\). +We first establish \(ib1 = b1\). +Rewrite the goal using \(\rightarrow f1\), \(\rightarrow e8\). +The goal follows from \(\texttt{Rotation::unmix}(b1, c2, 7)\). +We first establish \(ic1 = c1\). +Rewrite the goal using \(\rightarrow f2\), \(\rightarrow e7\). +The goal follows from \(\texttt{Cancellation::add-sub-cancel}(c1, d2)\). +We first establish \(id1 = d1\). +Rewrite the goal using \(\rightarrow f3\), \(\rightarrow e6\). +The goal follows from \(\texttt{Rotation::unmix}(d1, a2, 8)\). +We first establish \(ia1 = a1\). +Rewrite the goal using \(\rightarrow f4\), \(\rightarrow hb1\), \(\rightarrow e5\). +The goal follows from \(\texttt{Cancellation::add-sub-sub-cancel}(a1, b1, y)\). +We first establish \(rb = b\). +Rewrite the goal using \(\rightarrow f5\), \(\rightarrow hb1\), \(\rightarrow hc1\), \(\rightarrow e4\). +The goal follows from \(\texttt{Rotation::unmix}(b, c1, 12)\). +We first establish \(rc = c\). +Rewrite the goal using \(\rightarrow f6\), \(\rightarrow hc1\), \(\rightarrow hd1\), \(\rightarrow e3\). +The goal follows from \(\texttt{Cancellation::add-sub-cancel}(c, d1)\). +We first establish \(rd = d\). +Rewrite the goal using \(\rightarrow f7\), \(\rightarrow hd1\), \(\rightarrow ha1\), \(\rightarrow e2\). +The goal follows from \(\texttt{Rotation::unmix}(d, a1, 16)\). +We first establish \(ra = a\). +Rewrite the goal using \(\rightarrow f8\), \(\rightarrow ha1\), \(\rightarrow hb\), \(\rightarrow e1\). +The goal follows from \(\texttt{Cancellation::add-sub-sub-cancel}(a, b, x)\). +Branch \(1\): +\begin{quote} +Branch \(1\): +\begin{quote} +Branch \(1\): +\begin{quote} +The goal follows from \(ha\). +\end{quote} +Branch \(2\): +\begin{quote} +The goal follows from \(hb\). +\end{quote} +\end{quote} +Branch \(2\): +\begin{quote} +The goal follows from \(hc\). +\end{quote} +\end{quote} +Branch \(2\): +\begin{quote} +The goal follows from \(hd\). +\end{quote} +\end{proof} +\end{document} diff --git a/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Rotation.lean b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Rotation.lean new file mode 100644 index 0000000000..accffd94ee --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Rotation.lean @@ -0,0 +1,22 @@ +module +public import Blake3GHost +public import Init.Data.BitVec.Basic +public import Init.Prelude +public import MathlibBlake3G.Cancellation +set_option autoImplicit false +namespace MathlibBlake3G.Rotation + +public theorem rotate_left_right (llv0 : BitVec 32) : And (And (And (Eq (BitVec.rotateLeft (BitVec.rotateRight llv0 7) 7) llv0) (Eq (BitVec.rotateLeft (BitVec.rotateRight llv0 8) 8) llv0)) (Eq (BitVec.rotateLeft (BitVec.rotateRight llv0 12) 12) llv0)) (Eq (BitVec.rotateLeft (BitVec.rotateRight llv0 16) 16) llv0) := by + constructor + constructor + constructor + exact Blake3GHost.rotateLeft_rotateRight llv0 7 + exact Blake3GHost.rotateLeft_rotateRight llv0 8 + exact Blake3GHost.rotateLeft_rotateRight llv0 12 + exact Blake3GHost.rotateLeft_rotateRight llv0 16 + +public theorem unmix (llv0 : BitVec 32) (llv1 : BitVec 32) (llv2 : Nat) : Eq (HXor.hXor (BitVec.rotateLeft (BitVec.rotateRight (HXor.hXor llv0 llv1) llv2) llv2) llv1) llv0 := by + rw [Blake3GHost.rotateLeft_rotateRight (HXor.hXor llv0 llv1) llv2] + exact MathlibBlake3G.Cancellation.xor_cancel llv0 llv1 + +end MathlibBlake3G.Rotation diff --git a/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Rotation.tex b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Rotation.tex new file mode 100644 index 0000000000..f20195f8e8 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/build/modules/MathlibBlake3G/Rotation.tex @@ -0,0 +1,54 @@ +\documentclass[11pt]{article} +\usepackage[T1]{fontenc} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{amsthm} +\usepackage[hidelinks]{hyperref} +\newtheorem{theorem}{Theorem}[section] +\newtheorem{lemma}[theorem]{Lemma} +\newtheorem{corollary}[theorem]{Corollary} +\theoremstyle{definition} +\newtheorem{definition}[theorem]{Definition} +\begin{document} +\begin{center} +{\LARGE Rotation} +\end{center} +\section{Rotation} +\label{ll:rotation:rotation} +\begin{theorem} +\label{ll:rotation:rotate-left-right} +For every \(\operatorname{bitVec}(32)\) \(a\), \(\operatorname{bitVecRotateLeft}(\operatorname{bitVecRotateRight}(a, 7), 7) = a\) and \(\operatorname{bitVecRotateLeft}(\operatorname{bitVecRotateRight}(a, 8), 8) = a\) and \(\operatorname{bitVecRotateLeft}(\operatorname{bitVecRotateRight}(a, 12), 12) = a\) and \(\operatorname{bitVecRotateLeft}(\operatorname{bitVecRotateRight}(a, 16), 16) = a\). +\end{theorem} +\begin{proof} +Branch \(1\): +\begin{quote} +Branch \(1\): +\begin{quote} +Branch \(1\): +\begin{quote} +The goal follows from \(\operatorname{blake3GHostRotateLeftRotateRight}(a, 7)\). +\end{quote} +Branch \(2\): +\begin{quote} +The goal follows from \(\operatorname{blake3GHostRotateLeftRotateRight}(a, 8)\). +\end{quote} +\end{quote} +Branch \(2\): +\begin{quote} +The goal follows from \(\operatorname{blake3GHostRotateLeftRotateRight}(a, 12)\). +\end{quote} +\end{quote} +Branch \(2\): +\begin{quote} +The goal follows from \(\operatorname{blake3GHostRotateLeftRotateRight}(a, 16)\). +\end{quote} +\end{proof} +\begin{lemma} +\label{ll:rotation:unmix} +For every \(\operatorname{bitVec}(32)\) \(p\) and \(\operatorname{bitVec}(32)\) \(q\) and \(\operatorname{nat}\) \(n\), \(\operatorname{hXorHXor}(\operatorname{bitVecRotateLeft}(\operatorname{bitVecRotateRight}(\operatorname{hXorHXor}(p, q), n), n), q) = p\). +\end{lemma} +\begin{proof} +Rewrite the goal using \(\rightarrow \operatorname{blake3GHostRotateLeftRotateRight}(\operatorname{hXorHXor}(p, q), n)\). +The goal follows from \(\texttt{Cancellation::xor-cancel}(p, q)\). +\end{proof} +\end{document} diff --git a/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Cancellation.lean b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Cancellation.lean new file mode 100644 index 0000000000..eefaa0a7dd --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Cancellation.lean @@ -0,0 +1,8 @@ +module +import MathlibBlake3G.Cancellation +#print axioms MathlibBlake3G.Cancellation.add_sub_cancel +#print axioms MathlibBlake3G.Cancellation.add_sub_cancel_group +#print axioms MathlibBlake3G.Cancellation.add_sub_cancel_u32 +#print axioms MathlibBlake3G.Cancellation.add_sub_sub_cancel +#print axioms MathlibBlake3G.Cancellation.xor_cancel +#print axioms MathlibBlake3G.Cancellation.xor_cancel_u32 diff --git a/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Cancellation.process.json b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Cancellation.process.json new file mode 100644 index 0000000000..2f447dc2e7 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Cancellation.process.json @@ -0,0 +1 @@ +{"argv":["env","lean","$STAGING/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Cancellation.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Cancellation","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"'MathlibBlake3G.Cancellation.add_sub_cancel' depends on axioms: [propext]\n'MathlibBlake3G.Cancellation.add_sub_cancel_group' depends on axioms: [propext, Classical.choice, Quot.sound]\n'MathlibBlake3G.Cancellation.add_sub_cancel_u32' depends on axioms: [propext]\n'MathlibBlake3G.Cancellation.add_sub_sub_cancel' depends on axioms: [propext, Classical.choice, Quot.sound]\n'MathlibBlake3G.Cancellation.xor_cancel' depends on axioms: [propext, Quot.sound]\n'MathlibBlake3G.Cancellation.xor_cancel_u32' depends on axioms: [propext, Quot.sound]\n","stdout_sha256":"b453f70882c8b3c004018bba537ebb8ad71e2fd539336db260c67a2590973acb","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Main.lean b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Main.lean new file mode 100644 index 0000000000..c4fa4d0527 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Main.lean @@ -0,0 +1,2 @@ +module +import MathlibBlake3G.Main diff --git a/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Main.process.json b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Main.process.json new file mode 100644 index 0000000000..47a935682c --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Main.process.json @@ -0,0 +1 @@ +{"argv":["env","lean","$STAGING/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Main.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Main","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Mixing.lean b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Mixing.lean new file mode 100644 index 0000000000..97cf553215 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Mixing.lean @@ -0,0 +1,3 @@ +module +import MathlibBlake3G.Mixing +#print axioms MathlibBlake3G.Mixing.mixing_inverse diff --git a/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Mixing.process.json b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Mixing.process.json new file mode 100644 index 0000000000..f3f1570e49 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Mixing.process.json @@ -0,0 +1 @@ +{"argv":["env","lean","$STAGING/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Mixing.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Mixing","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"'MathlibBlake3G.Mixing.mixing_inverse' depends on axioms: [propext, Classical.choice, Quot.sound]\n","stdout_sha256":"13f3b179e82ee5fbc11162abbde411f283421c15d25fd6b8249ba13a8756c9a1","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Rotation.lean b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Rotation.lean new file mode 100644 index 0000000000..c5389ce23a --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Rotation.lean @@ -0,0 +1,4 @@ +module +import MathlibBlake3G.Rotation +#print axioms MathlibBlake3G.Rotation.rotate_left_right +#print axioms MathlibBlake3G.Rotation.unmix diff --git a/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Rotation.process.json b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Rotation.process.json new file mode 100644 index 0000000000..aa4de9a1ef --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Rotation.process.json @@ -0,0 +1 @@ +{"argv":["env","lean","$STAGING/audit/LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Rotation.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"LexLeanAudit.A57cec83963c5622a5bae3275babaf48f.MathlibBlake3G.Rotation","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"'MathlibBlake3G.Rotation.rotate_left_right' depends on axioms: [propext, Quot.sound]\n'MathlibBlake3G.Rotation.unmix' depends on axioms: [propext, Quot.sound]\n","stdout_sha256":"527ce2f97f7124ec26e5b05ea58ec2a0e0a45a67eac0397aa4cbd4ba15cbeaf3","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/audit/output.txt b/demos/mathlib-blake3-g/expected/verify/audit/output.txt new file mode 100644 index 0000000000..cd221b602c --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/audit/output.txt @@ -0,0 +1,10 @@ +'MathlibBlake3G.Cancellation.add_sub_cancel' depends on axioms: [propext] +'MathlibBlake3G.Cancellation.add_sub_cancel_group' depends on axioms: [propext, Classical.choice, Quot.sound] +'MathlibBlake3G.Cancellation.add_sub_cancel_u32' depends on axioms: [propext] +'MathlibBlake3G.Cancellation.add_sub_sub_cancel' depends on axioms: [propext, Classical.choice, Quot.sound] +'MathlibBlake3G.Cancellation.xor_cancel' depends on axioms: [propext, Quot.sound] +'MathlibBlake3G.Cancellation.xor_cancel_u32' depends on axioms: [propext, Quot.sound] + +'MathlibBlake3G.Mixing.mixing_inverse' depends on axioms: [propext, Classical.choice, Quot.sound] +'MathlibBlake3G.Rotation.rotate_left_right' depends on axioms: [propext, Quot.sound] +'MathlibBlake3G.Rotation.unmix' depends on axioms: [propext, Quot.sound] diff --git a/demos/mathlib-blake3-g/expected/verify/probe/LexLeanProbe.P57cec83963c5622a5bae3275babaf48f.lean b/demos/mathlib-blake3-g/expected/verify/probe/LexLeanProbe.P57cec83963c5622a5bae3275babaf48f.lean new file mode 100644 index 0000000000..d84906deab --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/probe/LexLeanProbe.P57cec83963c5622a5bae3275babaf48f.lean @@ -0,0 +1,37 @@ +module +import Blake3GHost +import Blake3GSpecs +import Init.Data.BitVec.Basic +import Init.Prelude +set_option autoImplicit false +universe p4u p4v p4w p5u p5v p5w p6u p6v p6w +example : (x0 : Nat) → Type := BitVec +example : {x0 : Nat} → (x1 : BitVec x0) → (x2 : Nat) → BitVec x0 := BitVec.rotateLeft +example : {x0 : Nat} → (x1 : BitVec x0) → (x2 : Nat) → BitVec x0 := BitVec.rotateRight +example : (x0 : BitVec (32 : Nat)) → (x1 : Nat) → Eq (BitVec.rotateLeft (BitVec.rotateRight x0 x1) x1) x0 := Blake3GHost.rotateLeft_rotateRight +example : {x0 : Type p4u} → {x1 : Type p4v} → {x2 : Type p4w} → [HAdd.{p4u, p4v, p4w} x0 x1 x2] → (x4 : x0) → (x5 : x1) → x2 := HAdd.hAdd +example : {x0 : Type p5u} → {x1 : Type p5v} → {x2 : Type p5w} → [HSub.{p5u, p5v, p5w} x0 x1 x2] → (x4 : x0) → (x5 : x1) → x2 := HSub.hSub +example : {x0 : Type p6u} → {x1 : Type p6v} → {x2 : Type p6w} → [HXor.{p6u, p6v, p6w} x0 x1 x2] → (x4 : x0) → (x5 : x1) → x2 := HXor.hXor +example : ((x0 : BitVec (32 : Nat)) → (x1 : BitVec (32 : Nat)) → (x2 : BitVec (32 : Nat)) → Eq (HAdd.hAdd.{0, 0, 0} (HAdd.hAdd.{0, 0, 0} x0 x1) x2) (HAdd.hAdd.{0, 0, 0} (HAdd.hAdd.{0, 0, 0} x0 x2) x1)) = (type_of% @LexLeanSpec.BitVec32.add_right_comm) := rfl +example : ((x0 : BitVec (32 : Nat)) → (x1 : BitVec (32 : Nat)) → Eq (HSub.hSub.{0, 0, 0} (HAdd.hAdd.{0, 0, 0} x0 x1) x1) x0) = (type_of% @LexLeanSpec.BitVec32.add_sub_cancel_right) := rfl +example : ((x0 : BitVec (32 : Nat)) → (x1 : BitVec (32 : Nat)) → Eq (HSub.hSub.{0, 0, 0} (HAdd.hAdd.{0, 0, 0} x0 x1) x1) x0) = (type_of% @LexLeanSpec.BitVec32.BitVec.add_sub_cancel) := rfl +example : ((x0 : BitVec (32 : Nat)) → (x1 : BitVec (32 : Nat)) → (x2 : BitVec (32 : Nat)) → Eq (HXor.hXor.{0, 0, 0} (HXor.hXor.{0, 0, 0} x0 x1) x2) (HXor.hXor.{0, 0, 0} x0 (HXor.hXor.{0, 0, 0} x1 x2))) = (type_of% @LexLeanSpec.BitVec32.BitVec.xor_assoc) := rfl +example : ({x0 : BitVec (32 : Nat)} → Eq (HXor.hXor.{0, 0, 0} x0 x0) (BitVec.ofNat (32 : Nat) (0 : Nat))) = (type_of% @LexLeanSpec.BitVec32.BitVec.xor_self) := rfl +example : ({x0 : BitVec (32 : Nat)} → Eq (HXor.hXor.{0, 0, 0} x0 (BitVec.ofNat (32 : Nat) (0 : Nat))) x0) = (type_of% @LexLeanSpec.BitVec32.BitVec.xor_zero) := rfl +example : ((x0 : UInt32) → (x1 : UInt32) → Eq (HSub.hSub.{0, 0, 0} (HAdd.hAdd.{0, 0, 0} x0 x1) x1) x0) = (type_of% @LexLeanSpec.U32.UInt32.add_sub_cancel) := rfl +example : ((x0 : UInt32) → (x1 : UInt32) → (x2 : UInt32) → Eq (HXor.hXor.{0, 0, 0} (HXor.hXor.{0, 0, 0} x0 x1) x2) (HXor.hXor.{0, 0, 0} x0 (HXor.hXor.{0, 0, 0} x1 x2))) = (type_of% @LexLeanSpec.U32.UInt32.xor_assoc) := rfl +example : ({x0 : UInt32} → Eq (HXor.hXor.{0, 0, 0} x0 x0) 0) = (type_of% @LexLeanSpec.U32.UInt32.xor_self) := rfl +example : ({x0 : UInt32} → Eq (HXor.hXor.{0, 0, 0} x0 0) x0) = (type_of% @LexLeanSpec.U32.UInt32.xor_zero) := rfl +example : Type := Nat +example : Type := UInt32 +#print axioms Blake3GHost.rotateLeft_rotateRight +#print axioms LexLeanSpec.BitVec32.BitVec.add_sub_cancel +#print axioms LexLeanSpec.BitVec32.BitVec.xor_assoc +#print axioms LexLeanSpec.BitVec32.BitVec.xor_self +#print axioms LexLeanSpec.BitVec32.BitVec.xor_zero +#print axioms LexLeanSpec.BitVec32.add_right_comm +#print axioms LexLeanSpec.BitVec32.add_sub_cancel_right +#print axioms LexLeanSpec.U32.UInt32.add_sub_cancel +#print axioms LexLeanSpec.U32.UInt32.xor_assoc +#print axioms LexLeanSpec.U32.UInt32.xor_self +#print axioms LexLeanSpec.U32.UInt32.xor_zero diff --git a/demos/mathlib-blake3-g/expected/verify/probe/process.json b/demos/mathlib-blake3-g/expected/verify/probe/process.json new file mode 100644 index 0000000000..0ba162cb3a --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/probe/process.json @@ -0,0 +1 @@ +{"argv":["env","lean","$STAGING/probe/LexLeanProbe.P57cec83963c5622a5bae3275babaf48f.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"LexLeanProbe.P57cec83963c5622a5bae3275babaf48f","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"'Blake3GHost.rotateLeft_rotateRight' depends on axioms: [propext, Quot.sound]\n'LexLeanSpec.BitVec32.BitVec.add_sub_cancel' depends on axioms: [propext]\n'LexLeanSpec.BitVec32.BitVec.xor_assoc' depends on axioms: [propext, Quot.sound]\n'LexLeanSpec.BitVec32.BitVec.xor_self' depends on axioms: [propext, Quot.sound]\n'LexLeanSpec.BitVec32.BitVec.xor_zero' depends on axioms: [propext, Quot.sound]\n'LexLeanSpec.BitVec32.add_right_comm' depends on axioms: [propext, Classical.choice, Quot.sound]\n'LexLeanSpec.BitVec32.add_sub_cancel_right' depends on axioms: [propext, Classical.choice, Quot.sound]\n'LexLeanSpec.U32.UInt32.add_sub_cancel' depends on axioms: [propext]\n'LexLeanSpec.U32.UInt32.xor_assoc' depends on axioms: [propext, Quot.sound]\n'LexLeanSpec.U32.UInt32.xor_self' depends on axioms: [propext, Quot.sound]\n'LexLeanSpec.U32.UInt32.xor_zero' depends on axioms: [propext, Quot.sound]\n","stdout_sha256":"c34ae14b791d1abf55e6b785b69ffa9420df0d08786d8305c53cd79016853626","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Cancellation.json b/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Cancellation.json new file mode 100644 index 0000000000..a322be18bf --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Cancellation.json @@ -0,0 +1 @@ +{"argv":["env","lean","-R","$STAGING/lean-src","-o","$STAGING/oleans/MathlibBlake3G/Cancellation.olean","$STAGING/lean-src/MathlibBlake3G/Cancellation.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"MathlibBlake3G.Cancellation","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Main.json b/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Main.json new file mode 100644 index 0000000000..b1ee292036 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Main.json @@ -0,0 +1 @@ +{"argv":["env","lean","-R","$STAGING/lean-src","-o","$STAGING/oleans/MathlibBlake3G/Main.olean","$STAGING/lean-src/MathlibBlake3G/Main.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"MathlibBlake3G.Main","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Mixing.json b/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Mixing.json new file mode 100644 index 0000000000..e9141d43fb --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Mixing.json @@ -0,0 +1 @@ +{"argv":["env","lean","-R","$STAGING/lean-src","-o","$STAGING/oleans/MathlibBlake3G/Mixing.olean","$STAGING/lean-src/MathlibBlake3G/Mixing.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"MathlibBlake3G.Mixing","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Rotation.json b/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Rotation.json new file mode 100644 index 0000000000..fa8bacf153 --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/process/lean/MathlibBlake3G.Rotation.json @@ -0,0 +1 @@ +{"argv":["env","lean","-R","$STAGING/lean-src","-o","$STAGING/oleans/MathlibBlake3G/Rotation.olean","$STAGING/lean-src/MathlibBlake3G/Rotation.lean"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"MathlibBlake3G.Rotation","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"lean"} diff --git a/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Cancellation.json b/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Cancellation.json new file mode 100644 index 0000000000..b32742ecab --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Cancellation.json @@ -0,0 +1 @@ +{"argv":["env","$TOOLCHAIN/bin/leanchecker","MathlibBlake3G.Cancellation"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"MathlibBlake3G.Cancellation","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"leanchecker"} diff --git a/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Main.json b/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Main.json new file mode 100644 index 0000000000..faa075bf2a --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Main.json @@ -0,0 +1 @@ +{"argv":["env","$TOOLCHAIN/bin/leanchecker","MathlibBlake3G.Main"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"MathlibBlake3G.Main","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"leanchecker"} diff --git a/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Mixing.json b/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Mixing.json new file mode 100644 index 0000000000..8b16a3ea9c --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Mixing.json @@ -0,0 +1 @@ +{"argv":["env","$TOOLCHAIN/bin/leanchecker","MathlibBlake3G.Mixing"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"MathlibBlake3G.Mixing","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"leanchecker"} diff --git a/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Rotation.json b/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Rotation.json new file mode 100644 index 0000000000..700c2db88a --- /dev/null +++ b/demos/mathlib-blake3-g/expected/verify/process/leanchecker/MathlibBlake3G.Rotation.json @@ -0,0 +1 @@ +{"argv":["env","$TOOLCHAIN/bin/leanchecker","MathlibBlake3G.Rotation"],"executable_sha256":"$EXECUTABLE_SHA256","exit_code":0,"module":"MathlibBlake3G.Rotation","stderr":"\n","stderr_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","stdout":"\n","stdout_sha256":"01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b","tool":"leanchecker"} diff --git a/demos/mathlib-blake3-g/glossary-report.json b/demos/mathlib-blake3-g/glossary-report.json new file mode 100644 index 0000000000..21c5a3f40c --- /dev/null +++ b/demos/mathlib-blake3-g/glossary-report.json @@ -0,0 +1,53 @@ +{ + "spec": "lexlean/glossary-report/1", + "package": "lean.mathlib", + "version": "1.0.0", + "language": "1.2", + "requested": 15, + "translated": 11, + "refused": 0, + "excluded": 4, + "excluded_by_kind": { + "internal": 4 + }, + "refused_by_reason": {}, + "refused_by_dependency": {}, + "support_entries": 27, + "eliminators": { + "emitted": 9, + "omitted": {} + }, + "entries_with_erased_annotations": 12, + "id_collisions": 0, + "surface_collisions": 0, + "refusals": [ + { + "name": "_private.Blake3GHost.0.Blake3GHost.rotateLeft_rotateRight._proof_1_1", + "requested": false, + "reason": "excluded-internal", + "code": "LLT4106", + "detail": "a internal declaration is not exposed as an entry" + }, + { + "name": "_private.Blake3GHost.0.Blake3GHost.rotateLeft_rotateRight._proof_1_2", + "requested": false, + "reason": "excluded-internal", + "code": "LLT4106", + "detail": "a internal declaration is not exposed as an entry" + }, + { + "name": "_private.Blake3GHost.0.Blake3GHost.rotateLeft_rotateRight._proof_1_3", + "requested": false, + "reason": "excluded-internal", + "code": "LLT4106", + "detail": "a internal declaration is not exposed as an entry" + }, + { + "name": "_private.Blake3GHost.0.Blake3GHost.rotateLeft_rotateRight._proof_1_4", + "requested": false, + "reason": "excluded-internal", + "code": "LLT4106", + "detail": "a internal declaration is not exposed as an entry" + } + ] +} diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/entries/arithmetic.toml b/demos/mathlib-blake3-g/glossary/blake3.g/entries/arithmetic.toml new file mode 100644 index 0000000000..159ccf82ae --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/entries/arithmetic.toml @@ -0,0 +1,16 @@ +spec = "lexlean/entry/1" +id = "arithmetic" +category = "label-word" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "defined" +value = "(const lean.mathlib::h-add.h-add)" + +[[form]] +id = "arithmetic" +channel = "text" +surface = "arithmetic" +canonical_source = true +features = ["lower-case", "singular"] diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/entries/cancellation.toml b/demos/mathlib-blake3-g/glossary/blake3.g/entries/cancellation.toml new file mode 100644 index 0000000000..519b839ab7 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/entries/cancellation.toml @@ -0,0 +1,16 @@ +spec = "lexlean/entry/1" +id = "cancellation" +category = "label-word" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "defined" +value = "(const lean.mathlib::h-sub.h-sub)" + +[[form]] +id = "cancellation" +channel = "text" +surface = "Cancellation" +canonical_source = true +features = ["sentence-case", "singular"] diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/entries/function.toml b/demos/mathlib-blake3-g/glossary/blake3.g/entries/function.toml new file mode 100644 index 0000000000..fecda9ae03 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/entries/function.toml @@ -0,0 +1,16 @@ +spec = "lexlean/entry/1" +id = "function" +category = "label-word" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "defined" +value = "(const lean.mathlib::h-add.h-add)" + +[[form]] +id = "function" +channel = "text" +surface = "function" +canonical_source = true +features = ["lower-case", "singular"] diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/entries/inverse.toml b/demos/mathlib-blake3-g/glossary/blake3.g/entries/inverse.toml new file mode 100644 index 0000000000..7008ece602 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/entries/inverse.toml @@ -0,0 +1,16 @@ +spec = "lexlean/entry/1" +id = "inverse" +category = "label-word" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "defined" +value = "(const lean.mathlib::h-sub.h-sub)" + +[[form]] +id = "inverse" +channel = "text" +surface = "inverse" +canonical_source = true +features = ["lower-case", "singular"] diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/entries/mixing.toml b/demos/mathlib-blake3-g/glossary/blake3.g/entries/mixing.toml new file mode 100644 index 0000000000..f07aa3b198 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/entries/mixing.toml @@ -0,0 +1,16 @@ +spec = "lexlean/entry/1" +id = "mixing" +category = "label-word" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "defined" +value = "(const lean.mathlib::h-add.h-add)" + +[[form]] +id = "mixing" +channel = "text" +surface = "Mixing" +canonical_source = true +features = ["sentence-case", "singular"] diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/entries/rotation.toml b/demos/mathlib-blake3-g/glossary/blake3.g/entries/rotation.toml new file mode 100644 index 0000000000..327187bd13 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/entries/rotation.toml @@ -0,0 +1,16 @@ +spec = "lexlean/entry/1" +id = "rotation" +category = "label-word" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "defined" +value = "(const lean.mathlib::bit-vec.rotate-left)" + +[[form]] +id = "rotation" +channel = "text" +surface = "Rotation" +canonical_source = true +features = ["sentence-case", "singular"] diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/entries/word.toml b/demos/mathlib-blake3-g/glossary/blake3.g/entries/word.toml new file mode 100644 index 0000000000..7864591d79 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/entries/word.toml @@ -0,0 +1,16 @@ +spec = "lexlean/entry/1" +id = "word" +category = "label-word" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "defined" +value = "(const lean.mathlib::bit-vec)" + +[[form]] +id = "word" +channel = "text" +surface = "Word" +canonical_source = true +features = ["sentence-case", "singular"] diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/entries/xor.toml b/demos/mathlib-blake3-g/glossary/blake3.g/entries/xor.toml new file mode 100644 index 0000000000..3c654b4c9a --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/entries/xor.toml @@ -0,0 +1,16 @@ +spec = "lexlean/entry/1" +id = "xor" +category = "label-word" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "defined" +value = "(const lean.mathlib::h-xor.h-xor)" + +[[form]] +id = "xor" +channel = "text" +surface = "Exclusive" +canonical_source = true +features = ["sentence-case", "singular"] diff --git a/demos/mathlib-blake3-g/glossary/blake3.g/lexicon.toml b/demos/mathlib-blake3-g/glossary/blake3.g/lexicon.toml new file mode 100644 index 0000000000..0742578fca --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/blake3.g/lexicon.toml @@ -0,0 +1,5 @@ +spec = "lexlean/lexicon/1" +package = "blake3.g" +version = "1.0.0" +language = "1.2" +imports = ["lean.mathlib@1.0.0", "lexlean.core@1.2.0"] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec.toml new file mode 100644 index 0000000000..e549e18b60 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec.toml @@ -0,0 +1,31 @@ +spec = "lexlean/entry/1" +id = "bit-vec" +category = "function" +signature = "(pi ((explicit w (const lean.mathlib::nat))) (sort (type 0)))" +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "BitVec" + +[[form]] +id = "bit-vec" +channel = "math" +surface = "bitVec" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name bitVec) (paren (slot 0)))" + +[eliminator] +cases_lean_name = "BitVec.casesOn" +induction_lean_name = "BitVec.cons_induction" + +[[eliminator.constructor]] +entry = "lean.mathlib::bit-vec.of-fin" +lean_name = "BitVec.ofFin" +fields = ["toFin"] +induction_hypotheses = [] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/of-fin.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/of-fin.toml new file mode 100644 index 0000000000..3ab01f80f1 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/of-fin.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "bit-vec.of-fin" +category = "function" +signature = "(pi ((implicit w (const lean.mathlib::nat)) (explicit toFin (app (const lean.mathlib::fin) (app (const lean.mathlib::h-pow.h-pow (0 0 0)) (nat 2) (local w))))) (app (const lean.mathlib::bit-vec) (local w)))" +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "BitVec.ofFin" + +[[form]] +id = "of-fin" +channel = "math" +surface = "bitVecOfFin" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name bitVecOfFin) (paren (slot 0)))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/of-nat.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/of-nat.toml new file mode 100644 index 0000000000..1ec6d58d17 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/of-nat.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "bit-vec.of-nat" +category = "function" +signature = "(pi ((explicit n (const lean.mathlib::nat)) (explicit i (const lean.mathlib::nat))) (app (const lean.mathlib::bit-vec) (local n)))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "BitVec.ofNat" + +[[form]] +id = "of-nat" +channel = "math" +surface = "bitVecOfNat" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name bitVecOfNat) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/rotate-left.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/rotate-left.toml new file mode 100644 index 0000000000..9fea78bce5 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/rotate-left.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "bit-vec.rotate-left" +category = "function" +signature = "(pi ((implicit w (const lean.mathlib::nat)) (explicit x (app (const lean.mathlib::bit-vec) (local w))) (explicit n (const lean.mathlib::nat))) (app (const lean.mathlib::bit-vec) (local w)))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Data.BitVec.Basic" +name = "BitVec.rotateLeft" + +[[form]] +id = "rotate-left" +channel = "math" +surface = "bitVecRotateLeft" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name bitVecRotateLeft) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/rotate-right.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/rotate-right.toml new file mode 100644 index 0000000000..29ffa3a524 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/bit-vec/rotate-right.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "bit-vec.rotate-right" +category = "function" +signature = "(pi ((implicit w (const lean.mathlib::nat)) (explicit x (app (const lean.mathlib::bit-vec) (local w))) (explicit n (const lean.mathlib::nat))) (app (const lean.mathlib::bit-vec) (local w)))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Data.BitVec.Basic" +name = "BitVec.rotateRight" + +[[form]] +id = "rotate-right" +channel = "math" +surface = "bitVecRotateRight" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name bitVecRotateRight) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/blake3-g-host/rotate-left-rotate-right.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/blake3-g-host/rotate-left-rotate-right.toml new file mode 100644 index 0000000000..345fedbe94 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/blake3-g-host/rotate-left-rotate-right.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "blake3-g-host.rotate-left-rotate-right" +category = "proof-constant" +signature = "(pi ((explicit x (app (const lean.mathlib::bit-vec) (nat 32))) (explicit n (const lean.mathlib::nat))) (app (const lexlean.core::eq) (app (const lean.mathlib::bit-vec.rotate-left) (app (const lean.mathlib::bit-vec.rotate-right) (local x) (local n)) (local n)) (local x)))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Blake3GHost" +name = "Blake3GHost.rotateLeft_rotateRight" + +[[form]] +id = "rotate-left-rotate-right" +channel = "math" +surface = "blake3GHostRotateLeftRotateRight" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name blake3GHostRotateLeftRotateRight) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/fin.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/fin.toml new file mode 100644 index 0000000000..7d9c3191c2 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/fin.toml @@ -0,0 +1,31 @@ +spec = "lexlean/entry/1" +id = "fin" +category = "function" +signature = "(pi ((explicit n (const lean.mathlib::nat))) (sort (type 0)))" +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "Fin" + +[[form]] +id = "fin" +channel = "math" +surface = "fin" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name fin) (paren (slot 0)))" + +[eliminator] +cases_lean_name = "Fin.casesOn" +induction_lean_name = "Fin.rec" + +[[eliminator.constructor]] +entry = "lean.mathlib::fin.mk" +lean_name = "Fin.mk" +fields = ["val", "isLt"] +induction_hypotheses = [] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/fin/mk.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/fin/mk.toml new file mode 100644 index 0000000000..f5e20acb68 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/fin/mk.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "fin.mk" +category = "function" +signature = "(pi ((implicit n (const lean.mathlib::nat)) (explicit val (const lean.mathlib::nat)) (explicit isLt (app (const lean.mathlib::lt.lt (0)) (local val) (local n)))) (app (const lean.mathlib::fin) (local n)))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "Fin.mk" + +[[form]] +id = "mk" +channel = "math" +surface = "finMk" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name finMk) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add.toml new file mode 100644 index 0000000000..6d5d9ae978 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add.toml @@ -0,0 +1,32 @@ +spec = "lexlean/entry/1" +id = "h-add" +category = "function" +signature = "(pi ((explicit a (sort (type u))) (explicit b (sort (type v))) (explicit g (sort (type w)))) (sort (type (max (max u v) w))))" +universes = ["u", "v", "w"] +surface_arity = 3 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HAdd" + +[[form]] +id = "h-add" +channel = "math" +surface = "hAdd" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hAdd) (paren (seq (slot 0) (token comma) (space) (slot 1) (token comma) (space) (slot 2))))" + +[eliminator] +cases_lean_name = "HAdd.casesOn" +induction_lean_name = "HAdd.rec" + +[[eliminator.constructor]] +entry = "lean.mathlib::h-add.mk" +lean_name = "HAdd.mk" +fields = ["hAdd"] +induction_hypotheses = [] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add/h-add.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add/h-add.toml new file mode 100644 index 0000000000..fc9e56a6ef --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add/h-add.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-add.h-add" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (instance self (app (const lean.mathlib::h-add (u v w)) (local a) (local b) (local g))) (explicit x (local a)) (explicit x1 (local b))) (local g))" +universes = ["u", "v", "w"] +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HAdd.hAdd" + +[[form]] +id = "h-add" +channel = "math" +surface = "hAddHAdd" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hAddHAdd) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add/mk.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add/mk.toml new file mode 100644 index 0000000000..e0f556287c --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-add/mk.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-add.mk" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (explicit hAdd (pi ((explicit x (local a)) (explicit x1 (local b))) (local g)))) (app (const lean.mathlib::h-add (u v w)) (local a) (local b) (local g)))" +universes = ["u", "v", "w"] +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HAdd.mk" + +[[form]] +id = "mk" +channel = "math" +surface = "hAddMk" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hAddMk) (paren (slot 0)))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow.toml new file mode 100644 index 0000000000..5357e6cac3 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow.toml @@ -0,0 +1,32 @@ +spec = "lexlean/entry/1" +id = "h-pow" +category = "function" +signature = "(pi ((explicit a (sort (type u))) (explicit b (sort (type v))) (explicit g (sort (type w)))) (sort (type (max (max u v) w))))" +universes = ["u", "v", "w"] +surface_arity = 3 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HPow" + +[[form]] +id = "h-pow" +channel = "math" +surface = "hPow" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hPow) (paren (seq (slot 0) (token comma) (space) (slot 1) (token comma) (space) (slot 2))))" + +[eliminator] +cases_lean_name = "HPow.casesOn" +induction_lean_name = "HPow.rec" + +[[eliminator.constructor]] +entry = "lean.mathlib::h-pow.mk" +lean_name = "HPow.mk" +fields = ["hPow"] +induction_hypotheses = [] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow/h-pow.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow/h-pow.toml new file mode 100644 index 0000000000..94f73c5c2b --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow/h-pow.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-pow.h-pow" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (instance self (app (const lean.mathlib::h-pow (u v w)) (local a) (local b) (local g))) (explicit x (local a)) (explicit x1 (local b))) (local g))" +universes = ["u", "v", "w"] +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HPow.hPow" + +[[form]] +id = "h-pow" +channel = "math" +surface = "hPowHPow" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hPowHPow) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow/mk.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow/mk.toml new file mode 100644 index 0000000000..776bb84954 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-pow/mk.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-pow.mk" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (explicit hPow (pi ((explicit x (local a)) (explicit x1 (local b))) (local g)))) (app (const lean.mathlib::h-pow (u v w)) (local a) (local b) (local g)))" +universes = ["u", "v", "w"] +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HPow.mk" + +[[form]] +id = "mk" +channel = "math" +surface = "hPowMk" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hPowMk) (paren (slot 0)))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub.toml new file mode 100644 index 0000000000..60dbffd2db --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub.toml @@ -0,0 +1,32 @@ +spec = "lexlean/entry/1" +id = "h-sub" +category = "function" +signature = "(pi ((explicit a (sort (type u))) (explicit b (sort (type v))) (explicit g (sort (type w)))) (sort (type (max (max u v) w))))" +universes = ["u", "v", "w"] +surface_arity = 3 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HSub" + +[[form]] +id = "h-sub" +channel = "math" +surface = "hSub" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hSub) (paren (seq (slot 0) (token comma) (space) (slot 1) (token comma) (space) (slot 2))))" + +[eliminator] +cases_lean_name = "HSub.casesOn" +induction_lean_name = "HSub.rec" + +[[eliminator.constructor]] +entry = "lean.mathlib::h-sub.mk" +lean_name = "HSub.mk" +fields = ["hSub"] +induction_hypotheses = [] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub/h-sub.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub/h-sub.toml new file mode 100644 index 0000000000..4a9f32e4e4 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub/h-sub.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-sub.h-sub" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (instance self (app (const lean.mathlib::h-sub (u v w)) (local a) (local b) (local g))) (explicit x (local a)) (explicit x1 (local b))) (local g))" +universes = ["u", "v", "w"] +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HSub.hSub" + +[[form]] +id = "h-sub" +channel = "math" +surface = "hSubHSub" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hSubHSub) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub/mk.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub/mk.toml new file mode 100644 index 0000000000..31a81ea7d7 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-sub/mk.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-sub.mk" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (explicit hSub (pi ((explicit x (local a)) (explicit x1 (local b))) (local g)))) (app (const lean.mathlib::h-sub (u v w)) (local a) (local b) (local g)))" +universes = ["u", "v", "w"] +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HSub.mk" + +[[form]] +id = "mk" +channel = "math" +surface = "hSubMk" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hSubMk) (paren (slot 0)))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor.toml new file mode 100644 index 0000000000..a2c637f634 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor.toml @@ -0,0 +1,32 @@ +spec = "lexlean/entry/1" +id = "h-xor" +category = "function" +signature = "(pi ((explicit a (sort (type u))) (explicit b (sort (type v))) (explicit g (sort (type w)))) (sort (type (max (max u v) w))))" +universes = ["u", "v", "w"] +surface_arity = 3 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HXor" + +[[form]] +id = "h-xor" +channel = "math" +surface = "hXor" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hXor) (paren (seq (slot 0) (token comma) (space) (slot 1) (token comma) (space) (slot 2))))" + +[eliminator] +cases_lean_name = "HXor.casesOn" +induction_lean_name = "HXor.rec" + +[[eliminator.constructor]] +entry = "lean.mathlib::h-xor.mk" +lean_name = "HXor.mk" +fields = ["hXor"] +induction_hypotheses = [] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor/h-xor.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor/h-xor.toml new file mode 100644 index 0000000000..fa61319d5c --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor/h-xor.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-xor.h-xor" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (instance self (app (const lean.mathlib::h-xor (u v w)) (local a) (local b) (local g))) (explicit x (local a)) (explicit x1 (local b))) (local g))" +universes = ["u", "v", "w"] +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HXor.hXor" + +[[form]] +id = "h-xor" +channel = "math" +surface = "hXorHXor" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hXorHXor) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor/mk.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor/mk.toml new file mode 100644 index 0000000000..5ae2d6c87b --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/h-xor/mk.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-xor.mk" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (explicit hXor (pi ((explicit x (local a)) (explicit x1 (local b))) (local g)))) (app (const lean.mathlib::h-xor (u v w)) (local a) (local b) (local g)))" +universes = ["u", "v", "w"] +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HXor.mk" + +[[form]] +id = "mk" +channel = "math" +surface = "hXorMk" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hXorMk) (paren (slot 0)))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/add-right-comm.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/add-right-comm.toml new file mode 100644 index 0000000000..3a5b98c257 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/add-right-comm.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.bit-vec32.add-right-comm" +category = "proof-constant" +signature = "(pi ((explicit a (app (const lean.mathlib::bit-vec) (nat 32))) (explicit b (app (const lean.mathlib::bit-vec) (nat 32))) (explicit c (app (const lean.mathlib::bit-vec) (nat 32)))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-add.h-add (0 0 0)) (app (const lean.mathlib::h-add.h-add (0 0 0)) (local a) (local b)) (local c)) (app (const lean.mathlib::h-add.h-add (0 0 0)) (app (const lean.mathlib::h-add.h-add (0 0 0)) (local a) (local c)) (local b))))" +surface_arity = 3 +frame = "call" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.BitVec32.add_right_comm" + +[[form]] +id = "add-right-comm" +channel = "math" +surface = "lexLeanSpecBitVec32AddRightComm" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name lexLeanSpecBitVec32AddRightComm) (paren (seq (slot 0) (token comma) (space) (slot 1) (token comma) (space) (slot 2))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/add-sub-cancel-right.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/add-sub-cancel-right.toml new file mode 100644 index 0000000000..27b86c1bc6 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/add-sub-cancel-right.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.bit-vec32.add-sub-cancel-right" +category = "proof-constant" +signature = "(pi ((explicit a (app (const lean.mathlib::bit-vec) (nat 32))) (explicit b (app (const lean.mathlib::bit-vec) (nat 32)))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-sub.h-sub (0 0 0)) (app (const lean.mathlib::h-add.h-add (0 0 0)) (local a) (local b)) (local b)) (local a)))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.BitVec32.add_sub_cancel_right" + +[[form]] +id = "add-sub-cancel-right" +channel = "math" +surface = "lexLeanSpecBitVec32AddSubCancelRight" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name lexLeanSpecBitVec32AddSubCancelRight) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/add-sub-cancel.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/add-sub-cancel.toml new file mode 100644 index 0000000000..dbe8f948fa --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/add-sub-cancel.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.bit-vec32.bit-vec.add-sub-cancel" +category = "proof-constant" +signature = "(pi ((explicit x (app (const lean.mathlib::bit-vec) (nat 32))) (explicit y (app (const lean.mathlib::bit-vec) (nat 32)))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-sub.h-sub (0 0 0)) (app (const lean.mathlib::h-add.h-add (0 0 0)) (local x) (local y)) (local y)) (local x)))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.BitVec32.BitVec.add_sub_cancel" + +[[form]] +id = "add-sub-cancel" +channel = "math" +surface = "lexLeanSpecBitVec32BitVecAddSubCancel" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name lexLeanSpecBitVec32BitVecAddSubCancel) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-assoc.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-assoc.toml new file mode 100644 index 0000000000..580b9ab76e --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-assoc.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.bit-vec32.bit-vec.xor-assoc" +category = "proof-constant" +signature = "(pi ((explicit x (app (const lean.mathlib::bit-vec) (nat 32))) (explicit y (app (const lean.mathlib::bit-vec) (nat 32))) (explicit z (app (const lean.mathlib::bit-vec) (nat 32)))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local x) (local y)) (local z)) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local x) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local y) (local z)))))" +surface_arity = 3 +frame = "call" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.BitVec32.BitVec.xor_assoc" + +[[form]] +id = "xor-assoc" +channel = "math" +surface = "lexLeanSpecBitVec32BitVecXorAssoc" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name lexLeanSpecBitVec32BitVecXorAssoc) (paren (seq (slot 0) (token comma) (space) (slot 1) (token comma) (space) (slot 2))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-self.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-self.toml new file mode 100644 index 0000000000..6d4cb13715 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-self.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.bit-vec32.bit-vec.xor-self" +category = "proof-constant" +signature = "(pi ((implicit x (app (const lean.mathlib::bit-vec) (nat 32)))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local x) (local x)) (app (const lean.mathlib::bit-vec.of-nat) (nat 32) (nat 0))))" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.BitVec32.BitVec.xor_self" + +[[form]] +id = "xor-self" +channel = "math" +surface = "lexLeanSpecBitVec32BitVecXorSelf" +canonical_source = true +features = [] + +[render] +math = "(operator-name lexLeanSpecBitVec32BitVecXorSelf)" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-zero.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-zero.toml new file mode 100644 index 0000000000..fcbf09e72c --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/bit-vec32/bit-vec/xor-zero.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.bit-vec32.bit-vec.xor-zero" +category = "proof-constant" +signature = "(pi ((implicit x (app (const lean.mathlib::bit-vec) (nat 32)))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local x) (app (const lean.mathlib::bit-vec.of-nat) (nat 32) (nat 0))) (local x)))" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.BitVec32.BitVec.xor_zero" + +[[form]] +id = "xor-zero" +channel = "math" +surface = "lexLeanSpecBitVec32BitVecXorZero" +canonical_source = true +features = [] + +[render] +math = "(operator-name lexLeanSpecBitVec32BitVecXorZero)" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/add-sub-cancel.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/add-sub-cancel.toml new file mode 100644 index 0000000000..30379f3ce5 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/add-sub-cancel.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.u32.u-int32.add-sub-cancel" +category = "proof-constant" +signature = "(pi ((explicit a (const lean.mathlib::u-int32)) (explicit b (const lean.mathlib::u-int32))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-sub.h-sub (0 0 0)) (app (const lean.mathlib::h-add.h-add (0 0 0)) (local a) (local b)) (local b)) (local a)))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.U32.UInt32.add_sub_cancel" + +[[form]] +id = "add-sub-cancel" +channel = "math" +surface = "lexLeanSpecU32UInt32AddSubCancel" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name lexLeanSpecU32UInt32AddSubCancel) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-assoc.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-assoc.toml new file mode 100644 index 0000000000..385a0fd3b6 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-assoc.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.u32.u-int32.xor-assoc" +category = "proof-constant" +signature = "(pi ((explicit a (const lean.mathlib::u-int32)) (explicit b (const lean.mathlib::u-int32)) (explicit c (const lean.mathlib::u-int32))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local a) (local b)) (local c)) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local a) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local b) (local c)))))" +surface_arity = 3 +frame = "call" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.U32.UInt32.xor_assoc" + +[[form]] +id = "xor-assoc" +channel = "math" +surface = "lexLeanSpecU32UInt32XorAssoc" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name lexLeanSpecU32UInt32XorAssoc) (paren (seq (slot 0) (token comma) (space) (slot 1) (token comma) (space) (slot 2))))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-self.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-self.toml new file mode 100644 index 0000000000..2298a46452 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-self.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.u32.u-int32.xor-self" +category = "proof-constant" +signature = "(pi ((implicit a (const lean.mathlib::u-int32))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local a) (local a)) (nat 0)))" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.U32.UInt32.xor_self" + +[[form]] +id = "xor-self" +channel = "math" +surface = "lexLeanSpecU32UInt32XorSelf" +canonical_source = true +features = [] + +[render] +math = "(operator-name lexLeanSpecU32UInt32XorSelf)" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-zero.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-zero.toml new file mode 100644 index 0000000000..51ba31019c --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lex-lean-spec/u32/u-int32/xor-zero.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "lex-lean-spec.u32.u-int32.xor-zero" +category = "proof-constant" +signature = "(pi ((implicit a (const lean.mathlib::u-int32))) (app (const lexlean.core::eq) (app (const lean.mathlib::h-xor.h-xor (0 0 0)) (local a) (nat 0)) (local a)))" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Blake3GSpecs" +name = "LexLeanSpec.U32.UInt32.xor_zero" + +[[form]] +id = "xor-zero" +channel = "math" +surface = "lexLeanSpecU32UInt32XorZero" +canonical_source = true +features = [] + +[render] +math = "(operator-name lexLeanSpecU32UInt32XorZero)" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt.toml new file mode 100644 index 0000000000..cd224b3cf9 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt.toml @@ -0,0 +1,32 @@ +spec = "lexlean/entry/1" +id = "lt" +category = "function" +signature = "(pi ((explicit a (sort (type u)))) (sort (type u)))" +universes = ["u"] +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "LT" + +[[form]] +id = "lt" +channel = "math" +surface = "lt" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name lt) (paren (slot 0)))" + +[eliminator] +cases_lean_name = "LT.casesOn" +induction_lean_name = "LT.rec" + +[[eliminator.constructor]] +entry = "lean.mathlib::lt.mk" +lean_name = "LT.mk" +fields = ["lt"] +induction_hypotheses = [] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt/lt.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt/lt.toml new file mode 100644 index 0000000000..838a3e23f0 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt/lt.toml @@ -0,0 +1,19 @@ +spec = "lexlean/entry/1" +id = "lt.lt" +category = "transitive-predicate" +signature = "(pi ((implicit a (sort (type u))) (instance self (app (const lean.mathlib::lt (u)) (local a))) (explicit x (local a)) (explicit x1 (local a))) (sort prop))" +universes = ["u"] +surface_arity = 2 +frame = "transitive" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "LT.lt" + +[[form]] +id = "lt" +channel = "text" +surface = "lt" +canonical_source = true +features = ["lower-case"] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt/mk.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt/mk.toml new file mode 100644 index 0000000000..9cff86da55 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/lt/mk.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "lt.mk" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (explicit lt (pi ((explicit x (local a)) (explicit x1 (local a))) (sort prop)))) (app (const lean.mathlib::lt (u)) (local a)))" +universes = ["u"] +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "LT.mk" + +[[form]] +id = "mk" +channel = "math" +surface = "ltMk" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name ltMk) (paren (slot 0)))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat.toml new file mode 100644 index 0000000000..e057f97c49 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat.toml @@ -0,0 +1,37 @@ +spec = "lexlean/entry/1" +id = "nat" +category = "type-noun" +signature = "(sort (type 0))" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "Nat" + +[[form]] +id = "nat" +channel = "math" +surface = "nat" +canonical_source = true +features = [] + +[render] +math = "(operator-name nat)" + +[eliminator] +cases_lean_name = "Nat.casesAuxOn" +induction_lean_name = "Nat.recAux" + +[[eliminator.constructor]] +entry = "lean.mathlib::nat.zero" +lean_name = "Nat.zero" +fields = [] +induction_hypotheses = [] + +[[eliminator.constructor]] +entry = "lean.mathlib::nat.succ" +lean_name = "Nat.succ" +fields = ["n"] +induction_hypotheses = ["nih"] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat/succ.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat/succ.toml new file mode 100644 index 0000000000..9531bf1642 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat/succ.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "nat.succ" +category = "function" +signature = "(pi ((explicit n (const lean.mathlib::nat))) (const lean.mathlib::nat))" +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "Nat.succ" + +[[form]] +id = "succ" +channel = "math" +surface = "natSucc" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name natSucc) (paren (slot 0)))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat/zero.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat/zero.toml new file mode 100644 index 0000000000..76a342a4f1 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/nat/zero.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "nat.zero" +category = "term-constant" +signature = "(const lean.mathlib::nat)" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "Nat.zero" + +[[form]] +id = "zero" +channel = "math" +surface = "natZero" +canonical_source = true +features = [] + +[render] +math = "(operator-name natZero)" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/u-int32.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/u-int32.toml new file mode 100644 index 0000000000..edee814a03 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/u-int32.toml @@ -0,0 +1,31 @@ +spec = "lexlean/entry/1" +id = "u-int32" +category = "type-noun" +signature = "(sort (type 0))" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "UInt32" + +[[form]] +id = "u-int32" +channel = "math" +surface = "uInt32" +canonical_source = true +features = [] + +[render] +math = "(operator-name uInt32)" + +[eliminator] +cases_lean_name = "UInt32.casesOn" +induction_lean_name = "UInt32.rec" + +[[eliminator.constructor]] +entry = "lean.mathlib::u-int32.of-bit-vec" +lean_name = "UInt32.ofBitVec" +fields = ["toBitVec"] +induction_hypotheses = [] diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/u-int32/of-bit-vec.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/u-int32/of-bit-vec.toml new file mode 100644 index 0000000000..43fdc1bea2 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/entries/u-int32/of-bit-vec.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "u-int32.of-bit-vec" +category = "function" +signature = "(pi ((explicit toBitVec (app (const lean.mathlib::bit-vec) (nat 32)))) (const lean.mathlib::u-int32))" +surface_arity = 1 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "UInt32.ofBitVec" + +[[form]] +id = "of-bit-vec" +channel = "math" +surface = "uInt32OfBitVec" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name uInt32OfBitVec) (paren (slot 0)))" diff --git a/demos/mathlib-blake3-g/glossary/lean.mathlib/lexicon.toml b/demos/mathlib-blake3-g/glossary/lean.mathlib/lexicon.toml new file mode 100644 index 0000000000..60dd4201e5 --- /dev/null +++ b/demos/mathlib-blake3-g/glossary/lean.mathlib/lexicon.toml @@ -0,0 +1,5 @@ +spec = "lexlean/lexicon/1" +package = "lean.mathlib" +version = "1.0.0" +language = "1.2" +imports = ["lexlean.core@1.2.0"] diff --git a/demos/mathlib-blake3-g/lake-manifest.json b/demos/mathlib-blake3-g/lake-manifest.json new file mode 100644 index 0000000000..027bd3d45a --- /dev/null +++ b/demos/mathlib-blake3-g/lake-manifest.json @@ -0,0 +1,116 @@ +{ + "version": "1.2.0", + "packagesDir": ".lake/packages", + "packages": [ + { + "url": "https://github.com/leanprover-community/mathlib4", + "type": "git", + "subDir": null, + "scope": "leanprover-community", + "rev": "520045ab14e26149ee970e2e617ca04b09bde5d6", + "name": "mathlib", + "manifestFile": "lake-manifest.json", + "inputRev": "520045ab14e26149ee970e2e617ca04b09bde5d6", + "inherited": false, + "configFile": "lakefile.lean" + }, + { + "url": "https://github.com/leanprover-community/plausible", + "type": "git", + "subDir": null, + "scope": "leanprover-community", + "rev": "e12c1910fe855cbfc38803cd4e55543906d5fa62", + "name": "plausible", + "manifestFile": "lake-manifest.json", + "inputRev": "main", + "inherited": true, + "configFile": "lakefile.toml" + }, + { + "url": "https://github.com/leanprover-community/LeanSearchClient", + "type": "git", + "subDir": null, + "scope": "leanprover-community", + "rev": "c5d5b8fe6e5158def25cd28eb94e4141ad97c843", + "name": "LeanSearchClient", + "manifestFile": "lake-manifest.json", + "inputRev": "main", + "inherited": true, + "configFile": "lakefile.toml" + }, + { + "url": "https://github.com/leanprover-community/import-graph", + "type": "git", + "subDir": null, + "scope": "leanprover-community", + "rev": "7e9612bf0b9ee66db3cb5b9988a35afc706f5a12", + "name": "importGraph", + "manifestFile": "lake-manifest.json", + "inputRev": "main", + "inherited": true, + "configFile": "lakefile.toml" + }, + { + "url": "https://github.com/leanprover-community/ProofWidgets4", + "type": "git", + "subDir": null, + "scope": "leanprover-community", + "rev": "6e311e2a844da9b2cc3971187df2fe0066947b93", + "name": "proofwidgets", + "manifestFile": "lake-manifest.json", + "inputRev": "main", + "inherited": true, + "configFile": "lakefile.lean" + }, + { + "url": "https://github.com/leanprover-community/aesop", + "type": "git", + "subDir": null, + "scope": "leanprover-community", + "rev": "a7dbf0c63b694e47f425f3dcddbc0e178bb432d3", + "name": "aesop", + "manifestFile": "lake-manifest.json", + "inputRev": "master", + "inherited": true, + "configFile": "lakefile.toml" + }, + { + "url": "https://github.com/leanprover-community/quote4", + "type": "git", + "subDir": null, + "scope": "leanprover-community", + "rev": "38d591e778f100aec9762bb582f9c7f55f50e9dc", + "name": "Qq", + "manifestFile": "lake-manifest.json", + "inputRev": "master", + "inherited": true, + "configFile": "lakefile.toml" + }, + { + "url": "https://github.com/leanprover-community/batteries", + "type": "git", + "subDir": null, + "scope": "leanprover-community", + "rev": "023ce7d62a0531e22a5331e20b587817a80d49ff", + "name": "batteries", + "manifestFile": "lake-manifest.json", + "inputRev": "main", + "inherited": true, + "configFile": "lakefile.toml" + }, + { + "url": "https://github.com/leanprover/lean4-cli", + "type": "git", + "subDir": null, + "scope": "leanprover", + "rev": "88679d088c9720c27ebdf2ba4dafe17341747f94", + "name": "Cli", + "manifestFile": "lake-manifest.json", + "inputRev": "v4.32.0", + "inherited": true, + "configFile": "lakefile.toml" + } + ], + "name": "mathlib_blake3_g", + "lakeDir": ".lake" +} \ No newline at end of file diff --git a/demos/mathlib-blake3-g/lakefile.toml b/demos/mathlib-blake3-g/lakefile.toml new file mode 100644 index 0000000000..5bd74350b1 --- /dev/null +++ b/demos/mathlib-blake3-g/lakefile.toml @@ -0,0 +1,12 @@ +name = "mathlib_blake3_g" +version = "0.1.0" +defaultTargets = ["Blake3GHost"] + +[[require]] +name = "mathlib" +git = "https://github.com/leanprover-community/mathlib4" +rev = "520045ab14e26149ee970e2e617ca04b09bde5d6" + +[[lean_lib]] +name = "Blake3GHost" +roots = ["Blake3GHost", "Blake3GSpecs"] diff --git a/demos/mathlib-blake3-g/lean-toolchain b/demos/mathlib-blake3-g/lean-toolchain new file mode 100644 index 0000000000..2b61957be5 --- /dev/null +++ b/demos/mathlib-blake3-g/lean-toolchain @@ -0,0 +1 @@ +leanprover/lean4:v4.32.1 diff --git a/demos/mathlib-blake3-g/lexlean.lock b/demos/mathlib-blake3-g/lexlean.lock new file mode 100644 index 0000000000..d7264f51e2 --- /dev/null +++ b/demos/mathlib-blake3-g/lexlean.lock @@ -0,0 +1,74 @@ +spec = "lexlean/lock/2" +language = "1.2" +compiler_semantics = "1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694" +project_config_sha256 = "b399afc31f58ecde217d8822787f575e91223f8ddc76eac6c4afa7c922aa68ab" +lean_toolchain = "leanprover/lean4:v4.32.1" + +[[workspace_file]] +path = "lake-manifest.json" +sha256 = "de143ea8cd43911506a474e8933ba7f9394e99304f7a9f7f65d50bed03e76d2c" + +[[workspace_file]] +path = "lakefile.toml" +sha256 = "acd8d54aa20b69c86cef9af477bc214edb282db909464b86b57af5ec68ad7044" + +[[workspace_file]] +path = "lean-toolchain" +sha256 = "8e3538e0ab5f81a3ee04927d8838c8c674e0e112838b4b3ce87ec218143276af" + +[[package]] +id = "blake3.g" +version = "1.0.0" +kind = "path" +source = "glossary/blake3.g" +revision = "none" +tree_sha256 = "2c3540b8390722fb229212b60f4a4930e5a9b0bbea3a11d327484c5804c80546" +manifest_sha256 = "d35dcc6762613da08688086b3378cb0099b1b6da4c9cabdd809396bacc6fd196" +imports = ["lean.mathlib@1.0.0", "lexlean.core@1.2.0"] + +[[package]] +id = "lean.mathlib" +version = "1.0.0" +kind = "path" +source = "glossary/lean.mathlib" +revision = "none" +tree_sha256 = "62069b4dd8ba1e164384095b9dd931f1689274a22500b5e8693374471bf94547" +manifest_sha256 = "5fef012739e28a5bff0b8f40825d9813776d8ab87ba5b715f654d1f36ce17f28" +imports = ["lexlean.core@1.2.0"] + +[[package]] +id = "lexlean.core" +version = "1.2.0" +kind = "builtin" +source = "embedded" +revision = "compiler-semantics" +tree_sha256 = "827317cae68c162f3a96c8a8de4e53ab348e7d3724fd2b834fa85ecde1a1b392" +manifest_sha256 = "271079763d269cc873531f515e56da960cd6321393b9460ff0e617666fa01d71" +imports = [] + +[[package]] +id = "lexlean.std.bool" +version = "1.2.0" +kind = "builtin" +source = "embedded" +revision = "compiler-semantics" +tree_sha256 = "3bc0fb09d706ffa7d5a1363302ea87c049acc7c7dcafde63c62682620c11be9b" +manifest_sha256 = "de58de2cf18a7a5a62d8c20649139d6dfe1f7b16b3130c75f150fbac5440a71e" +imports = ["lexlean.core@1.2.0"] + +[[package]] +id = "lexlean.std.nat" +version = "1.2.0" +kind = "builtin" +source = "embedded" +revision = "compiler-semantics" +tree_sha256 = "e0db021e01b91d651c43921d66f6b0023c8efbf17cac2ec53192ce5305e4e1ac" +manifest_sha256 = "6fb446b39e3c1c18a5f10cfa1f7aa2bd431837719eb0eb7489aadf452c9420a7" +imports = ["lexlean.core@1.2.0", "lexlean.std.bool@1.2.0"] + +[[lean_library]] +name = "mathlib" +url = "https://github.com/leanprover-community/mathlib4" +revision = "520045ab14e26149ee970e2e617ca04b09bde5d6" +lake_manifest_sha256 = "015c7e00ead0f05f2a72b32d9bdef782d4689d05a6297f0ceb0ab5d196c164bd" +glossary_sha256 = "62069b4dd8ba1e164384095b9dd931f1689274a22500b5e8693374471bf94547" diff --git a/demos/mathlib-blake3-g/lexlean.toml b/demos/mathlib-blake3-g/lexlean.toml new file mode 100644 index 0000000000..a2f8008a9c --- /dev/null +++ b/demos/mathlib-blake3-g/lexlean.toml @@ -0,0 +1,42 @@ +spec = "lexlean/project/1" +name = "mathlib-blake3-g" +language = "1.2" +module_prefix = "MathlibBlake3G" +source_roots = ["src"] +entrypoints = ["src/Main.lex.tex"] +build_root = ".lexlean" +lockfile = "lexlean.lock" +lean_workspace = "." +lean_toolchain = "leanprover/lean4:v4.32.1" + +[[lexicon_source]] +package = "blake3.g" +kind = "path" +path = "glossary/blake3.g" + +[[lexicon_source]] +package = "lean.mathlib" +kind = "path" +path = "glossary/lean.mathlib" + +[[lexicon_source]] +package = "lexlean.std.nat" +kind = "builtin" + +[[lean_library]] +name = "mathlib" +url = "https://github.com/leanprover-community/mathlib4" +revision = "520045ab14e26149ee970e2e617ca04b09bde5d6" + +[limits] +max_file_bytes = 4194304 +max_total_source_bytes = 67108864 +max_primitive_atoms = 2000000 +max_token_lattice_edges = 4000000 +max_parse_states = 4000000 +max_ir_nodes = 2000000 +max_scope_depth = 1024 +max_import_depth = 128 +max_diagnostics = 256 +max_child_output_bytes = 16777216 +child_timeout_ms = 1800000 diff --git a/demos/mathlib-blake3-g/setup-offline.sh b/demos/mathlib-blake3-g/setup-offline.sh new file mode 100755 index 0000000000..eeb786d39f --- /dev/null +++ b/demos/mathlib-blake3-g/setup-offline.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# Make the pinned Mathlib and its packages available to this example's Lake +# workspace without a network: hard links to an already fetched checkout, so no +# extra disk. `lexlean deps fetch` is the way to acquire the library when there +# is no such checkout. Usage: MATHLIB=/path/to/pinned/checkout ./setup-offline.sh +set -euo pipefail +here="$(cd "$(dirname "$0")" && pwd)" +mathlib="${MATHLIB:-$HOME/mathlib-pinned}" +revision="520045ab14e26149ee970e2e617ca04b09bde5d6" +[ "$(cat "$mathlib/.git/HEAD")" = "$revision" ] || { echo "$mathlib is not at $revision" >&2; exit 1; } +mkdir -p "$here/.lake/packages" +[ -e "$here/.lake/packages/mathlib" ] || cp -al "$mathlib" "$here/.lake/packages/mathlib" +for package in "$mathlib"/.lake/packages/*/; do + name="$(basename "$package")" + [ -e "$here/.lake/packages/$name" ] || cp -al "$package" "$here/.lake/packages/$name" +done +(cd "$here" && lake build Blake3GHost) diff --git a/demos/mathlib-blake3-g/src/Cancellation.lex.tex b/demos/mathlib-blake3-g/src/Cancellation.lex.tex new file mode 100644 index 0000000000..b2f5f5ecbb --- /dev/null +++ b/demos/mathlib-blake3-g/src/Cancellation.lex.tex @@ -0,0 +1,71 @@ +\begin{lexlean}{Cancellation} +\useglossary{blake3.g@1.0.0} +\useglossary{lean.mathlib@1.0.0} +\title{Cancellation} + +\begin{section}{addition} +\heading{Cancellation} + \begin{theorem}{add-sub-cancel} + \exactaxioms{propext} + For every \(bitVec(32)\) \(a\) and \(bitVec(32)\) \(b\), \(hSubHSub(hAddHAdd(a, b), b) = a\). + \begin{proof} + Close the goal with \(lexLeanSpecBitVec32BitVecAddSubCancel(a, b)\). + \end{proof} + \end{theorem} + + \begin{theorem}{add-sub-cancel-group} + \exactaxioms{Classical.choice;Quot.sound;propext} + For every \(bitVec(32)\) \(a\) and \(bitVec(32)\) \(b\), \(hSubHSub(hAddHAdd(a, b), b) = a\). + \begin{proof} + Close the goal with \(lexLeanSpecBitVec32AddSubCancelRight(a, b)\). + \end{proof} + \end{theorem} + + \begin{theorem}{add-sub-cancel-u32} + \exactaxioms{propext} + For every \(uInt32\) \(a\) and \(uInt32\) \(b\), \(hSubHSub(hAddHAdd(a, b), b) = a\). + \begin{proof} + Close the goal with \(lexLeanSpecU32UInt32AddSubCancel(a, b)\). + \end{proof} + \end{theorem} + + \begin{lemma}{add-sub-sub-cancel} + \exactaxioms{Classical.choice;Quot.sound;propext} + For every \(bitVec(32)\) \(p\) and \(bitVec(32)\) \(q\) and \(bitVec(32)\) \(r\), \(hSubHSub(hSubHSub(hAddHAdd(hAddHAdd(p, q), r), q), r) = p\). + \begin{proof} + \begin{rewrite}{goal} + \forward{lexLeanSpecBitVec32AddRightComm(p, q, r)} + \forward{lexLeanSpecBitVec32AddSubCancelRight(hAddHAdd(p, r), q)} + \forward{lexLeanSpecBitVec32AddSubCancelRight(p, r)} + \end{rewrite} + \end{proof} + \end{lemma} +\end{section} + +\begin{section}{exclusive} +\heading{Cancellation} + \begin{theorem}{xor-cancel} + \exactaxioms{Quot.sound;propext} + For every \(bitVec(32)\) \(a\) and \(bitVec(32)\) \(b\), \(hXorHXor(hXorHXor(a, b), b) = a\). + \begin{proof} + \begin{rewrite}{goal} + \forward{lexLeanSpecBitVec32BitVecXorAssoc(a, b, b)} + \forward{lexLeanSpecBitVec32BitVecXorSelf} + \forward{lexLeanSpecBitVec32BitVecXorZero} + \end{rewrite} + \end{proof} + \end{theorem} + + \begin{theorem}{xor-cancel-u32} + \exactaxioms{Quot.sound;propext} + For every \(uInt32\) \(a\) and \(uInt32\) \(b\), \(hXorHXor(hXorHXor(a, b), b) = a\). + \begin{proof} + \begin{rewrite}{goal} + \forward{lexLeanSpecU32UInt32XorAssoc(a, b, b)} + \forward{lexLeanSpecU32UInt32XorSelf} + \forward{lexLeanSpecU32UInt32XorZero} + \end{rewrite} + \end{proof} + \end{theorem} +\end{section} +\end{lexlean} diff --git a/demos/mathlib-blake3-g/src/Main.lex.tex b/demos/mathlib-blake3-g/src/Main.lex.tex new file mode 100644 index 0000000000..7dbbb81e83 --- /dev/null +++ b/demos/mathlib-blake3-g/src/Main.lex.tex @@ -0,0 +1,8 @@ +\begin{lexlean}{Main} +\useglossary{blake3.g@1.0.0} +\useglossary{lean.mathlib@1.0.0} +\importmodule{Cancellation} +\importmodule{Mixing} +\importmodule{Rotation} +\title{Word arithmetic} +\end{lexlean} diff --git a/demos/mathlib-blake3-g/src/Mixing.lex.tex b/demos/mathlib-blake3-g/src/Mixing.lex.tex new file mode 100644 index 0000000000..d8b35beeb1 --- /dev/null +++ b/demos/mathlib-blake3-g/src/Mixing.lex.tex @@ -0,0 +1,129 @@ +\begin{lexlean}{Mixing} +\useglossary{blake3.g@1.0.0} +\useglossary{lean.mathlib@1.0.0} +\importmodule{Cancellation} +\importmodule{Rotation} +\title{Mixing function inverse} + +\begin{section}{inverse} +\heading{Mixing function inverse} + \begin{theorem}{mixing-inverse} + \exactaxioms{Classical.choice;Quot.sound;propext} + For every \(bitVec(32)\) \(a\) and \(bitVec(32)\) \(b\) and \(bitVec(32)\) \(c\) and \(bitVec(32)\) \(d\) and \(bitVec(32)\) \(x\) and \(bitVec(32)\) \(y\) and \(bitVec(32)\) \(a1\) and \(bitVec(32)\) \(b1\) and \(bitVec(32)\) \(c1\) and \(bitVec(32)\) \(d1\) and \(bitVec(32)\) \(a2\) and \(bitVec(32)\) \(b2\) and \(bitVec(32)\) \(c2\) and \(bitVec(32)\) \(d2\) and \(bitVec(32)\) \(ib1\) and \(bitVec(32)\) \(ic1\) and \(bitVec(32)\) \(id1\) and \(bitVec(32)\) \(ia1\) and \(bitVec(32)\) \(ra\) and \(bitVec(32)\) \(rb\) and \(bitVec(32)\) \(rc\) and \(bitVec(32)\) \(rd\), if \(a1 = hAddHAdd(hAddHAdd(a, b), x)\), then if \(d1 = bitVecRotateRight(hXorHXor(d, a1), 16)\), then if \(c1 = hAddHAdd(c, d1)\), then if \(b1 = bitVecRotateRight(hXorHXor(b, c1), 12)\), then if \(a2 = hAddHAdd(hAddHAdd(a1, b1), y)\), then if \(d2 = bitVecRotateRight(hXorHXor(d1, a2), 8)\), then if \(c2 = hAddHAdd(c1, d2)\), then if \(b2 = bitVecRotateRight(hXorHXor(b1, c2), 7)\), then if \(ib1 = hXorHXor(bitVecRotateLeft(b2, 7), c2)\), then if \(ic1 = hSubHSub(c2, d2)\), then if \(id1 = hXorHXor(bitVecRotateLeft(d2, 8), a2)\), then if \(ia1 = hSubHSub(hSubHSub(a2, ib1), y)\), then if \(rb = hXorHXor(bitVecRotateLeft(ib1, 12), ic1)\), then if \(rc = hSubHSub(ic1, id1)\), then if \(rd = hXorHXor(bitVecRotateLeft(id1, 16), ia1)\), then if \(ra = hSubHSub(hSubHSub(ia1, rb), x)\), then \(ra = a\) and \(rb = b\) and \(rc = c\) and \(rd = d\). + \begin{proof} + Assume \(e1\), \(e2\), \(e3\), \(e4\), \(e5\), \(e6\), \(e7\), \(e8\), \(f1\), \(f2\), \(f3\), \(f4\), \(f5\), \(f6\), \(f7\), \(f8\). + \begin{have}{hb1} + \(ib1 = b1\). + \begin{proof} + \begin{rewrite}{goal} + \forward{f1} + \forward{e8} + \end{rewrite} + Close the goal with \(\reference{Rotation::unmix}(b1, c2, 7)\). + \end{proof} + \end{have} + \begin{have}{hc1} + \(ic1 = c1\). + \begin{proof} + \begin{rewrite}{goal} + \forward{f2} + \forward{e7} + \end{rewrite} + Close the goal with \(\reference{Cancellation::add-sub-cancel}(c1, d2)\). + \end{proof} + \end{have} + \begin{have}{hd1} + \(id1 = d1\). + \begin{proof} + \begin{rewrite}{goal} + \forward{f3} + \forward{e6} + \end{rewrite} + Close the goal with \(\reference{Rotation::unmix}(d1, a2, 8)\). + \end{proof} + \end{have} + \begin{have}{ha1} + \(ia1 = a1\). + \begin{proof} + \begin{rewrite}{goal} + \forward{f4} + \forward{hb1} + \forward{e5} + \end{rewrite} + Close the goal with \(\reference{Cancellation::add-sub-sub-cancel}(a1, b1, y)\). + \end{proof} + \end{have} + \begin{have}{hb} + \(rb = b\). + \begin{proof} + \begin{rewrite}{goal} + \forward{f5} + \forward{hb1} + \forward{hc1} + \forward{e4} + \end{rewrite} + Close the goal with \(\reference{Rotation::unmix}(b, c1, 12)\). + \end{proof} + \end{have} + \begin{have}{hc} + \(rc = c\). + \begin{proof} + \begin{rewrite}{goal} + \forward{f6} + \forward{hc1} + \forward{hd1} + \forward{e3} + \end{rewrite} + Close the goal with \(\reference{Cancellation::add-sub-cancel}(c, d1)\). + \end{proof} + \end{have} + \begin{have}{hd} + \(rd = d\). + \begin{proof} + \begin{rewrite}{goal} + \forward{f7} + \forward{hd1} + \forward{ha1} + \forward{e2} + \end{rewrite} + Close the goal with \(\reference{Rotation::unmix}(d, a1, 16)\). + \end{proof} + \end{have} + \begin{have}{ha} + \(ra = a\). + \begin{proof} + \begin{rewrite}{goal} + \forward{f8} + \forward{ha1} + \forward{hb} + \forward{e1} + \end{rewrite} + Close the goal with \(\reference{Cancellation::add-sub-sub-cancel}(a, b, x)\). + \end{proof} + \end{have} + \begin{constructor} + \begin{branch}{1} + \begin{constructor} + \begin{branch}{1} + \begin{constructor} + \begin{branch}{1} + Close the goal with \(ha\). + \end{branch} + \begin{branch}{2} + Close the goal with \(hb\). + \end{branch} + \end{constructor} + \end{branch} + \begin{branch}{2} + Close the goal with \(hc\). + \end{branch} + \end{constructor} + \end{branch} + \begin{branch}{2} + Close the goal with \(hd\). + \end{branch} + \end{constructor} + \end{proof} + \end{theorem} +\end{section} +\end{lexlean} diff --git a/demos/mathlib-blake3-g/src/Rotation.lex.tex b/demos/mathlib-blake3-g/src/Rotation.lex.tex new file mode 100644 index 0000000000..a6a2dcabaf --- /dev/null +++ b/demos/mathlib-blake3-g/src/Rotation.lex.tex @@ -0,0 +1,49 @@ +\begin{lexlean}{Rotation} +\useglossary{blake3.g@1.0.0} +\useglossary{lean.mathlib@1.0.0} +\importmodule{Cancellation} +\title{Rotation} + +\begin{section}{rotation} +\heading{Rotation} + \begin{theorem}{rotate-left-right} + \exactaxioms{Quot.sound;propext} + For every \(bitVec(32)\) \(a\), \(bitVecRotateLeft(bitVecRotateRight(a, 7), 7) = a\) and \(bitVecRotateLeft(bitVecRotateRight(a, 8), 8) = a\) and \(bitVecRotateLeft(bitVecRotateRight(a, 12), 12) = a\) and \(bitVecRotateLeft(bitVecRotateRight(a, 16), 16) = a\). + \begin{proof} + \begin{constructor} + \begin{branch}{1} + \begin{constructor} + \begin{branch}{1} + \begin{constructor} + \begin{branch}{1} + Close the goal with \(blake3GHostRotateLeftRotateRight(a, 7)\). + \end{branch} + \begin{branch}{2} + Close the goal with \(blake3GHostRotateLeftRotateRight(a, 8)\). + \end{branch} + \end{constructor} + \end{branch} + \begin{branch}{2} + Close the goal with \(blake3GHostRotateLeftRotateRight(a, 12)\). + \end{branch} + \end{constructor} + \end{branch} + \begin{branch}{2} + Close the goal with \(blake3GHostRotateLeftRotateRight(a, 16)\). + \end{branch} + \end{constructor} + \end{proof} + \end{theorem} + + \begin{lemma}{unmix} + \exactaxioms{Quot.sound;propext} + For every \(bitVec(32)\) \(p\) and \(bitVec(32)\) \(q\) and \(nat\) \(n\), \(hXorHXor(bitVecRotateLeft(bitVecRotateRight(hXorHXor(p, q), n), n), q) = p\). + \begin{proof} + \begin{rewrite}{goal} + \forward{blake3GHostRotateLeftRotateRight(hXorHXor(p, q), n)} + \end{rewrite} + Close the goal with \(\reference{Cancellation::xor-cancel}(p, q)\). + \end{proof} + \end{lemma} +\end{section} +\end{lexlean} diff --git a/demos/mathlib-blake3-g/wrappers.toml b/demos/mathlib-blake3-g/wrappers.toml new file mode 100644 index 0000000000..8f64f2b25d --- /dev/null +++ b/demos/mathlib-blake3-g/wrappers.toml @@ -0,0 +1,62 @@ +spec = "lexlean/wrappers/1" +imports = ["Mathlib.Algebra.Group.Basic", "Mathlib.Data.BitVec"] + +[[wrapper]] +declaration = "add_sub_cancel_right" +kind = "theorem" +tag = "BitVec32" +arguments = ["(BitVec 32)", "_"] + +[[wrapper]] +declaration = "add_right_comm" +kind = "theorem" +tag = "BitVec32" +arguments = ["(BitVec 32)", "_"] + +[[wrapper]] +declaration = "BitVec.add_sub_cancel" +kind = "theorem" +tag = "BitVec32" +arguments = ["32"] + +[[wrapper]] +declaration = "BitVec.xor_assoc" +kind = "theorem" +tag = "BitVec32" +arguments = ["32"] + +[[wrapper]] +declaration = "BitVec.xor_self" +kind = "theorem" +tag = "BitVec32" +arguments = ["32"] + +[[wrapper]] +declaration = "BitVec.xor_zero" +kind = "theorem" +tag = "BitVec32" +arguments = ["32"] + +[[wrapper]] +declaration = "UInt32.add_sub_cancel" +kind = "theorem" +tag = "U32" +arguments = [] + +[[wrapper]] +declaration = "UInt32.xor_assoc" +kind = "theorem" +tag = "U32" +arguments = [] + +[[wrapper]] +declaration = "UInt32.xor_self" +kind = "theorem" +tag = "U32" +arguments = [] + +[[wrapper]] +declaration = "UInt32.xor_zero" +kind = "theorem" +tag = "U32" +arguments = [] diff --git a/deny.toml b/deny.toml index 7249a62505..3250a8077d 100644 --- a/deny.toml +++ b/deny.toml @@ -22,7 +22,9 @@ version = 2 # A dependency arriving under a licence not below fails this gate. That is the # point: it is a decision a reviewer makes at the time, not one a pre-granted # allowance made for them in advance. -allow = ["Apache-2.0", "MIT", "Unicode-3.0"] +# BSD-2-Clause is `arrayref`, which `blake3` (the replay cache's second digest, +# SPEC.md section 22.13) depends on. +allow = ["Apache-2.0", "BSD-2-Clause", "MIT", "Unicode-3.0"] confidence-threshold = 0.93 [bans] diff --git a/docs/proposals/mathlib-import-notes-334.md b/docs/proposals/mathlib-import-notes-334.md new file mode 100644 index 0000000000..8d627f61fc --- /dev/null +++ b/docs/proposals/mathlib-import-notes-334.md @@ -0,0 +1,173 @@ +# Mathlib import: notes for #334 (pin, config, lock, fetch) + +Working notes for the design document (#341). Not normative; SPEC.md is. + +## The pin + +Mathlib commit `520045ab14e26149ee970e2e617ca04b09bde5d6`, `lean-toolchain` exactly +`leanprover/lean4:v4.32.1` (checked by reading the file at that commit). + +- It is the commit tagged `v4.32.1` in `leanprover-community/mathlib4`, committed 2026-07-23 + with the message "chore: bump toolchain to v4.32.1". +- It is not on `master`. Its parent is `81a5d257c8e4` (the `v4.32.0` bump, 2026-07-13). `master` + went from `v4.32.0` straight to `v4.33.0-rc1` (`79d0395a1825`, 2026-07-16), so a search of + `master`'s history for `lean-toolchain` finds no `v4.32.1`. The tags `v4.32.1` and `v4.32.2` + (`905b95818eb3`, 2026-07-28) sit on a release line off `v4.32.0`. +- Consequence: the pin is a point release of Mathlib's `v4.32` line, not a `master` snapshot. + Mathlib on that line is frozen at the July 2026 state plus whatever Mathlib backported. + Neighbours: `v4.32.0` is `81a5d257c8e410db227a6665ed08f64fea08e997`; `v4.32.2` is + `905b95818eb32af7874a58b427f50c1711a5e96c`, which needs LexLean's pin to move to `v4.32.2`. +- The pin is written as the commit, never the tag. The tag is a mutable reference. + +## Configuration + +`[[lean_library]]` in `lexlean.toml`, language 1.2 only, keys `name`, `url`, `revision`, sorted +and unique by `name`, omitted when absent. Refused with `LLC0109`: non-HTTPS URL, revision that +is not 40 lowercase hex, `branch`/`tag`/`rev`/`ref` (named as mutable references), any other +field, a missing field, a name that is not a package identifier, unsorted or repeated tables, +another language. + +Why language 1.2 only: it follows `source_package` and `artifact_source`, so languages 1.0 and +1.1 keep their identities. The cost is that a language-1.0 document (for example +`examples/peano-arithmetic`, the §13.6 denotation example) cannot declare a library. Owner +decision. + +Why `name` is a package identifier (`[a-z][a-z0-9-]{0,62}`): same rule as `source_package`. +It must equal the Lake package name, so a Lake package with an uppercase letter or an underscore +(for example `Qq`, `importGraph`) cannot be declared. `mathlib` and `batteries` are fine. + +## Declared once, agreed with Lake + +Lake needs its own `require` in the workspace's lakefile and an entry in +`lake-manifest.json`. To keep "declare once" honest, `lexlean.toml` is the pin and the Lake +workspace must agree: the manifest's `packages` entry of the same `name` must have the same +`url` and `rev`, else `LLC0110` names both. LexLean does not write the lakefile or the manifest. +Someone still has to add the `require` and run `lake update` once; scaffolding that is a +follow-up (`lexlean deps add`?), not part of this change. + +## Lock rows + +```toml +[[lean_library]] +name = "mathlib" +url = "https://github.com/leanprover-community/mathlib4" +revision = "520045ab14e26149ee970e2e617ca04b09bde5d6" +lake_manifest_sha256 = "..." +glossary_sha256 = "..." +``` + +- `lake_manifest_sha256`: SHA-256 of `///lake-manifest.json`, + Mathlib's own manifest, which pins batteries, aesop, Qq, proofwidgets and the rest. +- `glossary_sha256`: tree digest (§11.5) of the project's lexicon package `lean.`, or the + digest of the empty tree (`SHA-256("lexlean-tree-v1\0")`) when the project declares none. + This couples to #335: the generated glossary has to be written as a path lexicon package named + `lean.mathlib`, or the row says "empty". If #335 chooses another place, change `resolve`. +- Not pinned: the bytes of the built `.olean` files and of the Mathlib source tree. Presence is + checked from `.git/HEAD` (the declared commit), the library's manifest, and the existence of + `.lake/build/lib/lean`. A tampered checkout with a matching `HEAD` is not detected. Adding a + `tree_sha256` over the Mathlib source (about 100 MB, a second or so to hash) would close the + source half; the `.olean` half needs Lean's own check (`leanchecker` replay or Lake's trace + files). Owner decision. §5.1 already puts the imported workspace in the trusted computing base. + +## Diagnostics + +| Code | Class | Meaning | +| --- | --- | --- | +| `LLC0109` | cli-configuration, exit 2 | `[[lean_library]]` declaration invalid | +| `LLC0110` | cli-configuration, exit 2 | library is not the library the lock pins, or Lake does not require it as declared | +| `LLV7019` | environment, exit 3 | declared library not present (absent, wrong `HEAD`, no built artifacts, no manifest) | +| `LLV7020` | environment, exit 3 | `deps fetch` failed (no `lake`, `lake` failed, library absent afterwards) | + +Register rows `ML-01..ML-04` (suite `mathlib`), scenarios in `features/suites/mathlib.feature`, +cases in `crates/conformance/src/cases/mathlib.rs`. + +## Offline behaviour + +`lock`, `check`, `build`, `fmt`, `verify` resolve the library through `compute_lock`, which every +one of them calls, and never start a process for it. Absent library: `LLV7019`, which names the +library and says `lexlean deps fetch`. Even `lock --allow-network` does not fetch a library. + +## `lexlean deps fetch` + +Runs `lake exe cache get` in the Lake workspace through the checked child runner (cleared +environment, `PATH` kept, `HOME` kept, `child_timeout_ms` and `max_child_output_bytes` apply), +then re-runs the presence check. The Lake workspace must already require the library; Lake +clones it at the manifest's revision as part of `lake exe`, and Mathlib's `cache` executable +downloads the `.olean` files. + +Caveat: the default `child_timeout_ms` is 300000 (five minutes). A cold `cache get` can exceed it +on a slow link; the failure is `LLS8002`, not `LLV7020`, and the fix is to raise the limit in +`lexlean.toml`. Measured numbers are under "Measured fetch". + +## Identity cost + +Adding `lean_library` to `schemas/project-v2.schema.json` and `schemas/lock-v2.schema.json` +moves the language-1.2 compiler-semantics ID (those files are in the 1.2 digest, +`is_v1_2_file`). That makes every committed language-1.2 lock, golden file and expected output +stale, and AGENTS.md wants such a change to land alone with one regeneration and one full gate. +See the status section for what was and was not regenerated on this branch. + +## Status of this branch + +Done and checked: + +- Register rows `ML-01..ML-04`, SPEC §31 rows and prose (§10.1, §10.4, §11.1, §11.2, §11.4, + §23.4, the diagnostic tables), `model/errors.toml` (4 codes), generated `ERRORS.md` and + `CONFORMANCE.md`, `features/suites/mathlib.feature`, the cases in + `crates/conformance/src/cases/mathlib.rs` and `conformance_ml_01..04`. +- Config (`config.rs`), lock rows (`lock.rs`), `lean_library.rs`, `lexlean deps fetch` + (`cli.rs`, `Engine::deps_fetch`, crate-private so the seven public entry points of §24.1 stay seven). +- Passing: `conformance_ml_01..04`, `conformance_cl_13`, `conformance_rp_07`, 58 of the 61 + `conformance_cf/cl/pk_01/pk_02/rp/er` cases I ran, `cargo xtask validate-model`, + `validate-spec-links`, `cargo xtask check-test-inventory` (801 tests, none lost), `cargo test -p + lexlean --all-features` (219 unit tests and the crate's integration tests, all ok), `cargo fmt --check`, `cargo clippy --workspace --all-targets + --all-features -D warnings`. +- `conformance_rp_11` fails and also fails on `main` at `71defb4c6`: the README refresh (#331) + removed the `| Capability | IDs | Level |` table that RP-11 reads. Not caused by this branch. + +Not done: + +- The schema change (`schemas/project-v2.schema.json`, `schemas/lock-v2.schema.json` gain + `lean_library`). Applying it moves the language-1.2 compiler-semantics ID: 528 tracked files + carry the current ID (locks, golden files, expected outputs), and regenerating them needs the + full gate with Lean. It is held back as a patch, `334-schema-identity-move.patch` in the shared + notes folder, so this branch does not change a language identity without the owner's say-so. + Until it is applied, the JSON schemas do not describe `lean_library`. +- The full `just vv`, and any regeneration. Only the subset above was run. +- A real `lake exe cache get` run by this branch's code. The tool call was refused by the permission + classifier (it runs Mathlib's own `cache` program). Ilya ran it outside the session; see + "Measured fetch" below. The conformance cases use a stand-in `lake`, so `lexlean deps fetch` + itself has not been run against real Mathlib. +- The cases were not run red before the implementation existed (see VERIFICATION.md); two defects + were planted afterwards and both were caught. + +## Measured fetch + +Pinned Mathlib `520045ab14e2`, fetched outside this session by Ilya (not by `lexlean deps fetch`): + +- Disk: `~/mathlib-pinned` 7.0 GB in total: `.lake/build` 6.4 GB (8275 `.olean` files under + `.lake/build/lib/lean`), `.lake/packages` 387 MB (batteries, aesop, Qq, proofwidgets, plausible, + importGraph, LeanSearchClient, Cli), the shallow source about 147 MB. The download cache + `~/.cache/mathlib` is a further 436 MB (8639 `.ltar` files). Free space on `/` is 646 GB now; + other sessions share the disk, so a before/after difference is not attributable. +- Time, approximate: file times in `.lake` and `~/.cache/mathlib` run from 11:03:47 to 11:09:09 + on 2026-10-29, so about 5.4 minutes cold, network and unpack together. No shell history records + the command, so treat it as a bound from file times, not a stopwatch. A five-minute + `child_timeout_ms` (the default) would have been borderline. +- Layout check (by file, `lake` not run): `.git/HEAD` is the pinned commit, `lake-manifest.json` + is present, and `.lake/build/lib/lean/Mathlib.olean` exists, which are the three things + `lean_library::present` requires. + +## Open questions for the owner + +1. Apply the identity-moving schema patch now, or batch it with the other Mathlib changes so the + language-1.2 regeneration happens once? +2. Language 1.2 only, or all languages (§13.6 denotations exist in 1.0)? +3. Pin the Mathlib source tree digest in the lock as well (closes the "matching `HEAD`, tampered + files" gap for the source, not for `.olean` files)? +4. Who writes the Lake `require` and `lake-manifest.json` entry: the user by hand (now), or a + `lexlean deps add`? +5. The `v4.32.1` Mathlib commit is a release-line commit, not a `master` commit. Moving the pin to + `v4.32.2` (`905b95818eb3`) would need a LexLean toolchain change; staying on `v4.32.1` gives + a Mathlib frozen at July 2026. +6. `child_timeout_ms` defaults to 300000; a cold `cache get` may need more. diff --git a/docs/proposals/mathlib-import-notes-335.md b/docs/proposals/mathlib-import-notes-335.md new file mode 100644 index 0000000000..96ed52f16f --- /dev/null +++ b/docs/proposals/mathlib-import-notes-335.md @@ -0,0 +1,175 @@ +# Mathlib import: glossary generation (#335), working notes + +Input to the design document of #341. Status: prototype on branch +`feat/mathlib-glossary`, committed locally, not pushed. + +## What exists + +`lexlean deps glossary` turns Lean declarations into a lexicon package of +`kind = "lean"` entries plus a coverage report. It needs no project. + +```text +lexlean deps glossary --package [--version V] [--language L] + (--modules M... | --names N...) [--workspace DIR] --out DIR + [--report FILE] [--strict] +``` + +- `--workspace` is a Lake workspace whose libraries are already built (the + `~/mathlib-pinned` checkout from #334). The command runs + `lake env lean --run` there; without it, plain `lean --run` over the + toolchain's own libraries (`Init`, `Std`, `Lean`). Nothing is fetched or built. +- The Lean metaprogram is `crates/lexlean/lean/GlossaryExtract.lean`, compiled + into the executable and written to a private temp file per run. It prints one + JSON document (sorted keys, declarations sorted by name). Everything after + that is Rust (`crates/lexlean/src/glossary/`), so package bytes, codes and the + report are fixed by the release and testable without Lean. +- Normative text: SPEC §13.12 (translation, categories, naming, eliminators, + output) and §23.4 (`deps glossary`). Register rows `CL-25`, `GL-19`, `GL-20`. + Codes `LLT4101`–`LLT4107`. + +## How a declaration is translated + +The input is the kernel `Expr` of the declaration's type, not its syntax. + +- `Prop` -> `(sort prop)`; `Type u` -> `(sort (type u))`; `Sort u` is refused. +- Binder infos map to `explicit`/`implicit`/`instance`. LSE already has an + `instance` binder mode and universe variables, so instance arguments and + universe polymorphism over `Type u` are **not** refusal reasons. +- An application keeps only the arguments of explicit binders (what §17.6 says + an LSE application is). The dropped implicit and instance arguments are + re-inferred by Lean when verification probes the entry (§13.7). +- `OfNat.ofNat _ n _` -> `(nat n)`. `outParam`, `semiOutParam`, `optParam`, + `autoParam` are erased (identity on the type); the report counts entries + where that happened. +- `Eq`, `And`, `Or`, `Not`, `Iff`, `Exists` map to the existing core entries. + Those are Type-level, so `Eq` at `Sort 0` (proofs of a proposition) is refused. +- Every constant a signature mentions must have an entry, so the generator + translates the closure of the request. The added types, classes, functions, + constructors are *support entries*. A declaration that mentions a refused, + excluded or absent one is refused, transitively, with the root reason. +- Before anything is written, each entry goes through `parse_entry` and the + conservative `check_signature` of the package loader, and the whole package + through `load_package`. An entry that fails is refused (`LLT4107`) and so are + its dependents. + +## Naming scheme + +(Full rules in SPEC §13.12.) + +| Lean | entry id | file | surface | +|---|---|---|---| +| `Nat.add_comm` | `nat.add-comm` | `entries/nat/add-comm.toml` | `natAddComm` | +| `HAdd.hAdd` | `h-add.h-add` | `entries/h-add/h-add.toml` | `hAddHAdd` | +| `Nat.pow_2` | `nat.pow-2` | | `natPow2` | + +Words split at `_`, camel humps, capital runs; `'` is the word `prime`. +Colliding ids all take a `-<6 hex of sha256(lean name)>` suffix. Surfaces are +not unique (`Nat.add_comm` and `Nat.addComm` share one); that is by design and +the report counts it. + +Categories follow the type: theorem -> `proof-constant`; type former -> +`type-noun` / `function`; proposition former -> `predicate-constant`, +`adjective-predicate` (1 argument), `transitive-predicate` (2), else `function`; +term -> `term-constant` / `function`. Predicates get a prose form from the last +name component (`Nat.Prime` -> "prime") only if it is letters only. + +## Verification of the prototype + +- `conformance_gl_19` (package + determinism), `conformance_gl_20` (refusals, + coverage arithmetic, strict mode), `conformance_cl_25` (command surface and a + real Lean run, twice, byte-identical). +- `tests/glossary/GlossaryFixtures.lean` exercises every refusal reason; + `tests/glossary/extraction.json` is the committed extractor output and the + Lean-backed cases re-extract and compare. Regenerate with + `tests/glossary/regenerate.sh`. +- Not done: a real Lean probe over the generated entries (see decisions). + +## Coverage + +All numbers come from `lexlean deps glossary` (debug build) on a 16 GB WSL +host shared with other jobs, Mathlib at `520045ab` with its built oleans. +"Excluded" are requested declarations that are not candidates (internal names, +recursors, matchers and other auxiliaries, instances, deprecated, and the six +core constants); they are not refusals. `requested = translated + refused + +excluded`. + +**Mathlib, eight modules** (`Algebra.Group.Defs`, `Algebra.Group.Basic`, +`Algebra.Ring.Defs`, `Algebra.Order.Group.Defs`, `Order.Basic`, `Logic.Basic`, +`Data.Nat.Basic`, `Data.Int.Basic`): 3,065 requested. + +| Outcome | Count | +|---|---| +| translated | 1,146 (+236 support entries; 1,383 entry files in all) | +| refused: `Sort u` polymorphism (LLT4101) | 174 | +| refused: name outside grammar, mostly `'` (LLT4105) | 166 | +| refused: strict-implicit binder (LLT4102) | 13 | +| refused: core constant at wrong level (LLT4104) | 7 | +| refused: depends on a `Sort u` declaration (LLT4106, root LLT4101) | 215 | +| refused: depends on an excluded instance (LLT4106) | 23 | +| refused: depends on an excluded internal/auxiliary declaration | 10 | +| refused: depends on a non-grammar name | 6 | +| excluded: internal 671, auxiliary 303, instance 229, recursor 83, deprecated 19 | 1,305 | + +So 65% of the 1,760 candidate declarations translate; typeclass-heavy lemmas +are among them. No declaration is refused for having an instance argument. + +**Lean core, six `Init` modules** (`Prelude`, `Core`, `Data.Nat.Basic`, +`Data.List.Basic`, `Data.Int.Basic`, `Data.BitVec.Lemmas`): 6,892 requested, +2,445 translated, 1,050 refused (481 `Sort u`, 195 names, 76 signature-check, +4 level, 294 dependency), 3,397 excluded, 81 support entries. + +**Time and peak memory** (whole command, including the Lean child; the Rust +side is a fraction of a second): + +| Request | Wall | Peak RSS | +|---|---|---| +| 6 `Init` modules, 6,892 declarations | 7.6-11 s | 1.4-1.7 GB | +| 4 Mathlib modules, 1,777 declarations | 26 s (cold cache) | 2.9 GB | +| 8 Mathlib modules, 3,065 declarations | 7.5 s warm | 2.9 GB | +| first Mathlib run after the oleans were fetched | 2 min 50 s (cold page cache, machine busy) | 3.4 GB | + +The memory is Lean importing Mathlib's environment; it does not grow with the +request. Scaling to all of Mathlib was not measured. + +## Open owner decisions + +1. **Apostrophe in names.** §13.6's conservative Lean-name grammar excludes + `'`, so every `foo'` is refused (`LLT4105`): 195 of ~3,500 requested in six + `Init` modules, and 74 of 1,777 in the first Mathlib sample. Widening the + grammar (and the LSE/probe identifier quoting) would recover most of them. +2. **Strict-implicit binders** (`⦃x⦄`) have no LSE mode (`LLT4102`). Mathlib's + set-theoretic lemmas use them heavily. Either add a mode to LSE or accept the loss. +3. **`Sort u` polymorphism** (`LLT4101`) is the largest refusal and cascades + into everything that mentions `id`, `Function.comp`, `Subtype`, `PUnit`, and + so on. LSE has `Prop` and `Type u` only. Options: leave as is; add a `Sort u` + form to LSE; or hand-map the few Sort-polymorphic core constants to entries. +4. **Rust signature checker** rejects some dependent signatures that Lean + accepts (`getElem`-style `valid xs i` binder types): 76 of ~2,500 translated + `Init` declarations. They are refused (`LLT4107`), never emitted. Loosening + the checker is a separate decision. +5. **Existing std entries.** `lexlean.std.nat::nat` and a generated `nat` + denote the same Lean constant. Mapping Lean names to existing `kind = "lean"` + entries of the std packages would avoid cross-package ambiguity; not done. +6. **Probe.** Dropping implicit arguments and erasing annotations is checked + only when `verify` generates the §13.7 probe. A `--probe` pass inside the + command (reuse `backend::lean::probe_module`, run Lean once over all entries, + refuse mismatches with `LLT4003`) would make "never weakened" a property of + the generator. Estimated as a day of work. +7. **Report-only refusals vs failure.** Refusals are reported with exit 0; + `--strict` makes them errors. Confirm that is the wanted default. +8. **Code ranges.** `LLT4101`–`LLT4107` are mine; the sibling sessions need to + avoid them. The register count (`SPEC.md` "Total required capability IDs" + and `xtask/src/spec_links.rs`) is a literal that each branch bumps, so the + branches will conflict there; resolve by recounting at merge. +9. **Eliminator names.** Default `T.casesOn` / `T.rec`; custom + `@[cases_eliminator]` / `@[induction_eliminator]` are honoured. Check that + the backend's `cases ... using` / `induction ... using` emission is happy + with `T.rec` for indexed families (not exercised yet). + +## Interfaces assumed from the siblings + +- #334: only a built Lake workspace path (`--workspace`). No config, lock or + fetch code is touched. The `deps` command group is mine for now + (`CommandKind::Deps` / `DepsAction::Glossary` in `cli.rs`); #334 will want to + add `fetch` beside `glossary`, which is a small merge in that enum and in + `COMMAND_NAMES`. diff --git a/docs/proposals/mathlib-import-notes-336.md b/docs/proposals/mathlib-import-notes-336.md new file mode 100644 index 0000000000..6108537fb8 --- /dev/null +++ b/docs/proposals/mathlib-import-notes-336.md @@ -0,0 +1,178 @@ +# Mathlib import: specialisation wrappers and the signature probe (notes for #341) + +Issue #336, tracking issue #333. Branch `feat/mathlib-wrappers`, local commits only. +Register rows `GL-21` and `VR-24`; diagnostics `LLT4017` and `LLT4018`; +SPEC.md §13.13 (new) and §18.8 (amended). + +## The problem + +A Mathlib theorem such as `add_comm` is stated over a class +(`{G} [AddCommMagma G] (a b : G)`). A glossary entry carries an LSE signature +(§13.8) with no instance binders, so the declaration cannot be denoted as it is. +The fix is a monomorphic constant: `@add_comm Nat _`, declared in the project's +host Lean library, which an entry then denotes (§13.6). + +## What was built + +**Emitter.** `lexlean::wrappers::{parse_request, emit}` (hidden module, like +the other internals) and `cargo xtask emit-wrappers `. + +Input, `lexlean/wrappers/1` (TOML): + +```toml +spec = "lexlean/wrappers/1" +imports = ["Mathlib.Data.BitVec"] # sorted, unique Lean modules + +[[wrapper]] +declaration = "add_comm" # the class-polymorphic constant +kind = "theorem" # or "def" +tag = "BitVec32" # names the specialisation +arguments = ["(BitVec 32)", "_"] # explicit arguments of @declaration +``` + +Arguments are a closed term grammar: `_`, a name, `@name`, a decimal, or a +parenthesised application. No tactic, `by`, `fun`, string, ascription or comment +can be written; Lean syntax words (`by`, `fun`, `sorry`, ...) are refused by +name, and every name is printed `_root_`-qualified so a wrapper cannot capture +another. Anything else is `LLT4018`. + +Output, for each wrapper (sorted by Lean name, so the request's order does not +reach the bytes): + +```lean +public theorem LexLeanSpec.BitVec32.add_comm : type_of% (@_root_.add_comm (_root_.BitVec 32) _) := @_root_.add_comm (_root_.BitVec 32) _ +``` + +The module header is `module`, one `public import` per import, and +`set_option autoImplicit false`. The `xtask` also prints one tab-separated line +per wrapper (Lean name, declaration, tag, line) and the library gives +`EmittedWrapper::denotation(module)`, the `[denotation]` table of an entry that +denotes it. + +The emitter never runs Lean and never writes a signature. The type of the wrapper +is whatever Lean elaborates for the application (instances come from instance +resolution at the `_`); it is a term, adds no axiom of its own, and shows no +tactic. For #335: produce the request, build the host library, read each +wrapper's type from Lean, write the entry's LSE signature from it. The probe is +the safety net whichever way the signature was produced. + +**Probe.** An external entry whose Lean name is under the reserved root +`LexLeanSpec` is probed by + +```lean +example : () = (type_of% @) := rfl +``` + +instead of `example : := `. The first form compares the two +types by definitional equality at default transparency, binder for binder. The +second is weaker: Lean inserts implicit arguments and synthesises instances while +checking it, so a signature without the instance binder is accepted. Every other +entry keeps its old line, so no existing example's probe changes. + +Diagnostics: + +- `LLT4017`: the signature of a wrapper entry is not the type of the wrapper + (names the entry and carries Lean's message). +- `LLT4003` (existing): the wrapper does not exist (Lean's `unknownIdentifier`). +- `LLT4018`: the specialisation request is refused. + +## Evidence + +Fixture `tests/fixtures/specialisation`: request for `Std.Commutative.comm` and +`Std.Associative.assoc` at `Nat`, `Int`, `UInt32`, `BitVec 32` (8 wrappers, all +elaborate under v4.32.1); a project whose entries denote the `Nat` and `Int` +commutativity wrappers. + +- `conformance_gl_21`, `conformance_vr_24`: written failing first (`no lexicon + case is wired for GL-21`), then pass. +- Positive: `verified 1 module`; the probe holds `example : ((x0 : Nat) -> (x1 : + Nat) -> Eq (Nat.add x0 x1) (Nat.add x1 x0)) = (type_of% + @LexLeanSpec.Nat.Std.Commutative.comm) := rfl`. The LSE writes `Nat.add`, the + wrapper's type writes `a + b` through instances: they are definitionally equal. +- Planted wrong signature (`b + a` replaced by `a + b`): + `LLT4017: the signature of test.spec::nat-comm is not definitionally the Lean + type of the specialisation wrapper it denotes ... (∀ (x0 x1 : Nat), x0.add x1 = + x0.add x1) = ∀ (a b : Nat), a + b = b + a`. +- Missing wrapper: `LLT4003 ... Unknown identifier LexLeanSpec.Nat.Std.Commutative.nope`. +- Seven defects planted in the source, each caught by the named test (table in + VERIFICATION.md). The fixture also caught a real defect of mine: an + unparenthesised signature (`a -> b = c` is `a -> (b = c)`). +- Mathlib at the pin (`520045ab14e2...`, `~/mathlib-pinned`, toolchain v4.32.1): + `add_comm` at `Nat`, `Int`, `BitVec 32`, `add_assoc` at `BitVec 32` and + `mul_comm` at `Int` build from `import Mathlib.Data.BitVec`; the strict probe + line accepts the `Nat`, `Int` and `BitVec 32` signatures written with + `Nat.add`, `Int.add`, `BitVec.add` and refuses the planted one. Axioms: + `Nat.add_comm` wrapper `[propext]`, `BitVec 32` wrapper + `[propext, Classical.choice, Quot.sound]`. +- `UInt32` has no `AddCommMagma` in Mathlib at this pin: that wrapper fails at the + host build (`failed to synthesize AddCommMagma UInt32`). A specialisation exists + only where Mathlib has the instance. + +## How many class-polymorphic declarations become usable + +Measured with a Lean script (not part of the repository; recipe below) over +`Init`, `Std` and `Lean`, theorems and definitions that are public, not internal, +and have an instance binder; a declaration counts at a type when the first +sort-typed binder takes the type, every instance binder is found by instance +resolution, and every binder up to the last instance binder ends up assigned +(that is, `@decl T _ ... _` elaborates). + +| | declarations | +| --- | --- | +| class-polymorphic candidates | 30200 | +| specialisable at some of the four types | 4146 (2804 theorems) | +| at `Nat` / `Int` / `UInt32` / `BitVec 32` (all) | 3778 / 3959 / 3720 / 3428 | +| at `Nat` / `Int` / `UInt32` / `BitVec 32` (theorems) | 2486 / 2713 / 2535 / 2308 | + +The rest are mostly underdetermined by the carrier alone: `Std.Commutative.comm` +needs `op` stated (the fixture gives it `(@HAdd.hAdd T T T _)`), so a generator must +choose arguments, not only a type. + +The same count over the Mathlib modules that `Mathlib.Data.BitVec` imports at +the pin (the closure of that one module, not all of Mathlib; this includes +`Init`, `Std` and `Lean`): + +| | declarations | +| --- | --- | +| class-polymorphic candidates | 38427 | +| specialisable at some of the four types | 8437 (6502 theorems) | +| at `Nat` / `Int` / `UInt32` / `BitVec 32` (all) | 6963 / 8140 / 4580 / 6229 | +| at `Nat` / `Int` / `UInt32` / `BitVec 32` (theorems) | 5217 / 6292 / 3309 / 4612 | + +`UInt32` has far fewer because Mathlib gives it almost no algebraic instances. A +count over all of `Mathlib` was not run. + +Recipe: for each constant, `forallMetaTelescopeReducing` its type, unify the first +sort binder with the type, `trySynthInstance` each instance binder, check the +prefix is assigned. Scripts are in the session scratch folder +(`MeasureStd.lean`, `MeasureMathlib.lean`, copied to the shared notes folder of the +session); say if they should be committed. + +## Open owner decisions + +1. **The peano-arithmetic example is not converted.** Its host library + `PeanoArithmeticHost.lean` is an empty module and its entries denote + `Init`. Making entries denote wrappers there changes its probe, closure and lock + files (`expected/`), and requires the host library to be built before + `verify-examples`. Nothing builds a host library today: `verify` runs + `lake env lean` and a denoted module must already have an `.olean`. Proposal: a + documented prerequisite (`lake build `), or a `verify` stage that builds + it. The fixture does the former. +2. **Strict probe for all external entries?** The weakness above applies to every + entry. Applying the strict line to all would change every committed probe and so + every example's `expected/verify`, and needs a regeneration. +3. **Reserved root `LexLeanSpec` and the name `LexLeanSpec..`.** + The probe keys on the root. A project that declares its own `LexLeanSpec.*` outside + the emitter gets the strict line too (harmless but undocumented). +4. **CLI.** Only `xtask` and the library call the emitter. A `lexlean` subcommand + changes §23.4 and its rows. +5. **Who writes the LSE signature of a wrapper.** The emitter does not. #335 needs a + Lean-side exporter from the built wrapper's type to LSE. +6. **`def` wrappers.** Accepted by the grammar; only theorems were built and + measured. A computable `def` may need `noncomputable`; not handled. +7. **Axioms.** A wrapper adds none, but the declaration it applies brings its own + (the `Int` fixture theorem needs `\allowaxioms{propext}`). The document's axiom + audit sees them; the host library itself is not audited. +8. **Register collisions.** Rows `GL-21`, `VR-24`, codes `LLT4017`, `LLT4018`, and the + register total (459) in `SPEC.md`, `README.md`, `xtask/src/spec_links.rs`, + `crates/conformance/src/cases/repository.rs` will conflict with the siblings'. diff --git a/docs/proposals/mathlib-import-notes-337.md b/docs/proposals/mathlib-import-notes-337.md new file mode 100755 index 0000000000..11fc419906 --- /dev/null +++ b/docs/proposals/mathlib-import-notes-337.md @@ -0,0 +1,150 @@ +# Mathlib import: speed notes (#337) + +Input for the design document (#341). Measurements, a replay recommendation, open owner +decisions. Everything is reproducible with `tooling/mathlib-speed/`. + +Setup: Lean 4.32.1 (the pin), Mathlib `520045ab14e2` (`~/mathlib-pinned`, prebuilt oleans from +the cache, never rebuilt), WSL2 with 16 GB shared with other sessions running builds, so wall +times are noisy. Peak memory is the `/usr/bin/time -v` maximum resident set. Each probe is a +one-theorem module importing one Mathlib module (`tooling/mathlib-speed/probes/`). + +## 1. No rebuild + +Nothing here builds Mathlib. Oleans come from the explicit fetch step; `LEAN_PATH` points at +them (`mathlib-env.sh`). Only the project module is compiled. + +## 2. Targeted imports vs `import Mathlib` + +Warm runs of `lean probe.lean` (probe = imports + `#check @decl`): + +| Imports | Modules loaded | Wall | Peak memory | +| --- | --- | --- | --- | +| `Mathlib.Order.Defs.PartialOrder` (A) | 1189 | 0.6 s | 860 MiB | +| `Mathlib.Data.Nat.Prime.Defs` (B) | 1921 | 1.0 s | 1360 MiB | +| `Mathlib.Algebra.BigOperators.Group.Finset.Sigma` (D) | 2124 | 1.2 s | 1505 MiB | +| `Mathlib.Analysis.Real.Sqrt` (C) | 2917 | 1.6 s | 1943 MiB | +| `Mathlib` | whole library | 6.7 to 9.6 s warm, 40.5 s first run | 5.9 GB | + +The cost is the transitive import closure of the module that defines the declaration, so +"minimal" means: import the module that *defines* each referenced declaration, not a +re-exporting parent. Module counts include Lean core, Std, Batteries and Aesop (about 1100 +modules are the floor). The module is known exactly: the lexicon entry already names it +(`module` in a `lean` denotation, SPEC 13.6), and `Environment.getModuleIdxFor?` gives it to the +generator (#335). Dropping an import implied by another changes no cost; only choosing the +defining module over an umbrella does. Generated Lean must never write `import Mathlib`; a check +for that would be a diagnostic with a negative test, not yet added (section 6). + +## 3. Replay + +Findings about the pinned `leanchecker` (source: `src/lean/LeanChecker.lean` in the toolchain): + +- It takes module names only, as prefixes. It has no declaration filter. +- `leanchecker M` replays M's own constants into the environment of its imports. The imports + are trusted, not checked. +- `leanchecker --fresh M` (one module only) replays every constant M loads, imports included, + into an empty environment: the whole import closure. +- Naming every module of the closure on one command line is whole-module replay of the closure. + +A declaration subset is still possible, because `Lean.Environment.replay` is already +dependency-driven: given a map of constants it sends each to the kernel after the constants it +mentions. `tooling/mathlib-speed/closure-replay` (about 120 lines of Lean, built with the pinned +toolchain) reads the most private part of each `.olean` (the part that carries proof bodies, as +`leanchecker` does), starts from the constants of the project module, collects everything they +transitively mention (plus the members, constructors and recursors of any inductive family, +which `replay` reads), and replays that closure into an empty environment. A mention that is not +found in the loaded modules is an error, so an incomplete closure cannot pass. Same kernel as +`leanchecker`; not an independent checker. + +Seconds / peak MiB, warm: + +| Strategy | A | B | C | D | +| --- | --- | --- | --- | --- | +| `leanchecker Probe` (today, SPEC 22.4: project module only) | 2.6 / 758 | 2.9 / 1195 | 4.0 / 1726 | 2.2 / 1331 | +| `leanchecker ` (one Mathlib module, own constants) | 2.0 / 757 | 2.4 / 1197 | 2.6 / 1729 | 2.1 / 1331 | +| `closure-replay --module Probe` (project constants + closure) | 0.3 / 568 | 0.4 / 817 | 6.1 / 1284 | 2.2 / 935 | +| `leanchecker --fresh ` (whole import closure) | 114 / 906 | 214 / 1254 | 302 / 1836 | 207 / 1453 | +| `leanchecker` on every module of the closure | over 1500 (killed) / 3615 | not run | not run | not run | +| `closure-replay --all` (same tool, every loaded constant) | 105 / 698 | not run | not run | not run | + +Closure size, constants replayed of constants loaded: A 356 of 125 042, B 572 of 186 514, +C 10 861 of 290 597, D 4 041 of 214 417. Kernel time in the closure: A 46 ms, B 78 ms, C 5.5 s, +D 1.6 s. For C the closure is dominated by real analysis proofs; the cost is the kernel +re-checking them, which is the point. + +### What each option covers (planted defect) + +`planted-defect.sh`: module `Evil` adds a false theorem with `debug.skipKernelTC`; `UsesEvil` +imports and uses it. `leanchecker UsesEvil` passes (exit 0), `leanchecker Evil` fails, +`closure-replay` fails for both. So replaying only the project's modules, which is what +SPEC 22.4 does, never checks any imported Mathlib declaration; those are trusted as part of the +workspace (SPEC 5.1 item 5). Closure replay turns that trust into a check for exactly the +declarations the project depends on. + +### Recommendation + +Use closure replay for the imported part, and keep stock `leanchecker` for the generated modules. + +- Cheapest correct: closure replay is 50x to 700x cheaper than `--fresh`, the only stock option + that checks imports, and checks the constants that matter. Whole-module replay of the closure + does not finish (each module task rebuilds its own import environment, so the work grows + roughly with the square of the module count). +- Roots are the constants the compiled project module mentions, not just the glossary names, so + instances and lemmas found by elaboration are included. +- Keep `leanchecker M` per generated module as today. It costs 2 to 4 s per module, mostly + importing, and its record and executable hash stay as SPEC 22.4 and 22.2 specify. The closure + tool is additional, run once per project (or once per module if #338 caches the result per + closure). +- `closure-replay` already includes the project constants, so it could later replace the + per-module step; that changes an attestation tool and is the owner's call. + +## 4. Byte-reproducibility + +Method (`repro-check.sh`): build one Mathlib module twice, each time from an empty output +directory and a fresh copy of just that source file, with `lean -R .` (no absolute path) and the +prebuilt oleans of its imports on `LEAN_PATH`, then compare all artifacts. A scratch copy of the +dependency closure was not needed: the closure of imports is the cache itself. + +Result: identical. For `Mathlib.Order.Defs.PartialOrder`, `Mathlib.Data.Nat.Prime.Defs` and +`Mathlib.Algebra.BigOperators.Group.Finset.Sigma`, `.olean`, `.olean.server`, `.olean.private`, +`.ir`, `.ilean` and `.c` are byte-identical between the two builds, and all but `.c` equal the +files in the Mathlib cache. + +One input is not obvious: Lake passes the package name to the compiler in its `--setup` file +(`"package": "mathlib"`), and Lean records it in the `.olean` (the string `mathlib`, 88 bytes, +and a different header address). Without it the local build differs from the cache in all four +binary files; with it every file is identical. Other options: the `leanOptions` of Mathlib's +`lakefile.lean` (`maxSynthPendingDepth=3`, `autoImplicit=false`, `pp.unicode.fun`, the +`weak.linter.*` set). + +Consequence: no canonical declaration serialisation is needed for the pin as it stands. The +bytes of the fetched `.olean` files are a stable identity for a (Mathlib commit, toolchain) +pair, and the cache's `.hash` files or a SHA-256 of the files can serve as content addresses. +Limits: three modules, one toolchain build, x86_64 Linux. The `.olean` header embeds the +toolchain commit hash, so bytes identify nothing across toolchains. If the pin moves, or a +module with nondeterministic behaviour shows up, re-run `repro-check.sh`; the fallback would be +a digest over the sorted `(name, kind, type, value)` of the constants, which the closure tool +already reads. It is not built, because nothing here needs it. + +## 5. Not measured, caveats + +- Timings come from a shared, loaded machine; the ratios are solid, the absolute seconds are + not. The 40 s first run of `import Mathlib` is a cold page cache. +- `leanchecker` on every module of the closure was measured once (A) and killed at 1500 s; WSL + was restarted several times during the session, which killed some runs, and those were rerun. +- `Environment.replay` skips unsafe and partial constants, as `leanchecker` does. +- Axioms such as `Lean.ofReduceBool` are replayed as axioms; the axiom audit (SPEC 22.5) is + what rejects them. +- No LexLean Rust or SPEC change was made, so no register row, scenario or gate run applies yet. + +## 6. Open owner decisions + +1. Adopt `closure-replay` as a LexLean verification step? It is a new Lean program the + attestation would hash (like `leanchecker`, SPEC 22.2), built by the pinned toolchain. It + needs SPEC 5.1 and 22.4 text, a register row, scenario and failing test first (R3), a + diagnostic code in ERRORS.md with a negative test (the planted-defect module above is that + test), and a decision whether it also replaces `leanchecker` per generated module. +2. Reject `import Mathlib` (and any umbrella that re-exports far more than it names) in + generated Lean: a diagnostic and negative test, or only a lint. +3. Run closure replay per module or once per project (interacts with the replay cache, #338). +4. Whether the content address of an imported declaration is the cache file hash or a + canonical declaration digest. The first works today (section 4). diff --git a/docs/proposals/mathlib-import-notes-338.md b/docs/proposals/mathlib-import-notes-338.md new file mode 100644 index 0000000000..3cc2427ab1 --- /dev/null +++ b/docs/proposals/mathlib-import-notes-338.md @@ -0,0 +1,107 @@ +# Mathlib import: replay cache notes (issue #338) + +Working notes for the design document (#341). Branch `feat/mathlib-replay-cache`, from main `71defb4`. Nothing here is pushed. + +## What exists + +A content-addressed replay cache in the `lexlean` crate: `verify::replay_cache` (keys, entries, facts, driver) and `artifact::digest_set` (the DigestSet). `lexlean verify` does not use it yet; it is a library a caller drives with a store directory. SPEC.md §22.13 states it, with rows `RC-01` to `RC-06` in `model/ids.toml`, scenarios in `features/suites/replay-cache.feature`, and cases in `crates/conformance/src/cases/replay_cache.rs`. + +## Reuse of PrismPM + +LexLean had no BLAKE3 and no DigestSet; it had `sha2` only (`Sha256Digest`). PrismPM ADR-015 (`docs/adr/015-dual-digests.md` in the PrismPM repository) fixes the format, and PrismPM's own code (`crates/prismpm/src/input_lock.rs`, `digest_set`) uses the `blake3` crate pinned `=1.5.5`. `DigestSet` here follows the ADR: members `sha256` and `blake3` only, lowercase hex of 64 characters, both over the same bytes, label `blake3:`, reader refuses a missing, extra, uppercase or differently spelled member. Known answers for the empty string and `abc` are unit tests. + +The Windows-side PrismPM folder named in the brief holds only `.claude`; ADR-015 and the Rust usage were read from an existing WSL clone of PrismPM (read-only). + +## Key format + +All frames are fields `tag SP decimal-length ":" payload LF`, so no payload can run into its neighbour. + +Canonical declaration (`canonical_declaration`, the one function): `format` (`lexlean/replay-declaration/1`), `name`, `levels` count and each `level`, `attrs`, `type`, then the value as `value-sha256` and `value-blake3` of its text, or `value none`. The declaring module is excluded, so moving a declaration moves no key. + +Declaration key: DigestSet of a frame of `format` (`lexlean/replay-key/1`), `toolchain`, `mathlib` (revision), `declaration` (the canonical bytes), the group digest (both digests), and the sorted, de-duplicated keys of what it names outside its group (both digests each). + +Group: declarations that name one another (an inductive type, its constructors and recursor) are a strongly connected component; the group digest is the DigestSet of the canonical bytes of the members in name order. Members keep distinct keys. Components are found with an iterative Tarjan, because a chain of 50,000 lemmas is a unit test and must not use the process stack. + +Unit key: DigestSet of a frame of `lexlean/replay-unit/1`, the granularity word (`declaration` or `module`), and the sorted keys of the members. A unit is just a set of declaration keys, so the cache works for either granularity sibling #337 picks. + +## Facts from Lean + +`crates/lexlean/src/verify/replay_facts.lean` runs under the pinned `lean --run` through `lake env`. For a module it writes one JSON line per constant the module declares and per constant those reach (transitive closure), so each module's facts are self-contained and need no anchors. A term is an alpha-equivalence class (no binder names, binder annotations or metadata) written as a node table where a shared subterm is one node. Inductive types, constructors and recursors carry their kernel attributes and recursor rules, so a changed constructor list changes the key. Output is byte-identical across two runs. + +`ReplayGraph::build` also takes `anchors` (name to key) for declarations a caller keyed in an earlier run, which is the route for keeping per-module fact files small for Mathlib. + +## Cache record layout + +`/entries//.json`, canonical JSON (§21.7), written to a temporary file and renamed: + +``` +entry_digest DigestSet of the canonical string of the other members +environment {mathlib_revision, toolchain} +executable {digest: DigestSet, tool: "leanchecker"} the executable that produced the result +key DigestSet of the unit +result {exit_code: 0, stderr, stdout} +spec "lexlean/replay-cache-entry/1" +unit {granularity, label} +``` + +Only a replay that exited zero is recorded. An entry produced by another executable is a miss and the replay overwrites it. + +## Diagnostics + +`LLV7021` replay cache entry rejected: does not parse or has the wrong members, `entry_digest` mismatch (bytes changed), recorded key is not the key looked up (stored under another key), environment differs from the caller's, not a regular file, or records a nonzero exit. The run stops; the file is left as found and the replayer is not called. `LLV7022` replay facts refused: a line does not parse, a declaration repeats, a name is neither declared nor anchored, or the exporter failed. Both are in `model/errors.toml`, SPEC §26.3, and have negative tests. `LLV7010`, `LLV7003` and `LLS8002` are reused. + +## Test evidence + +Red first, as the repository's R3 prescribes: with the register rows, scenarios and the six tests added and no case wired, `cargo test -p repo-conformance --test conformance conformance_rc_0 -- --test-threads=1` failed all six with `no conformance case is wired for RC-0N` (3:32 wall, peak 2.6 GB RSS). + +After implementation, in WSL under `~/bin/heavy`: + +| Run | Result | Wall | Peak RSS | +| --- | --- | --- | --- | +| `cargo test -p lexlean --lib -- replay_cache digest_set` | 28 passed | 20 s (incremental) | 1.74 GB | +| `cargo test -p repo-conformance --test conformance conformance_rc_0` | 6 passed (RC-01 to RC-06, RC-06 on real Lean) | 1:11 incl. build | 1.92 GB | +| `cargo fmt --all -- --check`, `cargo xtask validate-model`, `validate-spec-links`, `cargo clippy --workspace --all-targets --all-features -D warnings`, `cargo test -p repo-conformance --test bdd`, `conformance_rp_07` | all pass | 3 s to 98 s each | at most 1.76 GB | +| `cargo deny check licenses bans sources` | pass (advisories not run: offline) | 0.6 s | 70 MB | + +The only gate not run is the full `just vv` (examples, golden, repro, the whole bdd suite): each takes hours of Lean and the change touches none of their inputs, but it was not run here. + +Required tests, by row: tamper `RC-04` (result edited with digest kept, executable digest edited, copied under another key, truncated, emptied, non-regular file, forged environment with a recomputed digest, forged nonzero exit); changed dependency `RC-02` (`base` edit changes `base`, `left`, `right`, `top` and not `lone`; `left` edit changes `left`, `top`; mutual group); changed toolchain or Mathlib revision `RC-05` (every unit replays, the three environments' 15 entries coexist unchanged, returning to the first environment reuses all). + +Planted defects (to show the tests can fail), recorded in VERIFICATION.md: with the `entry_digest` check disabled, the bytes-changed and the executable-edited tamper tests fail (2 of 8); with the toolchain and Mathlib revision removed from the key frame, the two environment tests fail (2 of 25). Both plants were removed afterwards. + +## Warm versus cold, and the measurement that matters + +RC-06 compiles three tiny modules `A <- B <- C` (C imports B but uses only A), exports facts through the pinned Lean, keys them at module granularity, and replays with `lake env leanchecker`. A one-line edit to a declaration of B (`b := a + 1` to `a + 3`) rebuilds B and C. Result: A and C reused, only B replayed. The warm verdicts equal a cold run on the edited modules. + +Timings, two runs on a machine that other sessions were loading (load average 8 to 11), so the spread is real and the figures indicative only. Ranges are the two runs: + +| Phase | Facts and keys | `leanchecker` replays | +| --- | --- | --- | +| cold, 3 modules | 11.2 to 13.8 s | 1.2 to 1.4 s | +| warm, nothing changed | 6.6 to 7.9 s | 0 s | +| warm, one-line edit (B edited, B and C rebuilt) | 8.0 to 15.9 s | 0.5 to 0.6 s | +| cold again on the edited modules | 6.8 to 12.5 s | 1.3 to 1.4 s | + +Replay of these modules costs about 0.4 s each; exporting and keying the facts costs about 2 to 5 s per module in this setup (three exports per phase). **For small modules the facts export costs more than the replay it saves.** Core modules measured alone (same loaded machine): `Init.Data.Nat.Basic` closure 878 constants, 0.9 MB, 7 s wall (1.9 s on an idle run); `Init.Data.List.Lemmas` 2,736 constants, 5.6 MB, 3.3 s; `Std.Data.HashMap.Lemmas` 7,246 constants, 24 MB, 8 s. Peak RSS of the exporter is 1.4 to 1.7 GB, mostly Lean loading its own environment. So the cache saves time only where `leanchecker` on a unit costs more than exporting and keying it. That has to be measured on Mathlib modules with #337's numbers before the design commits; the two obvious improvements are running one Lean process that exports many modules (the load cost is paid once), and compiling the exporter instead of interpreting it with `lean --run`. + +Mathlib modules (pinned checkout `~/mathlib-pinned`, commit `520045ab14e26149ee970e2e617ca04b09bde5d6`, oleans as built by #334; one run each, machine less loaded than above, the first run with a cold file cache; the exporter and `leanchecker` run by hand under a 5 GB cap, not through the cache driver): + +| Module | Constants exported (own) | Facts size | Export wall | Export peak RSS | `leanchecker` wall | `leanchecker` peak RSS | +| --- | --- | --- | --- | --- | --- | --- | +| `Mathlib.Order.Basic` | 7,911 (427) | 25 MB | 28.0 s | 2.6 GB | 2.0 s | 0.87 GB | +| `Mathlib.Algebra.Group.Basic` | 1,993 (548) | 3.3 MB | 11.1 s | 2.7 GB | 4.7 s | 0.94 GB | + +Exporting the closure of a Mathlib module is 2.4 to 14 times slower than replaying it, even though `leanchecker` itself is cheap here (2 to 5 s per module). The reachable closure is much larger than the module's own declarations (7,911 constants for 427). Keying every module of Mathlib this way would cost more than replaying it whole. A third module tried, `Mathlib.Data.Nat.Defs`, exported no constants and is not counted. Whether the cache can pay off at all therefore depends on sibling #337's finding that a per-declaration or per-module `leanchecker` run is expensive enough to beat this; on these two modules it is not. The exporter as written (interpreted, one process per module, closure re-walked for every module) is the part to change before the design commits: one process for many modules sharing a closure walk, a compiled exporter, and anchors so a module exports only its own declarations are the options, none measured yet. + +Peak memory of the cache itself is small: keys are 64 bytes per declaration plus the facts in memory (24 MB for the largest module here). + +## Open owner decisions + +1. SPEC amendment. §22.13 is new. §10.5 says "no cache of a built package" and §9.4 says the gate has no cache; both stay true because the cache is opt-in and the gate never uses it, but the owner should confirm that reading, and decide whether `lexlean verify` may ever consult a store. +2. Dependency. `blake3 =1.5.5` (as PrismPM pins) with `pure` (no C or SIMD build) joins the shipped crate, SPEC §8.4 table, and `deny.toml` gains `BSD-2-Clause` for `arrayref`, a transitive dependency of `blake3`. A new licence in the allow list is a reviewer's call by the file's own words. +3. Trust. `entry_digest` detects changed bytes and a mismatch with the key; it is not authentication, since whoever can write the store recomputes it (the forged-environment test shows a self-consistent forgery is refused only because the environment differs). A reused result is evidence of one earlier replay by the named executable, not of a replay by this run. Whether an attestation must mark reused units, and whether signing is wanted, is open. Status wording must stay "replayed in the pinned environment". +4. A rejected entry stops the run (fail closed, file untouched). Evict-and-replay is a policy alternative the owner may prefer. +5. Executable identity: the record stores a DigestSet of `leanchecker`; the existing preflight hashes only SHA-256 (and reads the whole file into memory). The cache hashes the executable once more, in 64 KiB pieces. Reusing one pass is possible. +6. Facts size: the facts of `Std.Data.HashMap.Lemmas` are 24 MB, over the default `max_child_output_bytes` (16 MiB), so RC-06 raises the limit to 64 MiB for its own run. For Mathlib, anchors or a per-module facts store are needed. +7. Alpha-equivalence: keys ignore binder names and annotations, so a rename of a bound variable is not a change. A more conservative key would include them. +8. Scope not done: no CLI command, no `lexlean verify` wiring, no run of the cache driver over Mathlib (only the exporter and `leanchecker` were timed on two Mathlib modules, above), no per-declaration `leanchecker` mode (#337). diff --git a/docs/proposals/mathlib-import-notes-339.md b/docs/proposals/mathlib-import-notes-339.md new file mode 100644 index 0000000000..7dc6fa9c29 --- /dev/null +++ b/docs/proposals/mathlib-import-notes-339.md @@ -0,0 +1,47 @@ +# Mathlib import: axiom audit and status wording (notes for #341) + +Issue #339, tracking issue #333. Branch `feat/mathlib-axioms`, local commit only, from `feat/mathlib-import-integration` (`9d2af0fc7`). Register rows `VR-25` and `VR-26`; diagnostics `LLV7023`, `LLV7024`, `LLV7025`; SPEC.md §5.3, §5.4, §18.8, §22.6, §22.9 and §26.3 amended. + +## What exists + +An *imported declaration* is the Lean constant a used external entry denotes when its Lean module is outside `Init`, `Std`, `Lean`, `Lake` and the generated runtime root `LexLeanRuntime`. For each one: + +1. The probe module (§18.8) prints `#print axioms ` after its `example` lines, once per distinct Lean name. This is what §5.4 defines the audit to be, and it runs in the probe process that already imports the constant. +2. `verify::axiom::parse_import_audit_output` reads the output (the §22.5 grammar, plus the spellings below). +3. `verify::imports::audit` refuses, before any elaboration, an import whose observed set holds `sorryAx` (`LLV7023`), `Lean.ofReduceBool` (`LLV7024`), or `Lean.trustCompiler` or a `native_decide` axiom (`LLV7025`), unless an `allow` or `exact` policy of some declaration of the document names that axiom. +4. The attestation gets an `imports` member (entry, module, name, observed, status), present only when there is an import, so a project that imports nothing outside the toolchain keeps its attestation and the committed `expected/verify/probe/process.json` files stay valid. The status is `replayed in the pinned environment`. + +Every other axiom of an import (`Classical.choice`, `Quot.sound`, `propext`, or anything else) is judged only by the generated declarations that depend on it, as before (`LLV7005`). + +## Why the replay facts are not used + +The facts of #338 (`replay_facts.lean`) could carry the axiom set: each constant line has its kind (`axiom ...`) and its `deps`, so the transitive axioms are the axiom nodes reachable from a constant. They are not used because (a) §5.4 defines the audit as the set Lean's `#print axioms` returns, and the probe process already loads the imports, so one command per import costs nothing; (b) the facts export walks the whole closure of a module (28 s and 2.6 GB for `Mathlib.Order.Basic`, per the #338 notes) to answer a question about a handful of constants. A cross-check of the two over a small module would be cheap to add if the owner wants the cache to be able to report axioms for reused units. + +## Findings that change the issue's premise + +- **`native_decide` is not `Lean.trustCompiler` at 4.32.1.** `theorem t : 2 + 2 = 4 := by native_decide` depends on `[t._native.native_decide.ax_1_1]`, an axiom generated per use. `Lean.ofReduceBool` and `Lean.trustCompiler` appear only when written out, and `Lean.ofReduceBool` itself rests on `Lean.trustCompiler` (`#print axioms Lean.ofReduceBool` is `[Lean.ofReduceBool, Lean.trustCompiler]`). Both are deprecated in 4.32.1. The generated axiom is classified with `Lean.trustCompiler` (`LLV7025`). +- **That axiom cannot be named by a policy.** Lean prints it with a hygiene mark (U+271D) and, from a private declaration, under `_private..0`; policies take the closed ASCII name grammar. So an import that carries it is always refused. Owner decision: leave it so (refused whatever a policy says), or let a policy name it with a prefix pattern. +- **A policy that accepts `Lean.ofReduceBool` must name `Lean.trustCompiler` too.** The case asserts the half-named policy is `LLV7025`. + +## Granularity + +The import check asks only that some policy of the document names the axiom. The declaration that actually uses the import is then held to its own policy by the existing check (`LLV7005`, after elaboration). So a document with one declaration `\allowaxioms{sorryAx}` and another that uses the `sorry` import under `\noaxioms` passes the early check and fails with `LLV7005` later. Per-use attribution needs the IR's use map per declaration (the checked project has `external_used` for the whole project only); it was not built. Soundness is unchanged, only the code and timing of the refusal. + +## Status wording, and what it does not say + +§5.3 now states `replayed in the pinned environment` and forbids `proved`, `verified` and `kernel-checked` for imports. Owner decision: **the word "replayed" is only true in the sense that the pinned Lean loaded the compiled module of the locked workspace.** §22.4 runs `leanchecker` over the generated modules only, and the #337 notes found that `leanchecker M` replays only M's own constants, not its imports. §5.3 says so ("does not assert that `leanchecker` re-checked the declaration in this run"). If the owner adopts #337's closure replay, the word becomes literal; if not, a more modest status ("loaded from the pinned environment") would be more accurate. The constant is `verify::imports::IMPORTED_STATUS`. + +## Schema and identity (held back) + +`schemas/attestation.schema.json` and `schemas/attestation-v2.schema.json` have `additionalProperties: false`, so an attestation with `imports` does not validate against the committed schemas. Editing either moves the compiler-semantics ID (`lib.rs`: the schema files are embedded, and `attestation-v2` is a 1.2 file), which the repository's rules say lands one at a time with one regeneration. As #334 did for its schema move, the change is held back: `339-schema-imports-member.patch` is in the shared notes folder (it adds `imports` to both schemas and nothing else). The conformance cases do not validate the attestation of the fixture against the schema for this reason. Owner decision: take the identity move with the patch, or move the `imports` rows to a staged file (`probe/imports.json`) that the attestation does not carry. + +## Evidence + +- Red first: `conformance_vr_25` failed with `expected LLV7023, found ["LLV7005"] (... use_sorry_comm violates its none axiom policy: observed [sorryAx])`; `conformance_vr_26` failed with `§5.3 states the wording`. +- Green, in WSL under `~/bin/heavy`, one job at a time: `conformance_vr_25` (24 s), `conformance_vr_26`, `conformance_vr_20` to `vr_24` (they verify real projects, `peano-arithmetic` among them, whose host modules `Doubling`, `Order` and `Divisibility` are now audited imports, and `specialisation`), `cargo test -p lexlean --lib -- verify::imports verify::axiom` (10 tests), `cargo test -p repo-conformance --test bdd` (5), `conformance_rp_07`, `cargo xtask validate-model`, `cargo xtask validate-spec-links` (474 rows), `cargo fmt --all -- --check`, `cargo clippy --workspace --all-targets --all-features -- -D warnings`. +- Planted defects (VERIFICATION.md): removing the `imports::audit` call fails `conformance_vr_25`; a wrong `IMPORTED_STATUS` fails `conformance_vr_26`. +- Not run: the full `just vv`, `check-golden` and `verify-examples` (hours of Lean on a loaded machine), `conformance_rp_11` (known failure on main), and `cargo deny` (no dependency changed). The examples with host modules outside the toolchain (`peano-arithmetic`, the Atlas entries in `language/uor`) now print axioms in their probes; only `peano-arithmetic` was verified here, through the operational cases. + +## Register count + +Total capability IDs is now 474 (README.md, SPEC.md, `xtask/src/spec_links.rs`, `crates/conformance/src/cases/repository.rs`). Another branch adding rows must recount at merge. Codes `LLV7023` to `LLV7025` are the next free after `LLV7022`. diff --git a/docs/proposals/mathlib-import-notes-340.md b/docs/proposals/mathlib-import-notes-340.md new file mode 100755 index 0000000000..a042e539c2 --- /dev/null +++ b/docs/proposals/mathlib-import-notes-340.md @@ -0,0 +1,180 @@ +# Mathlib import: acceptance demo (#340), notes for the design document (#341) + +Branch `feat/mathlib-demo` in `~/lexlean-mathlib-340`, cut from the merged `feat/mathlib-import-integration` +(`9d2af0fc7`). Local commits only, nothing pushed, nothing posted to GitHub. + +## Result + +The document in `demos/mathlib-blake3-g` verifies end to end, offline, against the pinned Mathlib +(`520045ab14e2`, toolchain `v4.32.1`): `lexlean verify` prints `verified 4 modules`, with the Lean +elaboration, `leanchecker` replay and the exact axiom audit of SPEC section 22 all passing. Statements, all for +`BitVec 32` (and the first two also for `UInt32`): + +| Statement | Module / theorem | Imported lemmas cited | Axioms (exact) | +| --- | --- | --- | --- | +| `(a + b) - b = a` | `Cancellation::add-sub-cancel`, `-u32` | `BitVec.add_sub_cancel`, `UInt32.add_sub_cancel` (core) | `propext` | +| the same through Mathlib | `Cancellation::add-sub-cancel-group` | `add_sub_cancel_right` at `AddGroup (BitVec 32)` (Mathlib, wrapper) | `Classical.choice`, `Quot.sound`, `propext` | +| `(a ^^^ b) ^^^ b = a` | `Cancellation::xor-cancel`, `-u32` | `xor_assoc`, `xor_self`, `xor_zero` (core), `rewrite` | `Quot.sound`, `propext` | +| `rotl (rotr a n) n = a`, n in {7, 8, 12, 16} | `Rotation::rotate-left-right` | `Blake3GHost.rotateLeft_rotateRight` (host library, see below) | `Quot.sound`, `propext` | +| G inverse undoes G | `Mixing::mixing-inverse` | the four above, `add_right_comm` (Mathlib) | all three | + +Every theorem states its axiom set with `\exactaxioms` and the audit confirms it. The Mathlib route costs +`Classical.choice` that the core route does not. + +## What is NOT imported (read this first) + +`rotateLeft (rotateRight x n) n = x` is in neither Lean core nor Mathlib at this pin (searched `Init`, `Std`, +Mathlib, batteries for any lemma relating `rotateLeft` and `rotateRight`: there is none). Proving it needs +`BitVec.eq_of_getLsbD_eq`, the two `getLsbD_rotate*` lemmas, and arithmetic on bit indices (`omega`). No prose or +semantic-module proof form can do index arithmetic, so the proof is ordinary Lean (13 lines) in the host library +`demos/mathlib-blake3-g/Blake3GHost.lean`, as `Blake3GHost.rotateLeft_rotateRight`. It is a lemma of this +project's host library, in the trusted base next to the imported libraries, not a lemma of Mathlib or Lean. The +LexLean audit checks its axioms (`propext`, `Quot.sound`) like any other. It is the one hand-written Lean in the +demo. It is a good candidate for upstreaming to Lean core. + +G itself is not a named definition in the document. A prose definition needs a hand-written glossary entry, and a +semantic module cannot call an external constant (below). The statement is therefore relational: for all 22 words, +if the 8 forward equations (the BLAKE3 `gcore` as the step machine runs it: `a1 = a + b + x`, `d1 = rotr(d ^ a1, 16)`, +`c1 = c + d1`, `b1 = rotr(b ^ c1, 12)`, `a2 = a1 + b1 + y`, `d2 = rotr(d1 ^ a2, 8)`, `c2 = c1 + d2`, +`b2 = rotr(b1 ^ c2, 7)`) and the 8 inverse equations from the issue hold, with fresh names for the recovered +intermediates, then the four recovered words are `a`, `b`, `c`, `d`. The equations determine every value, so this +is equivalent to `inverse (G ...) = ...`. `BitVec.rotateRight v n` with `0 < n < 32` is the BLAKE3 `rotr` +(`(v >> n) | (v << (32 - n))`); `BitVec.rotateLeft` is its `rotl` up to the order of the operands of `|||`. The +document uses the BitVec functions and does not re-prove that identification. + +## Hand-written entries + +Generated (by `lexlean deps glossary`, 38 entries, committed in `glossary/lean.mathlib`): every entry for an +imported or host declaration, and the 27 support entries (`HAdd`, `HAdd.hAdd`, `HSub`, `HXor`, `BitVec`, `Nat`, +`UInt32`, ...). Hand-written (`glossary/blake3.g`, 8 files): label words only (`word`, `arithmetic`, +`cancellation`, `xor`, `rotation`, `mixing`, `inverse`, `function`), which titles and headings require (SPEC 13.3). +They denote generated constants and assert nothing. No hand-written entry denotes an imported declaration. + +## Proof forms with external lemmas (the question asked first) + +| Form | Used with an external lemma here? | Result | +| --- | --- | --- | +| `Close the goal with \(lemma(args)\)` | yes, in every theorem | works, core, Mathlib wrapper and host lemma alike | +| `rewrite` (`\forward`) | yes | works; a lemma with implicit arguments (`xor_self`) is used bare | +| `have` | yes | works | +| `constructor` | yes | works; note `P and Q and R` is left-folded, `And (And P Q) R` (`elaborate/mod.rs`), so branches nest on the left | +| `Assume` (several names) | yes | works for 16 hypotheses | +| `simplify` | yes (scratch module, not committed) | `\begin{simplify}{goal}` with three `\rule` lemma terms proves `(a ^^^ b) ^^^ b = a`; verified, `\allowaxioms{Quot.sound;propext}` | +| `calculate` | yes (scratch module, not committed) | a one-step chain justified by the core lemma verified; chain steps are whole-term equalities, so a lemma used inside a larger term needs `rewrite` instead | +| `Apply`, structured `apply`, `cases`, `induction`, `Use ... as the witness` | no | not exercised with an external lemma: the demo has no lemma with premises or an inductive scrutinee. Nothing in SPEC 16 treats a proof term differently by origin | +| language 1.2 semantic module: `reflexivity`, `linear_arithmetic`, `congruence`, `law`, `apply`, `term_cases`, `cases`, `induction`, `simplify` | no | cannot, by construction: `apply` names a prior theorem of the document, `law` a lemma of the registered fold-law table, `linear_arithmetic` and `simplify` a fixed rewrite set plus prior document definitions (SPEC 17.11, 17.12). None can name an external glossary entry, and a semantic module has no way to call an external constant at all | + +Consequences: (a) an external lemma can only be cited from prose; (b) a statement about `BitVec`/`UInt32` bit +operations therefore cannot be a semantic-module theorem; (c) #316 (document denotations cannot name +semantic-module declarations) is not the binding constraint, the missing external-constant access in semantic +modules is; (d) #317 / PR #332 (Nat bitwise primitives) does not help, the demo is at fixed width where the +primitives already exist, but the semantic module still cannot prove anything about them without external lemmas. +`UInt32.add_sub_cancel` was proved in the document at `UInt32` with the core lemma; the semantic module has +`uint32` and `bit_xor` but no proof form that reaches that lemma. + +## Draft issues (not filed) + +1. **Semantic modules cannot cite external lemmas.** Language 1.2 semantic-module proofs name prior document + theorems, registered fold laws or fixed rewrite sets. A proof form `external{entry: ..., arguments: [...]}` + lowering to `exact @ ...`, validated against the entry's signature (the same probe as 13.7), + would let a semantic module prove facts about its own fixed-width definitions from Lean core and Mathlib. + Without it the semantic fixed-width world and the Mathlib world do not meet. Needs: register row, scenario, + LLT code, SPEC 17.12 text. Related to #316 and #317. +2. **A prose arithmetic form.** Bit-level facts reduce to linear arithmetic on indices. A prose proof form + `Close the goal by linear arithmetic.` (lowering to `omega`, or the `linear_arithmetic` of 17.12) after + `Apply \(...ext lemma...\)` and `Assume` would let the rotation inverse be a document proof instead of a host + lemma. Without it every such fact needs a host-library lemma written in Lean. +3. **`deps glossary --names` imports only `Init`.** `GlossaryExtract.lean` imports the `--modules` and, with + none, `Init`. A Mathlib declaration cannot be requested by name without requesting its whole module (thousands + of entries). Wanted: `--import` for the modules to load, or load the defining module of each name. The demo + works around it by requesting the two host modules (15 declarations) and wrapping every cited lemma there. +4. **Generated surfaces for class operators are unreadable.** `HAdd.hAdd` is `hAddHAdd(a, b)`, a wrapper is + `lexLeanSpecBitVec32BitVecAddSubCancel(a, b)`. Mapping the core operator classes to infix frames (`+`, `-`, + `^^^`) in the generator would make the statements read as the issue states them. +5. **Examples that declare a library and the gate.** EX-08 auto-discovers `examples/*`. This example needs the + library fetched (LLV7019 otherwise), so `cargo xtask verify-examples` needs it fetched in CI, or the example + needs its own CI part. Owner decision (see Open decisions). + +## Defects the demo found in the merged branch (fixed here, rows VR-27 and ML-05) + +1. **Probe, instance binder.** `print_lse_type` named every binder, so `[x3 : HAdd ...]` drew the + `unusedVariables` linter and the probe failed with `LLV7006`. Any generated entry for a class operator was + unverifiable. Now an instance binder nothing later mentions is anonymous. +2. **Probe, numeral capture.** `parameter_types` substituted the caller's arguments into the callee's binder types + by name, so in `Eq (x ^^^ x) 0` inside an entry whose binder is named `a` (as the type parameter of `Eq` is) + the `0` was ascribed `(0 : x0)`, the type of a variable, and Lean said `type expected`. The callee's binders are + now renamed apart. +3. **`fmt` with a library.** `fmt` (write mode) checks the project in a scratch copy that did not contain the + library, so it failed with `LLV7019` on any project that declares one. The copy now carries the library's + presence markers (`.git/HEAD`, manifest, built-artifacts directory), not the library. + +Defects 1 and 2 are covered by `conformance_vr_27` (fixture `tests/fixtures/probe-binders`: `HXor.hXor`, which has an +instance binder, and `UInt32.xor_self`, whose binder is named `a`; real Lean elaborates the probe with no output). Defect 3 is +covered by `conformance_ml_05` (a CRLF entrypoint of a project that declares a present library is rewritten by `fmt`). +The row VR-25 of this branch collided with the #339 row of that number and is VR-27 after the merge. Each has a register +row, a scenario, a case, and was shown red by +planting the defect and green with the fix. The order of R3 was not followed for the code: the defects were found +by running the demo and fixed first, the rows and tests written after, then red demonstrated by planting. Total +register count after merging the integration branch: 476. + +Also changed: `xtask` links the example's `.lake` into the clean copy of `verify-examples` (hard links, a copy +across devices, symlinks recreated) instead of copying 7 GB; `audit-deferral` skips `.lake` (Mathlib's own sources +contain `TODO`); `.gitignore` lists `examples/**/.lake/`. + +## Measurements + +Machine: WSL2, 16 GB shared with other sessions running builds (load average 5 to 25), so seconds are noisy. +Peak memory is `/usr/bin/time -v` maximum resident set. Debug build of `lexlean`. Mathlib at `520045ab14e2`. + +| Step | Wall | Peak RSS | Note | +| --- | --- | --- | --- | +| Fetch (`lake exe cache get`), from the #334 notes | about 5.4 min (file-time bound) | not measured | 7.0 GB on disk (6.4 GB `.lake/build`, 387 MB packages, 147 MB source), 436 MB download cache | +| Lake workspace for the example (`cp -al` of the pinned checkout and 8 packages) | 8.5 s | n/a | hard links, no extra disk | +| Host library build (`lake build`) | 1 to 6 s | n/a | 2 modules | +| Glossary generation, 2 host modules, 15 declarations | 95 s cold, 26 s warm | 3.08 GB, 3.25 GB | 11 translated, 4 excluded (internal proof auxiliaries), 0 refused, 27 support entries | +| `check` | under 5 s | under 2 GB cap | 4 modules | +| `verify`, cold (first run) | 74 s | 1.33 GB | before the merge with #339 | +| `verify`, on the merged branch | 41 s | 1.36 GB | probe now also prints `#print axioms` of imports | +| `verify`, `.lexlean` removed | 51 s | 1.33 GB | | +| `verify`, unchanged | 53 s | 1.32 GB | no per-module reuse: `verify` reads no replay cache (SPEC 22.13) | +| `verify`, after a one-line edit (title of the leaf module) | 40 s | 1.31 GB | | + +Cost structure of `verify`: each of the 4 modules is a separate Lean process that imports the closure of +`Blake3GSpecs` (Mathlib `Algebra.Group.Basic` and `Data.BitVec`), plus the probe, the axiom audit module and +`leanchecker` per module. There is no incremental behaviour: an edit anywhere costs a full verification. The +imported Mathlib declarations are not replayed by `verify` (SPEC 22.4 checks only the project's modules); the +closure replay of #337 is not wired into it. + + +## Coverage + +Demo request (the two host modules, what the document cites): 15 requested, 11 translated, 0 refused, 4 excluded +(internal proof auxiliaries), 27 support entries. Every cited declaration translated. + +Modules the cited lemmas come from, requested whole into a scratch directory (not committed), warm, 15.5 s, 2.82 GB +(`Init.Data.BitVec.Lemmas`, `Init.Data.UInt.Lemmas`, `Init.Data.UInt.Bitwise`, `Mathlib.Algebra.Group.Defs`, +`Mathlib.Algebra.Group.Basic`): + +| Outcome | Count | +| --- | --- | +| requested | 7,222 | +| translated | 3,689 (+370 support entries) | +| refused | 841: names with an apostrophe 210, entry check 84, `Sort u` 46, strict-implicit binder 8, depends on a `Sort u` declaration 294, on an internal one 141, on an instance 20, on an auxiliary one 24, on a non-grammar name 14 | +| excluded | 2,692: internal 2,067, instance 239, auxiliary 215, deprecated 111, recursor 60 | + +So 81% of the 4,530 candidate declarations (requested minus excluded) translate. The core lemmas the demo cites +(`BitVec.add_sub_cancel`, `xor_assoc`, `xor_self`, `xor_zero`) are monomorphic and translate directly (`bitVecAddSubCancel`); +the Mathlib ones (`add_sub_cancel_right`, `add_right_comm`) translate as class-polymorphic entries that cannot be +used until a specialisation wrapper exists, which is why the demo wraps them. The demo wraps the core ones too only to +keep the committed glossary at 38 entries instead of about 4,000. + +## Open decisions for the owner + +1. Where Mathlib lives for an example: the pinned checkout is hard-linked into `.lake/packages` of the example + (`setup-offline.sh` in the example). Confinement (`confined_dir`) refuses a symlink out of the project, so a link is not an option; + hard links need one filesystem. CI would need `lexlean deps fetch` (7 GB, about 5 minutes) before the examples + leg, or this example needs its own part. +2. Whether `verify` should also replay the imported declarations the document depends on (closure replay, #337). + As it stands a verified document says nothing about Mathlib's own proofs, which is what SPEC 5.1 and 5.3 say. +3. Whether an upstream lemma `BitVec.rotateLeft_rotateRight` should be proposed to Lean core. +4. Whether the relational encoding of G is acceptable until a semantic module can name external constants. diff --git a/docs/proposals/mathlib-import.md b/docs/proposals/mathlib-import.md new file mode 100755 index 0000000000..a2f3ec4f89 --- /dev/null +++ b/docs/proposals/mathlib-import.md @@ -0,0 +1,721 @@ +# Mathlib import: design + +Issue #341, tracking issue #333. Draft for owner acceptance, written 2026-10-29. Normative text is `SPEC.md`; this document explains and asks. The prototype is the integration branch `feat/mathlib-import-integration`, with issues #334 to #340 merged locally (nothing pushed). The acceptance demo (#340) is `demos/mathlib-blake3-g`; its results are in section 10.7. Register total on this branch: 476. + +## 1. Summary + +A LexLean document can use declarations of an external Lean library, Mathlib first, without LexLean ever building or vouching for it: + +1. The project declares the library once, with an exact commit, in `lexlean.toml`. The Lake workspace must require the same commit. +2. `lexlean deps fetch` downloads Mathlib's prebuilt `.olean` files. No other command touches the network or builds the library. +3. `lexlean deps glossary` turns chosen Lean modules into an ordinary lexicon package of `kind = "lean"` entries. No entry is written by hand. +4. The lock pins the library's commit, its own Lake manifest and the glossary. +5. `verify` probes every used entry against the real declaration (existing §13.7), imports only the Lean module that defines each used declaration, and audits axioms. +6. Imported declarations are described as "replayed in the pinned environment". LexLean never says it proved them (§4.2, §5.3). + +**Acceptance result.** The demo document (4 modules, language 1.2) verifies end to end, offline, against the pinned Mathlib: `lexlean verify` prints `verified 4 modules`, with Lean elaboration, `leanchecker` replay and the exact axiom audit passing (section 10.7). Verification takes 40 to 74 s and 1.3 GB peak in a debug build on a loaded machine. Three defects of the merged branch were found by running it and are fixed (section 12). What it does not do: it does not check Mathlib's own proofs, it needs one hand-written 13-line Lean lemma in a host library for the rotation fact, and a semantic module cannot cite an external lemma at all. + +What is built and checked is listed in section 12. What is not decided is in section 14, with a recommendation on each. The decisions that need the owner first: + +| # | Decision | Recommendation | +| --- | --- | --- | +| D1 | Toolchain pin | Keep `v4.32.1`. A Mathlib commit matches it, on a release line, not `master` | +| D2 | Command naming | Keep the generic `lexlean deps ` group | +| D3 | Which proof forms accept external lemmas in language 1.2 | Prose proofs already do, in 1.2 (the demo). Add one form to semantic modules: `apply` taking an external entry | +| D4 | `[[lean_library]]` in language 1.2 only, or in every language | Keep 1.2 only. The conflict with D3 seen before the demo is gone | +| D5 | Replace the stock `leanchecker` step for imports with closure replay | Adopt it, as an additional stage | +| D6 | Wire the replay cache into `verify` | Not yet. It did not pay off on the two Mathlib modules measured | +| D7 | Apply the schema changes that move the language-1.2 identity | Apply them once, with the other Mathlib changes, in one regeneration | +| D16 | How CI verifies an example that needs a 7 GB library | `lexlean deps fetch` before the examples leg, or a separate leg for this example | + +## 2. What the goal asks and where it stands + +| Goal in #333 | Mechanism | State | +| --- | --- | --- | +| Seamless: a short config entry plus one command | `[[lean_library]]`, `deps fetch`, `deps glossary` | Partly. Fetch is one command. A Lake `require` is still written by hand, and glossary generation needs a module list. Not one command end to end | +| Fast: Mathlib is never rebuilt | Fetch of prebuilt `.olean` files, targeted imports | Imports measured (section 10.2). A full `verify` of the demo takes 40 to 53 s warm and 74 s the first time, with no reuse between runs: an edit anywhere costs a full verification (section 10.7). Seconds, not minutes; "a warm build costs seconds" is not met for a document of this size | +| Precise: pinned, signature-checked, axiom-audited, content-addressed | Lock rows, §13.7 probe, strict wrapper probe, axiom audit, replay keys | Pin, lock, probe, keys and the axiom audit of imports built (section 13), and exercised by the demo. Content addresses of `.olean` bytes are not in the lock (section 6) | + +## 3. Constraints taken as given + +- SPEC §4.2: imported libraries are closed external glossary entries, and their guarantees belong upstream. +- SPEC §10.4 and §5.1: the Lake workspace and its locked dependencies belong to the trusted computing base. +- I15, SPEC §11.4: `check`, `build`, `fmt` and `verify` never fetch. +- SPEC §5.4: the axiom audit reports what `#print axioms` returns, nothing more. +- Out of scope for this work: changing LexLean's toolchain pin; any claim that LexLean proved an imported declaration. +- AGENTS.md (R1 to R6) and VERIFICATION.md: every capability has a register row, a scenario and a failing test first; every diagnostic has a code in ERRORS.md and a negative test. + +## 4. The pin + +Mathlib commit `520045ab14e26149ee970e2e617ca04b09bde5d6` has `lean-toolchain` exactly `leanprover/lean4:v4.32.1` (read at that commit, note 334). So no toolchain change is needed. + +Facts the owner should know: + +- The commit is tagged `v4.32.1` in `leanprover-community/mathlib4`, dated 2026-07-23, message "chore: bump toolchain to v4.32.1". +- It is not on `master`. Its parent is `81a5d257c8e4` (the `v4.32.0` bump). `master` went from `v4.32.0` straight to `v4.33.0-rc1`. A search of `master` for `v4.32.1` finds nothing. The tags `v4.32.1` and `v4.32.2` (`905b95818eb3`, 2026-07-28) sit on a release line off `v4.32.0`. +- The pin is therefore a point release of Mathlib's `v4.32` line, frozen at July 2026 plus whatever Mathlib backported. +- Moving to `v4.32.2` would need LexLean's own pin to move to `v4.32.2`. That is outside this work. +- The config states the commit, never the tag. A tag is a mutable reference. + +## 5. Config surface + +### 5.1 `lexlean.toml` + +```toml +language = "1.2" + +[[lean_library]] +name = "mathlib" +url = "https://github.com/leanprover-community/mathlib4" +revision = "520045ab14e26149ee970e2e617ca04b09bde5d6" +``` + +Rules (SPEC §10.1, §10.4; register `ML-01`): + +- Language 1.2 only. It follows `source_package` and `artifact_source`, so languages 1.0 and 1.1 keep their identities. +- Keys `name`, `url`, `revision`, in that order, tables sorted and unique by `name`, omitted entirely when absent (a project without a library keeps its bytes). +- `url` is HTTPS. `revision` is 40 lowercase hex. No `branch`, `tag`, `rev`, `ref`, or any other field. +- `name` is a package identifier, `[a-z][a-z0-9-]{0,62}`, and must equal the Lake package name. A Lake package with an uppercase letter or an underscore (`Qq`, `importGraph`) therefore cannot be declared. `mathlib` and `batteries` can. +- Any violation is `LLC0109` (class `cli-configuration`, exit 2). + +### 5.2 Declared once, agreed with Lake + +Lake needs its own `require` in the workspace lakefile and an entry in `lake-manifest.json`. `lexlean.toml` is the pin; the workspace must agree. The manifest's `packages` entry of the same `name` must have the same `url` and `rev`, else `LLC0110` names both values. LexLean writes neither the lakefile nor the manifest. A person adds the `require` and runs `lake update` once. Scaffolding that (`lexlean deps add`) is a follow-up, not built. + +### 5.3 Where the library must be + +The library is the Lake package at `//`, `packagesDir` defaulting to `.lake/packages`. It is *present* when all of these hold: + +1. the directory exists and has `.git/HEAD`; +2. `.git/HEAD` holds the declared revision; +3. it has a `lake-manifest.json` (Mathlib's own); +4. its built artifacts directory `.lake/build/lib/lean` exists. + +This is the whole check. It does not read the `.olean` files or the source tree. + +### 5.4 Resource limits that matter + +`child_timeout_ms` (default 300000, five minutes) bounds `lake exe cache get`. A timeout is `LLS8002`, not `LLV7020`. `max_child_output_bytes` (default 16 MiB) bounds each child's output. See section 11. + +## 6. Lock rows + +SPEC §11.1, §11.2; register `ML-02`. Language 1.2 only, after the `[[source_package]]` rows, sorted by `name`: + +```toml +[[lean_library]] +name = "mathlib" +url = "https://github.com/leanprover-community/mathlib4" +revision = "520045ab14e26149ee970e2e617ca04b09bde5d6" +lake_manifest_sha256 = "..." +glossary_sha256 = "..." +``` + +| Field | Value | +| --- | --- | +| `lake_manifest_sha256` | SHA-256 of `//lake-manifest.json`, Mathlib's own manifest. It pins batteries, aesop, Qq, proofwidgets and the rest | +| `glossary_sha256` | Tree digest (§11.5) of the project's lexicon package `lean.`, or the digest of the empty tree (`SHA-256("lexlean-tree-v1\0")`) when the project declares none | + +A lock that differs from the library as it now is gives `LLC0110`, naming both values of the first field that differs. + +Couplings: + +- The glossary row couples to the glossary generator only by a naming convention. The generator takes any `--package `. The lock looks for the package named `lean.`. Nothing forces `--package lean.mathlib`. A mismatch silently locks the empty-tree digest. See section 15. +- The lock's `lake-manifest.json` row already exists for the project's own workspace (§10.4); this row is Mathlib's, one level down. + +Not pinned: the bytes of the built `.olean` files, and the bytes of the Mathlib source tree. A tampered checkout with a matching `HEAD` is not detected by the lock. Two ways to close this are measured or sketched: + +- A `tree_sha256` over the Mathlib source (about 100 MB, a second or so to hash, note 334) closes the source half. +- The `.olean` half needs Lean's own check (section 8). Separately, note 337 found that `.olean` bytes are stable for a (Mathlib commit, toolchain) pair, so a digest of the fetched files is a possible lock row. This was shown on three modules only. + +Identity cost: adding `lean_library` to `schemas/project-v2.schema.json` and `schemas/lock-v2.schema.json` moves the language-1.2 compiler-semantics ID. 528 tracked files carry the current ID (locks, golden files, expected outputs). It is held back as a patch (`334-schema-identity-move.patch`). Until applied, the JSON schemas do not describe `lean_library`. See D7. + +## 7. Commands + +### 7.1 Existing commands + +| Command | Effect on a declared library | +| --- | --- | +| `lock`, `check`, `build`, `fmt`, `verify` | Resolve the library offline through `compute_lock`. Absent library: `LLV7019`, naming the library and `lexlean deps fetch`, before any Lean process runs. Even `lock --allow-network` never fetches a library (§11.4). Register `ML-04` | + +`fmt` fails when the library is absent even though it does not need Mathlib. That follows from every command computing the lock. + +### 7.2 `lexlean deps fetch` + +SPEC §23.4, register `ML-03`. Acquires the declared libraries and nothing else. + +1. Checks each declaration against the Lake workspace (`LLC0110` on disagreement). +2. Runs `lake exe cache get` in the Lake workspace through the checked child runner: cleared environment, `PATH` and `HOME` kept, `child_timeout_ms` and `max_child_output_bytes` apply. +3. Confirms the library is then present (section 5.3). + +With no library declared it succeeds and fetches nothing. It writes no file outside the Lake workspace. A missing or failing `lake`, and a library not present afterwards, are `LLV7020`. Lake clones the library at the manifest's revision as part of running `lake exe`; Mathlib's `cache` executable downloads the `.olean` files. + +### 7.3 `lexlean deps glossary` + +SPEC §13.12, §23.4; register rows `CL-25`, `GL-19`, `GL-20`. Not a project command: like `init` it needs no project, and it never fetches or builds. + +```text +lexlean deps glossary --package [--version V] [--language L] + (--modules M... | --names N...) [--workspace DIR] --out DIR + [--report FILE] [--strict] +``` + +It runs a Lean metaprogram (`crates/lexlean/lean/GlossaryExtract.lean`, compiled into the executable) as `lake env lean --run` in `--workspace`, or as plain `lean --run` over the toolchain's own libraries without one. The metaprogram prints one JSON document. Everything after that is Rust, so package bytes, codes and the report are fixed by the release and testable without Lean. + +Translation, in short (full rules in §13.12): + +- The input is the kernel type of the declaration, not syntax. +- `Prop` and `Type u` are expressible. Instance arguments and universe polymorphism over `Type u` are not refusal reasons. +- An application keeps only explicit-binder arguments; Lean re-infers the rest when the entry is probed. +- Every constant a signature mentions needs an entry, so the generator translates the closure of the request. The added entries are *support entries*. +- Before anything is written, each entry passes the package loader's entry and signature checks. The same Lean environment and request give byte-identical files and report. +- Each entry's `module` is the module that defines the declaration (`Environment.getModuleIdxFor?`), which is what lets `verify` import the defining module and not an umbrella. + +Refusals are reported with exit 0 by default. With `--strict` any refusal fails the command, one diagnostic per refusal, and nothing is written. + +Gap found by the demo (#340): the extractor imports the modules named by `--modules` and, with none, only `Init`. So `--names` cannot reach a Mathlib declaration without also requesting its whole module (thousands of entries). The demo works around it by wrapping every cited lemma in two small host modules and requesting those (15 declarations). A flag naming the modules to load, or loading the defining module of each name, is needed (D2). + +### 7.4 Specialisation wrappers + +SPEC §13.13, §18.8; register rows `GL-21`, `VR-24`. For a class-polymorphic declaration such as `add_comm`, a *wrapper* is a monomorphic constant in the project's host Lean library, `@add_comm Nat _`, that an entry denotes. Today the only caller is `cargo xtask emit-wrappers ` and the library function `lexlean::wrappers::emit`. There is no `lexlean` subcommand (decision D2). The emitter: + +- takes a closed request (`lexlean/wrappers/1`) with arguments in a closed term grammar: `_`, a name, `@name`, a decimal, parenthesised application. No tactic, `by`, `fun`, string, ascription or comment. Names are written `_root_`-qualified so a wrapper cannot capture another; +- writes `public theorem LexLeanSpec.. : type_of% (@ ) := @ ` and nothing else, sorted, byte-identical across runs; +- never runs Lean and never writes a signature. Someone (or a generator) states the entry's LSE signature, and verification decides whether it is the wrapper's type. + +The probe of a wrapper entry is stronger than that of any other external entry: `example : () = (type_of% @) := rfl`. The ordinary probe `example : := ` is weaker, because Lean inserts implicit arguments and synthesises instances while checking it, so a signature that omits an instance binder is accepted. A wrong wrapper signature is `LLT4017`; a missing wrapper is `LLT4003`. + +### 7.5 What a user does today + +| Step | Who | Tool | +| --- | --- | --- | +| 1. Add `require mathlib from git ... @ ""` to the lakefile, run `lake update` once | Person | Lake | +| 2. Add `[[lean_library]]` to `lexlean.toml` | Person | editor | +| 3. `lexlean deps fetch` | Person | LexLean | +| 4. `lexlean deps glossary --package lean.mathlib --workspace --modules ... --out `, then declare the output as a path lexicon package | Person | LexLean | +| 5. `lexlean lock`, then `check`, `build`, `verify` | Person | LexLean | + +Not built: `deps add` (step 1), a command that writes wrappers (section 7.4), a command that picks the module list from the document's needs. + +How the demo does it: `demos/mathlib-blake3-g/setup-offline.sh` hard-links an already fetched pinned checkout and its packages into the example's `.lake/packages` (no extra disk; a symlink out of the project is refused by path confinement) and runs `lake build Blake3GHost`. The wrappers are emitted by `cargo xtask emit-wrappers` from `wrappers.toml` into `Blake3GSpecs.lean`. The glossary `glossary/lean.mathlib` (38 entries) is generated by `lexlean deps glossary` from the two host modules and committed; `glossary/blake3.g` holds 8 label words and no entry denotes an imported declaration. The lock's `glossary_sha256` equals the tree digest of `lean.mathlib`, so the `lean.` coupling of section 6 works when the package is named that way. + +## 8. Trust statement + +This is the text the design asks the owner to accept as the statement of what an imported declaration is. + +1. **What is imported.** The Lean constant that a used external entry denotes (§13.6), when the entry's Lean module is outside the pinned toolchain's own libraries (`Init`, `Std`, `Lean`, `Lake`). Its guarantees belong to the upstream repository (§4.2). LexLean never claims it proved an imported declaration. No glossary entry, generated or hand-written, is evidence that anyone proved anything; it is an interface. +2. **What is checked, today.** For each used entry, the §13.7 probe elaborates in the pinned environment: the constant can inhabit the entry's signature. For a wrapper entry, the signature is definitionally the wrapper's Lean type. The generated modules are replayed by the pinned `leanchecker` (§22.4), and their axioms are audited (§22.5, §22.6). +3. **What is not checked, today.** The imported declarations themselves are not replayed. `import` loads Mathlib's `.olean` files into the environment and the generated modules' `leanchecker` run trusts the imports: it replays the module's own constants into the environment of its imports. Note 337 demonstrates this with a planted defect: module `Evil` adds a false theorem with `debug.skipKernelTC`, module `UsesEvil` imports and uses it. `leanchecker UsesEvil` exits 0. `leanchecker Evil` and closure replay (below) fail. So the imported library is trusted as part of the workspace (§5.1, item 5). +4. **Environment.** The pinned toolchain `leanprover/lean4:v4.32.1`, the Mathlib commit `520045ab14e2...`, and Mathlib's own locked dependencies (pinned by the SHA-256 of its `lake-manifest.json`). All Lean processes run through `lake env` in the Lake workspace (§22.2). Measurements were taken on x86_64 Linux (WSL2) only. +5. **Replay proposed (D5).** Closure replay (`tooling/mathlib-speed/closure-replay`, about 120 lines of Lean built with the pinned toolchain) starts from the constants the project's compiled module mentions, collects everything they transitively mention, and replays that set into an empty environment through `Lean.Environment.replay`. A mention that is not found is an error, so an incomplete closure cannot pass. It is the same kernel as `leanchecker`, not an independent checker (§4.2 already forbids calling `leanchecker` independent). If adopted, the status word is still "replayed in the pinned environment". +6. **Axioms.** The audit is an axiom-dependency audit only (§5.4). Mathlib's standard axioms are `Classical.choice`, `Quot.sound`, `propext`, the same three LexLean certificates depend on. An imported theorem's axioms are not exempt: if they flow into a generated declaration, that declaration's policy must permit them (§22.6). Measured examples from note 336: the `Nat.add_comm` wrapper depends on `[propext]`; the `BitVec 32` wrapper on `[propext, Classical.choice, Quot.sound]`. The imports themselves are audited by `#print axioms` in the probe process, and an import that depends on `sorryAx`, `Lean.ofReduceBool`, `Lean.trustCompiler` or a `native_decide` axiom is refused unless a policy of the document names it (section 13). +7. **Wording.** An import's status is "replayed in the pinned environment". The words "proved", "verified" and "kernel-checked" are reserved for the document's generated declarations (§5.3, as amended by #339). The word "replayed" is only literally true in the sense that the pinned Lean loaded the compiled module of the locked workspace: §22.4 replays the generated modules only (item 3). It becomes literal if closure replay (D5, item 5) is adopted. Without it, "loaded from the pinned environment" is the more accurate status (D15). +8. **Not covered.** A checkout whose `HEAD` matches the declared commit but whose files or `.olean` files were altered (section 6). That a glossary entry's statement matches the informal mathematics a reader expects. That a wrapper's host library is itself sound: it is a Lean library of the project, in the trusted computing base, and a wrapper adds no axiom of its own. +9. **Replay cache.** If used, the cache is an untrusted input (§5.2). `entry_digest` detects changed bytes and a mismatch with the key; it is not authentication, since whoever can write the store recomputes it. A reused result is evidence that the unit was replayed once, by the executable the entry names, in the environment its key covers. It is not evidence of a replay by this run. + +## 9. Cache keys and content addresses + +| Object | Identified by | Where used | +| --- | --- | --- | +| Library source | 40-hex commit | `lexlean.toml`, lock, Lake manifest | +| Library's dependencies | SHA-256 of its `lake-manifest.json` | lock | +| Generated glossary | Tree digest (§11.5) of the package `lean.` | lock | +| Generated glossary bytes | Deterministic: same environment and request, same bytes | tests `GL-19`, `CL-25` | +| Wrapper module | Deterministic: same request, same bytes | test `GL-21` | +| Built `.olean` | Not pinned. Byte-stable for a (commit, toolchain) pair on three modules | note 337 | +| A declaration, for replay | DigestSet key (below) | replay cache | +| A unit of replay (declaration or module) | DigestSet of the unit frame | replay cache | + +### 9.1 Replay-cache keys + +SPEC §22.13; register rows `RC-01` to `RC-06`. A *DigestSet* is the PrismPM ADR-015 object `{"blake3": H, "sha256": S}`, both lowercase hex of 64 characters over the same bytes, label `blake3:`. A reader refuses a missing, extra, uppercase or differently spelled member. + +- **Canonical declaration.** Fields `tag SP decimal-length ":" payload LF`: format `lexlean/replay-declaration/1`, name, universe parameters, kind attributes, type, then the DigestSet of the value or `none`. A term is an alpha-equivalence class (no binder names, annotations or metadata), a shared subterm is one node. The declaring module is excluded, so moving a declaration moves no key. +- **Declaration key.** DigestSet of the frame `lexlean/replay-key/1`, the toolchain string, the Mathlib revision, the canonical declaration, the group digest, and the sorted, de-duplicated keys of what it names outside its group. A change to a declaration changes the key of everything above it and of nothing else (a Merkle DAG). +- **Group.** Declarations that name one another (an inductive type, its constructors and recursor) form a strongly connected component, found with an iterative Tarjan (a 50,000-lemma chain is a unit test). The group digest is the DigestSet of the members' canonical bytes in name order. +- **Unit key.** DigestSet of the frame `lexlean/replay-unit/1`, the granularity (`declaration` or `module`), and the sorted member keys. +- **Entry.** One canonical JSON file per unit at `entries//.json`, written to a temporary file and renamed: `spec`, `key`, `unit`, `environment` (toolchain, Mathlib revision), `executable` (tool and DigestSet of the executable), `result` (`exit_code` 0, stdout, stderr), `entry_digest`. Only a replay that exited zero is recorded. +- **Facts.** `crates/lexlean/src/verify/replay_facts.lean`, run by `lean --run` through `lake env`, prints one JSON line per constant a module declares and per constant those reach. + +Reuse and refusal: no file is a miss. A file that does not parse, whose `entry_digest` is wrong, whose recorded key is not the key looked up, or whose environment differs, is `LLV7021` and is neither reused nor replaced. An entry produced by another executable is a miss and the replay overwrites it. A changed toolchain or Mathlib revision changes every key, and the old entries are left intact. Facts that repeat a declaration, name one neither declared nor anchored, or do not parse are `LLV7022`. + +Dependency: `blake3 =1.5.5` with `pure` (as PrismPM pins), a new member of the shipped crate and of the §8.4 table; `deny.toml` gains `BSD-2-Clause` for `arrayref`, a transitive dependency. A new licence in the allow list is a reviewer's call by the file's own words. + +### 9.2 Does the cache pay off? + +Not on what was measured (section 10.4). It is a library a caller drives with a store directory. `lexlean verify` does not use it, and `verify`'s gates never read a cache (§22.13, §9.4, §10.5). This keeps §10.5's "no cache of a built package" true. + +## 10. Measurements + +Environment for all rows unless stated: Lean 4.32.1, Mathlib `520045ab14e2` at `~/mathlib-pinned` with prebuilt `.olean` files, WSL2 with 16 GB shared with other sessions running builds. Wall times are noisy. Ratios are solid, absolute seconds are not. + +### 10.1 Fetch (#334) + +Mathlib was fetched outside the session by the owner, not by `lexlean deps fetch`. There is **no stopwatch time for a cold fetch**. + +| Item | Value | +| --- | --- | +| `~/mathlib-pinned` total | 7.0 GB | +| `.lake/build` | 6.4 GB, 8275 `.olean` files under `.lake/build/lib/lean` | +| `.lake/packages` | 387 MB (batteries, aesop, Qq, proofwidgets, plausible, importGraph, LeanSearchClient, Cli) | +| Shallow source | about 147 MB | +| Download cache `~/.cache/mathlib` | 436 MB, 8639 `.ltar` files | +| Time, from file times (network and unpack together) | about 5.4 minutes (11:03:47 to 11:09:09) | + +The 5.4 minutes is a bound from file times. A five-minute `child_timeout_ms` (the default) would have been borderline; a timeout is `LLS8002`. Free disk space cannot be attributed to the fetch because other sessions share the disk. + +### 10.2 Import cost (#337) + +Warm runs of `lean probe.lean` (imports plus `#check @decl`): + +| Imports | Modules loaded | Wall | Peak memory | +| --- | --- | --- | --- | +| `Mathlib.Order.Defs.PartialOrder` | 1189 | 0.6 s | 860 MiB | +| `Mathlib.Data.Nat.Prime.Defs` | 1921 | 1.0 s | 1360 MiB | +| `Mathlib.Algebra.BigOperators.Group.Finset.Sigma` | 2124 | 1.2 s | 1505 MiB | +| `Mathlib.Analysis.Real.Sqrt` | 2917 | 1.6 s | 1943 MiB | +| `Mathlib` | whole library | 6.7 to 9.6 s warm, 40.5 s first run (cold page cache) | 5.9 GB | + +The cost is the import closure of the module that defines the declaration. About 1100 modules (Lean core, Std, Batteries, Aesop) are the floor. "Minimal" means the defining module, not a re-exporting parent. Generated Lean must never write `import Mathlib`; a check for that is not built (D8). + +### 10.3 Replay (#337) + +Seconds / peak MiB, warm. A, B, C, D are the four rows above in the same order. + +| Strategy | A | B | C | D | +| --- | --- | --- | --- | --- | +| `leanchecker Probe` (today, §22.4: project module only) | 2.6 / 758 | 2.9 / 1195 | 4.0 / 1726 | 2.2 / 1331 | +| `leanchecker ` | 2.0 / 757 | 2.4 / 1197 | 2.6 / 1729 | 2.1 / 1331 | +| `closure-replay --module Probe` | 0.3 / 568 | 0.4 / 817 | 6.1 / 1284 | 2.2 / 935 | +| `leanchecker --fresh ` (whole import closure) | 114 / 906 | 214 / 1254 | 302 / 1836 | 207 / 1453 | +| `leanchecker` on every module of the closure | over 1500 (killed) / 3615 | not run | not run | not run | + +Constants replayed of constants loaded: A 356 of 125 042, B 572 of 186 514, C 10 861 of 290 597, D 4 041 of 214 417. Kernel time in the closure: A 46 ms, B 78 ms, C 5.5 s, D 1.6 s. + +Closure replay is about 50 times (C) to 540 times (B) cheaper than `--fresh`, by the table above. (Note 337 says "50x to 700x"; the table gives at most 535.) Whole-module replay of the closure does not finish. + +Byte reproducibility (note 337, `repro-check.sh`): `Mathlib.Order.Defs.PartialOrder`, `Mathlib.Data.Nat.Prime.Defs` and `Mathlib.Algebra.BigOperators.Group.Finset.Sigma`, built twice from empty output directories, give byte-identical `.olean`, `.olean.server`, `.olean.private`, `.ir`, `.ilean` and `.c`, and all but `.c` equal the files in the Mathlib cache. One non-obvious input: Lake passes the package name in its `--setup` file and Lean records it in the `.olean`. Limits: three modules, one toolchain build, x86_64 Linux. The `.olean` header embeds the toolchain commit hash, so bytes identify nothing across toolchains. + +### 10.4 Replay cache (#338) + +RC-06: three tiny modules `A <- B <- C`, one-line edit to `B`. A and C reused, only B replayed; warm verdicts equal a cold run. Two runs, machine at load average 8 to 11: + +| Phase | Facts and keys | `leanchecker` replays | +| --- | --- | --- | +| cold, 3 modules | 11.2 to 13.8 s | 1.2 to 1.4 s | +| warm, nothing changed | 6.6 to 7.9 s | 0 s | +| warm, one-line edit | 8.0 to 15.9 s | 0.5 to 0.6 s | +| cold again on the edited modules | 6.8 to 12.5 s | 1.3 to 1.4 s | + +Mathlib modules (one run each, exporter and `leanchecker` run by hand under a 5 GB cap, not through the cache driver): + +| Module | Constants exported (own) | Facts size | Export wall / peak RSS | `leanchecker` wall / peak RSS | +| --- | --- | --- | --- | --- | +| `Mathlib.Order.Basic` | 7,911 (427) | 25 MB | 28.0 s / 2.6 GB | 2.0 s / 0.87 GB | +| `Mathlib.Algebra.Group.Basic` | 1,993 (548) | 3.3 MB | 11.1 s / 2.7 GB | 4.7 s / 0.94 GB | + +Exporting the closure of a Mathlib module is 2.4 to 14 times slower than replaying it. For small modules the facts export costs more than the replay it saves. A third module, `Mathlib.Data.Nat.Defs`, exported no constants and is not counted. The cache cannot pay off until the exporter changes (one process for many modules sharing a closure walk, a compiled exporter, anchors so a module exports only its own declarations); none of these was measured. The facts of `Std.Data.HashMap.Lemmas` are 24 MB, over the default `max_child_output_bytes`; RC-06 raises it to 64 MiB for its own run. + +### 10.5 Glossary coverage (#335) + +All numbers from `lexlean deps glossary`, debug build. "Excluded" are requested declarations that are not candidates (internal names, recursors, matchers and other auxiliaries, instances, deprecated, and the six core constants). `requested = translated + refused + excluded`. + +**Mathlib, eight modules** (`Algebra.Group.Defs`, `Algebra.Group.Basic`, `Algebra.Ring.Defs`, `Algebra.Order.Group.Defs`, `Order.Basic`, `Logic.Basic`, `Data.Nat.Basic`, `Data.Int.Basic`): 3,065 requested. + +| Outcome | Count | +| --- | --- | +| translated | 1,146 (plus 236 support entries) | +| refused: `Sort u` polymorphism (`LLT4101`) | 174 | +| refused: name outside grammar, mostly `'` (`LLT4105`) | 166 | +| refused: strict-implicit binder (`LLT4102`) | 13 | +| refused: core constant at wrong level (`LLT4104`) | 7 | +| refused: depends on a `Sort u` declaration (`LLT4106`, root `LLT4101`) | 215 | +| refused: depends on an excluded instance (`LLT4106`) | 23 | +| refused: depends on an excluded internal or auxiliary declaration (`LLT4106`) | 10 | +| refused: depends on a non-grammar name (`LLT4106`) | 6 | +| excluded: internal 671, auxiliary 303, instance 229, recursor 83, deprecated 19 | 1,305 | + +The columns add up: 1,146 + 614 refused + 1,305 excluded = 3,065. Of the 1,760 candidates (3,065 minus 1,305), 65% translate. No declaration is refused for having an instance argument. + +**Lean core, six `Init` modules** (`Prelude`, `Core`, `Data.Nat.Basic`, `Data.List.Basic`, `Data.Int.Basic`, `Data.BitVec.Lemmas`): 6,892 requested, 2,445 translated, 1,050 refused (481 `Sort u`, 195 names, 76 signature check, 4 level, 294 dependency), 3,397 excluded, 81 support entries. + +| Request | Wall | Peak RSS | +| --- | --- | --- | +| 6 `Init` modules, 6,892 declarations | 7.6 to 11 s | 1.4 to 1.7 GB | +| 4 Mathlib modules, 1,777 declarations | 26 s (cold cache) | 2.9 GB | +| 8 Mathlib modules, 3,065 declarations | 7.5 s warm | 2.9 GB | +| first Mathlib run after the `.olean` files were fetched | 2 min 50 s (cold page cache, machine busy) | 3.4 GB | + +Memory is Lean importing Mathlib's environment and does not grow with the request. Scaling to all of Mathlib was not measured. The cost of loading a package of 1,383 entry files in `check` and `verify` was not measured either. + +### 10.6 Wrapper coverage (#336) + +Counts from a Lean script (not in the repository; recipe in note 336, scripts in the shared notes folder): public, non-internal theorems and definitions with an instance binder, counted at a type when the first sort-typed binder takes the type, every instance binder is found by instance resolution, and every binder up to the last instance binder is assigned. + +| Scope | Class-polymorphic candidates | Specialisable at some of `Nat`, `Int`, `UInt32`, `BitVec 32` | At `Nat` / `Int` / `UInt32` / `BitVec 32` (all) | Same, theorems only | +| --- | --- | --- | --- | --- | +| `Init`, `Std`, `Lean` | 30,200 | 4,146 (2,804 theorems) | 3,778 / 3,959 / 3,720 / 3,428 | 2,486 / 2,713 / 2,535 / 2,308 | +| Closure of `Mathlib.Data.BitVec` | 38,427 | 8,437 (6,502 theorems) | 6,963 / 8,140 / 4,580 / 6,229 | 5,217 / 6,292 / 3,309 / 4,612 | + +Most of the rest are underdetermined by the carrier alone: `Std.Commutative.comm` needs `op` stated, so a generator must choose arguments, not only a type. `UInt32` has no `AddCommMagma` in Mathlib at this pin, so that wrapper fails at the host build. A count over all of Mathlib was not run. + +Against real Mathlib at the pin: `add_comm` at `Nat`, `Int`, `BitVec 32`, `add_assoc` at `BitVec 32` and `mul_comm` at `Int` build from `import Mathlib.Data.BitVec`. The strict probe line accepts the signatures written with `Nat.add`, `Int.add`, `BitVec.add` and refuses a planted wrong one. + +### 10.7 Acceptance demo and measurement table + +Source: note 340 and `demos/mathlib-blake3-g` (README, `lexlean.toml`, `lexlean.lock`, `glossary-report.json`, `expected/verify/`). I cross-checked the theorem names and their `\exactaxioms` against the sources and `expected/verify/audit/output.txt`, the coverage sums against each other, and the register rows against `SPEC.md`. I did not repeat the timings. Environment as in section 10: Lean 4.32.1, Mathlib `520045ab14e2`, WSL2 with 16 GB shared and loaded (load average 5 to 25), debug build of `lexlean`. + +**The document.** Four modules (`Main`, `Cancellation`, `Rotation`, `Mixing`), language 1.2, `[[lean_library]] mathlib` pinned. It proves for every 32-bit word what the BLAKE3 work could only test, citing lemmas of Lean core and Mathlib through the generated glossary. `lexlean verify` prints `verified 4 modules`: Lean elaboration, `leanchecker` replay of the four modules, and the exact axiom audit all pass, offline. + +| Statement (`BitVec 32`; the first two also `UInt32`) | Theorem | Imported lemmas cited | Axioms (exact, audited) | +| --- | --- | --- | --- | +| `(a + b) - b = a` | `Cancellation::add-sub-cancel`, `-u32` | `BitVec.add_sub_cancel`, `UInt32.add_sub_cancel` (core) | `propext` | +| the same through Mathlib | `add-sub-cancel-group` | `add_sub_cancel_right` at `AddGroup (BitVec 32)` (Mathlib, via a wrapper) | `Classical.choice`, `Quot.sound`, `propext` | +| `(a ^^^ b) ^^^ b = a` | `xor-cancel`, `-u32` | `xor_assoc`, `xor_self`, `xor_zero` (core), `rewrite` | `Quot.sound`, `propext` | +| `rotl (rotr a n) n = a`, n in {7, 8, 12, 16} | `Rotation::rotate-left-right` | `Blake3GHost.rotateLeft_rotateRight` (host library, below) | `Quot.sound`, `propext` | +| the inverse of BLAKE3 G recovers `a b c d` | `Mixing::mixing-inverse` | the four above, `add_right_comm` (Mathlib) | all three | + +The Mathlib route costs `Classical.choice` that the core route does not. The probe prints `#print axioms` for 11 imported or host constants (`expected/verify/probe`). + +**What is not imported.** `rotateLeft (rotateRight x n) n = x` is in neither Lean core nor Mathlib at this pin (searched `Init`, `Std`, Mathlib and batteries). Its proof needs `BitVec.eq_of_getLsbD_eq`, two `getLsbD_rotate*` lemmas and arithmetic on bit indices (`omega`). No prose or semantic proof form can do index arithmetic, so it is 13 lines of ordinary Lean in the host library, `Blake3GHost.rotateLeft_rotateRight`. It is a lemma of this project's host library, in the trusted base beside the imported libraries, not a lemma of Mathlib or Lean. The audit checks its axioms (`propext`, `Quot.sound`) like any other. It is a candidate to propose upstream to Lean core (D17). + +G is not a named definition in the document. A prose definition would need a hand-written glossary entry, and a semantic module cannot call an external constant. The statement is relational: for all 22 words, if the eight forward equations (the BLAKE3 `gcore` as the step machine runs it) and the eight inverse equations hold, with fresh names for the recovered intermediates, the four recovered words are `a`, `b`, `c`, `d`. The equations determine every value, so this is equivalent to `inverse (G ...) = ...`. `BitVec.rotateRight v n` with `0 < n < 32` is the BLAKE3 `rotr`; the document uses the BitVec functions and does not re-prove that identification. + +**Hand-written versus generated.** Generated by `lexlean deps glossary`, committed in `glossary/lean.mathlib`: 38 entries, 11 translated declarations and 27 support entries (`HAdd`, `HAdd.hAdd`, `HSub`, `HXor`, `BitVec`, `Nat`, `UInt32` and so on). Hand-written, `glossary/blake3.g`, 8 files: the label words that titles and headings require (`word`, `arithmetic`, `cancellation`, `xor`, `rotation`, `mixing`, `inverse`, `function`; §13.3). They assert nothing and none denotes an imported declaration. + +**Proof forms with an external lemma** (the question D3 asks): + +| Form | Used with an external lemma? | Result | +| --- | --- | --- | +| `Close the goal with \(lemma(args)\)` | yes, in every theorem | works for core, Mathlib wrapper and host lemmas alike | +| `rewrite` (`\forward`) | yes | works; a lemma with implicit arguments (`xor_self`) is used bare | +| `have` | yes | works | +| `constructor` | yes | works; `P and Q and R` is left-folded, `And (And P Q) R`, so branches nest on the left | +| `Assume` (several names) | yes | works for 16 hypotheses | +| `simplify` | yes (scratch module, not committed) | `\begin{simplify}{goal}` with three `\rule` terms proves `(a ^^^ b) ^^^ b = a`; verified | +| `calculate` | yes (scratch module, not committed) | a one-step chain justified by the core lemma verified; steps are whole-term equalities, so a lemma inside a larger term needs `rewrite` | +| `Apply`, structured `apply`, `cases`, `induction`, `Use ... as the witness` | no | not exercised: the demo has no lemma with premises or an inductive scrutinee. Nothing in §16 treats a proof term differently by origin | +| language-1.2 semantic-module forms (`reflexivity`, `linear_arithmetic`, `congruence`, `law`, `apply`, `term_cases`, `cases`, `induction`, `simplify`) | no | cannot, by construction: `apply` names a prior document theorem, `law` a registered fold law, `linear_arithmetic` and `simplify` a fixed rewrite set plus prior document definitions (§17.11, §17.12). None names an external glossary entry, and a semantic module has no way to call an external constant | + +Consequences, from the note: an external lemma can only be cited from prose; a statement about `BitVec` or `UInt32` bit operations cannot be a semantic-module theorem; issue #316 (document denotations cannot name semantic-module declarations) is not the binding constraint, the missing external-constant access in semantic modules is; and #317 / PR #332 (Nat bitwise primitives) does not help, because the demo is at fixed width where the primitives already exist but the semantic module still cannot prove anything about them without external lemmas. The scratch modules for `simplify` and `calculate` are not committed, so those two rows have no committed evidence. + +**Measurements.** Peak memory is `/usr/bin/time -v` maximum resident set. + +| Step | Wall | Peak RSS | Note | +| --- | --- | --- | --- | +| Fetch (`lake exe cache get`), from the #334 notes | about 5.4 min (file-time bound) | not measured | 7.0 GB on disk, 436 MB download cache. Not run by this demo: the checkout was already there | +| Lake workspace for the example (`cp -al` of the pinned checkout and 8 packages) | 8.5 s | n/a | hard links, no extra disk | +| Host library build (`lake build`) | 1 to 6 s | n/a | 2 modules | +| `deps glossary`, 2 host modules, 15 declarations | 95 s cold, 26 s warm | 3.08 GB, 3.25 GB | 11 translated, 4 excluded (internal proof auxiliaries), 0 refused, 27 support entries | +| `check` | under 5 s | under a 2 GB cap | 4 modules | +| `verify`, first run | 74 s | 1.33 GB | before the merge with #339 | +| `verify`, merged branch | 41 s | 1.36 GB | probe also prints `#print axioms` of imports | +| `verify`, `.lexlean` removed | 51 s | 1.33 GB | | +| `verify`, unchanged | 53 s | 1.32 GB | no per-module reuse: `verify` reads no replay cache (§22.13) | +| `verify`, after a one-line edit (title of the leaf module) | 40 s | 1.31 GB | | + +Not measured: `lock` and `build` by themselves (the note gives no time), a cold `deps fetch` run by LexLean, and any per-stage split of `verify`. + +Cost structure of `verify`, from the note: each of the four modules is a separate Lean process that imports the closure of `Blake3GSpecs` (Mathlib `Algebra.Group.Basic` and `Data.BitVec`), plus the probe, the axiom-audit module and `leanchecker` per module. There is no incremental behaviour: an edit anywhere costs a full verification. The imported Mathlib declarations are not replayed by `verify` (§22.4 checks only the project's modules). The closure replay of #337 is not wired in. So a verified document says nothing about Mathlib's own proofs, which is what §5.1 and §5.3 say. + +**Translation coverage.** The demo's request (the two host modules): 15 requested, 11 translated, 0 refused, 4 excluded, 27 support entries. Every cited declaration translated. The modules the cited lemmas come from, requested whole into an uncommitted scratch directory (`Init.Data.BitVec.Lemmas`, `Init.Data.UInt.Lemmas`, `Init.Data.UInt.Bitwise`, `Mathlib.Algebra.Group.Defs`, `Mathlib.Algebra.Group.Basic`), warm, 15.5 s, 2.82 GB: + +| Outcome | Count | +| --- | --- | +| requested | 7,222 | +| translated | 3,689 (plus 370 support entries) | +| refused | 841: apostrophe names 210, entry check 84, `Sort u` 46, strict-implicit binder 8, depends on a `Sort u` declaration 294, on an internal one 141, on an instance 20, on an auxiliary one 24, on a non-grammar name 14 | +| excluded | 2,692: internal 2,067, instance 239, auxiliary 215, deprecated 111, recursor 60 | + +The rows add up (3,689 + 841 + 2,692 = 7,222; the refusal causes sum to 841; the exclusions to 2,692). 81% of the 4,530 candidates (7,222 minus 2,692) translate. The core lemmas the demo cites are monomorphic and translate directly (`bitVecAddSubCancel`). The two Mathlib lemmas (`add_sub_cancel_right`, `add_right_comm`) translate as class-polymorphic entries that cannot be used until a specialisation wrapper exists, which is why the demo wraps them. It wraps the core ones too only to keep the committed glossary at 38 entries instead of about 4,000. + +**Defects the demo found in the merged branch.** Each was fixed, given a register row, a scenario and a case, and shown red by planting the defect and green with the fix. The order of R3 was not followed for the code: the demo found them, the fix came first, then the rows and tests, then the planted defect. That is a process deviation, recorded in the note. + +| # | Defect | Effect | Covered by | +| --- | --- | --- | --- | +| 1 | The probe named every binder, so an instance binder `[x3 : HAdd ...]` drew the `unusedVariables` linter and the probe failed with `LLV7006` | Any generated entry for a class operator was unverifiable | `VR-27`, `conformance_vr_27`, fixture `tests/fixtures/probe-binders` (`HXor.hXor`) | +| 2 | The probe substituted the caller's arguments into the callee's binder types by name, so in `Eq (x ^^^ x) 0` inside an entry whose binder is named `a`, the `0` was ascribed `(0 : x0)` and Lean said `type expected` | Entries with a numeral argument and a clashing binder name failed | `VR-27` (same fixture, `UInt32.xor_self`); real Lean elaborates the probe with no output | +| 3 | `fmt` in write mode checked the project in a scratch copy without the library, so it failed with `LLV7019` for any project that declares one | `fmt` unusable with a library | `ML-05`, `conformance_ml_05` (a CRLF entrypoint of a project with a present library is rewritten) | + +Defects 1 and 2 matter most to the design: the §13.7 probe, which the whole approach rests on, could not verify the most common kind of generated entry until the demo ran. Row `VR-25` of the demo branch collided with the #339 row of that number and is `VR-27` after the merge. + +Also changed by #340: `xtask` links the example's `.lake` into the clean copy of `verify-examples` (hard links, a copy across devices, symlinks recreated) instead of copying 7 GB; `audit-deferral` skips `.lake` (Mathlib's own sources contain `TODO`); `.gitignore` lists `examples/**/.lake/`. + +**What verified and what did not.** + +| Verified | Not verified or not run | +| --- | --- | +| `verify` of the demo, 4 modules, offline, against the pinned Mathlib, nested layout `/.lake/packages/mathlib` (hard-linked) | `lexlean deps fetch` against real Mathlib: the demo hard-links an existing checkout | +| Exact axiom sets of all nine theorems and lemmas, matching `\exactaxioms` and `expected/verify/audit/output.txt` | `cargo xtask verify-examples` on this example and the full `just vv`: the note records neither | +| `conformance_vr_27`, `conformance_ml_05` red and green | Mathlib's own proofs: not replayed (§22.4) | +| The prose forms marked "yes" in the table above, with an external lemma | `Apply`, structured `apply`, `cases`, `induction`, `Use` with an external lemma; any semantic module citing an external lemma | +| Register total 476 on the merged branch | Another platform, toolchain or Mathlib commit | + +Draft issues from the note, not filed: (1) semantic modules cannot cite external lemmas; (2) a prose arithmetic form (`Close the goal by linear arithmetic.`) would let the rotation inverse be a document proof; (3) `deps glossary --names` imports only `Init`; (4) generated surfaces for class operators are unreadable (`HAdd.hAdd` is `hAddHAdd(a, b)`, a wrapper is `lexLeanSpecBitVec32BitVecAddSubCancel(a, b)`), and mapping the core operator classes to infix frames would make statements read as the issue states them; (5) the example needs the library fetched, so CI needs fetch or its own part (D16). They are folded into D2, D3, D16 and D17. + +## 11. Limits and refusal reasons + +### 11.1 Resource limits + +| Limit | Default | What it bounds here | Observed | +| --- | --- | --- | --- | +| `child_timeout_ms` | 300000 | each child: `lake exe cache get`, `lean --run` for the glossary, `leanchecker`, probes | cold `cache get` about 5.4 min (bound), glossary first run 2 min 50 s | +| `max_child_output_bytes` | 16 MiB | each child's output | facts of `Std.Data.HashMap.Lemmas` are 24 MB | +| memory (not a project limit) | none | Lean import | 0.86 to 1.9 GB targeted, 5.9 GB for `import Mathlib`, 2.9 to 3.4 GB glossary, 2.6 to 2.7 GB facts export | +| disk (not a project limit) | none | fetch | 7.0 GB library plus 436 MB download cache | + +A timeout is `LLS8002` (class `security-limit`, exit 4), even for the fetch. The demo's `verify` stayed at 1.3 GB peak and the glossary run at 3.1 to 3.3 GB; neither came near the defaults (section 10.7). + +### 11.2 Refusal reasons + +| Code | Raised by | Reason | +| --- | --- | --- | +| `LLC0109` | config | URL not HTTPS; revision not 40 lowercase hex; `branch`, `tag`, `rev`, `ref` or any other field; missing field; name not a package identifier; tables unsorted or repeated; language other than 1.2 | +| `LLC0110` | lock, `deps fetch` | Lake manifest missing, not JSON, `packagesDir` not relative, no `packages` entry of that name, or `url`/`rev` differ; or the lock's URL, revision, manifest digest or glossary digest differ from the library now; or the lock pins a library the project does not declare | +| `LLV7019` | `lock`, `check`, `build`, `fmt`, `verify` | directory missing; not a Git checkout; `HEAD` is not the declared revision; no `.lake/build/lib/lean`; no `lake-manifest.json` | +| `LLV7020` | `deps fetch` | no `lake` on `PATH`; `lake exe cache get` exited nonzero; library not present afterwards | +| `LLT4101` | glossary | `Sort u` (a sort that is neither `Prop` nor `Type u`) | +| `LLT4102` | glossary | strict-implicit binder | +| `LLT4103` | glossary | primitive projection, string literal or other form outside LSE | +| `LLT4104` | glossary | `Eq`, `Exists` and the like at a level the core entry does not cover | +| `LLT4105` | glossary | name outside the conservative grammar (the apostrophe is the common case) | +| `LLT4106` | glossary | mentions a constant that is refused, excluded or absent; the report names the root | +| `LLT4107` | glossary | the generated entry fails the loader's entry or signature check | +| `LLT4018` | wrappers | request has another field, a repeated declaration and tag, a name outside the grammar, an argument outside the term grammar, or no wrapper | +| `LLT4017` | `verify` | wrapper entry's signature is not definitionally the wrapper's type | +| `LLT4003` | `verify` | external probe fails, including a wrapper that does not exist | +| `LLV7023` | `verify` | an imported declaration depends on `sorryAx` and no axiom policy of the document names it | +| `LLV7024` | `verify` | an imported declaration depends on `Lean.ofReduceBool` and no policy names it | +| `LLV7025` | `verify` | an imported declaration depends on `Lean.trustCompiler` or on an axiom `native_decide` generated, and no policy names it | +| `LLV7021` | replay cache | entry does not parse, wrong digest, stored under another key, other environment, not a regular file, or records nonzero exit | +| `LLV7022` | replay cache | facts repeat a declaration, name one neither declared nor anchored, or do not parse; exporter failed | + +A refusal never weakens a signature to make an entry fit (§13.12). Dependent declarations are refused with the root reason, so the report shows how many refusals one cause explains: 215 of 614 Mathlib refusals in the eight-module sample depend on a `Sort u` declaration. + +### 11.3 Limits of the design itself + +- One toolchain, one Mathlib commit, a release line. No evidence for any other. +- Measurements are from x86_64 Linux under WSL2. Other platforms are untested. +- Glossary generation is per module or name list. A whole-Mathlib glossary was not generated. +- Report-only refusals exit 0 (D13). +- The rust signature checker rejects some dependent signatures Lean accepts (76 of about 2,500 translated `Init` declarations). + +## 12. What is built and with what evidence + +| Issue | Rows | Codes | Evidence | +| --- | --- | --- | --- | +| #334 pin, config, lock, fetch | `ML-01` to `ML-04` | `LLC0109`, `LLC0110`, `LLV7019`, `LLV7020` | `conformance_ml_01..04` pass; the cases use a stand-in `lake` | +| #335 glossary | `CL-25`, `GL-19`, `GL-20` | `LLT4101` to `LLT4107` | `conformance_gl_19`, `_gl_20`, `_cl_25` (real Lean run twice, byte-identical); `tests/glossary/` fixtures exercise every refusal reason | +| #336 wrappers | `GL-21`, `VR-24` | `LLT4017`, `LLT4018` | `conformance_gl_21`, `_vr_24`, written failing first; seven planted defects each caught | +| #337 speed | none (no Rust or SPEC change) | none | scripts in `tooling/mathlib-speed/`; planted-defect script | +| #338 replay cache | `RC-01` to `RC-06` | `LLV7021`, `LLV7022` | 28 unit tests, `conformance_rc_01..06` pass (RC-06 on real Lean); two planted defects caught | +| #339 axiom audit | `VR-25`, `VR-26` | `LLV7023`, `LLV7024`, `LLV7025` | `conformance_vr_25`, `_vr_26` written failing first, then pass; `conformance_vr_20..24`, 10 unit tests, bdd suite; two planted defects caught | +| #340 acceptance demo | `VR-27`, `ML-05` (fixes); example `mathlib-blake3-g` (`EX-08`, `VR-23` gates) | none new | `verified 4 modules`; `conformance_vr_27`, `conformance_ml_05`, shown red by planting, written after the fix (R3 order not followed) | + +Gaps that the evidence does not cover: + +- The full `just vv` of the merged integration branch is not recorded. Each sibling ran a subset (fmt, clippy, `validate-model`, `validate-spec-links`, the named conformance cases, the bdd suite for its own scenarios). #338 and #339 state plainly that the examples, golden and repro gates were not run, and #340's note records no `verify-examples` run. +- `conformance_rp_11` fails on `main` at `71defb4c6` (the README refresh removed the table it reads). Not caused by this work. +- #334's cases were not run red before the implementation existed; two defects were planted afterwards and both were caught. #337 made no SPEC change, so no register row applies yet. #340's fixes were written after the code. +- `lexlean deps fetch` itself has not been run against real Mathlib. The demo exercises the nested `.lake/packages/mathlib` layout, but with a hard-linked checkout (`setup-offline.sh`), not one Lake cloned. +- The schema files are not updated for either `lean_library` or `imports` (D7). + +## 13. Axiom audit of imports + +Source: note 339, merged into the integration branch: rows `VR-25` and `VR-26`, codes `LLV7023` to `LLV7025`, SPEC §5.3, §5.4, §18.8, §22.6, §22.9 and §26.3 amended. The axiom sets the demo observed for its imports are in section 10.7: `propext` for the core `add_sub_cancel` lemmas; `propext`, `Quot.sound` for the xor lemmas and the host rotation lemma; all three standard axioms through the Mathlib route. No import in the demo carries `sorryAx` or a compiler-trust axiom, so no refusal of `LLV7023` to `LLV7025` was exercised by the demo (those have their own fixture, `tests/fixtures/import-axioms`). + +An *imported declaration* is the Lean constant a used external entry denotes when its Lean module is outside `Init`, `Std`, `Lean`, `Lake` and the generated runtime root `LexLeanRuntime`. For each one: + +1. The probe module (§18.8) prints `#print axioms ` after its `example` lines, once per distinct Lean name. This is what §5.4 defines the audit to be, and it runs in the probe process that already imports the constant. +2. `verify::axiom::parse_import_audit_output` reads the output (the §22.5 grammar plus the spellings below). +3. `verify::imports::audit` refuses, before any elaboration, an import whose observed set holds `sorryAx` (`LLV7023`), `Lean.ofReduceBool` (`LLV7024`), or `Lean.trustCompiler` or a `native_decide` axiom (`LLV7025`), unless an `allow` or `exact` policy of some declaration of the document names that axiom. +4. The attestation gets an `imports` member (entry, module, name, observed set, status), present only when there is an import, so a project that imports nothing outside the toolchain keeps its attestation. The status is `replayed in the pinned environment`. + +Every other axiom of an import (`Classical.choice`, `Quot.sound`, `propext`, anything else) is judged only by the generated declarations that depend on it, as before (`LLV7005`). + +Findings from note 339 that change the premise of the issue: + +- **`native_decide` is not `Lean.trustCompiler` at 4.32.1.** `theorem t : 2 + 2 = 4 := by native_decide` depends on `[t._native.native_decide.ax_1_1]`, an axiom generated per use. `Lean.ofReduceBool` and `Lean.trustCompiler` appear only when written out, and `Lean.ofReduceBool` rests on `Lean.trustCompiler`. Both are deprecated in 4.32.1. The generated axiom is classified with `Lean.trustCompiler` (`LLV7025`). +- **That axiom cannot be named by a policy.** Lean prints it with a hygiene mark (U+271D), and from a private declaration under `_private..0`; policies take the closed ASCII name grammar. An import that carries it is always refused (D15). +- **A policy that accepts `Lean.ofReduceBool` must name `Lean.trustCompiler` too.** A half-named policy is `LLV7025`. +- **Granularity.** The import check asks only that some policy of the document names the axiom. The declaration that uses the import is then held to its own policy by the existing check (`LLV7005`, after elaboration). A document with one declaration `\allowaxioms{sorryAx}` and another using the `sorry` import under `\noaxioms` passes the early check and fails with `LLV7005` later. Soundness is unchanged; only the code and timing of the refusal. Per-use attribution needs a per-declaration use map that the checked project does not have. +- **Replay facts are not used for axioms.** The #338 facts could carry the axiom set, but §5.4 defines the audit as what `#print axioms` returns, and the facts export walks a whole closure (28 s and 2.6 GB for `Mathlib.Order.Basic`) to answer a question about a few constants. +- **Existing examples change.** The host modules of `peano-arithmetic` (`Doubling`, `Order`, `Divisibility`) and the Atlas entries in `language/uor` are outside the toolchain, so their probes now print axioms and they are audited imports. Only `peano-arithmetic` was verified there; `check-golden` and `verify-examples` were not run. + +Evidence: `conformance_vr_25` and `_vr_26` failed first and then pass; `conformance_vr_20` to `_vr_24` (real projects), 10 unit tests, the bdd suite, `validate-model`, `validate-spec-links` (474 rows), fmt and clippy pass. Two planted defects were caught. Not run: the full `just vv`, `check-golden`, `verify-examples`, `conformance_rp_11` (known failure on `main`). + +Held back, as in #334: `schemas/attestation.schema.json` and `schemas/attestation-v2.schema.json` have `additionalProperties: false`, so an attestation with `imports` does not validate against them. Editing them moves the compiler-semantics ID. The change is a patch, `339-schema-imports-member.patch`, in the shared notes folder (D7, D15). + +## 14. Decisions that belong to the owner + +Each has a recommendation. Evidence for each is in the sections cited. + +### D1. Toolchain pin (section 4) + +A Mathlib commit matches `v4.32.1`, so no choice is forced. Accept the release-line commit `520045ab14e26149ee970e2e617ca04b09bde5d6`, or move LexLean's toolchain to `v4.32.2` (`905b95818eb3`) to follow Mathlib's later point release. **Recommendation:** accept the commit; moving the toolchain is outside #333. + +### D2. Command naming (section 7) + +Built names: `lexlean deps fetch`, `lexlean deps glossary`, `cargo xtask emit-wrappers`, config table `[[lean_library]]`, glossary package `lean.`, reserved Lean root `LexLeanSpec`. Choices: + +- keep the generic `deps` group (the table is not Mathlib-specific; Batteries or any Lake library fits); +- a library-specific group such as `lexlean mathlib ...`; +- a shorter `lexlean import`. + +Open within the group: whether wrappers become `lexlean deps wrappers`, whether a `deps add` writes the lakefile `require`, and whether the module list of `deps glossary` can be derived from the documents' needs (so the fetch-and-glossary steps become one). **Recommendation:** keep `deps`; add `deps wrappers` when D3 is settled; defer `deps add`. + +### D3. Which proof forms accept external lemmas in language 1.2 + +Facts, from the code, SPEC and the demo (section 10.7): + +- In prose proofs (§16), every form that takes a `TERM` can contain an external `proof-constant` entry. The demo, a language-1.2 project with `[[lean_library]]`, does this with `Close the goal with`, `rewrite`, `have`, `constructor`, `Assume`, and in scratch modules `simplify` and `calculate`. So the question the issue asks, "which prose proof forms should accept external lemmas in language 1.2", has a first answer: all of those already do, with no change. Not exercised: `Apply`, structured `apply`, `cases`, `induction`, `Use ... as the witness` (the demo has no lemma with premises or an inductive scrutinee). Nothing in §16 treats a term differently by origin. +- A language-1.2 `semanticmodule` (§17.21), another kind of module in the same project, has closed proof forms (`SemanticProof` in `crates/lexlean/src/ir/semantic.rs`): `reflexivity`, `decide`, `linear_arithmetic`, `simplify`, `constructor`, `cases`, `term_cases`, `induction`, `congruence`, `boolean_reflection`, `law`, `apply`. None takes a lexicon entry: `apply` names a prior document theorem (`MemberRef`), `law` a registered fold law, `simplify` document definitions. A semantic module has no way to call an external constant at all. +- Consequence: an external lemma can be cited from prose and not from a semantic module. A fixed-width statement that needs Lean or Mathlib lemmas cannot be a semantic-module theorem. +- Limit of prose: bit-level facts reduce to arithmetic on indices, and no prose form does that. The demo needed 13 lines of Lean in a host library for the rotation inverse (draft issue 2 of note 340). + +Options for semantic modules: + +| Option | Effect | Cost | +| --- | --- | --- | +| A. `apply` accepts an external entry | Smallest change. Lowers to `exact @L args` like `law`, validated against the entry's signature by the same probe (§13.7); Lean checks the statement | New schema member; SPEC §17.12 text; row, scenario, `LLT` code, negative test; moves the language-1.2 identity | +| B. A new `external` proof form (note 340: `external{entry, arguments}`) | Same, with its own name | Same cost, more surface | +| C. `simplify` and rewrite-like forms also accept entries | Needed for equational Mathlib use | Larger: simp sets of external lemmas are the unrestricted search risk (§16.12 forbids unrestricted simplification) | +| D. None: Mathlib only from prose modules | No semantic-module change | Fixed-width semantic definitions and Mathlib stay apart | + +For prose, the second option is a prose arithmetic form, `Close the goal by linear arithmetic.`, lowering to `omega` or to the `linear_arithmetic` of §17.12. + +**Recommendation:** A, with explicit arguments only and no search. C only on demonstrated need. The prose arithmetic form is a separate, smaller decision; take it if more bit-level documents are expected. + +### D4. Language scope of `[[lean_library]]` (section 5.1) + +It is language 1.2 only, to keep languages 1.0 and 1.1 identities. Before the demo this looked like a conflict, because the only proofs that could cite external lemmas were thought to be language-1.0 prose. The demo shows prose modules work in a language-1.2 project that declares a library, so a 1.2 project has both the config and the proof forms (D3). The remaining cost: a language-1.0 or 1.1 project (the §13.6 example, `examples/peano-arithmetic`) cannot declare a library. It can still depend on Mathlib through Lake alone, since §10.4 already hashes `lake-manifest.json` for every language, but it has no presence check, no `deps fetch` support and no glossary row. Whether a prose-only language-1.0 project can reach 1.2 was not tested: `lexlean migrate --to 1.2` accepts language 1.1 only (§23.4). **Recommendation:** keep 1.2 only. + +### D5. Closure replay (section 8, item 5; section 10.3) + +Adopt `closure-replay` as an additional `verify` stage for the imported part, and keep stock `leanchecker` per generated module (2 to 4 s per module, mostly importing; its record and executable hash stay as §22.4 and §22.2). It is the only measured option that checks imports (50 to 540 times cheaper than `--fresh`) and its closure is rooted at the constants the compiled project module mentions, so instances and lemmas found by elaboration are included. Required: SPEC §5.1 and §22.4 text, a register row and scenario and failing test first (the planted-defect module is that test), a diagnostic and negative test, and a decision whether it later replaces `leanchecker` per module. It is a new Lean program the attestation would hash. **Recommendation:** adopt as an additional stage; decide replacement later. + +### D6. Replay cache in `verify` (sections 9.2, 10.4) + +Open points: whether `verify` may ever consult a store (§10.5 and §9.4 stay true while it does not); fail closed on a rejected entry (built) or evict and replay; whether an attestation must mark reused units; whether signing is wanted; the `blake3` dependency and `BSD-2-Clause` licence; hashing the executable once more (the existing preflight hashes only SHA-256); alpha-equivalent keys ignore binder names (a more conservative key would include them); facts size for Mathlib (anchors or a per-module store). **Recommendation:** do not wire it into `verify`. On the two Mathlib modules the export costs 2.4 to 14 times what it saves. Keep the library. Revisit after the exporter changes and a Mathlib-sized measurement exists. + +### D7. Identity-moving schema change (section 6) + +Two patches are held back for the same reason: `334-schema-identity-move.patch` (`lean_library` in the project and lock schemas) and `339-schema-imports-member.patch` (`imports` in the two attestation schemas). Apply them now, or batch them with the other Mathlib changes so the language-1.2 regeneration (528 files, the full gate with Lean) happens once. AGENTS.md wants such a change to land alone. **Recommendation:** one change, one regeneration, one full gate, after D3 is settled, because D3 = A also moves the identity. Note that the demo's committed lock and `expected/` carry the current language-1.2 ID too, so they are among the files that regeneration touches. + +### D8. Reject `import Mathlib` (section 10.2) + +Reject an umbrella import in generated Lean with a diagnostic and negative test, or only lint. It costs 5.9 GB and 7 to 40 s against 0.9 to 1.9 GB and 0.6 to 1.6 s. The generated probe already imports only the entry's defining module. **Recommendation:** diagnostic. + +### D9. Lock more than the commit (section 6) + +Options: `tree_sha256` over the Mathlib source (closes the source half); a digest of the fetched `.olean` files (closes the other half, but only if byte stability holds beyond the three modules measured); or neither, with replay (D5) as the check for what a verified document uses. **Recommendation:** replay (D5), plus the source digest if cheap; defer the `.olean` digest. + +### D10. Lake `require` (section 5.2) + +By hand now, or `lexlean deps add`. **Recommendation:** by hand for the first release; document it. + +### D11. Fetch timeout (sections 5.4, 10.1) + +A cold `cache get` took about 5.4 minutes. Options: document that a project declaring Mathlib raises `child_timeout_ms`; give `deps fetch` its own limit. **Recommendation:** document it (for example 900000). The demo did not give a measured cold fetch (it hard-links an existing checkout), so deciding on a separate limit for `deps fetch` still waits for one. + +### D12. Glossary generator (section 10.5) + +From note 335: + +| # | Decision | Effect | +| --- | --- | --- | +| a | Apostrophe in names (`LLT4105`) | 166 of 3,065 requested in the Mathlib sample, 210 of 7,222 in the demo's modules; widening the §13.6 grammar and the LSE and probe identifier quoting would recover most | +| b | Strict-implicit binders (`LLT4102`) | 13 directly in the sample, add a mode to LSE or accept the loss | +| c | `Sort u` polymorphism (`LLT4101`) | Largest cause: 174 directly, 215 more by dependency. Add a `Sort u` form to LSE, hand-map the few core constants, or accept | +| d | Rust signature checker rejects some dependent signatures Lean accepts | 76 of about 2,500 translated `Init` declarations; separate decision | +| e | Existing std entries and a generated `nat` denote the same Lean constant | Map to existing entries or accept cross-package ambiguity | +| f | A probe pass inside the generator (`backend::lean::probe_module` once over all entries, refusing mismatches with `LLT4003`) | Makes "never weakened" a property of the generator; about a day | +| g | Eliminator names default to `T.casesOn` and `T.rec`; the backend's emission for indexed families is untested | Check before relying on generated descriptors | +| h | `--names` loads only `Init` (section 7.3) | Add a flag naming the modules to load, or load the defining module of each name. Recommendation: do it; without it a single Mathlib lemma costs a whole-module request or a host wrapper | +| i | Generated surfaces for class operators are unreadable: `hAddHAdd(a, b)`, `lexLeanSpecBitVec32BitVecAddSubCancel(a, b)` | Map the core operator classes to infix frames (`+`, `-`, `^^^`) in the generator, so statements read as written | + +### D13. Refusals: report or fail + +Refusals are reported with exit 0; `--strict` fails. **Recommendation:** keep the default (a large request always has refusals; the report is the output). + +### D14. Wrappers (section 7.4) + +| # | Decision | +| --- | --- | +| a | The `peano-arithmetic` example is not converted. Its host library is empty; converting it changes its probe, closure and lock files, and the host library must be built (`lake build `) before `verify-examples`. Nothing builds a host library today. The Mathlib demo takes the documented-prerequisite route (`setup-offline.sh` runs `lake build Blake3GHost`). Document the prerequisite, or add a build stage | +| b | Strict probe for all external entries, not only wrappers. Changes every committed probe and `expected/verify`; needs a regeneration | +| c | The reserved root `LexLeanSpec` and its name scheme. Any project declaring its own `LexLeanSpec.*` outside the emitter gets the strict line too | +| d | A `lexlean` subcommand for wrappers (changes §23.4 and its rows) | +| e | Who writes the LSE signature of a wrapper. #335 would need a Lean-side exporter from the built wrapper's type | +| f | `def` wrappers are accepted by the grammar; only theorems were built and measured. A computable `def` may need `noncomputable` | +| g | Axioms: a wrapper adds none, but the declaration it applies brings its own; the host library is not audited | + +### D15. Axioms and wording + +From note 339 (section 13): + +| # | Decision | Recommendation | +| --- | --- | --- | +| a | Status word. "Replayed in the pinned environment" is literal only if closure replay (D5) is adopted. Otherwise "loaded from the pinned environment" is more accurate | Adopt D5 and keep "replayed"; if D5 is declined, change the word | +| b | The `native_decide` axiom cannot be named by a policy, so an import carrying it is always refused. Leave it, or let a policy name it with a prefix pattern | Leave it refused | +| c | Identity move for the `imports` attestation member: take the patch, or put the rows in a staged file (`probe/imports.json`) that the attestation does not carry | Take the patch, in the single regeneration of D7 | +| d | Per-use attribution of an import's axioms to the declaration that uses it (built: any policy of the document naming the axiom passes the early check) | Accept the current behaviour; soundness is unchanged | +| e | A cross-check of replay facts against `#print axioms`, if the cache is ever to report axioms for reused units | Only with D6 | + +### D16. Examples that need a library, and the gate (section 10.7) + +EX-08 discovers every `examples/*` directory and requires the full example gate. The Mathlib demo fails with `LLV7019` unless `.lake/packages/mathlib` is the pinned checkout with built artifacts. Where Mathlib lives for an example is therefore a decision: the demo hard-links an existing checkout into the example's `.lake/packages` (a symlink out of the project is refused by path confinement, and hard links need one filesystem). CI needs `lexlean deps fetch` (7.0 GB, about 5 minutes) before the examples leg, or this example needs its own CI part. `xtask` now links the example's `.lake` into the clean copy of `verify-examples` instead of copying 7 GB, and `audit-deferral` skips `.lake`. **Recommendation:** a separate CI part for this example that runs `deps fetch` first, so the ordinary examples leg stays offline and small. + +### D17. The demo's own choices (section 10.7) + +| # | Decision | Recommendation | +| --- | --- | --- | +| a | Propose `BitVec.rotateLeft_rotateRight` upstream to Lean core. It is the one hand-written Lean lemma in the demo | Yes | +| b | Whether the relational encoding of G is acceptable until a semantic module can name external constants | Yes, with D3 = A as the way out | +| c | Whether `verify` should also replay the imported declarations the document depends on. As it stands a verified document says nothing about Mathlib's own proofs | Same as D5 | + +## 15. Inconsistencies and gaps found + +Found while writing; none fixed (the brief limits this change to the document). The first two are in normative text. + +1. **Instance binders in entries.** SPEC §13.13 and note 336 say a class-polymorphic declaration cannot be denoted directly because "its signature has instance binders that LSE entries do not state". But §13.8's grammar has the binder mode `instance`, and §13.12 and register row `GL-19` keep instance binders in generated signatures (note 335: "No declaration is refused for having an instance argument"). So the stated reason for wrappers does not hold as written: LSE can express an instance binder. The Rust elaborator also skips implicit and instance binders into metas (`crates/lexlean/src/elaborate/expressions.rs`, around line 1263), so the reason is not obviously that either. The fixture does show that wrappers are useful (a monomorphic constant at `Nat`, with a strict probe). I did not find the real motivation in the code. The author of §13.13 should confirm and restate the premise. +2. **Status wording.** #333 says the status wording is "replayed in the pinned environment" (§5.3). The text was missing until #339 added it to §5.3. The word is only literally true if closure replay is adopted, because §22.4 replays the generated modules and `leanchecker M` does not re-check M's imports (note 339 says so itself; D15a). +3. **Glossary package name.** The lock reads the glossary digest from the package named `lean.`, but `deps glossary --package` accepts any ID. A glossary generated under another ID locks the empty-tree digest with no diagnostic. +4. **Note 337 ratio.** "50x to 700x" cheaper than `--fresh`; the table in the same note gives 50 to 535 times (114/0.3 = 380, 214/0.4 = 535, 302/6.1 = 49.5, 207/2.2 = 94). +5. **Note 335 file count.** "1,383 entry files in all" for 1,146 translated plus 236 support entries, which is 1,382. The difference of one is probably `lexicon.toml`; not checked. +6. **Workspace layout.** The #334 to #338 measurements ran with the Mathlib checkout as the workspace root, while the library path LexLean reads is `/.lake/packages/mathlib/...`. The demo (#340) exercises the nested layout, with hard links rather than a Lake clone. Closed except for the clone case. +7. **Classes of the cache codes.** `LLV7021` and `LLV7022` are class `language`, exit 1, like `LLV7003`; `LLV7019` and `LLV7020` are `environment`, exit 3. A rejected cache entry is arguably an environment problem. Owner's call; no test depends on it beyond ERRORS.md. +8. **Register count.** `SPEC.md` says 476 total required IDs and `model/ids.toml` has 476, so the collisions noted in 335 and 336 (460, 459) and the row collision between #339 and #340 (both `VR-25`; the demo's is now `VR-27`) were resolved at merge. The example's README still lists `VR-25` and `VR-26` and `ML-01` to `ML-04` as the rows whose gates run on it and omits `VR-27` and `ML-05`. +9. **`fmt` needs the library.** `fmt` fails with `LLV7019` for an absent library although it does not use Mathlib. Follows from every command computing the lock. Recorded, not asked. (The demo's defect 3 was a different bug: `fmt` failed even with the library present.) +10. **Probe bugs found only by a real document.** Defects 1 and 2 of section 10.7 (instance-binder linter, numeral capture) made the §13.7 probe fail for the most common kind of generated entry, a class operator, and none of the tests of #334 to #339 caught them. The note does not say why; the wrapper fixture of #336 used `Nat` and `Int` commutativity and did not hit them. +11. **Prose and semantic modules in one project.** Before the demo I read the issue's question (which prose proof forms should accept external lemmas in language 1.2) as possibly meaning that 1.2 had no prose. In a 1.2 project, prose modules and semantic modules coexist; §17.11's "exclusive with prose blocks" applies inside one module. The real gap is semantic modules (D3). +12. **README wording.** The example's README says the imported proofs are "replayed in the pinned environment". By §22.4 only the project's four modules are replayed (item 2). + +## 16. Review against SPEC.md + +Each row says what the design does with that section, and whether the review found a conflict. + +| Section | Design | Finding | +| --- | --- | --- | +| §4.2 | Imports are closed external glossary entries. Generated Lean for wrappers is written by a closed emitter into the project's host library, not into documents. No claim of proof by LexLean. | No conflict. The host library is raw Lean the project owns; it is in the trusted computing base | +| §5.1 | Item 5 (imported workspace and locked dependencies) already covers Mathlib. Closure replay (D5) would add an executable to hash | No conflict. D5 needs text | +| §5.3 | Imports are described as "replayed in the pinned environment", not "proved", "verified", "kernel-checked" | Wording added by #339. The word "replayed" is literal only with closure replay (section 15, item 2; D15a) | +| §5.4 | Audit stays an axiom-dependency audit. Each import's set is read from `#print axioms` in the probe | No conflict with #339's text. Attestation schema not updated (D15c) | +| §22.6 | An import's axioms are not exempt: policies of generated declarations still apply | Consistent. Early refusal of `sorryAx` and compiler-trust axioms is #339's addition | +| §10.4 | `[[lean_library]]`, presence rule, lock rows, `LLC0110`, `LLV7019` | Implemented and in SPEC. Schema JSON not updated (D7) | +| §11.4 | A library is never acquired by `lock`, even with `--allow-network` | Implemented, `ML-04` | +| §13.6 | Generated entries denote `kind = "lean"` with the defining module and the conservative name | No conflict. The apostrophe is outside the grammar (D12a) | +| §13.7 | Each used entry probed by Lean. Wrappers get the stronger probe | No conflict in the text. The ordinary probe is weaker than the wrapper probe (D14b), and the demo found two implementation defects in it (section 10.7, fixed by `VR-27`) | +| §13.8 | LSE signatures generated from kernel types, `Sort u` and strict-implicit refused | Conflict with the premise of §13.13 (section 15, item 1) | +| §16 | Prose forms accept external `proof-constant` entries through `TERM`, also in a language-1.2 project (demo); language-1.2 semantic-module forms do not | D3 | +| §16.11 | Generated eliminator descriptors use `T.casesOn`/`T.rec` or custom eliminators | Backend emission for indexed families untested (D12g) | +| §16.12 | No unrestricted simplification: rules out wide `simplify` over external lemmas | Reason for option A over C in D3 | +| §22.4 | `leanchecker` replays generated modules only | Basis of the trust statement item 3 | +| §22.13 | Replay cache is opt-in and unused by `verify` | Consistent with §9.4, §10.5 | + +This review is a reading of the sections against the design and the code, plus the mechanical checks in section 17. It has not been done by anyone but the author of this document. + +## 17. Checks run on this document + +- Every `LL...` code named in this document has an entry in `ERRORS.md` of the integration branch (script: a loop over the codes found by `grep -oE 'LL[A-Z][0-9]{4}'`, each looked up as a `## ` heading), and every `AA-NN` register ID named has a row in `model/ids.toml` (second loop, same method). The count of register IDs is 476 in `SPEC.md` and in `model/ids.toml`. +- Numbers were taken from the seven notes files and cross-checked where they add up (sections 10.5 and 10.7 sums, section 10.3 ratios), and the demo's axiom sets and theorem names against its sources and `expected/verify/audit/output.txt`. Measurements were not repeated. +- SPEC section numbers were checked against `SPEC.md` of the integration branch: §13.12 glossary, §13.13 wrappers, §22.13 replay cache, §22.9, §26.3. diff --git a/features/suites/cli-api.feature b/features/suites/cli-api.feature index 5b738f2763..fe7bd743e9 100644 --- a/features/suites/cli-api.feature +++ b/features/suites/cli-api.feature @@ -179,3 +179,11 @@ Feature: cli-api Given the language-1.1 data-form example with a path lexicon package, the language-1.2 example, and a language-1.1 project whose module the notation cannot express When the example is migrated with --check and then without it, and each of the others is migrated Then --check writes nothing, the migration leaves a language-1.2 project that checks, locks, and formats canonically with the same modules, and the refused projects are refused with LLC0103 and LLP2003 and left unchanged + + @CL-25 @build + Scenario: lexlean deps glossary runs the pinned Lean over the requested modules or declarations and writes a lexicon package of kind-lean entries and a coverage report, takes exactly one of --modules and --names and a valid package identity, needs no project, refuses an empty or doubled selection with LLC0002 and malformed usage with LLC0001, and under --strict exits with the registered class of the first refusal. + Given an empty directory with no project and the lexlean executable + When deps glossary runs with no selection, with both selections, with a malformed package identity, and with a Lean core request + Then the selection errors are LLC0002, the identity error is LLC0001, and nothing is written for any of them + And the core request writes a package that loads and a coverage report, twice with identical bytes, when the pinned Lean is available + And --strict on a request with a refusal exits with the class of its registered code diff --git a/features/suites/examples.feature b/features/suites/examples.feature index 4894779640..6e9e5926d1 100644 --- a/features/suites/examples.feature +++ b/features/suites/examples.feature @@ -66,3 +66,11 @@ Feature: examples Then its lock pins the three packages, it holds no file of Lean or Rust source, and its roots `classify`, `plan`, and `dispatch` agree with the evaluator and with their rendered packages And every exported package is byte-identical to its committed package And each plant is refused with exactly its prescribed diagnostic code before any backend output + + @EX-10 @build + Scenario: A project that needs a fetched Lean library is a demo, not an example: it lives under `demos/` and no directory under `examples/` declares a `[[lean_library]]`, so that the sweeps of `examples/` (`verify-examples`, `check-golden`, `check-reproducibility`, the formatter property test) need no network and no library; `cargo xtask verify-demos` formats, locks, checks, builds, and verifies every demo against its `expected/` records and golden build, and builds it twice to the same bytes, and `.github/workflows/mathlib.yml` runs it after `lexlean deps fetch` in a job of its own, outside the acceptance gate, with no build cache. + Given the repository tree + When the directories under examples and demos are read + Then no directory under examples declares a lean_library and every directory under demos does + And the Mathlib workflow fetches the library, runs verify-demos, and uses no build cache, and ci.yml names no demo + diff --git a/features/suites/lexicon.feature b/features/suites/lexicon.feature index 1276e49a29..d1e25e7bd7 100644 --- a/features/suites/lexicon.feature +++ b/features/suites/lexicon.feature @@ -129,3 +129,29 @@ Feature: lexicon Then each package mismatch fails lock with LLC0103 naming both languages And the tampered lock fails check and `lock --check` with LLC0102 And build refuses every project and no build or verification root exists + + @GL-19 @build + Scenario: A generated external-Lean glossary is a lexicon package of kind-lean entries that the package loader accepts: each signature is the LSE translation of the Lean type with implicit and instance binders kept as binders and left out of applications, each identifier, surface, category, and render follows the documented naming scheme, an inductive type carries an eliminator descriptor over its constructor entries, and two runs over one extraction produce byte-identical packages and reports. + Given the committed extraction of a Lean module holding theorems, definitions, a class, a recursive inductive type, and predicates of each arity, equal to a fresh extraction when the pinned Lean is available + When the glossary planner turns it into a package twice and the package loader reads the result + Then the loader accepts the package and every entry denotes a Lean constant by module and name + And the entry for the theorem about the class keeps its instance binder, applies the class method to its explicit arguments only, and has the identifier `fix.scale-zero`, the surface `fixScaleZero`, and the category its type's shape gives it + And the entry for the recursive inductive type carries an eliminator whose constructors are the entries of its two constructors with their fields and induction hypotheses + And both runs are byte-identical, package and report + + @GL-20 @build + Scenario: A Lean declaration the translation cannot express is refused with the registered diagnostic code of its reason and never emitted with a weakened signature, a declaration that depends on a refused one is refused with the root reason, and the coverage report counts requested declarations as translated, refused by reason, and excluded by kind, with counts that sum to the request. + Given the committed extraction, which holds a Sort-polymorphic declaration, a strict-implicit binder, a projection, a string literal, an equation at Sort 0, a name outside the conservative grammar, and a theorem about the Sort-polymorphic declaration, and an extraction whose entry fails the signature check + When the glossary planner runs and the strict mode converts the refusals to an error + Then each declaration is absent from the package and carries the registered code of its reason in the report + And the dependent theorem is refused with the code of the root reason and names the declaration it depends on + And the report counts sum to the number of requested declarations + And the strict mode fails with the registered code and its class exit + + @GL-21 @build + Scenario: A specialisation request names a class-polymorphic Lean declaration, its kind (`theorem` or `def`), a tag, and the arguments of its application at a concrete type, each a closed term of identifiers, numerals, holes, and applications; the wrapper emitter writes one `public` declaration for each under the reserved root `LexLeanSpec`, whose type is `type_of%` the application and whose value is the application, with every constant `_root_`-qualified and no tactic and no axiom, in sorted order and byte for byte the same on every run, and a request with a duplicate tag, a name outside the conservative grammar, or an argument outside the term grammar is refused with LLT4018. + Given the specialisation request of tests/fixtures/specialisation for Std.Commutative.comm at Nat, Int, UInt32 and BitVec 32 + When the wrapper emitter runs twice on the request + Then both runs write the committed host module byte for byte + And the host module holds one public declaration per wrapper under LexLeanSpec and no tactic, by, or axiom command + And a request with a duplicate tag, a tactic argument, or an invalid name is refused with LLT4018 diff --git a/features/suites/mathlib.feature b/features/suites/mathlib.feature new file mode 100644 index 0000000000..9742e00801 --- /dev/null +++ b/features/suites/mathlib.feature @@ -0,0 +1,38 @@ +Feature: mathlib + + An external Lean library, Mathlib in particular, is pinned in the configuration and the lock and acquired only by an explicit command (§10.4, §11.4, §23.4). + + @ML-01 @build + Scenario: A language-1.2 project declares an external Lean library once, as a `[[lean_library]]` table of its `lexlean.toml` with a `name`, an HTTPS `url`, and an exact 40-lowercase-hex `revision`, sorted and unique by `name`, and the configuration reads back to the bytes written; a project without one keeps its bytes, and a URL that is not HTTPS, a revision that is not a 40-lowercase-hex commit, a branch, a tag, or any other field, a name that is not a package identifier, a repeated or unsorted table, and a declaration in another language are each refused with LLC0109. + Given a language-1.2 project that declares a Lean library, and the same project edited in the thirteen ways the statement names + When the configuration is parsed and written back, and a project without a library is parsed and written back + Then the declaration reads back to the bytes written and a project without a library keeps its bytes + And each edit is refused with LLC0109 + + @ML-02 @build + Scenario: The lock pins each declared Lean library by a `[[lean_library]]` row of its name, URL, exact revision, the SHA-256 of the library's own `lake-manifest.json`, and the SHA-256 of its generated glossary, the tree digest of the lexicon package `lean.` of the project or of the empty tree when the project has none; the Lake workspace's `lake-manifest.json` must require the library at the declared URL and revision, rows sort by name, and the lock reads back to the bytes written; a project without a library keeps its lock bytes, and a library, a manifest digest, a glossary, or a workspace requirement that is not the one the lock pins is refused with LLC0110 naming both values. + Given a language-1.2 project that declares two Lean libraries and a Lake workspace that requires them, both present as `lake exe cache get` leaves them + When the project is locked, locked again, and checked, and the library, its glossary, and the Lake requirement are each changed + Then the lock holds one sorted row per library with the revision and both digests and reads back to the bytes written + And each change is refused with LLC0110 naming both values + + @ML-03 @build + Scenario: `lexlean deps fetch` is the only command that acquires a declared Lean library: it checks the declaration against the Lake workspace, runs `lake exe cache get` in the Lake workspace under the pinned toolchain through the checked child runner, and confirms the library is present at the declared revision with its built artifacts; with no library declared it fetches nothing and succeeds, a missing or failing `lake` and a library that is not at the declared revision afterward are LLV7020, and the command writes nothing of the project outside the Lake workspace. + Given a language-1.2 project that declares a Lean library its Lake workspace requires and that is absent, and a `lake` that behaves as `lake exe cache get` does + When `lexlean deps fetch` runs, then with a failing, a missing, and an unproductive `lake`, then in a project that declares no library + Then the library is present at the declared revision, the project locks and checks offline, and nothing outside the Lake workspace was written + And each failure is LLV7020 with exit 3, and a project without a library fetches nothing + + @ML-04 @build + Scenario: `lock`, `check`, `build`, `fmt`, and `verify` never fetch a declared Lean library: when the library is not present in the Lake workspace at the declared revision with its built artifacts, each fails offline with LLV7019 naming the library and `lexlean deps fetch`, before any Lean process runs and without a network connection. + Given a language-1.2 project that declares a Lean library that is absent, at another revision, or without its built artifacts + When `lock`, `check`, `build`, `fmt`, and `verify` each run with a `lake` on the path that would fetch + Then each fails with LLV7019 naming the library and `lexlean deps fetch` + And no backend output is published and the `lake` was never run + + @ML-05 @build + Scenario: `fmt` rewrites the sources of a project that declares a Lean library: the scratch copy in which the formatter proves preservation of the linked IR holds the library's presence markers (the checkout's `HEAD`, its manifest, and the directory of built artifacts) and not the library, so a present library is recognised without being copied and an absent one is still LLV7019. + Given a language-1.2 project that declares a Lean library, present in its Lake workspace, whose entrypoint has CRLF line ends + When fmt runs + Then it rewrites the entrypoint to its canonical LF form and fails nothing + And the project directory gains no library diff --git a/features/suites/replay-cache.feature b/features/suites/replay-cache.feature new file mode 100644 index 0000000000..48f99ea78f --- /dev/null +++ b/features/suites/replay-cache.feature @@ -0,0 +1,39 @@ +Feature: replay-cache + + A replayed declaration is keyed by a content-addressed DigestSet over its canonical serialisation and its dependencies' keys, so a warm replay reuses what an unchanged key already holds (§22.13). + + @RC-01 @build + Scenario: A replay key is a PrismPM ADR-015 DigestSet, a `sha256` and a `blake3` of the same bytes in lowercase hexadecimal, labelled `blake3:` and the 64 digits of the `blake3` value, over the one canonical serialisation of a declaration's name, universe parameters, kind attributes and type, the DigestSet of its value or proof term, the keys of the declarations it names, the Lean toolchain, and the Mathlib revision; equal inputs give equal keys, and a change to any one of those inputs gives a different key. + Given declarations with a name, universe parameters, kind attributes, a type, a value, and dependencies, and a toolchain and a Mathlib revision + When their keys are computed, and then computed again after each input is changed in turn + Then the key is a DigestSet whose two digests cover the same bytes, its label is `blake3:` and the blake3 digits, equal inputs give equal keys, and each changed input gives a different key + + @RC-02 @build + Scenario: A declaration changed in a dependency graph changes the key of every declaration above it and of none beside or below it, declarations that name one another, an inductive type with its constructors and recursor, are keyed as one group, and facts that repeat a declaration, name a declaration neither declared nor anchored by a given key, or do not parse are refused (`LLV7022`). + Given a dependency graph of declarations with a shared base, two branches, and a mutual group + When one declaration is changed and the keys are computed again, and facts that repeat, dangle, or do not parse are read + Then exactly the declarations above the changed one have new keys, the members of the group have one group digest, and each malformed set of facts is refused with `LLV7022` + + @RC-03 @build + Scenario: A warm replay reuses the recorded result of every unit whose key is unchanged and replays only the others, whether a unit is one declaration or one module; only a replay that succeeded is recorded, each entry names the digest of the executable that produced it, and an entry that an executable other than the current one produced is not reused. + Given a cache directory and units keyed by declaration and by module + When the units are replayed cold, again unchanged, again with one unit changed, with a failing replay, and with another executable + Then the unchanged run replays nothing, the changed run replays only the changed unit, a failed replay leaves no entry, every entry names its executable, and the other executable replays every unit + + @RC-04 @build + Scenario: A cache entry whose bytes changed while its key was kept, an entry stored under a key other than the one it records, and an entry that does not parse as an entry, are each rejected with `LLV7021`, never reused, and not silently replaced. + Given a cache directory holding an entry for a key + When the entry's result is edited without its key, the entry is copied under another key, and the entry is truncated + Then each lookup is refused with `LLV7021`, the replayer is not called, and the entry file is left as found + + @RC-05 @build + Scenario: A changed Lean toolchain or a changed Mathlib revision gives every unit a new key, so no result recorded under the previous environment is reused, and the entries of the previous environment are left unread and intact. + Given a cache filled for one toolchain and one Mathlib revision + When the same declarations are replayed under another toolchain, under another Mathlib revision, and under the first environment again + Then the first two runs replay every unit and reuse none, and the third reuses every unit from the entries the first run wrote + + @RC-06 @build + Scenario: Facts exported by the pinned Lean from compiled modules, keyed and replayed through the pinned `leanchecker` cold and then warm, reuse every module whose key is unchanged: after a one-line edit to one declaration, only the modules whose declarations reach it are replayed again, and the warm verdicts equal the cold ones. + Given three compiled Lean modules in a chain, the last of which does not use the declaration the edit will change + When they are exported, keyed, and replayed cold, and again after a one-line edit to one declaration of the middle module + Then the warm run replays the edited module and no other, and the verdicts of the warm run equal those of a cold run of the edited modules diff --git a/features/suites/verification.feature b/features/suites/verification.feature index 0444b94c7e..8171948ed6 100644 --- a/features/suites/verification.feature +++ b/features/suites/verification.feature @@ -168,3 +168,32 @@ Feature: verification Then the join publishes a verified directory byte-identical to the whole verification's, with the same attestation identity And a shard whose plan elaborates a module before its imports, and a join that is handed one shard too few, are refused And a join reading a replay record whose executable digest is not its own leanchecker's is refused + + @VR-24 @build + Scenario: An external entry whose Lean name is under the reserved root `LexLeanSpec` is probed by `example : () = (type_of% @) := rfl`, so that its linked signature is definitionally the Lean type of the wrapper and not merely inhabited by it; an entry whose signature differs from that type is refused with LLT4017 naming the entry, a wrapper that does not exist stays LLT4003, and an entry outside the reserved root is probed exactly as before. + Given the specialisation fixture project whose host library is built with lake build + When the project is verified with the exact signature, with a planted wrong signature, and with a missing wrapper + Then the probe holds the wrapper line type_of% and verification succeeds for the exact signature + And the planted wrong signature fails with LLT4017 naming the entry + And the missing wrapper fails with LLT4003 + + @VR-27 @build + Scenario: The external-interface probe writes an instance binder that no later binder or the result mentions without a name, so that pinned Lean's unused-variable linter has nothing to report for an entry such as `HXor.hXor`, and ascribes the type a callee declares to a numeral argument only when that type is closed in the caller's scope, with the callee's own binders renamed apart, so that a caller binder named like a callee binder (`a`, the type parameter of `Eq`) is never taken for it; a generated entry with an instance binder and a numeral argument elaborates without output. + Given a project whose entries denote HXor.hXor, which has an instance binder, and UInt32.xor_self, whose signature has a numeral and a binder named like the type parameter of Eq + When the external-interface probe of the two entries is generated and elaborated with the pinned Lean + Then the instance binder is written without a name and no numeral is ascribed the type of a local + And Lean elaborates the probe with no output + + @VR-25 @build + Scenario: A used external entry whose Lean module is outside the pinned toolchain's own libraries `Init`, `Std`, `Lean` and `Lake` is an imported declaration: the probe module prints its axioms with `#print axioms`, the attestation records its observed set, and an import that depends on `sorryAx` is refused with LLV7023, on `Lean.ofReduceBool` with LLV7024, and on `Lean.trustCompiler` or on an axiom that `native_decide` generated with LLV7025, each naming the entry, unless an axiom policy of the document names that axiom, in which case the import is accepted and every generated declaration is still held to its own policy. + Given the import-axioms fixture project whose host library plants sorryAx, Lean.ofReduceBool, Lean.trustCompiler and a native_decide axiom in four theorems that four entries denote + When the project is verified using each planted entry under a policy that does not name its axiom, and under a policy that does + Then each planted import is refused with its code LLV7023, LLV7024 or LLV7025 naming the entry + And the same imports are accepted when a policy of the document names the axioms, and the attestation records each import's observed set + + @VR-26 @build + Scenario: The status of an imported declaration in the attestation is `replayed in the pinned environment`, and no output about an import says `proved`, `verified` or `kernel-checked`, words that §5.3 reserves for the generated declarations of the document and that §4.2 forbids for an imported library. + Given the attestation of the accepted import-axioms project + When the status of each imported declaration is read + Then it is exactly replayed in the pinned environment + And no output about an import says proved, verified or kernel-checked diff --git a/model/errors.toml b/model/errors.toml index be2aea77a4..62dcad1e0a 100644 --- a/model/errors.toml +++ b/model/errors.toml @@ -126,6 +126,20 @@ exit = 2 title = "Source package outside the workspace rule" statement = "A project that declares a source package is outside any workspace or is not a member of it, a package is not a member of the workspace, or the workspace file or a package is malformed." +[[error]] +code = "LLC0109" +class = "cli-configuration" +exit = 2 +title = "Lean library declaration invalid" +statement = "A `[[lean_library]]` table is not a closed declaration of a language-1.2 project: a URL that is not HTTPS, a revision that is not an exact 40-lowercase-hex commit, a branch, a tag, or any other field, a name that is not a package identifier, a table repeated or out of order, or a declaration in another language." + +[[error]] +code = "LLC0110" +class = "cli-configuration" +exit = 2 +title = "Lean library is not the library the lock pins" +statement = "A declared Lean library's URL, revision, Lake manifest digest, or glossary digest differs from the lock's row, or the Lake workspace's `lake-manifest.json` does not require the library at the declared URL and revision, naming both values." + [[error]] code = "LLC0201" class = "cli-configuration" @@ -469,6 +483,69 @@ exit = 1 title = "Unbounded or unspecified text generation" statement = "A text declaration does not state the bound it must: a context window with capacity 0, or a text generator with max_tokens 0." +[[error]] +code = "LLT4017" +class = "language" +exit = 1 +title = "External specialisation signature is not the type of the wrapper" +statement = "External specialisation signature is not the type of the wrapper." + +[[error]] +code = "LLT4018" +class = "language" +exit = 1 +title = "Specialisation request refused" +statement = "Specialisation request refused." + +[[error]] +code = "LLT4101" +class = "language" +exit = 1 +title = "Lean declaration uses a sort LSE cannot express" +statement = "A Lean declaration's type contains a sort that is neither Prop nor Type u for a universe expression u, such as Sort u for a universe variable u, so the glossary generator refuses it instead of weakening its signature (§13.12)." + +[[error]] +code = "LLT4102" +class = "language" +exit = 1 +title = "Lean declaration uses a binder LSE cannot express" +statement = "A Lean declaration's type contains a strict-implicit binder, which has no LSE binder mode, so the glossary generator refuses it instead of weakening its signature (§13.12)." + +[[error]] +code = "LLT4103" +class = "language" +exit = 1 +title = "Lean declaration uses an expression form LSE cannot express" +statement = "A Lean declaration's type contains a primitive projection, a string literal, or another expression form outside LSE, so the glossary generator refuses it (§13.12)." + +[[error]] +code = "LLT4104" +class = "language" +exit = 1 +title = "Core constant at a level the core entry does not cover" +statement = "A Lean declaration's type applies a constant that a core lexicon entry denotes, such as Eq or Exists, at a universe level the core entry does not cover, so the glossary generator refuses it (§13.12)." + +[[error]] +code = "LLT4105" +class = "language" +exit = 1 +title = "Lean name outside the conservative grammar" +statement = "A Lean declaration's name is outside the conservative ASCII Lean-name grammar of §13.6, so the glossary generator cannot carry it as a denotation (§13.12)." + +[[error]] +code = "LLT4106" +class = "language" +exit = 1 +title = "Lean declaration depends on a declaration without an entry" +statement = "A Lean declaration's type mentions a constant that has no entry because the constant was refused, excluded, or absent, so the glossary generator refuses the dependent declaration with the reason of the root (§13.12)." + +[[error]] +code = "LLT4107" +class = "language" +exit = 1 +title = "Generated entry rejected by the entry and signature checks" +statement = "An entry the glossary generator derived from a Lean declaration fails the entry validation or the conservative signature check of §13.7, so it is refused instead of emitted (§13.12)." + [[error]] code = "LLV7001" class = "environment" @@ -595,6 +672,55 @@ exit = 3 title = "Child start refused after the host ended the live children" statement = "A child process could not be started because the host ended the live children of this process through `lexlean::verify::end_live_children` and has not re-enabled starting children." +[[error]] +code = "LLV7019" +class = "environment" +exit = 3 +title = "Lean library not fetched" +statement = "A project declares a Lean library that is not present in its Lake workspace at the declared revision with its built artifacts; `lock`, `check`, `build`, `fmt`, and `verify` never fetch, so the library must first be acquired with `lexlean deps fetch`." + +[[error]] +code = "LLV7020" +class = "environment" +exit = 3 +title = "Lean library fetch failed" +statement = "`lexlean deps fetch` could not acquire a declared Lean library: the `lake` executable could not be resolved or run, `lake exe cache get` failed, or the library is not at the declared revision with its built artifacts afterward." + +[[error]] +code = "LLV7021" +class = "language" +exit = 1 +title = "Replay cache entry rejected" +statement = "A replay cache entry does not parse as an entry, its entry digest is not the digest of its other members, its recorded key is not the key it was looked up under, or its environment is not the caller's, so it is neither reused nor replaced." + +[[error]] +code = "LLV7022" +class = "language" +exit = 1 +title = "Replay facts refused" +statement = "The facts a replay key is computed from repeat a declaration, name a declaration that is neither declared nor anchored by a given key, or do not parse." + +[[error]] +code = "LLV7023" +class = "language" +exit = 1 +title = "Imported declaration depends on sorryAx" +statement = "A Lean declaration that a used entry denotes, from outside the pinned toolchain's own libraries, depends on `sorryAx`, a proof hole, and no axiom policy of the document names `sorryAx`." + +[[error]] +code = "LLV7024" +class = "language" +exit = 1 +title = "Imported declaration depends on Lean.ofReduceBool" +statement = "A Lean declaration that a used entry denotes, from outside the pinned toolchain's own libraries, depends on `Lean.ofReduceBool`, a claim the compiler's evaluator made, and no axiom policy of the document names `Lean.ofReduceBool`." + +[[error]] +code = "LLV7025" +class = "language" +exit = 1 +title = "Imported declaration trusts the compiler" +statement = "A Lean declaration that a used entry denotes, from outside the pinned toolchain's own libraries, depends on `Lean.trustCompiler` or on an axiom that `native_decide` generated, and no axiom policy of the document names that axiom." + [[error]] code = "LLV7101" class = "language" diff --git a/model/ids.toml b/model/ids.toml index fc77987447..82270b2140 100644 --- a/model/ids.toml +++ b/model/ids.toml @@ -409,6 +409,24 @@ level = "build" suite = "lexicon" statement = "Cross-version package, lexicon, and lock combinations fail closed before backend execution." +[[id]] +id = "GL-19" +level = "build" +suite = "lexicon" +statement = "A generated external-Lean glossary is a lexicon package of kind-lean entries that the package loader accepts: each signature is the LSE translation of the Lean type with implicit and instance binders kept as binders and left out of applications, each identifier, surface, category, and render follows the documented naming scheme, an inductive type carries an eliminator descriptor over its constructor entries, and two runs over one extraction produce byte-identical packages and reports." + +[[id]] +id = "GL-20" +level = "build" +suite = "lexicon" +statement = "A Lean declaration the translation cannot express is refused with the registered diagnostic code of its reason and never emitted with a weakened signature, a declaration that depends on a refused one is refused with the root reason, and the coverage report counts requested declarations as translated, refused by reason, and excluded by kind, with counts that sum to the request." + +[[id]] +id = "GL-21" +level = "build" +suite = "lexicon" +statement = "A specialisation request names a class-polymorphic Lean declaration, its kind (`theorem` or `def`), a tag, and the arguments of its application at a concrete type, each a closed term of identifiers, numerals, holes, and applications; the wrapper emitter writes one `public` declaration for each under the reserved root `LexLeanSpec`, whose type is `type_of%` the application and whose value is the application, with every constant `_root_`-qualified and no tactic and no axiom, in sorted order and byte for byte the same on every run, and a request with a duplicate tag, a name outside the conservative grammar, or an argument outside the term grammar is refused with LLT4018." + [[id]] id = "GR-01" level = "build" @@ -1333,6 +1351,30 @@ level = "build" suite = "verification" statement = "A project verified as the parts of one run, each shard running the processes its plan names with the oleans of the shards it needs and the join reading every shard's records, publishes a verified directory byte-identical to the whole verification's with the same attestation identity, and a shard whose plan leaves a module without its imports, a join missing a record, or a join reading a record of an executable other than its own, is refused." +[[id]] +id = "VR-24" +level = "build" +suite = "verification" +statement = "An external entry whose Lean name is under the reserved root `LexLeanSpec` is probed by `example : () = (type_of% @) := rfl`, so that its linked signature is definitionally the Lean type of the wrapper and not merely inhabited by it; an entry whose signature differs from that type is refused with LLT4017 naming the entry, a wrapper that does not exist stays LLT4003, and an entry outside the reserved root is probed exactly as before." + +[[id]] +id = "VR-27" +level = "build" +suite = "verification" +statement = "The external-interface probe writes an instance binder that no later binder or the result mentions without a name, so that pinned Lean's unused-variable linter has nothing to report for an entry such as `HXor.hXor`, and ascribes the type a callee declares to a numeral argument only when that type is closed in the caller's scope, with the callee's own binders renamed apart, so that a caller binder named like a callee binder (`a`, the type parameter of `Eq`) is never taken for it; a generated entry with an instance binder and a numeral argument elaborates without output." + +[[id]] +id = "VR-25" +level = "build" +suite = "verification" +statement = "A used external entry whose Lean module is outside the pinned toolchain's own libraries `Init`, `Std`, `Lean` and `Lake` is an imported declaration: the probe module prints its axioms with `#print axioms`, the attestation records its observed set, and an import that depends on `sorryAx` is refused with LLV7023, on `Lean.ofReduceBool` with LLV7024, and on `Lean.trustCompiler` or on an axiom that `native_decide` generated with LLV7025, each naming the entry, unless an axiom policy of the document names that axiom, in which case the import is accepted and every generated declaration is still held to its own policy." + +[[id]] +id = "VR-26" +level = "build" +suite = "verification" +statement = "The status of an imported declaration in the attestation is `replayed in the pinned environment`, and no output about an import says `proved`, `verified` or `kernel-checked`, words that §5.3 reserves for the generated declarations of the document and that §4.2 forbids for an imported library." + [[id]] id = "CL-01" level = "build" @@ -1477,6 +1519,12 @@ level = "build" suite = "cli-api" statement = "lexlean migrate --to 1.2 migrates a language-1.1 data-form project to language 1.2 in one command: it rewrites every module to the authoring notation through lexlean::sdk::to_notation with the same declarations, names, statements, and axiom policies, moves the builtin glossary references of every source and the imports of every path lexicon package to 1.2.0, rewrites the language row, and regenerates the lock as lexlean/lock/2, so the result checks, has a current lock, and is canonical; --check proves the migration and writes nothing; and a project that is not language 1.1 is refused with LLC0103 and a module that is not a language-1.1 data-form semantic module, a data form that is not canonical JSON included, with LLP2003, each leaving every file of the project unchanged." +[[id]] +id = "CL-25" +level = "build" +suite = "cli-api" +statement = "lexlean deps glossary runs the pinned Lean over the requested modules or declarations and writes a lexicon package of kind-lean entries and a coverage report, takes exactly one of --modules and --names and a valid package identity, needs no project, refuses an empty or doubled selection with LLC0002 and malformed usage with LLC0001, and under --strict exits with the registered class of the first refusal." + [[id]] id = "SE-01" level = "build" @@ -1603,6 +1651,12 @@ level = "build" suite = "examples" statement = "The `helpdesk` example is a text application written entirely from language-1.2 source and the three source packages `std`, `std-models`, and `std-reasoning` that its lock pins: its production roots `classify`, `plan`, and `dispatch : Bytes -> Bytes` use the model alone, the reasoner alone, and both together, `dispatch` trimming the request with `LexLeanStd.Text`, scoring it with an integer feed-forward model whose weights are content-addressed artifacts and which is applied through its required precondition check, abstaining with `decideOr`, committing through the generic `GateModel` of `std-models`, and planning the reply with the `Drain` reasoner of `std-reasoning`; the example holds no handwritten Lean or Rust, verifies under the pinned Lean, its roots export through `lexlean production build` with the packages committed under `tests/production-export/helpdesk/`, and a changed byte or version of a package is `LLC0105`, an import of a module of an undeclared package `LLR3009`, a tampered artifact `LLR3007`, and a model applied without its required check `LLT4008`." +[[id]] +id = "EX-10" +level = "build" +suite = "examples" +statement = "A project that needs a fetched Lean library is a demo, not an example: it lives under `demos/` and no directory under `examples/` declares a `[[lean_library]]`, so that the sweeps of `examples/` (`verify-examples`, `check-golden`, `check-reproducibility`, the formatter property test) need no network and no library; `cargo xtask verify-demos` formats, locks, checks, builds, and verifies every demo against its `expected/` records and golden build, and builds it twice to the same bytes, and `.github/workflows/mathlib.yml` runs it after `lexlean deps fetch` in a job of its own, outside the acceptance gate, with no build cache." + [[id]] id = "PD-01" level = "build" @@ -2748,3 +2802,69 @@ id = "LM-13" level = "build" suite = "language-models" statement = "The text laws a tokenizer elaborates through are LexLean source and not authored text: the module that states them is one language-1.2 native core module of the embedded `language/text-1.2` project, the project holds no file of Lean source, no independently authored Lean file anywhere in the release tree declares the `LexLeanText` namespace or lies under its module root, and the one-time migration input is absent; the registry lists only that module, the declarations and their exact axiom policies are read from its native data, which the compiler embeds and hashes into the language-1.2 semantics, and a module that declares a text component imports the generated module rather than splicing any Lean text." + +[[id]] +id = "ML-01" +level = "build" +suite = "mathlib" +statement = "A language-1.2 project declares an external Lean library once, as a `[[lean_library]]` table of its `lexlean.toml` with a `name`, an HTTPS `url`, and an exact 40-lowercase-hex `revision`, sorted and unique by `name`, and the configuration reads back to the bytes written; a project without one keeps its bytes, and a URL that is not HTTPS, a revision that is not a 40-lowercase-hex commit, a branch, a tag, or any other field, a name that is not a package identifier, a repeated or unsorted table, and a declaration in another language are each refused with LLC0109." + +[[id]] +id = "ML-02" +level = "build" +suite = "mathlib" +statement = "The lock pins each declared Lean library by a `[[lean_library]]` row of its name, URL, exact revision, the SHA-256 of the library's own `lake-manifest.json`, and the SHA-256 of its generated glossary, the tree digest of the lexicon package `lean.` of the project or of the empty tree when the project has none; the Lake workspace's `lake-manifest.json` must require the library at the declared URL and revision, rows sort by name, and the lock reads back to the bytes written; a project without a library keeps its lock bytes, and a library, a manifest digest, a glossary, or a workspace requirement that is not the one the lock pins is refused with LLC0110 naming both values." + +[[id]] +id = "ML-03" +level = "build" +suite = "mathlib" +statement = "`lexlean deps fetch` is the only command that acquires a declared Lean library: it checks the declaration against the Lake workspace, runs `lake exe cache get` in the Lake workspace under the pinned toolchain through the checked child runner, and confirms the library is present at the declared revision with its built artifacts; with no library declared it fetches nothing and succeeds, a missing or failing `lake` and a library that is not at the declared revision afterward are LLV7020, and the command writes nothing of the project outside the Lake workspace." + +[[id]] +id = "ML-04" +level = "build" +suite = "mathlib" +statement = "`lock`, `check`, `build`, `fmt`, and `verify` never fetch a declared Lean library: when the library is not present in the Lake workspace at the declared revision with its built artifacts, each fails offline with LLV7019 naming the library and `lexlean deps fetch`, before any Lean process runs and without a network connection." + +[[id]] +id = "ML-05" +level = "build" +suite = "mathlib" +statement = "`fmt` rewrites the sources of a project that declares a Lean library: the scratch copy in which the formatter proves preservation of the linked IR holds the library's presence markers (the checkout's `HEAD`, its manifest, and the directory of built artifacts) and not the library, so a present library is recognised without being copied and an absent one is still LLV7019." + +[[id]] +id = "RC-01" +level = "build" +suite = "replay-cache" +statement = "A replay key is a PrismPM ADR-015 DigestSet, a `sha256` and a `blake3` of the same bytes in lowercase hexadecimal, labelled `blake3:` and the 64 digits of the `blake3` value, over the one canonical serialisation of a declaration's name, universe parameters, kind attributes and type, the DigestSet of its value or proof term, the keys of the declarations it names, the Lean toolchain, and the Mathlib revision; equal inputs give equal keys, and a change to any one of those inputs gives a different key." + +[[id]] +id = "RC-02" +level = "build" +suite = "replay-cache" +statement = "A declaration changed in a dependency graph changes the key of every declaration above it and of none beside or below it, declarations that name one another, an inductive type with its constructors and recursor, are keyed as one group, and facts that repeat a declaration, name a declaration neither declared nor anchored by a given key, or do not parse are refused (`LLV7022`)." + +[[id]] +id = "RC-03" +level = "build" +suite = "replay-cache" +statement = "A warm replay reuses the recorded result of every unit whose key is unchanged and replays only the others, whether a unit is one declaration or one module; only a replay that succeeded is recorded, each entry names the digest of the executable that produced it, and an entry that an executable other than the current one produced is not reused." + +[[id]] +id = "RC-04" +level = "build" +suite = "replay-cache" +statement = "A cache entry whose bytes changed while its key was kept, an entry stored under a key other than the one it records, and an entry that does not parse as an entry, are each rejected with `LLV7021`, never reused, and not silently replaced." + +[[id]] +id = "RC-05" +level = "build" +suite = "replay-cache" +statement = "A changed Lean toolchain or a changed Mathlib revision gives every unit a new key, so no result recorded under the previous environment is reused, and the entries of the previous environment are left unread and intact." + +[[id]] +id = "RC-06" +level = "build" +suite = "replay-cache" +statement = "Facts exported by the pinned Lean from compiled modules, keyed and replayed through the pinned `leanchecker` cold and then warm, reuse every module whose key is unchanged: after a one-line edit to one declaration, only the modules whose declarations reach it are replayed again, and the warm verdicts equal the cold ones." diff --git a/tests/fixtures/import-axioms/README.md b/tests/fixtures/import-axioms/README.md new file mode 100644 index 0000000000..c6d5b3e1a8 --- /dev/null +++ b/tests/fixtures/import-axioms/README.md @@ -0,0 +1,13 @@ +# import-axioms + +The fixture of `VR-25` and `VR-26` (SPEC.md §5.3, §18.8, §22.6). + +- `project/AxHost.lean`: a host library of five theorems that state the + commutativity of `Nat` addition. `clean` carries no axiom; `viaSorry`, + `viaReduce`, `viaTrust` and `viaNative` plant `sorryAx`, `Lean.ofReduceBool` + (which rests on `Lean.trustCompiler`), `Lean.trustCompiler`, and the axiom + `native_decide` generates. +- `project/`: a project whose five entries (`test.ax::clean-comm` and the four + others) denote them. The cases copy it, run `lake build AxHost`, write the + document each case needs, lock, and verify; they carry no lock and no build + output. diff --git a/tests/fixtures/import-axioms/project/AxHost.lean b/tests/fixtures/import-axioms/project/AxHost.lean new file mode 100644 index 0000000000..bf75327d2a --- /dev/null +++ b/tests/fixtures/import-axioms/project/AxHost.lean @@ -0,0 +1,32 @@ +module +public import Init +set_option autoImplicit false + +/-! The host library of the `VR-25` fixture: one clean theorem and four that +plant the axioms an import must not smuggle in. Each states the commutativity +of `Nat` addition, so one entry shape denotes all five. The planted ones prove +it from `Nat.add_comm` and merely carry a hypothesis supplied by the axiom, so +that their observed axioms are exactly those named below. -/ + +meta def alwaysTrue : Bool := true + +/-- No axiom. -/ +public theorem AxHost.clean (a b : Nat) : a + b = b + a := Nat.add_comm a b + +/-- Observed axioms: `sorryAx`. -/ +public theorem AxHost.viaSorry (a b : Nat) : a + b = b + a := sorry + +/-- Observed axioms: `Lean.ofReduceBool` and `Lean.trustCompiler`, the latter +because `Lean.ofReduceBool` itself rests on it. -/ +public theorem AxHost.viaReduce (a b : Nat) : a + b = b + a := + (fun (_ : alwaysTrue = true) => Nat.add_comm a b) (Lean.ofReduceBool alwaysTrue true rfl) + +/-- Observed axioms: `Lean.trustCompiler` alone. -/ +public theorem AxHost.viaTrust (a b : Nat) : a + b = b + a := + (fun (_ : True) => Nat.add_comm a b) Lean.trustCompiler + +/-- Observed axioms: the axiom `native_decide` generates for this declaration +under Lean 4.32.1, `AxHost.viaNative._native.native_decide.ax_1_1`, which Lean +prints with a hygiene mark. -/ +public theorem AxHost.viaNative (a b : Nat) : a + b = b + a := + (fun (_ : 2 + 2 = 4) => Nat.add_comm a b) (by native_decide) diff --git a/tests/fixtures/import-axioms/project/lake-manifest.json b/tests/fixtures/import-axioms/project/lake-manifest.json new file mode 100644 index 0000000000..5b8d95dc63 --- /dev/null +++ b/tests/fixtures/import-axioms/project/lake-manifest.json @@ -0,0 +1,6 @@ +{"version": "1.2.0", + "packagesDir": ".lake/packages", + "packages": [], + "name": "import_axioms_host", + "lakeDir": ".lake", + "fixedToolchain": false} diff --git a/tests/fixtures/import-axioms/project/lakefile.toml b/tests/fixtures/import-axioms/project/lakefile.toml new file mode 100644 index 0000000000..9edbe06cc8 --- /dev/null +++ b/tests/fixtures/import-axioms/project/lakefile.toml @@ -0,0 +1,6 @@ +name = "import_axioms_host" +version = "0.1.0" +defaultTargets = ["AxHost"] + +[[lean_lib]] +name = "AxHost" diff --git a/tests/fixtures/import-axioms/project/lean-toolchain b/tests/fixtures/import-axioms/project/lean-toolchain new file mode 100644 index 0000000000..2b61957be5 --- /dev/null +++ b/tests/fixtures/import-axioms/project/lean-toolchain @@ -0,0 +1 @@ +leanprover/lean4:v4.32.1 diff --git a/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/clean-comm.toml b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/clean-comm.toml new file mode 100644 index 0000000000..dbb55ede57 --- /dev/null +++ b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/clean-comm.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "clean-comm" +category = "proof-constant" +signature = "(pi ((explicit a (const lexlean.std.nat::nat)) (explicit b (const lexlean.std.nat::nat))) (app (const lexlean.core::eq) (app (const lexlean.std.nat::add) (local a) (local b)) (app (const lexlean.std.nat::add) (local b) (local a))))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "AxHost" +name = "AxHost.clean" + +[[form]] +id = "clean-comm" +channel = "math" +surface = "cleancomm" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name cleancomm) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/native-comm.toml b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/native-comm.toml new file mode 100644 index 0000000000..1ce1b5214e --- /dev/null +++ b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/native-comm.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "native-comm" +category = "proof-constant" +signature = "(pi ((explicit a (const lexlean.std.nat::nat)) (explicit b (const lexlean.std.nat::nat))) (app (const lexlean.core::eq) (app (const lexlean.std.nat::add) (local a) (local b)) (app (const lexlean.std.nat::add) (local b) (local a))))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "AxHost" +name = "AxHost.viaNative" + +[[form]] +id = "native-comm" +channel = "math" +surface = "nativecomm" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name nativecomm) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/reduce-comm.toml b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/reduce-comm.toml new file mode 100644 index 0000000000..1fbcb06e3d --- /dev/null +++ b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/reduce-comm.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "reduce-comm" +category = "proof-constant" +signature = "(pi ((explicit a (const lexlean.std.nat::nat)) (explicit b (const lexlean.std.nat::nat))) (app (const lexlean.core::eq) (app (const lexlean.std.nat::add) (local a) (local b)) (app (const lexlean.std.nat::add) (local b) (local a))))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "AxHost" +name = "AxHost.viaReduce" + +[[form]] +id = "reduce-comm" +channel = "math" +surface = "reducecomm" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name reducecomm) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/sorry-comm.toml b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/sorry-comm.toml new file mode 100644 index 0000000000..5e2f8c25d0 --- /dev/null +++ b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/sorry-comm.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "sorry-comm" +category = "proof-constant" +signature = "(pi ((explicit a (const lexlean.std.nat::nat)) (explicit b (const lexlean.std.nat::nat))) (app (const lexlean.core::eq) (app (const lexlean.std.nat::add) (local a) (local b)) (app (const lexlean.std.nat::add) (local b) (local a))))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "AxHost" +name = "AxHost.viaSorry" + +[[form]] +id = "sorry-comm" +channel = "math" +surface = "sorrycomm" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name sorrycomm) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/trust-comm.toml b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/trust-comm.toml new file mode 100644 index 0000000000..9cd70ce255 --- /dev/null +++ b/tests/fixtures/import-axioms/project/lexicons/test-ax/entries/trust-comm.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "trust-comm" +category = "proof-constant" +signature = "(pi ((explicit a (const lexlean.std.nat::nat)) (explicit b (const lexlean.std.nat::nat))) (app (const lexlean.core::eq) (app (const lexlean.std.nat::add) (local a) (local b)) (app (const lexlean.std.nat::add) (local b) (local a))))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "AxHost" +name = "AxHost.viaTrust" + +[[form]] +id = "trust-comm" +channel = "math" +surface = "trustcomm" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name trustcomm) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/tests/fixtures/import-axioms/project/lexicons/test-ax/lexicon.toml b/tests/fixtures/import-axioms/project/lexicons/test-ax/lexicon.toml new file mode 100644 index 0000000000..94210dc820 --- /dev/null +++ b/tests/fixtures/import-axioms/project/lexicons/test-ax/lexicon.toml @@ -0,0 +1,5 @@ +spec = "lexlean/lexicon/1" +package = "test.ax" +version = "1.0.0" +language = "1.0" +imports = ["lexlean.core@1.0.0", "lexlean.std.int@1.0.0", "lexlean.std.nat@1.0.0"] diff --git a/tests/fixtures/import-axioms/project/lexlean.toml b/tests/fixtures/import-axioms/project/lexlean.toml new file mode 100644 index 0000000000..457050f77e --- /dev/null +++ b/tests/fixtures/import-axioms/project/lexlean.toml @@ -0,0 +1,36 @@ +spec = "lexlean/project/1" +name = "import-axioms" +language = "1.0" +module_prefix = "LexLeanExample" +source_roots = ["src"] +entrypoints = ["src/Main.lex.tex"] +build_root = ".lexlean" +lockfile = "lexlean.lock" +lean_workspace = "." +lean_toolchain = "leanprover/lean4:v4.32.1" + +[[lexicon_source]] +package = "lexlean.std.int" +kind = "builtin" + +[[lexicon_source]] +package = "lexlean.std.nat" +kind = "builtin" + +[[lexicon_source]] +package = "test.ax" +kind = "path" +path = "lexicons/test-ax" + +[limits] +max_file_bytes = 4194304 +max_total_source_bytes = 67108864 +max_primitive_atoms = 2000000 +max_token_lattice_edges = 4000000 +max_parse_states = 4000000 +max_ir_nodes = 2000000 +max_scope_depth = 1024 +max_import_depth = 128 +max_diagnostics = 256 +max_child_output_bytes = 16777216 +child_timeout_ms = 300000 diff --git a/tests/fixtures/import-axioms/project/src/Main.lex.tex b/tests/fixtures/import-axioms/project/src/Main.lex.tex new file mode 100644 index 0000000000..14e13f9787 --- /dev/null +++ b/tests/fixtures/import-axioms/project/src/Main.lex.tex @@ -0,0 +1,18 @@ +\begin{lexlean}{Main} +\useglossary{lexlean.std.int@1.0.0} +\useglossary{lexlean.std.nat@1.0.0} +\useglossary{test.ax@1.0.0} +\title{Natural number addition} + +\begin{section}{natural} +\heading{Natural number} +\parameters{natural number \(a\); natural number \(b\)} + \begin{theorem}{clean-comm} + \noaxioms + \(a + b = b + a\). + \begin{proof} + Close the goal with \(cleancomm(a, b)\). + \end{proof} + \end{theorem} +\end{section} +\end{lexlean} diff --git a/tests/fixtures/probe-binders/project/lake-manifest.json b/tests/fixtures/probe-binders/project/lake-manifest.json new file mode 100644 index 0000000000..cd4a666d43 --- /dev/null +++ b/tests/fixtures/probe-binders/project/lake-manifest.json @@ -0,0 +1,6 @@ +{"version": "1.2.0", + "packagesDir": ".lake/packages", + "packages": [], + "name": "specialisation_host", + "lakeDir": ".lake", + "fixedToolchain": false} diff --git a/tests/fixtures/probe-binders/project/lakefile.toml b/tests/fixtures/probe-binders/project/lakefile.toml new file mode 100644 index 0000000000..4706d88b90 --- /dev/null +++ b/tests/fixtures/probe-binders/project/lakefile.toml @@ -0,0 +1,2 @@ +name = "probe_binders_host" +version = "0.1.0" diff --git a/tests/fixtures/probe-binders/project/lean-toolchain b/tests/fixtures/probe-binders/project/lean-toolchain new file mode 100644 index 0000000000..2b61957be5 --- /dev/null +++ b/tests/fixtures/probe-binders/project/lean-toolchain @@ -0,0 +1 @@ +leanprover/lean4:v4.32.1 diff --git a/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/h-xor.toml b/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/h-xor.toml new file mode 100644 index 0000000000..b0f5106315 --- /dev/null +++ b/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/h-xor.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-xor" +category = "function" +signature = "(pi ((explicit a (sort (type u))) (explicit b (sort (type v))) (explicit g (sort (type w)))) (sort (type (max (max u v) w))))" +universes = ["u", "v", "w"] +surface_arity = 3 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HXor" + +[[form]] +id = "h-xor" +channel = "math" +surface = "hXor" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hXor) (paren (seq (slot 0) (token comma) (space) (slot 1) (token comma) (space) (slot 2))))" diff --git a/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/h-xor/h-xor.toml b/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/h-xor/h-xor.toml new file mode 100644 index 0000000000..b1163eb23c --- /dev/null +++ b/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/h-xor/h-xor.toml @@ -0,0 +1,22 @@ +spec = "lexlean/entry/1" +id = "h-xor.h-xor" +category = "function" +signature = "(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (instance self (app (const test.probe::h-xor (u v w)) (local a) (local b) (local g))) (explicit x (local a)) (explicit x1 (local b))) (local g))" +universes = ["u", "v", "w"] +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "HXor.hXor" + +[[form]] +id = "h-xor" +channel = "math" +surface = "hXorHXor" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name hXorHXor) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/u-int32.toml b/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/u-int32.toml new file mode 100644 index 0000000000..58578796c1 --- /dev/null +++ b/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/u-int32.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "u-int32" +category = "type-noun" +signature = "(sort (type 0))" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Init.Prelude" +name = "UInt32" + +[[form]] +id = "u-int32" +channel = "math" +surface = "uInt32" +canonical_source = true +features = [] + +[render] +math = "(operator-name uInt32)" diff --git a/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/xor-self.toml b/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/xor-self.toml new file mode 100644 index 0000000000..76f1780b7a --- /dev/null +++ b/tests/fixtures/probe-binders/project/lexicons/test-probe/entries/xor-self.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "xor-self" +category = "proof-constant" +signature = "(pi ((implicit a (const test.probe::u-int32))) (app (const lexlean.core::eq) (app (const test.probe::h-xor.h-xor (0 0 0)) (local a) (local a)) (nat 0)))" +surface_arity = 0 +frame = "atom" + +[denotation] +kind = "lean" +module = "Init.Data.UInt.Bitwise" +name = "UInt32.xor_self" + +[[form]] +id = "xor-self" +channel = "math" +surface = "lexLeanSpecU32UInt32XorSelf" +canonical_source = true +features = [] + +[render] +math = "(operator-name lexLeanSpecU32UInt32XorSelf)" diff --git a/tests/fixtures/probe-binders/project/lexicons/test-probe/lexicon.toml b/tests/fixtures/probe-binders/project/lexicons/test-probe/lexicon.toml new file mode 100644 index 0000000000..31fd5fd63b --- /dev/null +++ b/tests/fixtures/probe-binders/project/lexicons/test-probe/lexicon.toml @@ -0,0 +1,5 @@ +spec = "lexlean/lexicon/1" +package = "test.probe" +version = "1.0.0" +language = "1.0" +imports = ["lexlean.core@1.0.0", "lexlean.std.nat@1.0.0"] diff --git a/tests/fixtures/probe-binders/project/lexlean.toml b/tests/fixtures/probe-binders/project/lexlean.toml new file mode 100644 index 0000000000..252f61178e --- /dev/null +++ b/tests/fixtures/probe-binders/project/lexlean.toml @@ -0,0 +1,32 @@ +spec = "lexlean/project/1" +name = "probe-binders" +language = "1.0" +module_prefix = "LexLeanExample" +source_roots = ["src"] +entrypoints = ["src/Main.lex.tex"] +build_root = ".lexlean" +lockfile = "lexlean.lock" +lean_workspace = "." +lean_toolchain = "leanprover/lean4:v4.32.1" + +[[lexicon_source]] +package = "lexlean.std.nat" +kind = "builtin" + +[[lexicon_source]] +package = "test.probe" +kind = "path" +path = "lexicons/test-probe" + +[limits] +max_file_bytes = 4194304 +max_total_source_bytes = 67108864 +max_primitive_atoms = 2000000 +max_token_lattice_edges = 4000000 +max_parse_states = 4000000 +max_ir_nodes = 2000000 +max_scope_depth = 1024 +max_import_depth = 128 +max_diagnostics = 256 +max_child_output_bytes = 16777216 +child_timeout_ms = 300000 diff --git a/tests/fixtures/probe-binders/project/src/Main.lex.tex b/tests/fixtures/probe-binders/project/src/Main.lex.tex new file mode 100644 index 0000000000..4922008f0d --- /dev/null +++ b/tests/fixtures/probe-binders/project/src/Main.lex.tex @@ -0,0 +1,12 @@ +\begin{lexlean}{Main} +\useglossary{lexlean.std.nat@1.0.0} +\title{Natural number addition} + +\begin{theorem}{add-zero} +\noaxioms +For every natural number \(n\), \(n + 0 = n\). +\begin{proof} +Close the goal by reflexivity. +\end{proof} +\end{theorem} +\end{lexlean} diff --git a/tests/fixtures/specialisation/README.md b/tests/fixtures/specialisation/README.md new file mode 100644 index 0000000000..19b17c5e1e --- /dev/null +++ b/tests/fixtures/specialisation/README.md @@ -0,0 +1,12 @@ +# specialisation + +The fixture of `GL-21` and `VR-24` (SPEC.md §13.13, §18.8). + +- `request.toml`: a specialisation request for `Std.Commutative.comm` and + `Std.Associative.assoc` at `Nat`, `Int`, `UInt32` and `BitVec 32`. +- `project/SpecHost.lean`: the host module the emitter writes for it. Regenerate + with `cargo xtask emit-wrappers tests/fixtures/specialisation/request.toml + tests/fixtures/specialisation/project/SpecHost.lean`. +- `project/`: a project whose two entries (`test.spec::nat-comm`, + `test.spec::int-comm`) denote wrappers. The cases copy it, run `lake build + SpecHost`, lock, and verify; they carry no lock and no build output. diff --git a/tests/fixtures/specialisation/project/SpecHost.lean b/tests/fixtures/specialisation/project/SpecHost.lean new file mode 100644 index 0000000000..fd16c3a1a2 --- /dev/null +++ b/tests/fixtures/specialisation/project/SpecHost.lean @@ -0,0 +1,12 @@ +module +public import Init +public import Std +set_option autoImplicit false +public theorem LexLeanSpec.BitVec32.Std.Associative.assoc : type_of% (@_root_.Std.Associative.assoc (_root_.BitVec 32) (@_root_.HAdd.hAdd (_root_.BitVec 32) (_root_.BitVec 32) (_root_.BitVec 32) _) _) := @_root_.Std.Associative.assoc (_root_.BitVec 32) (@_root_.HAdd.hAdd (_root_.BitVec 32) (_root_.BitVec 32) (_root_.BitVec 32) _) _ +public theorem LexLeanSpec.BitVec32.Std.Commutative.comm : type_of% (@_root_.Std.Commutative.comm (_root_.BitVec 32) (@_root_.HAdd.hAdd (_root_.BitVec 32) (_root_.BitVec 32) (_root_.BitVec 32) _) _) := @_root_.Std.Commutative.comm (_root_.BitVec 32) (@_root_.HAdd.hAdd (_root_.BitVec 32) (_root_.BitVec 32) (_root_.BitVec 32) _) _ +public theorem LexLeanSpec.Int.Std.Associative.assoc : type_of% (@_root_.Std.Associative.assoc _root_.Int (@_root_.HAdd.hAdd _root_.Int _root_.Int _root_.Int _) _) := @_root_.Std.Associative.assoc _root_.Int (@_root_.HAdd.hAdd _root_.Int _root_.Int _root_.Int _) _ +public theorem LexLeanSpec.Int.Std.Commutative.comm : type_of% (@_root_.Std.Commutative.comm _root_.Int (@_root_.HAdd.hAdd _root_.Int _root_.Int _root_.Int _) _) := @_root_.Std.Commutative.comm _root_.Int (@_root_.HAdd.hAdd _root_.Int _root_.Int _root_.Int _) _ +public theorem LexLeanSpec.Nat.Std.Associative.assoc : type_of% (@_root_.Std.Associative.assoc _root_.Nat (@_root_.HAdd.hAdd _root_.Nat _root_.Nat _root_.Nat _) _) := @_root_.Std.Associative.assoc _root_.Nat (@_root_.HAdd.hAdd _root_.Nat _root_.Nat _root_.Nat _) _ +public theorem LexLeanSpec.Nat.Std.Commutative.comm : type_of% (@_root_.Std.Commutative.comm _root_.Nat (@_root_.HAdd.hAdd _root_.Nat _root_.Nat _root_.Nat _) _) := @_root_.Std.Commutative.comm _root_.Nat (@_root_.HAdd.hAdd _root_.Nat _root_.Nat _root_.Nat _) _ +public theorem LexLeanSpec.UInt32.Std.Associative.assoc : type_of% (@_root_.Std.Associative.assoc _root_.UInt32 (@_root_.HAdd.hAdd _root_.UInt32 _root_.UInt32 _root_.UInt32 _) _) := @_root_.Std.Associative.assoc _root_.UInt32 (@_root_.HAdd.hAdd _root_.UInt32 _root_.UInt32 _root_.UInt32 _) _ +public theorem LexLeanSpec.UInt32.Std.Commutative.comm : type_of% (@_root_.Std.Commutative.comm _root_.UInt32 (@_root_.HAdd.hAdd _root_.UInt32 _root_.UInt32 _root_.UInt32 _) _) := @_root_.Std.Commutative.comm _root_.UInt32 (@_root_.HAdd.hAdd _root_.UInt32 _root_.UInt32 _root_.UInt32 _) _ diff --git a/tests/fixtures/specialisation/project/lake-manifest.json b/tests/fixtures/specialisation/project/lake-manifest.json new file mode 100644 index 0000000000..cd4a666d43 --- /dev/null +++ b/tests/fixtures/specialisation/project/lake-manifest.json @@ -0,0 +1,6 @@ +{"version": "1.2.0", + "packagesDir": ".lake/packages", + "packages": [], + "name": "specialisation_host", + "lakeDir": ".lake", + "fixedToolchain": false} diff --git a/tests/fixtures/specialisation/project/lakefile.toml b/tests/fixtures/specialisation/project/lakefile.toml new file mode 100644 index 0000000000..9ac800cf2c --- /dev/null +++ b/tests/fixtures/specialisation/project/lakefile.toml @@ -0,0 +1,6 @@ +name = "specialisation_host" +version = "0.1.0" +defaultTargets = ["SpecHost"] + +[[lean_lib]] +name = "SpecHost" diff --git a/tests/fixtures/specialisation/project/lean-toolchain b/tests/fixtures/specialisation/project/lean-toolchain new file mode 100644 index 0000000000..2b61957be5 --- /dev/null +++ b/tests/fixtures/specialisation/project/lean-toolchain @@ -0,0 +1 @@ +leanprover/lean4:v4.32.1 diff --git a/tests/fixtures/specialisation/project/lexicons/test-spec/entries/int-comm.toml b/tests/fixtures/specialisation/project/lexicons/test-spec/entries/int-comm.toml new file mode 100644 index 0000000000..173406b327 --- /dev/null +++ b/tests/fixtures/specialisation/project/lexicons/test-spec/entries/int-comm.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "int-comm" +category = "proof-constant" +signature = "(pi ((explicit a (const lexlean.std.int::int)) (explicit b (const lexlean.std.int::int))) (app (const lexlean.core::eq) (app (const lexlean.std.int::add) (local a) (local b)) (app (const lexlean.std.int::add) (local b) (local a))))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "SpecHost" +name = "LexLeanSpec.Int.Std.Commutative.comm" + +[[form]] +id = "int-comm" +channel = "math" +surface = "intcomm" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name intcomm) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/tests/fixtures/specialisation/project/lexicons/test-spec/entries/nat-comm.toml b/tests/fixtures/specialisation/project/lexicons/test-spec/entries/nat-comm.toml new file mode 100644 index 0000000000..8c232886b3 --- /dev/null +++ b/tests/fixtures/specialisation/project/lexicons/test-spec/entries/nat-comm.toml @@ -0,0 +1,21 @@ +spec = "lexlean/entry/1" +id = "nat-comm" +category = "proof-constant" +signature = "(pi ((explicit a (const lexlean.std.nat::nat)) (explicit b (const lexlean.std.nat::nat))) (app (const lexlean.core::eq) (app (const lexlean.std.nat::add) (local a) (local b)) (app (const lexlean.std.nat::add) (local b) (local a))))" +surface_arity = 2 +frame = "call" + +[denotation] +kind = "lean" +module = "SpecHost" +name = "LexLeanSpec.Nat.Std.Commutative.comm" + +[[form]] +id = "nat-comm" +channel = "math" +surface = "natcomm" +canonical_source = true +features = [] + +[render] +math = "(seq (operator-name natcomm) (paren (seq (slot 0) (token comma) (space) (slot 1))))" diff --git a/tests/fixtures/specialisation/project/lexicons/test-spec/lexicon.toml b/tests/fixtures/specialisation/project/lexicons/test-spec/lexicon.toml new file mode 100644 index 0000000000..6700452530 --- /dev/null +++ b/tests/fixtures/specialisation/project/lexicons/test-spec/lexicon.toml @@ -0,0 +1,5 @@ +spec = "lexlean/lexicon/1" +package = "test.spec" +version = "1.0.0" +language = "1.0" +imports = ["lexlean.core@1.0.0", "lexlean.std.int@1.0.0", "lexlean.std.nat@1.0.0"] diff --git a/tests/fixtures/specialisation/project/lexlean.toml b/tests/fixtures/specialisation/project/lexlean.toml new file mode 100644 index 0000000000..492f320cd8 --- /dev/null +++ b/tests/fixtures/specialisation/project/lexlean.toml @@ -0,0 +1,36 @@ +spec = "lexlean/project/1" +name = "specialisation" +language = "1.0" +module_prefix = "LexLeanExample" +source_roots = ["src"] +entrypoints = ["src/Main.lex.tex"] +build_root = ".lexlean" +lockfile = "lexlean.lock" +lean_workspace = "." +lean_toolchain = "leanprover/lean4:v4.32.1" + +[[lexicon_source]] +package = "lexlean.std.int" +kind = "builtin" + +[[lexicon_source]] +package = "lexlean.std.nat" +kind = "builtin" + +[[lexicon_source]] +package = "test.spec" +kind = "path" +path = "lexicons/test-spec" + +[limits] +max_file_bytes = 4194304 +max_total_source_bytes = 67108864 +max_primitive_atoms = 2000000 +max_token_lattice_edges = 4000000 +max_parse_states = 4000000 +max_ir_nodes = 2000000 +max_scope_depth = 1024 +max_import_depth = 128 +max_diagnostics = 256 +max_child_output_bytes = 16777216 +child_timeout_ms = 300000 diff --git a/tests/fixtures/specialisation/project/src/Main.lex.tex b/tests/fixtures/specialisation/project/src/Main.lex.tex new file mode 100644 index 0000000000..f8a967851e --- /dev/null +++ b/tests/fixtures/specialisation/project/src/Main.lex.tex @@ -0,0 +1,29 @@ +\begin{lexlean}{Main} +\useglossary{lexlean.std.int@1.0.0} +\useglossary{lexlean.std.nat@1.0.0} +\useglossary{test.spec@1.0.0} +\title{Natural number addition} + +\begin{section}{natural} +\heading{Natural number} +\parameters{natural number \(a\); natural number \(b\)} + \begin{theorem}{nat-comm} + \noaxioms + \(a + b = b + a\). + \begin{proof} + Close the goal with \(natcomm(a, b)\). + \end{proof} + \end{theorem} +\end{section} + +\begin{section}{integer} +\heading{Integer} + \begin{theorem}{int-comm} + \allowaxioms{propext} + For every integer \(a\) and integer \(b\), \(a intplus b = b intplus a\). + \begin{proof} + Close the goal with \(intcomm(a, b)\). + \end{proof} + \end{theorem} +\end{section} +\end{lexlean} diff --git a/tests/fixtures/specialisation/request.toml b/tests/fixtures/specialisation/request.toml new file mode 100644 index 0000000000..bbd8800d50 --- /dev/null +++ b/tests/fixtures/specialisation/request.toml @@ -0,0 +1,50 @@ +spec = "lexlean/wrappers/1" +imports = ["Init", "Std"] + +[[wrapper]] +declaration = "Std.Commutative.comm" +kind = "theorem" +tag = "Nat" +arguments = ["Nat", "(@HAdd.hAdd Nat Nat Nat _)", "_"] + +[[wrapper]] +declaration = "Std.Commutative.comm" +kind = "theorem" +tag = "Int" +arguments = ["Int", "(@HAdd.hAdd Int Int Int _)", "_"] + +[[wrapper]] +declaration = "Std.Commutative.comm" +kind = "theorem" +tag = "UInt32" +arguments = ["UInt32", "(@HAdd.hAdd UInt32 UInt32 UInt32 _)", "_"] + +[[wrapper]] +declaration = "Std.Commutative.comm" +kind = "theorem" +tag = "BitVec32" +arguments = ["(BitVec 32)", "(@HAdd.hAdd (BitVec 32) (BitVec 32) (BitVec 32) _)", "_"] + +[[wrapper]] +declaration = "Std.Associative.assoc" +kind = "theorem" +tag = "Nat" +arguments = ["Nat", "(@HAdd.hAdd Nat Nat Nat _)", "_"] + +[[wrapper]] +declaration = "Std.Associative.assoc" +kind = "theorem" +tag = "Int" +arguments = ["Int", "(@HAdd.hAdd Int Int Int _)", "_"] + +[[wrapper]] +declaration = "Std.Associative.assoc" +kind = "theorem" +tag = "UInt32" +arguments = ["UInt32", "(@HAdd.hAdd UInt32 UInt32 UInt32 _)", "_"] + +[[wrapper]] +declaration = "Std.Associative.assoc" +kind = "theorem" +tag = "BitVec32" +arguments = ["(BitVec 32)", "(@HAdd.hAdd (BitVec 32) (BitVec 32) (BitVec 32) _)", "_"] diff --git a/tests/glossary/GlossaryFixtures.lean b/tests/glossary/GlossaryFixtures.lean new file mode 100644 index 0000000000..1e2a180c5b --- /dev/null +++ b/tests/glossary/GlossaryFixtures.lean @@ -0,0 +1,74 @@ +/- + The Lean module behind `tests/glossary/extraction.json` (GL-19, GL-20). Each + declaration exists to exercise one rule of SPEC.md §13.12: + + Fix.polyId Sort-polymorphic type LLT4101 + Fix.withStrict strict-implicit binder LLT4102 + Fix.projAxiom primitive projection LLT4103 + Fix.strLit string literal LLT4103 + Fix.proofEq Eq at Sort 0 LLT4104 + Fix.add_comm' name outside the grammar LLT4105 + Fix.usesPoly mentions Fix.polyId LLT4106 (root LLT4101) + + and the rest exercise what is translated: a class with an instance argument, + theorems over it, a recursive inductive type with an eliminator, a + Prop-valued predicate of each arity, and numerals. + + Regenerate the extraction with `tests/glossary/regenerate.sh` after editing. +-/ +import Lean +open Lean + +universe u + +namespace Fix + +def polyId {α : Sort u} (a : α) : α := a + +def withStrict (_f : ⦃n : Nat⦄ → n = n → Prop) : Prop := True + +run_cmd Elab.Command.liftCoreM do + let prod := mkApp2 (mkConst ``Prod [0, 0]) (mkConst ``Nat) (mkConst ``Nat) + let body := mkApp3 (mkConst ``Eq [1]) (mkConst ``Nat) (mkProj ``Prod 0 (mkBVar 0)) (mkRawNatLit 0) + addDecl (.axiomDecl { name := `Fix.projAxiom, levelParams := [], type := mkForall `x .default prod body, isUnsafe := false }) + +axiom strLit : "abc".length = 3 + +theorem proofEq (p : Prop) (h₁ h₂ : p) : h₁ = h₂ := rfl + +theorem add_comm' (a b : Nat) : a + b = b + a := Nat.add_comm a b + +theorem usesPoly (a : Nat) : polyId a = a := rfl + +class Scale (α : Type u) where + scale : Nat → α → α + +def twice {α : Type u} [Scale α] (a : α) : α := Scale.scale 2 (Scale.scale 1 a) + +theorem scale_zero {α : Type u} [Scale α] (a : α) (h : ∀ x : α, Scale.scale 0 x = x) : + Scale.scale 0 a = a := h a + +theorem twice_def {α : Type u} [Scale α] (a : α) : + twice a = Scale.scale 2 (Scale.scale 1 a) := rfl + +inductive Tree where + | leaf : Tree + | node (left right : Tree) (label : Nat) : Tree + +def Tree.size : Tree → Nat + | .leaf => 0 + | .node l r _ => l.size + r.size + 1 + +theorem Tree.size_leaf : Tree.leaf.size = 0 := rfl + +def Small (n : Nat) : Prop := n < 10 + +def Between (a b : Nat) : Prop := a < b + +def Always : Prop := True + +theorem small_two : Small 2 := by unfold Small; decide + +theorem small_two_between : Between 2 3 := by unfold Between; decide + +end Fix diff --git a/tests/glossary/extraction.json b/tests/glossary/extraction.json new file mode 100644 index 0000000000..8724f3088c --- /dev/null +++ b/tests/glossary/extraction.json @@ -0,0 +1 @@ +{"declarations":[{"class":"type","eliminator":{"cases":"HAdd.casesOn","constructors":[{"fields":["hAdd"],"induction_hypotheses":[],"name":"HAdd.mk"}],"induction":"HAdd.rec"},"erased":1,"kind":"inductive","module":"Init.Prelude","name":"HAdd","refs":[],"requested":false,"signature":"(pi ((explicit a (sort (type u))) (explicit b (sort (type v))) (explicit g (sort (type w)))) (sort (type (max (max u v) w))))","universes":["u","v","w"]},{"class":"type","eliminator":{"cases":"Nat.casesAuxOn","constructors":[{"fields":[],"induction_hypotheses":[],"name":"Nat.zero"},{"fields":["n"],"induction_hypotheses":["nih"],"name":"Nat.succ"}],"induction":"Nat.recAux"},"erased":0,"kind":"inductive","module":"Init.Prelude","name":"Nat","refs":[],"requested":false,"signature":"(sort (type 0))","universes":[]},{"class":"predicate","erased":0,"kind":"definition","module":"GlossaryFixtures","name":"Fix.Always","refs":[],"requested":true,"signature":"(sort prop)","universes":[]},{"class":"predicate","erased":0,"kind":"definition","module":"GlossaryFixtures","name":"Fix.Between","refs":["Nat"],"requested":true,"signature":"(pi ((explicit a (const @Nat)) (explicit b (const @Nat))) (sort prop))","universes":[]},{"class":"type","eliminator":{"cases":"Fix.Scale.casesOn","constructors":[{"fields":["scale"],"induction_hypotheses":[],"name":"Fix.Scale.mk"}],"induction":"Fix.Scale.rec"},"erased":0,"kind":"inductive","module":"GlossaryFixtures","name":"Fix.Scale","refs":[],"requested":true,"signature":"(pi ((explicit a (sort (type u)))) (sort (type u)))","universes":["u"]},{"class":"predicate","erased":0,"kind":"definition","module":"GlossaryFixtures","name":"Fix.Small","refs":["Nat"],"requested":true,"signature":"(pi ((explicit n (const @Nat))) (sort prop))","universes":[]},{"class":"type","eliminator":{"cases":"Fix.Tree.casesOn","constructors":[{"fields":[],"induction_hypotheses":[],"name":"Fix.Tree.leaf"},{"fields":["left","right","label"],"induction_hypotheses":["leftih","rightih"],"name":"Fix.Tree.node"}],"induction":"Fix.Tree.rec"},"erased":0,"kind":"inductive","module":"GlossaryFixtures","name":"Fix.Tree","refs":[],"requested":true,"signature":"(sort (type 0))","universes":[]},{"kind":"theorem","module":"GlossaryFixtures","name":"Fix.add_comm'","refusal":{"detail":"the Lean name is outside the conservative ASCII grammar","reason":"name-not-conservative"},"requested":true},{"kind":"definition","module":"GlossaryFixtures","name":"Fix.polyId","refusal":{"detail":"Sort u is neither Prop nor Type u","reason":"sort-polymorphic"},"requested":true},{"kind":"axiom","module":"GlossaryFixtures","name":"Fix.projAxiom","refusal":{"detail":"Expr.proj is outside LSE","reason":"primitive-projection"},"requested":true},{"kind":"theorem","module":"GlossaryFixtures","name":"Fix.proofEq","refusal":{"detail":"Eq at level 0 is not the Type-level core entry","reason":"core-level-mismatch"},"requested":true},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.scale_zero","refs":["Fix.Scale","Fix.Scale.scale"],"requested":true,"signature":"(pi ((implicit a (sort (type u))) (instance x (app (const @Fix.Scale (u)) (local a))) (explicit a1 (local a)) (explicit h (pi ((explicit x1 (local a))) (app (const lexlean.core::eq) (app (const @Fix.Scale.scale (u)) (nat 0) (local x1)) (local x1))))) (app (const lexlean.core::eq) (app (const @Fix.Scale.scale (u)) (nat 0) (local a1)) (local a1)))","universes":["u"]},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.small_two","refs":["Fix.Small"],"requested":true,"signature":"(app (const @Fix.Small) (nat 2))","universes":[]},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.small_two_between","refs":["Fix.Between"],"requested":true,"signature":"(app (const @Fix.Between) (nat 2) (nat 3))","universes":[]},{"kind":"axiom","module":"GlossaryFixtures","name":"Fix.strLit","refusal":{"detail":"string literals are outside LSE","reason":"string-literal"},"requested":true},{"class":"term","erased":0,"kind":"definition","module":"GlossaryFixtures","name":"Fix.twice","refs":["Fix.Scale"],"requested":true,"signature":"(pi ((implicit a (sort (type u))) (instance x (app (const @Fix.Scale (u)) (local a))) (explicit a1 (local a))) (local a))","universes":["u"]},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.twice_def","refs":["Fix.Scale","Fix.twice","Fix.Scale.scale"],"requested":true,"signature":"(pi ((implicit a (sort (type u))) (instance x (app (const @Fix.Scale (u)) (local a))) (explicit a1 (local a))) (app (const lexlean.core::eq) (app (const @Fix.twice (u)) (local a1)) (app (const @Fix.Scale.scale (u)) (nat 2) (app (const @Fix.Scale.scale (u)) (nat 1) (local a1)))))","universes":["u"]},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.usesPoly","refs":["Nat","Fix.polyId"],"requested":true,"signature":"(pi ((explicit a (const @Nat))) (app (const lexlean.core::eq) (app (const @Fix.polyId (1)) (local a)) (local a)))","universes":[]},{"kind":"definition","module":"GlossaryFixtures","name":"Fix.withStrict","refusal":{"detail":"a ⦃strict implicit⦄ binder has no LSE binder mode","reason":"strict-implicit-binder"},"requested":true},{"class":"term","erased":1,"kind":"definition","module":"Init.Prelude","name":"HAdd.hAdd","refs":["HAdd"],"requested":false,"signature":"(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (instance self (app (const @HAdd (u v w)) (local a) (local b) (local g))) (explicit x (local a)) (explicit x1 (local b))) (local g))","universes":["u","v","w"]},{"class":"term","erased":1,"kind":"constructor","module":"Init.Prelude","name":"HAdd.mk","refs":["HAdd"],"requested":false,"signature":"(pi ((implicit a (sort (type u))) (implicit b (sort (type v))) (implicit g (sort (type w))) (explicit hAdd (pi ((explicit x (local a)) (explicit x1 (local b))) (local g)))) (app (const @HAdd (u v w)) (local a) (local b) (local g)))","universes":["u","v","w"]},{"class":"term","erased":0,"kind":"constructor","module":"Init.Prelude","name":"Nat.succ","refs":["Nat"],"requested":false,"signature":"(pi ((explicit n (const @Nat))) (const @Nat))","universes":[]},{"class":"term","erased":0,"kind":"constructor","module":"Init.Prelude","name":"Nat.zero","refs":["Nat"],"requested":false,"signature":"(const @Nat)","universes":[]},{"kind":"definition","module":"Init.SizeOf","name":"SizeOf.sizeOf","refusal":{"detail":"Sort u is neither Prop nor Type u","reason":"sort-polymorphic"},"requested":false},{"name":"Fix.Scale.casesOn","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"class":"term","erased":0,"kind":"definition","module":"GlossaryFixtures","name":"Fix.Scale.ctorIdx","refs":["Nat","Fix.Scale"],"requested":true,"signature":"(pi ((implicit a (sort (type u))) (explicit x (app (const @Fix.Scale (u)) (local a)))) (const @Nat))","universes":["u"]},{"class":"term","erased":0,"kind":"constructor","module":"GlossaryFixtures","name":"Fix.Scale.mk","refs":["Nat","Fix.Scale"],"requested":true,"signature":"(pi ((implicit a (sort (type u))) (explicit scale (pi ((explicit x (const @Nat)) (explicit x1 (local a))) (local a)))) (app (const @Fix.Scale (u)) (local a)))","universes":["u"]},{"name":"Fix.Scale.noConfusion","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"kind":"definition","module":"GlossaryFixtures","name":"Fix.Scale.noConfusionType","refusal":{"detail":"Sort u_1 is neither Prop nor Type u","reason":"sort-polymorphic"},"requested":true},{"name":"Fix.Scale.rec","refusal":{"detail":"a recursor declaration is not exposed as an entry","reason":"excluded-recursor"},"requested":false},{"name":"Fix.Scale.recOn","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"class":"term","erased":0,"kind":"definition","module":"GlossaryFixtures","name":"Fix.Scale.scale","refs":["Nat","Fix.Scale"],"requested":true,"signature":"(pi ((implicit a (sort (type u))) (instance self (app (const @Fix.Scale (u)) (local a))) (explicit x (const @Nat)) (explicit x1 (local a))) (local a))","universes":["u"]},{"name":"Fix.Tree._sizeOf_1","refusal":{"detail":"a internal declaration is not exposed as an entry","reason":"excluded-internal"},"requested":false},{"name":"Fix.Tree._sizeOf_inst","refusal":{"detail":"a internal declaration is not exposed as an entry","reason":"excluded-internal"},"requested":false},{"name":"Fix.Tree.below","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"name":"Fix.Tree.brecOn","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"name":"Fix.Tree.casesOn","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"name":"Fix.Tree.ctorElim","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"kind":"definition","module":"GlossaryFixtures","name":"Fix.Tree.ctorElimType","refusal":{"detail":"Sort u is neither Prop nor Type u","reason":"sort-polymorphic"},"requested":true},{"class":"term","erased":0,"kind":"definition","module":"GlossaryFixtures","name":"Fix.Tree.ctorIdx","refs":["Nat","Fix.Tree"],"requested":true,"signature":"(pi ((explicit x (const @Fix.Tree))) (const @Nat))","universes":[]},{"class":"term","erased":0,"kind":"constructor","module":"GlossaryFixtures","name":"Fix.Tree.leaf","refs":["Fix.Tree"],"requested":true,"signature":"(const @Fix.Tree)","universes":[]},{"name":"Fix.Tree.noConfusion","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"kind":"definition","module":"GlossaryFixtures","name":"Fix.Tree.noConfusionType","refusal":{"detail":"Sort u is neither Prop nor Type u","reason":"sort-polymorphic"},"requested":true},{"class":"term","erased":0,"kind":"constructor","module":"GlossaryFixtures","name":"Fix.Tree.node","refs":["Nat","Fix.Tree"],"requested":true,"signature":"(pi ((explicit left (const @Fix.Tree)) (explicit right (const @Fix.Tree)) (explicit label (const @Nat))) (const @Fix.Tree))","universes":[]},{"name":"Fix.Tree.rec","refusal":{"detail":"a recursor declaration is not exposed as an entry","reason":"excluded-recursor"},"requested":false},{"name":"Fix.Tree.recOn","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"class":"term","erased":0,"kind":"definition","module":"GlossaryFixtures","name":"Fix.Tree.size","refs":["Nat","Fix.Tree"],"requested":true,"signature":"(pi ((explicit x (const @Fix.Tree))) (const @Nat))","universes":[]},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.Tree.size_leaf","refs":["Fix.Tree.leaf","Fix.Tree.size"],"requested":true,"signature":"(app (const lexlean.core::eq) (app (const @Fix.Tree.size) (const @Fix.Tree.leaf)) (nat 0))","universes":[]},{"name":"Fix.Scale.mk._flat_ctor","refusal":{"detail":"a internal declaration is not exposed as an entry","reason":"excluded-internal"},"requested":false},{"name":"Fix.Scale.mk.noConfusion","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"kind":"theorem","module":"GlossaryFixtures","name":"Fix.Tree.brecOn.eq","refusal":{"detail":"Sort u is neither Prop nor Type u","reason":"sort-polymorphic"},"requested":true},{"kind":"definition","module":"GlossaryFixtures","name":"Fix.Tree.brecOn.go","refusal":{"detail":"Sort u is neither Prop nor Type u","reason":"sort-polymorphic"},"requested":true},{"name":"Fix.Tree.leaf.elim","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.Tree.leaf.sizeOf_spec","refs":["SizeOf.sizeOf","Fix.Tree.leaf"],"requested":true,"signature":"(app (const lexlean.core::eq) (app (const @SizeOf.sizeOf (1)) (const @Fix.Tree.leaf)) (nat 1))","universes":[]},{"name":"Fix.Tree.node.elim","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.Tree.node.inj","refs":["Nat","Fix.Tree","Fix.Tree.node"],"requested":true,"signature":"(pi ((implicit left (const @Fix.Tree)) (implicit right (const @Fix.Tree)) (implicit label (const @Nat)) (implicit left1 (const @Fix.Tree)) (implicit right1 (const @Fix.Tree)) (implicit label1 (const @Nat)) (explicit x (app (const lexlean.core::eq) (app (const @Fix.Tree.node) (local left) (local right) (local label)) (app (const @Fix.Tree.node) (local left1) (local right1) (local label1))))) (app (const lexlean.core::land) (app (const lexlean.core::eq) (local left) (local left1)) (app (const lexlean.core::land) (app (const lexlean.core::eq) (local right) (local right1)) (app (const lexlean.core::eq) (local label) (local label1)))))","universes":[]},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.Tree.node.injEq","refs":["Nat","Fix.Tree","Fix.Tree.node"],"requested":true,"signature":"(pi ((explicit left (const @Fix.Tree)) (explicit right (const @Fix.Tree)) (explicit label (const @Nat)) (explicit left1 (const @Fix.Tree)) (explicit right1 (const @Fix.Tree)) (explicit label1 (const @Nat))) (app (const lexlean.core::eq) (app (const lexlean.core::eq) (app (const @Fix.Tree.node) (local left) (local right) (local label)) (app (const @Fix.Tree.node) (local left1) (local right1) (local label1))) (app (const lexlean.core::land) (app (const lexlean.core::eq) (local left) (local left1)) (app (const lexlean.core::land) (app (const lexlean.core::eq) (local right) (local right1)) (app (const lexlean.core::eq) (local label) (local label1))))))","universes":[]},{"name":"Fix.Tree.node.noConfusion","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false},{"class":"proof","erased":0,"kind":"theorem","module":"GlossaryFixtures","name":"Fix.Tree.node.sizeOf_spec","refs":["Nat","Fix.Tree","HAdd.hAdd","SizeOf.sizeOf","Fix.Tree.node"],"requested":true,"signature":"(pi ((explicit left (const @Fix.Tree)) (explicit right (const @Fix.Tree)) (explicit label (const @Nat))) (app (const lexlean.core::eq) (app (const @SizeOf.sizeOf (1)) (app (const @Fix.Tree.node) (local left) (local right) (local label))) (app (const @HAdd.hAdd (0 0 0)) (app (const @HAdd.hAdd (0 0 0)) (app (const @HAdd.hAdd (0 0 0)) (nat 1) (app (const @SizeOf.sizeOf (1)) (local left))) (app (const @SizeOf.sizeOf (1)) (local right))) (app (const @SizeOf.sizeOf (1)) (local label)))))","universes":[]},{"name":"Fix.Tree.size._f","refusal":{"detail":"a internal declaration is not exposed as an entry","reason":"excluded-internal"},"requested":false},{"name":"Fix.Tree.size._sunfold","refusal":{"detail":"a internal declaration is not exposed as an entry","reason":"excluded-internal"},"requested":false},{"name":"Fix.Tree.size._unsafe_rec","refusal":{"detail":"a internal declaration is not exposed as an entry","reason":"excluded-internal"},"requested":false},{"name":"Fix.Tree.size.match_1","refusal":{"detail":"a auxiliary declaration is not exposed as an entry","reason":"excluded-auxiliary"},"requested":false}],"excluded":{"auxiliary":14,"internal":6,"recursor":2}} diff --git a/tests/glossary/regenerate.sh b/tests/glossary/regenerate.sh new file mode 100644 index 0000000000..c124accaa1 --- /dev/null +++ b/tests/glossary/regenerate.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# Regenerate tests/glossary/extraction.json from GlossaryFixtures.lean with the +# pinned Lean. The conformance cases GL-19, GL-20, and CL-25 compare a fresh +# extraction with this file when the pinned toolchain is available, so a change +# to the extractor or to the fixtures shows up as a diff here. +set -euo pipefail +here="$(cd "$(dirname "$0")" && pwd)" +root="$(cd "$here/../.." && pwd)" +work="$(mktemp -d)" +trap 'rm -rf "$work"' EXIT +cd "$root" +cp "$root/lean-toolchain" "$work/lean-toolchain" +cp "$here/GlossaryFixtures.lean" "$work/GlossaryFixtures.lean" +cp "$root/crates/lexlean/lean/GlossaryExtract.lean" "$work/GlossaryExtract.lean" +(cd "$work" && lean -o GlossaryFixtures.olean GlossaryFixtures.lean) +(cd "$work" && LEAN_PATH="$work" lean --run GlossaryExtract.lean -- --modules GlossaryFixtures) \ + > "$here/extraction.json" +echo "wrote $here/extraction.json" diff --git a/tooling/mathlib-speed/closure-replay/.gitignore b/tooling/mathlib-speed/closure-replay/.gitignore new file mode 100644 index 0000000000..01f8cdb637 --- /dev/null +++ b/tooling/mathlib-speed/closure-replay/.gitignore @@ -0,0 +1 @@ +.lake/ diff --git a/tooling/mathlib-speed/closure-replay/ClosureReplay.lean b/tooling/mathlib-speed/closure-replay/ClosureReplay.lean new file mode 100644 index 0000000000..693894f944 --- /dev/null +++ b/tooling/mathlib-speed/closure-replay/ClosureReplay.lean @@ -0,0 +1,133 @@ +import Lean.CoreM +import Lean.Replay +import Lean.Util.FoldConsts + +/-! +# Declaration-closure replay (issue #337 prototype) + +`leanchecker` replays whole modules: it takes module names and has no +declaration filter. `Lean.Environment.replay` is already dependency-driven, +though: it sends each constant of the map it is given to the kernel after the +constants that constant mentions. So the declaration closure is a map built +from the constants a project mentions, their mentions, and so on. + + closure-replay --module M replay M's own constants and the closure of what they mention + closure-replay --import A,B D1 D2 replay the closure of declarations D1, D2 of A, B + ... --all replay every constant the imports load + (what `leanchecker --fresh` does), same code path + ... --list print the modules the imports load, one per line, and stop + +Every constant is read from the most private part of its module (the part that +carries proof bodies), as `leanchecker` does. This is a same-kernel replay, not +an independent checker. +-/ + +open Lean + +/-- The parts of a module's `.olean`, the most private last. -/ +def readParts (module : Name) : IO (Array (ModuleData × CompactedRegion)) := do + let mFile ← findOLean module + unless (← mFile.pathExists) do + throw <| IO.userError s!"object file '{mFile}' of module {module} does not exist" + let mut fnames := #[mFile] + let sFile := OLeanLevel.server.adjustFileName mFile + if (← sFile.pathExists) then + fnames := fnames.push sFile + let pFile := OLeanLevel.private.adjustFileName mFile + if (← pFile.pathExists) then + fnames := fnames.push pFile + readModuleDataParts fnames + +structure Index where + modules : NameSet := {} + constants : Std.HashMap Name ConstantInfo := {} + +/-- Index the constants of `module` and of everything it imports. -/ +partial def indexModule (module : Name) : StateT Index IO Unit := do + if (← get).modules.contains module then return + modify fun s => { s with modules := s.modules.insert module } + let parts ← readParts module + if h : parts.size = 0 then throw <| IO.userError s!"failed to read module data of {module}" else + for imp in parts[0].1.imports do + indexModule imp.module + let last := parts[parts.size - 1].1 + for n in last.constNames, ci in last.constants do + modify fun s => { s with constants := s.constants.insert n ci } + +/-- The constants reachable from `roots` through what they mention, with the +members of an inductive family and the type a constructor or recursor belongs +to, which `Environment.replay` reads from its map. -/ +def closureOf (index : Std.HashMap Name ConstantInfo) (roots : Array Name) : + Std.HashMap Name ConstantInfo × Array Name := Id.run do + let mut out : Std.HashMap Name ConstantInfo := {} + let mut missing : Array Name := #[] + let mut pending := roots + while true do + let some n := pending.back? | break + pending := pending.pop + if out.contains n then continue + let some ci := index[n]? | missing := missing.push n; continue + out := out.insert n ci + for u in ci.getUsedConstantsAsSet do + unless out.contains u do pending := pending.push u + match ci with + | .inductInfo i => pending := (pending ++ i.all.toArray) ++ i.ctors.toArray + | .ctorInfo c => pending := pending.push c.induct + | .recInfo r => pending := pending ++ r.all.toArray + | _ => pure () + return (out, missing) + +def splitCommas (s : String) : Array Name := + (s.splitOn ",").toArray.filterMap fun p => if p.isEmpty then none else some p.toName + +unsafe def main (args : List String) : IO UInt32 := do + initSearchPath (← findSysroot) + let t0 ← IO.monoMsNow + let mut mode : Option (Name ⊕ Array Name) := none + let mut all := false + let mut list := false + let mut decls : Array Name := #[] + let mut rest := args + while true do + match rest with + | "--module" :: m :: tl => mode := some (.inl m.toName); rest := tl + | "--import" :: ms :: tl => mode := some (.inr (splitCommas ms)); rest := tl + | "--all" :: tl => all := true; rest := tl + | "--list" :: tl => list := true; rest := tl + | d :: tl => decls := decls.push d.toName; rest := tl + | [] => break + let (index, roots) ← match mode with + | none => throw <| IO.userError "usage: closure-replay (--module M | --import A,B DECL...) [--all]" + | some (.inl m) => + let parts ← readParts m + if h : parts.size = 0 then throw <| IO.userError s!"failed to read module data of {m}" else + let idx ← (parts[0].1.imports.forM fun imp => indexModule imp.module).run {} |>.map (·.2) + let last := parts[parts.size - 1].1 + -- The module's own constants join the map, so they are replayed with what they mention. + let mut idx := idx + for n in last.constNames, ci in last.constants do + idx := { idx with constants := idx.constants.insert n ci } + pure (idx, last.constNames) + | some (.inr ms) => + let idx ← (ms.forM indexModule).run {} |>.map (·.2) + pure (idx, decls) + if list then + for m in index.modules.toArray.qsort Name.lt do IO.println m + return 0 + let t1 ← IO.monoMsNow + let (closure, missing) := + if all then (index.constants, #[]) else closureOf index.constants roots + let t2 ← IO.monoMsNow + IO.println s!"modules={index.modules.size} indexed={index.constants.size} roots={roots.size} closure={closure.size} missing={missing.size}" + unless missing.isEmpty do + IO.eprintln s!"closure-replay: not in the loaded modules: {missing.toList.take 5}" + return 1 + let env ← mkEmptyEnvironment + try + discard <| env.replay closure + catch e => + IO.eprintln s!"closure-replay found a problem: {e}" + return 1 + let t3 ← IO.monoMsNow + IO.println s!"index_ms={t1 - t0} closure_ms={t2 - t1} replay_ms={t3 - t2}" + return 0 diff --git a/tooling/mathlib-speed/closure-replay/lake-manifest.json b/tooling/mathlib-speed/closure-replay/lake-manifest.json new file mode 100644 index 0000000000..6bc5252f62 --- /dev/null +++ b/tooling/mathlib-speed/closure-replay/lake-manifest.json @@ -0,0 +1,6 @@ +{"version": "1.2.0", + "packagesDir": ".lake/packages", + "packages": [], + "name": "closure_replay", + "lakeDir": ".lake", + "fixedToolchain": false} diff --git a/tooling/mathlib-speed/closure-replay/lakefile.toml b/tooling/mathlib-speed/closure-replay/lakefile.toml new file mode 100644 index 0000000000..2dce129ecb --- /dev/null +++ b/tooling/mathlib-speed/closure-replay/lakefile.toml @@ -0,0 +1,7 @@ +name = "closure_replay" +version = "0.1.0" +defaultTargets = ["closure-replay"] + +[[lean_exe]] +name = "closure-replay" +root = "ClosureReplay" diff --git a/tooling/mathlib-speed/closure-replay/lean-toolchain b/tooling/mathlib-speed/closure-replay/lean-toolchain new file mode 100644 index 0000000000..2b61957be5 --- /dev/null +++ b/tooling/mathlib-speed/closure-replay/lean-toolchain @@ -0,0 +1 @@ +leanprover/lean4:v4.32.1 diff --git a/tooling/mathlib-speed/mathlib-env.sh b/tooling/mathlib-speed/mathlib-env.sh new file mode 100644 index 0000000000..8d8b227800 --- /dev/null +++ b/tooling/mathlib-speed/mathlib-env.sh @@ -0,0 +1,7 @@ +# source me: the pinned toolchain first on PATH and LEAN_PATH over the prebuilt Mathlib +# and its packages (read only; this never builds or fetches anything). +MATHLIB=${MATHLIB:-$HOME/mathlib-pinned} +export PATH="$HOME/.elan/toolchains/leanprover--lean4---v4.32.1/bin:$PATH" +LP="$MATHLIB/.lake/build/lib/lean" +for p in "$MATHLIB"/.lake/packages/*/; do LP="$LP:${p}.lake/build/lib/lean"; done +export LEAN_PATH="$LP" diff --git a/tooling/mathlib-speed/measure-import.sh b/tooling/mathlib-speed/measure-import.sh new file mode 100755 index 0000000000..007ed0c184 --- /dev/null +++ b/tooling/mathlib-speed/measure-import.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# measure-import.sh RUNS LABEL DECL MODULE... +# Elaborates a probe that imports MODULE... and mentions DECL, RUNS times, and prints one +# row per run (see measure.sh): label, wall seconds, peak RSS MiB, exit code. The first run +# is cold for the page cache; report runs 2.. as warm. `lean` and LEAN_PATH come from the +# caller, which pins them (the toolchain bin first on PATH, the Mathlib build on LEAN_PATH). +set -u +here=$(cd "$(dirname "$0")" && pwd) +runs=$1; label=$2; decl=$3; shift 3 +probe=$(mktemp --suffix=.lean) +{ for m in "$@"; do echo "import $m"; done; echo "#check @$decl"; } >"$probe" +for i in $(seq 1 "$runs"); do + MEASURE_LOG=/dev/null "$here/measure.sh" "$label#$i" lean "$probe" +done +rm -f "$probe" diff --git a/tooling/mathlib-speed/measure-replay.sh b/tooling/mathlib-speed/measure-replay.sh new file mode 100755 index 0000000000..4239dd58bc --- /dev/null +++ b/tooling/mathlib-speed/measure-replay.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# measure-replay.sh PROBE_MODULE IMPORTED_MODULE +# Replays the same dependency under each strategy and prints one row each (see measure.sh). +# PROBE_MODULE is compiled (its .olean is on LEAN_PATH); IMPORTED_MODULE is the one Mathlib +# module it imports. Strategies: +# own leanchecker PROBE the project module alone (today, SPEC 22.4) +# module leanchecker IMPORTED one whole Mathlib module (its own constants) +# modules-all leanchecker whole-module over the import closure +# fresh leanchecker --fresh IMPORTED every constant IMPORTED loads, into a fresh env +# closure closure-replay --module PROBE only the constants PROBE (transitively) mentions +set -u +here=$(cd "$(dirname "$0")" && pwd) +CR=$here/closure-replay/.lake/build/bin/closure-replay +probe=$1; imported=$2 +export HEAVY_MEM=${HEAVY_MEM:-7000M} +mods=$("$CR" --import "$imported" --list) +echo "# $probe imports $imported: $(echo "$mods" | wc -l) modules in the import closure" +"$here/measure.sh" "$probe/own" leanchecker "$probe" +MEASURE_LOG=/dev/stderr "$here/measure.sh" "$probe/closure" "$CR" --module "$probe" +"$here/measure.sh" "$probe/module" leanchecker "$imported" +[ "${SKIP_SLOW:-0}" = 1 ] || { + "$here/measure.sh" "$probe/modules-all" timeout "${LIMIT:-1500}" leanchecker $mods + "$here/measure.sh" "$probe/fresh" timeout "${LIMIT:-1500}" leanchecker --fresh "$imported" +} diff --git a/tooling/mathlib-speed/measure.sh b/tooling/mathlib-speed/measure.sh new file mode 100755 index 0000000000..fe96f4592a --- /dev/null +++ b/tooling/mathlib-speed/measure.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# measure.sh LABEL CMD... -- run CMD under /usr/bin/time -v (through $RUNNER, default +# ~/bin/heavy, the memory-capped lane) and print one tab-separated row: +# LABEL wall_seconds peak_rss_MiB exit_code +# Peak RSS is the largest resident set of the process tree, as /usr/bin/time reports it. +# stdout/stderr of CMD go to $MEASURE_LOG (default: /dev/null). +set -u +label=$1; shift +runner=${RUNNER:-$HOME/bin/heavy} +tf=$(mktemp) +"$runner" /usr/bin/time -v -o "$tf" "$@" >"${MEASURE_LOG:-/dev/null}" 2>&1 +rc=$? +wall=$(sed -n "s/.*Elapsed (wall clock) time (h:mm:ss or m:ss): //p" "$tf" | awk -F: "{ if (NF==3) print \$1*3600+\$2*60+\$3; else print \$1*60+\$2 }") +kb=$(sed -n "s/.*Maximum resident set size (kbytes): //p" "$tf") +rm -f "$tf" +printf "%s\t%s\t%s\t%s\n" "$label" "$wall" "$((kb / 1024))" "$rc" diff --git a/tooling/mathlib-speed/planted-defect.sh b/tooling/mathlib-speed/planted-defect.sh new file mode 100755 index 0000000000..2df40a9788 --- /dev/null +++ b/tooling/mathlib-speed/planted-defect.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# planted-defect.sh -- shows what closure replay covers that `leanchecker MODULE` does not. +# Evil adds a false theorem with kernel checking switched off; UsesEvil imports it and uses it. +# Expected: leanchecker UsesEvil exits 0 (an import is trusted), leanchecker Evil exits nonzero, +# closure-replay exits nonzero for both. Exits nonzero if any of that does not hold. +set -u +here=$(cd "$(dirname "$0")" && pwd) +export PATH="$HOME/.elan/toolchains/leanprover--lean4---v4.32.1/bin:$PATH" +CR=$here/closure-replay/.lake/build/bin/closure-replay +work=$(mktemp -d) +cp "$here/probes/Evil.lean" "$here/probes/UsesEvil.lean" "$work/" +cd "$work" && export LEAN_PATH=$work +lean -R . -o Evil.olean Evil.lean && lean -R . -o UsesEvil.olean UsesEvil.lean || exit 2 +ok=0 +leanchecker UsesEvil >/dev/null 2>&1; [ $? -eq 0 ] || { echo "UNEXPECTED: leanchecker UsesEvil failed"; ok=1; } +leanchecker Evil >/dev/null 2>&1; [ $? -ne 0 ] || { echo "UNEXPECTED: leanchecker Evil passed"; ok=1; } +"$CR" --module UsesEvil >/dev/null 2>&1; [ $? -ne 0 ] || { echo "UNEXPECTED: closure-replay UsesEvil passed"; ok=1; } +"$CR" --module Evil >/dev/null 2>&1; [ $? -ne 0 ] || { echo "UNEXPECTED: closure-replay Evil passed"; ok=1; } +[ $ok -eq 0 ] && echo "planted defect: leanchecker UsesEvil passes, closure-replay catches it" +rm -rf "$work" +exit $ok diff --git a/tooling/mathlib-speed/probes/Evil.lean b/tooling/mathlib-speed/probes/Evil.lean new file mode 100644 index 0000000000..9309085316 --- /dev/null +++ b/tooling/mathlib-speed/probes/Evil.lean @@ -0,0 +1,9 @@ +import Lean +open Lean Elab Command + +-- A declaration the kernel never saw: the elaborator is told to skip kernel checking, which +-- is the "environment hacking" `leanchecker` exists to detect. +run_cmd liftCoreM do + let decl := Declaration.thmDecl + { name := `Evil.bogus, levelParams := [], type := mkConst ``False, value := mkConst ``True.intro } + withOptions (·.setBool `debug.skipKernelTC true) (addDecl decl) diff --git a/tooling/mathlib-speed/probes/ProbeA.lean b/tooling/mathlib-speed/probes/ProbeA.lean new file mode 100644 index 0000000000..62c0c7293e --- /dev/null +++ b/tooling/mathlib-speed/probes/ProbeA.lean @@ -0,0 +1,4 @@ +import Mathlib.Order.Defs.PartialOrder + +theorem probeA {α : Type} [PartialOrder α] (a b : α) (h1 : a ≤ b) (h2 : b ≤ a) : a = b := + le_antisymm h1 h2 diff --git a/tooling/mathlib-speed/probes/ProbeB.lean b/tooling/mathlib-speed/probes/ProbeB.lean new file mode 100644 index 0000000000..42143205cd --- /dev/null +++ b/tooling/mathlib-speed/probes/ProbeB.lean @@ -0,0 +1,3 @@ +import Mathlib.Data.Nat.Prime.Defs + +theorem probeB (p : Nat) (h : Nat.Prime p) : 2 ≤ p := h.two_le diff --git a/tooling/mathlib-speed/probes/ProbeC.lean b/tooling/mathlib-speed/probes/ProbeC.lean new file mode 100644 index 0000000000..7b78c62ae0 --- /dev/null +++ b/tooling/mathlib-speed/probes/ProbeC.lean @@ -0,0 +1,4 @@ +import Mathlib.Analysis.Real.Sqrt + +theorem probeC (x y : Real) (hx : 0 ≤ x) (h : x < y) : Real.sqrt x < Real.sqrt y := + Real.sqrt_lt_sqrt hx h diff --git a/tooling/mathlib-speed/probes/ProbeD.lean b/tooling/mathlib-speed/probes/ProbeD.lean new file mode 100644 index 0000000000..70d56048c5 --- /dev/null +++ b/tooling/mathlib-speed/probes/ProbeD.lean @@ -0,0 +1,4 @@ +import Mathlib.Algebra.BigOperators.Group.Finset.Sigma + +theorem probeD (s t : Finset Nat) (f : Nat → Nat → Nat) : + (∑ x ∈ s, ∑ y ∈ t, f x y) = ∑ y ∈ t, ∑ x ∈ s, f x y := Finset.sum_comm diff --git a/tooling/mathlib-speed/probes/UsesEvil.lean b/tooling/mathlib-speed/probes/UsesEvil.lean new file mode 100644 index 0000000000..12e3163421 --- /dev/null +++ b/tooling/mathlib-speed/probes/UsesEvil.lean @@ -0,0 +1,3 @@ +import Evil + +theorem usesEvil : False := Evil.bogus diff --git a/tooling/mathlib-speed/repro-check.sh b/tooling/mathlib-speed/repro-check.sh new file mode 100755 index 0000000000..657dc51ce3 --- /dev/null +++ b/tooling/mathlib-speed/repro-check.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +# repro-check.sh SRC_ROOT MODULE DEPS_LEAN_PATH +# Builds MODULE (a dotted name; its source is SRC_ROOT/.lean) twice, each time from an +# empty output directory and a fresh copy of that one source file, with `lean -R` so no +# absolute path reaches the compiler, then compares every artifact byte for byte. LEAN_OPTS +# (e.g. "-DmaxSynthPendingDepth=3") is passed to `lean`. PACKAGE, when set, is the Lake package +# name Lake hands the compiler in its `--setup` file; it is recorded in the .olean, so a build +# meant to match a Lake build needs it. REFERENCE_DIR, when set, is a build root (a Lake build, +# a fetched cache) whose artifacts for MODULE are compared too. DEPS_LEAN_PATH holds the +# prebuilt oleans of the module's imports. Prints one line per artifact. +set -eu +src=$1; mod=$2; deps=$3 +rel=$(echo "$mod" | tr . /) +work=$(mktemp -d) +for run in a b; do + mkdir -p "$work/$run/src/$(dirname "$rel")" "$work/$run/out/$(dirname "$rel")" + cp "$src/$rel.lean" "$work/$run/src/$rel.lean" + setup="" + if [ -n "${PACKAGE:-}" ]; then + setup="--setup=$work/$run/setup.json" + printf '{"name":"%s","package":"%s","isModule":true,"importArts":{},"dynlibs":[],"plugins":[],"options":{}}' "$mod" "$PACKAGE" >"$work/$run/setup.json" + fi + (cd "$work/$run/src" && LEAN_PATH="$deps" lean ${LEAN_OPTS:-} $setup -R . -o "$work/$run/out/$rel.olean" \ + -i "$work/$run/out/$rel.ilean" -c "$work/$run/out/$rel.c" "$rel.lean") +done +rc=0 +for f in $(cd "$work/a/out" && find . -type f | sort); do + if cmp -s "$work/a/out/$f" "$work/b/out/$f"; then echo "identical $f $(sha256sum < "$work/a/out/$f" | cut -c1-16)" + else echo "DIFFERENT $f"; rc=1; fi +done +if [ -n "${REFERENCE_DIR:-}" ]; then + for f in $(cd "$work/a/out" && find . -type f -not -name "*.c" | sort); do + if cmp -s "$work/a/out/$f" "$REFERENCE_DIR/$f"; then echo "matches-reference $f" + else echo "DIFFERS-FROM-REFERENCE $f"; rc=1; fi + done +fi +[ "${KEEP:-0}" = 1 ] && echo "kept $work" || rm -rf "$work" +exit $rc diff --git a/xtask/src/audit.rs b/xtask/src/audit.rs index d75564df06..ce6499dd19 100644 --- a/xtask/src/audit.rs +++ b/xtask/src/audit.rs @@ -7,7 +7,14 @@ use std::path::{Path, PathBuf}; use crate::Fail; -const SKIP_DIRS: [&str; 5] = ["target", ".git", ".lexlean", "expected", "node_modules"]; +const SKIP_DIRS: [&str; 6] = [ + "target", + ".git", + ".lake", + ".lexlean", + "expected", + "node_modules", +]; #[cfg(test)] mod tests; @@ -900,6 +907,7 @@ pub fn audit_deferral(root: &Path, model: &repo_model::Model) -> Result<(), Fail "schemas", "features", "examples", + "demos", "model", "tests", "lean", @@ -1140,6 +1148,7 @@ pub fn audit_errors(root: &Path, model: &repo_model::Model) -> Result<(), Fail> "tests", "features", "examples", + "demos", "model", "compiler", "stdlib", diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 9887022ba5..d750732db2 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -30,6 +30,7 @@ fn main() -> ExitCode { "validate-model" => codegen::check_model(&root, write), "validate-spec-links" => spec_links::validate(&root), "verify-examples" => verify_examples(&root, write), + "verify-demos" => verify_demos(&root, write), "check-golden" => check_golden(&root, write), "check-reproducibility" => check_reproducibility(&root), "check-fixtures" => check_fixtures(&root, write), @@ -43,6 +44,7 @@ fn main() -> ExitCode { "ci-shards" => ci::ci_shards(&root), "release-artifacts" => release_artifacts(&root), "release-check" => release_check(&root), + "emit-wrappers" => emit_wrappers(&std::env::args().skip(2).collect::>()), "validate" => codegen::check_model(&root, false).and_then(|()| spec_links::validate(&root)), _ => { eprintln!( @@ -201,6 +203,45 @@ fn verify_examples(root: &Path, write: bool) -> Result<(), Fail> { ) .into()); } + verify_dirs(root, dirs, write, &part, "examples") +} + +/// The demos (SPEC.md §28.6): projects that need a fetched Lean library, so +/// the default sweeps of `examples/` do not run them. They are verified by +/// `cargo xtask verify-demos`, the same gate as an example, plus the golden +/// build outputs and the reproducibility check, in the job that fetches the +/// library (`.github/workflows/mathlib.yml`). +fn verify_demos(root: &Path, write: bool) -> Result<(), Fail> { + let dirs = demo_dirs(root)?; + verify_dirs(root, dirs.clone(), write, &ExamplesPart::All, "demos")?; + golden_dirs(root, &dirs, write)?; + reproducibility_dirs(root, &dirs) +} + +fn demo_dirs(root: &Path) -> Result, Fail> { + let mut dirs = Vec::new(); + for entry in std::fs::read_dir(root.join("demos"))? { + let path = entry?.path(); + if path.is_dir() { + dirs.push(path); + } + } + dirs.sort(); + if dirs.is_empty() { + return Err( + "EX-10: the demos directory is empty; the demo gate has nothing to verify".into(), + ); + } + Ok(dirs) +} + +fn verify_dirs( + root: &Path, + dirs: Vec, + write: bool, + part: &ExamplesPart, + tree: &str, +) -> Result<(), Fail> { for dir in dirs { let started = std::time::Instant::now(); let name = dir @@ -221,7 +262,7 @@ fn verify_examples(root: &Path, write: bool) -> Result<(), Fail> { root, &dir, scratch.path(), - &scratch.path().join("examples").join(&name), + &scratch.path().join(tree).join(&name), )?; for required in example_path_requirements(&dir, root)? { let destination = scratch.path().join(&required); @@ -751,13 +792,27 @@ fn check_golden(root: &Path, write: bool) -> Result<(), Fail> { } else { println!("check-golden: the runtime transcript ({transcript} labels) equals the printed runtime's (R10)"); } - for dir in example_dirs(root)? { + golden_dirs(root, &example_dirs(root)?, write)?; + // The tooling fixtures cannot be built through the command line: a + // tooling module is accepted only in a project the compiler embeds. + let tooling = repo_conformance::tooling::check_golden(root, write)?; + if write { + println!("check-golden: wrote {tooling} tooling oracle files"); + } else { + println!("check-golden: {tooling} tooling artifacts equal their oracles (R10)"); + } + Ok(()) +} + +/// The golden build outputs of the projects in `dirs` (§28.3). +fn golden_dirs(root: &Path, dirs: &[PathBuf], write: bool) -> Result<(), Fail> { + for dir in dirs { let name = dir .file_name() .unwrap_or_default() .to_string_lossy() .to_string(); - let (_temp, files) = published_build(root, &dir, false)?; + let (_temp, files) = published_build(root, dir, false)?; let expected_root = dir.join("expected").join("build"); if write { if expected_root.exists() { @@ -782,14 +837,6 @@ fn check_golden(root: &Path, write: bool) -> Result<(), Fail> { files.len() ); } - // The tooling fixtures cannot be built through the command line: a - // tooling module is accepted only in a project the compiler embeds. - let tooling = repo_conformance::tooling::check_golden(root, write)?; - if write { - println!("check-golden: wrote {tooling} tooling oracle files"); - } else { - println!("check-golden: {tooling} tooling artifacts equal their oracles (R10)"); - } Ok(()) } @@ -875,6 +922,7 @@ fn stage_project(root: &Path, dir: &Path, scratch: &Path, flat: &Path) -> Result let Some(members) = workspace_members_of(root, dir)? else { std::fs::create_dir_all(flat)?; copy_example(dir, flat)?; + link_lake(dir, flat)?; return Ok(flat.to_path_buf()); }; std::fs::copy( @@ -889,11 +937,47 @@ fn stage_project(root: &Path, dir: &Path, scratch: &Path, flat: &Path) -> Result Ok(scratch.join(&members[0])) } +/// The Lake workspace of an example (`.lake`: fetched libraries and build +/// products, never source, SPEC.md §10.4) goes into the clean copy as links to +/// the checkout's files, not as a copy: a fetched Mathlib is seven gigabytes. +/// A hard link where the copy is on the same device, a copy where it is not; +/// an example with no `.lake` has nothing to link, and one that declares a +/// library the checkout has not fetched fails in its own `lock --check` with +/// the registered diagnostic. +fn link_lake(from: &Path, to: &Path) -> Result<(), Fail> { + let source = from.join(".lake"); + for entry in walkdir::WalkDir::new(&source) + .follow_links(false) + .into_iter() + .flatten() + { + let relative = entry.path().strip_prefix(from).unwrap_or(entry.path()); + let destination = to.join(relative); + if entry.file_type().is_dir() { + std::fs::create_dir_all(&destination)?; + } else if entry.file_type().is_file() + && std::fs::hard_link(entry.path(), &destination).is_err() + { + std::fs::copy(entry.path(), &destination)?; + } else if entry.file_type().is_symlink() { + // A checked-out library tracks symbolic links; a copy without + // them is a checkout with local changes to Git and to Lake. + #[cfg(unix)] + std::os::unix::fs::symlink(std::fs::read_link(entry.path())?, &destination)?; + } + } + Ok(()) +} + fn copy_example(from: &Path, to: &Path) -> Result<(), Fail> { for entry in walkdir::WalkDir::new(from).into_iter().flatten() { let relative = entry.path().strip_prefix(from).unwrap_or(entry.path()); let text = relative.to_string_lossy(); - if text.starts_with(".lexlean") || text.starts_with("expected") || text.is_empty() { + if text.starts_with(".lexlean") + || text.starts_with(".lake") + || text.starts_with("expected") + || text.is_empty() + { continue; } let destination = to.join(relative); @@ -912,40 +996,7 @@ fn copy_example(from: &Path, to: &Path) -> Result<(), Fail> { /// §28.4, AR-13: two clean `build`s in distinct absolute directories /// publish byte-identical platform-independent trees. fn check_reproducibility(root: &Path) -> Result<(), Fail> { - for dir in example_dirs(root)? { - let name = dir - .file_name() - .unwrap_or_default() - .to_string_lossy() - .to_string(); - let (temp_a, files_a) = published_build(root, &dir, false)?; - let (temp_b, files_b) = published_build(root, &dir, false)?; - if temp_a.path() == temp_b.path() { - return Err("the two build directories must be distinct".into()); - } - let names_a: Vec<&String> = files_a.iter().map(|(path, _)| path).collect(); - let names_b: Vec<&String> = files_b.iter().map(|(path, _)| path).collect(); - if names_a != names_b { - return Err(format!( - "R10: {name}: the two builds publish different file sets: {names_a:?} vs {names_b:?}" - ) - .into()); - } - for ((path_a, bytes_a), (_, bytes_b)) in files_a.iter().zip(&files_b) { - if bytes_a != bytes_b { - return Err(format!( - "R10: {name}: {path_a} differs between two clean builds in distinct directories (AR-13)" - ) - .into()); - } - } - println!( - "check-reproducibility: {name}: {} published artifacts byte-identical across {} and {} (R10)", - files_a.len(), - temp_a.path().display(), - temp_b.path().display() - ); - } + reproducibility_dirs(root, &example_dirs(root)?)?; // The proof libraries' own projects (§17.17, §17.18) are built twice as // well; they are not examples, and a lock is made in each copy. for (label, directory) in [ @@ -989,6 +1040,44 @@ fn check_reproducibility(root: &Path) -> Result<(), Fail> { Ok(()) } +fn reproducibility_dirs(root: &Path, dirs: &[PathBuf]) -> Result<(), Fail> { + for dir in dirs { + let name = dir + .file_name() + .unwrap_or_default() + .to_string_lossy() + .to_string(); + let (temp_a, files_a) = published_build(root, dir, false)?; + let (temp_b, files_b) = published_build(root, dir, false)?; + if temp_a.path() == temp_b.path() { + return Err("the two build directories must be distinct".into()); + } + let names_a: Vec<&String> = files_a.iter().map(|(path, _)| path).collect(); + let names_b: Vec<&String> = files_b.iter().map(|(path, _)| path).collect(); + if names_a != names_b { + return Err(format!( + "R10: {name}: the two builds publish different file sets: {names_a:?} vs {names_b:?}" + ) + .into()); + } + for ((path_a, bytes_a), (_, bytes_b)) in files_a.iter().zip(&files_b) { + if bytes_a != bytes_b { + return Err(format!( + "R10: {name}: {path_a} differs between two clean builds in distinct directories (AR-13)" + ) + .into()); + } + } + println!( + "check-reproducibility: {name}: {} published artifacts byte-identical across {} and {} (R10)", + files_a.len(), + temp_a.path().display(), + temp_b.path().display() + ); + } + Ok(()) +} + /// The workspace version, from the single place §2.3 fixes it. fn workspace_version(root: &Path) -> Result { let text = std::fs::read_to_string(root.join("Cargo.toml"))?; @@ -1351,3 +1440,25 @@ mod examples_part_tests { assert_eq!(shard.describe(), "shard:uor-atlas:prefix"); } } + +/// `cargo xtask emit-wrappers ` (SPEC.md +/// §13.13): write the host module of a specialisation request, and print one +/// line per wrapper, tab-separated ` `, in the order +/// of the module. +fn emit_wrappers(arguments: &[String]) -> Result<(), Fail> { + let [request_path, module_path] = arguments else { + return Err("usage: cargo xtask emit-wrappers ".into()); + }; + let text = std::fs::read_to_string(request_path)?; + let request = lexlean::wrappers::parse_request(&text) + .map_err(|diagnostic| format!("{}: {}", diagnostic.code.as_str(), diagnostic.message))?; + let emitted = lexlean::wrappers::emit(&request); + std::fs::write(module_path, emitted.module_text.as_bytes())?; + for wrapper in &emitted.wrappers { + println!( + "{}\t{}\t{}\t{}", + wrapper.lean_name, wrapper.declaration, wrapper.tag, wrapper.line + ); + } + Ok(()) +} diff --git a/xtask/src/spec_links.rs b/xtask/src/spec_links.rs index b8f0c03aed..b628c71c9a 100644 --- a/xtask/src/spec_links.rs +++ b/xtask/src/spec_links.rs @@ -61,8 +61,8 @@ fn parse_table(spec: &str) -> Result, Fail> { pub fn validate(root: &Path) -> Result<(), Fail> { let spec = std::fs::read_to_string(root.join("SPEC.md"))?; let rows = parse_table(&spec)?; - if rows.len() != 457 { - return Err(format!("RP-07: the §31 table has {} rows, not 457", rows.len()).into()); + if rows.len() != 477 { + return Err(format!("RP-07: the §31 table has {} rows, not 477", rows.len()).into()); } // The prose total under the table is part of the contract a reader // relies on; a row added without it would leave §31 contradicting itself.