Goal Parsing for Interval Tactics #
This module provides utilities for parsing goal structure to determine which theorem to apply. Handles:
- Univariate bound goals
- Multivariate bound goals
- Root finding goals
- Point inequalities
Univariate Goal Parsing #
Try to parse a goal as a bound goal
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Extract (lhs, rhs) from an LE.le application.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extract lower bound lo from lo ≤ x.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extract upper bound hi from x ≤ hi.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extract bounds from conjunction form lo ≤ x ∧ x ≤ hi.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Build IntervalInfo from explicit lo/hi bounds.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extract the interval from a membership expression
Equations
- One or more equations did not get rendered due to their size.
Instances For
Try to convert a Set.Icc expression to an IntervalRat with full info
Equations
- One or more equations did not get rendered due to their size.
Instances For
Multivariate Goal Parsing #
Recursively parse a multivariate bound goal, collecting variables and intervals. This processes all quantifiers within nested withLocalDeclD scopes so that fvars remain valid for mkLambdaFVars.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Point Inequality Parsing #
Parse a point inequality goal and extract lhs, rhs, and inequality type. Returns (lhs, rhs, isStrict, isReversed) where:
- isStrict: true for < or >, false for ≤ or ≥
- isReversed: true for ≥ or > (need to flip the comparison)
Equations
- One or more equations did not get rendered due to their size.
Instances For
Try to collect all constant rational values from an expression. Returns the list of rational constants found (for building the singleton interval).
Root Finding Goal Parsing #
Try to parse a goal as a root finding goal
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extract the interval from a membership expression
Equations
- One or more equations did not get rendered due to their size.
Instances For
Global Optimization Goal Parsing #
Check if name ends with Expr.eval
Equations
- LeanCert.Tactic.Auto.isExprEvalName name = `Expr.eval.isSuffixOf name
Instances For
Try to parse an already-intro'd goal as a global optimization bound. After intro ρ hρ hzero, the goal should be a comparison: Expr.eval ρ e ≤ c or c ≤ Expr.eval ρ e
Equations
- One or more equations did not get rendered due to their size.