From d00e3769430c1fe5df0c2528768738617a29efd2 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Thu, 5 Dec 2024 17:18:35 -0800 Subject: [PATCH 1/2] doc: Remove outdated documentation --- .gitignore | 6 ++---- README.md | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 21bcd46..53ec3bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ .* !.gitignore - -*.olean -/build -/lake-packages +*.[io]lean +/result diff --git a/README.md b/README.md index 5fec564..47456ea 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ the environment might be setup like this: ``` sh LIB="../lib" -LIB_MATHLIB="$LIB/mathlib4/lake-packages" +LIB_MATHLIB="$LIB/mathlib4/.lake" export LEAN_PATH="$LIB/mathlib4/build/lib:$LIB_MATHLIB/aesop/build/lib:$LIB_MATHLIB/Qq/build/lib:$LIB_MATHLIB/std/build/lib" LEAN_PATH=$LEAN_PATH build/bin/pantograph $@ From 95408d1d523aa679b544568112da8535506d14e2 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Thu, 5 Dec 2024 17:21:06 -0800 Subject: [PATCH 2/2] doc: Unify types --- doc/repl.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/repl.md b/doc/repl.md index 978bad2..464c7cc 100644 --- a/doc/repl.md +++ b/doc/repl.md @@ -11,8 +11,8 @@ See `Pantograph/Protocol.lean` for a description of the parameters and return va * `env.inspect {"name": , "value": }`: Show the type and package of a given symbol; If value flag is set, the value is printed or hidden. By default only the values of definitions are printed. -* `env.save { path }`, `env.load { path }`: Save/Load the current environment - to/from a file +* `env.save { "path": }`, `env.load { "path": }`: Save/Load the + current environment to/from a file * `options.set { key: value, ... }`: Set one or more options (not Lean options; those have to be set via command line arguments.), for options, see `Pantograph/Protocol.lean` @@ -39,10 +39,11 @@ See `Pantograph/Protocol.lean` for a description of the parameters and return va - `{ "goals": }`: Resume the given goals * `goal.remove {"stateIds": []}"`: Drop the goal states specified in the list * `goal.print {"stateId": }"`: Print a goal state -* `goal.save{ id, path }`, `goal.load { path }`: Save/Load a goal state to/from a - file. The environment is not carried with the state. The user is responsible - to ensure the sender/receiver instances share the same environment. -* `frontend.process { ["fileName": ",] ["file": ], invocations: +* `goal.save { "id": , "path": }`, `goal.load { "path": }`: + Save/Load a goal state to/from a file. The environment is not carried with the + state. The user is responsible to ensure the sender/receiver instances share + the same environment. +* `frontend.process { ["fileName": ,] ["file": ], invocations: , sorrys: }`: Executes the Lean frontend on a file, collecting either the tactic invocations (`"invocations": true`) or the sorrys into goal states (`"sorrys": true`)