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.Observe

3 declarations. Mathlib docs · Source

The observe tactic.

observe hp : p asserts the proposition p, and tries to prove it using exact?.

def Mathlib.Tactic.LibrarySearch.observe E1 #

Lean.ParserDescr

observe hp : p asserts the proposition p as a hypothesis named hp, and tries to prove it using exact?. If no proof is found, the tactic fails. In other words, this tactic is equivalent to have hp : p := by exact?.

  • observe : p uses the name this for the new hypothesis.
  • observe? hp : p will emit a trace message of the form have hp : p := proof_term. This may be particularly useful to speed up proofs.

def Mathlib.Tactic.LibrarySearch.«tacticObserve?__:_» E1 #

Lean.ParserDescr

observe hp : p asserts the proposition p as a hypothesis named hp, and tries to prove it using exact?. If no proof is found, the tactic fails. In other words, this tactic is equivalent to have hp : p := by exact?.

  • observe : p uses the name this for the new hypothesis.
  • observe? hp : p will emit a trace message of the form have hp : p := proof_term. This may be particularly useful to speed up proofs.

def Mathlib.Tactic.LibrarySearch.«tacticObserve?__:_Using__,,» E1 #

Lean.ParserDescr

observe hp : p asserts the proposition p as a hypothesis named hp, and tries to prove it using exact?. If no proof is found, the tactic fails. In other words, this tactic is equivalent to have hp : p := by exact?.

  • observe : p uses the name this for the new hypothesis.
  • observe? hp : p will emit a trace message of the form have hp : p := proof_term. This may be particularly useful to speed up proofs.