Skip to content

split_ifs doesn't completely split hypotheses #760

@kim-em

Description

@kim-em

In Lean 3, we had:

import tactic.split_ifs
import tactic.localized

open_locale classical

example (P Q : Prop) (w : if P then (if Q then true else true) else true = true) : true :=
begin
  split_ifs at w,
  -- 3 goals, no `if`s in `w`
  all_goals { trivial, }
end

while currently in mathlib4 we have:

import Mathlib.Tactic.SplitIfs

open Classical

example (P Q : Prop) (w : if P then (if Q then true else true) else true = true) : true := by
  split_ifs at w
  -- two goals here, and in the first `w : if Q then true else true`

This first came up in porting Logic.Embedding.Basic.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions