feat: derive arithmetic bounds from nested disjunctions in `grind` This PR extends `grind` and `lia` to infer common linear bounds on `Nat` and `Int` from nested conjunctions and disjunctions without case splitting. For example, both tactics can now prove `x ≤ 3` from `(p ∧ (x = 1 ∨ x = 2)) ∨ x = 3` with `branches := 0`. The new `Grind.Formula` module handles formula traversal and proof reconstruction independently of Cutsat. Cutsat keeps the strongest bound on each linear expression at a conjunction and the weaker of the two bounds at a disjunction when both alternatives supply one. Shared subformulas reuse their summaries, and proofs are reconstructed only for bounds the solver uses. Co-authored-by: Codex <noreply@openai.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.