Documentation

Lean.Meta.Tactic.Split

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

        Internal exception for discriminant generalization failures due to type errors.

        def Lean.Meta.Split.applyMatchSplitter (mvarId : MVarId) (matcherDeclName : Name) (us : Array Level) (params discrs : Array Expr) :
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Lean.Meta.Split.refineMatch (mvarId : MVarId) (matcherDeclName : Name) (us : Array Level) (params discrs : Array Expr) :

          Refines a goal into the cases of a matcher applied to params and discrs, without replacing matcher occurrences in the target. The arguments must be well-typed in the goal's context, but the matcher application need not occur in the target.

          Computed discriminants are linked to fresh variables by equalities. After splitting, these equalities specialize the goal where possible. Contradictory branches are closed; unresolved conditions remain as hypotheses. The target is not simplified.

          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
                def Lean.Meta.splitTarget? (mvarId : MVarId) (splitIte : Bool := true) (useNewSemantics : Bool := false) :

                Splits an if-then-else of match-expression in the goal target. If useNewSemantics is true, the flag backward.split is ignored. Recall this flag only affects the split of if-then-else expressions.

                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