Skip to content

Syntax quotations - #80

Merged
leodemoura merged 5 commits into
leanprover:masterfrom
Kha:quot
Dec 10, 2019
Merged

leodemoura merged 5 commits into
leanprover:masterfrom
Kha:quot

Conversation

@Kha

@Kha Kha commented Dec 10, 2019

Copy link
Copy Markdown
Member

No description provided.

@Kha
Kha force-pushed the quot branch 2 times, most recently from 7bb2a8a to e13d03d Compare December 10, 2019 17:47
@Kha
Kha force-pushed the quot branch 2 times, most recently from c8aa6f1 to 422066e Compare December 10, 2019 22:57
@leodemoura
leodemoura merged commit 422066e into leanprover:master Dec 10, 2019
ChrisHughes24 pushed a commit to ChrisHughes24/lean4 that referenced this pull request Dec 2, 2022
Moving `Mathport/Prelude/*` out of mathport into mathlib4. I've added a README that will hopefully help bystanders:
```
Mathport prelude
===

This directory contains instructions for `mathport`,
helping it to translate `mathlib` and align declarations and tactics with `mathlib4`.
(These files were formerly part of `mathport`, in the directory `Mathport/Prelude/`.)

`SpecialNames.lean`
: Contains `#align X Y` statements, where `X` is an identifier from mathlib3
  which should be aligned with the identifier `Y` from mathlib4.
  Sometimes we need `#align` statements just to handle exceptions to casing rules,
  but there are also many exceptional cases.

`Syntax.lean`
: Contains unimplemented stubs of tactics which need to be migrated from Lean3 to Lean4.
  When porting tactics, you can move the relevant stubs to a new file and
  use them as a starting point.
  Please make sure this file stays in sync with new tactic implementations
  (and in particular that the syntax is not defined twice).
  Please preserve the syntax of existing mathlib tactics,
  so that there are no unnecessary parse errors in the source files generated by `synport`.
  It is fine to fail with an error message for unimplemented features for now.
```

Co-authored-by: Scott Morrison <[email protected]>
FawadHa1der added a commit to FawadHa1der/lean4 that referenced this pull request Nov 2, 2026
… every app runs

HARDENING leanprover#51 and leanprover#80 shipped because no check asked a shared environment (wasmCompile's
cache, a snapshot, the resident FileWorker's registry) for its own facts when it served a file
of another module-ness. Block 7 asserts each fact against a FIXED native stock v4.35.0 value
(eb6cafb, computed 2026-11-01 from the probe files, command line and editor level), never
against this runtime's CLI. A fact passes on its stock value unless R10_ALLOW names the
deviation (superset, unexposed, serverDocs, covered); then only the listed value passes, so a
deviation that disappears fails until its entry goes.

Cells:
- exact: five parity probes ride on block 6's persistent run (no extra boot);
- snapshot: the gate bakes its own init.snap (node-runner --incr-header-save, stopped once the
  file is stable; nothing of QED64's), and persistent-probe's new --snapshot loads it through
  lean_wasm_load_snapshot_mem with an empty --lib, so only the snapshot can serve the compiles;
- optional inputs, each a note when absent and exit 2 when given but unusable:
  --mathlib-lib (a real `import Mathlib.…` header; the tree must pair with the artifact's
  Init/Prelude.olean and carry .olean.server), --resident-probe (QED64's resident FileWorker
  driver on the gate's init.snap) and --resident-snap-dir (the covered cell on QED64's init +
  umbrella snapshots). When the resident probe has --probe-file (QED64 review R4), the parity
  probes also run through the FileWorker and are judged at stock's editor level.

Facts: isModule, plainPrivate, publicUse, importedDocs/realDocs, publicScope (>= stock), a
compile-time attribute without `meta` (legacy accepts, module refuses), `decide` on an
unexposed body, Mathlib use, and in the covered cell the module count (>= stock).

Also: persistent-probe gains --lib and --snapshot; runChild an optional stopWhen; the gate's
child count is 13; the package CI checks two of the new probes ship.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants