- formula.rs: the only math parser — fixed EBNF, typed Int/Prop AST, bounds, exact diagnostics, Lean target generation and counterexample evaluation - model.rs: complete whitelist validation of the finite exact-integer program subset and deterministic @[expose] Lean model mapping - lean.rs: pinned backend discovery, trusted generated search template, stock lean4export proof payload, independent con-leche kernel replay, expected-proposition regeneration and axiom audit - Replay.lean: verifier executable (type alpha-equivalence, axiom closure, metavariable rejection) without importing any proof olean - prove.rs/main.rs: single check/replay orchestration, reports, exit codes - real E2E: algebra/vector/arithmetic fixtures verify and publish bundles
26 lines
1.1 KiB
Bash
Executable File
26 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# Assemble the installable Marqdo CLI Tool bundle for `marqdo tool install`.
|
|
#
|
|
# The bundle contains the executable, the tool manifest and the pinned Lean
|
|
# backend project. The Lean toolchain/Mathlib build is a *prerequisite* because
|
|
# shipping a multi-gigabyte toolchain inside every tool bundle would duplicate
|
|
# the fixed environment; see README.md §Fixed backend for the pinned setup.
|
|
set -eu
|
|
|
|
repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
out=${1:-"$repo_root/dist/marqdo-prove-tool"}
|
|
|
|
cargo build --release --locked --manifest-path "$repo_root/Cargo.toml"
|
|
|
|
rm -rf "$out"
|
|
mkdir -p "$out/bin" "$out/lean"
|
|
cp "$repo_root/target/release/marqdo-prove" "$out/bin/marqdo-prove"
|
|
cp "$repo_root/tool.json" "$out/tool.json"
|
|
cp -R "$repo_root/lean/MarqdoProof" "$out/lean/"
|
|
cp "$repo_root/lean/MarqdoProof.lean" "$out/lean/"
|
|
cp "$repo_root/lean/lakefile.toml" "$out/lean/"
|
|
cp "$repo_root/lean/lake-manifest.json" "$out/lean/"
|
|
cp "$repo_root/lean/lean-toolchain" "$out/lean/"
|
|
echo "bundle assembled at $out"
|
|
echo "install with: marqdo tool install $out/tool.json"
|