Documentation

Std.Tactic.LeftRight

Apply the n-th constructor of the target type, checking that it is an inductive type, and that there are the expected number of constructors.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Apply the first constructor, in the case that the goal is an inductive type with exactly two constructors.

    example : TrueFalse := by
      left
      trivial
    
    Equations
    Instances For

      Apply the second constructor, in the case that the goal is an inductive type with exactly two constructors.

      example {p q : Prop} (h : q) : p ∨ q := by
        right
        exact h
      
      Equations
      Instances For