lean4-htt/tests
Leonardo de Moura 010468699f
feat: trim grind cutsat proof context (#9945)
This PR optimizes the proof terms produced by `grind cutsat`. It removes
unused entries from the context objects when generating the final proof,
significantly reducing the amount of junk in the resulting terms.
Example:
```lean
/--
trace: [grind.debug.proof] fun h h_1 h_2 h_3 h_4 h_5 h_6 h_7 h_8 =>
      let ctx := RArray.leaf (f 2);
      let p_1 := Poly.add 1 0 (Poly.num 0);
      let p_2 := Poly.add (-1) 0 (Poly.num 1);
      let p_3 := Poly.num 1;
      le_unsat ctx p_3 (eagerReduce (Eq.refl true)) (le_combine ctx p_2 p_1 p_3 (eagerReduce (Eq.refl true)) h_8 h_1)
-/
#guard_msgs in -- Context should contain only `f 2`
open Lean Int Linear in
set_option trace.grind.debug.proof true in
example (f : Nat → Int) :
    f 1 <= 0 → f 2 <= 0 → f 3 <= 0 → f 4 <= 0 → f 5 <= 0 → 
    f 6 <= 0 → f 7 <= 0 → f 8 <= 0 → -1 * f 2 + 1 <= 0 → False := by
  grind
```
2025-08-17 02:53:19 +00:00
..
bench chore: complete riscv_ast benchmark (#9928) 2025-08-15 14:39:25 +00:00
compiler chore: remove >6 month old deprecations (#9640) 2025-08-05 02:29:15 +00:00
elabissues
ir
lean feat: trim grind cutsat proof context (#9945) 2025-08-17 02:53:19 +00:00
pkg fix: do not allow access to private primitives in public scope (#9890) 2025-08-14 15:34:54 +00:00
playground
plugin
simpperf
.gitignore
common.sh
lakefile.toml
lean-toolchain