The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V34. The tactics of Mathlib

Mathlib.Tactic.Inclusion.Extension.IntervalDyadicReal.Tactic

2 declarations. Mathlib docs · Source

The dyadic_interval tactic

This file defines the dyadic_interval tactic which is a wrapper around the inclusion tactic with a specific set of enabled inclusion families.

def Inclusion.dyadicInterval E1 #

Lean.ParserDescr

dyadic_interval proves real number equalities, inequalities and interval memberships by approximating as an interval of dyadic rational numbers.

This tactic is implemented as a family for the inclusion tactic: dyadic_interval is the same as inclusion [core, interval_int, interval_dyadic_real].

  • dyadic_interval [binSplit := n] splits each bounded interval up to n times, into at most 2^n pieces. Higher values of n make the tactic slower but able to prove more. Default: no splitting.
  • dyadic_interval [prec := n] uses a precision of 2^-n when constructing the approximation. Higher values of n make the tactic slower but able to prove more. Default value: 0.
  • dyadic_interval [fam₁, ... famₙ] uses the inclusion families fam₁, ..., famₙ for additional reasoning capabilities.
  • dyadic_interval (config := cfg) uses cfg as a configuration for the inclusion tactic. (See there for further details.)

def Inclusion.dyadicInterval? E1 #

Lean.ParserDescr

dyadic_interval? is a proof writing aid that quickly checks if dyadic_interval would close the goal, without doing the expensive kernel computation that actually closes the goal.