The areas / V34. The tactics of Mathlib
Mathlib.Tactic.ExistsI
1 declarations. Mathlib docs · Source
The existsi tactic
This file defines the existsi tactic: its purpose is to instantiate existential quantifiers.
Internally, it applies the refine tactic.
def Mathlib.Tactic.«tacticExistsi_,,» E1 #
Lean.ParserDescr
existsi e₁, e₂, ⋯ instantiates existential quantifiers in the main goal by using e₁, e₂, ...
as witnesses. existsi e₁, e₂, ⋯ is equivalent to refine ⟨e₁, e₂, ⋯, ?_⟩.
See also exists: exists e₁, e₂, ⋯ is equivalent to existsi e₁, e₂, ⋯; try trivial.
Examples:
example : ∃ x : Nat, x = x := by
existsi 42
rfl
example : ∃ x : Nat, ∃ y : Nat, x = y := by
existsi 42, 42
rfl