Skip to content

Commit

Permalink
fix(tactic/norm_cast): assumption_mod_cast should only work on one go…
Browse files Browse the repository at this point in the history
…al (#8649)

fixes #8438 



Co-authored-by: Rob Lewis <rob.y.lewis@gmail.com>
  • Loading branch information
robertylewis and robertylewis committed Aug 15, 2021
1 parent c4208d2 commit 4644447
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tactic/norm_cast.lean
Expand Up @@ -583,7 +583,7 @@ decorate_error "assumption_mod_cast failed:" $ do
},
replace_at derive [] tt,
ctx ← local_context,
try_lst $ ctx.map (λ h, aux_mod_cast h ff >>= tactic.exact)
ctx.mfirst (λ h, aux_mod_cast h ff >>= tactic.exact)

end tactic

Expand Down
7 changes: 7 additions & 0 deletions test/norm_cast.lean
Expand Up @@ -126,3 +126,10 @@ begin
end

end ennreal

lemma b (h g : true) : true ∧ true :=
begin
split,
assumption_mod_cast,
assumption_mod_cast,
end

0 comments on commit 4644447

Please sign in to comment.