You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of split splits on p ∨ ¬p, where p is the condition of an ite. This fails if the goal is non-propositional since Or.elim can only eliminate into Prop. MWE:
example {A B : Type} {p : Prop} [Decidable p] (h : if p then A else B) :
Sum A B := by
split at h
/- tactic 'cases' failed, nested error: tactic 'induction' failed, recursor 'Or.casesOn' can only eliminate into Prop AB: Type p: Prop inst✝: Decidable p h: if p then A else B hByCases✝: p ∨ ¬p ⊢ A ⊕ B -/
Versions
"4.9.0-nightly-2024-05-31"
Additional Information
I believe the implementation strategy suggested in #2414 would also fix this issue.
…goals (#4349)
Remark: when splitting an `if-then-else` term, the subgoals now have
tags `isTrue` and `isFalse` instead of `inl` and `inr`.
closes#4313
---------
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
The current implementation of
split
splits onp ∨ ¬p
, wherep
is the condition of anite
. This fails if the goal is non-propositional sinceOr.elim
can only eliminate intoProp
. MWE:Versions
"4.9.0-nightly-2024-05-31"
Additional Information
I believe the implementation strategy suggested in #2414 would also fix this issue.
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: