- useDecide : Bool
- emptyType : Bool
Check whether any of the hypotheses is an empty type.
- searchFuel : Nat
When checking for empty types,
searchFuelspecifies the number of goals visited. - genDiseq : Bool
Instances For
Instances For
Equations
- Lean.Meta.ElimEmptyInductive.instMonadBacktrackSavedStateM = { saveState := liftM Lean.Meta.saveState, restoreState := fun (s : Lean.Meta.SavedState) => liftM s.restore }
Closes mvarId if the type of fvarId is an empty inductive type. fuel is the number of goals
visited by the search. Returns true iff the goal has been closed.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given e s.t. isGenDiseq e, generate a bit-mask mask s.t. mask[i] = true iff
the i-th binder is an equality without forward dependencies.
See processGenDiseq
Equations
Instances For
Given h : type where type is a "generalized disequality" (see processGenDiseq), returns a
proof of False if the equality hypotheses of type can be proved by reflexivity.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Close goal if localDecl is a "generalized disequality". Example:
h : (x y : Nat) (ys : List Nat) → x = 0 → y::ys = [a, b, c] → False
This kind of hypotheses is created when we generate conditional equations for match expressions.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Return true if goal mvarId has contradictory hypotheses.
See MVarId.contradiction for the list of tests performed by this method.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Try to close the goal using "contradictions" such as
- Contradictory hypotheses
h₁ : pandh₂ : ¬ p. - Contradictory disequality
h : x ≠ x. - Contradictory bit mask test:
h : Nat.hasNotBit mask iwhere that bit is set - Contradictory equality between different constructors, e.g.,
h : List.nil = List.cons x xs. - Empty inductive types, e.g.,
x : Fin 0. - Decidable propositions that evaluate to false, i.e., a hypothesis
h : ps.t.decide preduces tofalse. This is only tried ifConfig.useDecide = true.
Throw exception if goal failed to be closed.
Equations
- mvarId.contradiction config = do let __do_lift ← mvarId.contradictionCore config if __do_lift = true then pure () else Lean.Meta.throwTacticEx `contradiction mvarId