Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: rcases and rintro tactics #182

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Mathlib.lean
Expand Up @@ -69,7 +69,7 @@ import Mathlib.Tactic.NormCast
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.OpenPrivate
import Mathlib.Tactic.PrintPrefix
import Mathlib.Tactic.Rcases
import Mathlib.Tactic.RCases
import Mathlib.Tactic.Rename
import Mathlib.Tactic.Ring
import Mathlib.Tactic.RunCmd
Expand Down
8 changes: 1 addition & 7 deletions Mathlib/Mathport/Syntax.lean
Expand Up @@ -12,6 +12,7 @@ import Mathlib.Tactic.Find
import Mathlib.Tactic.LibrarySearch
import Mathlib.Tactic.NormCast
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.RCases
import Mathlib.Tactic.Ring
import Mathlib.Tactic.ShowTerm
import Mathlib.Tactic.Simps
Expand Down Expand Up @@ -186,13 +187,6 @@ syntax (name := guardLHS) "guard_lhs " " =ₐ " term : conv

end Conv

syntax (name := rcases?) "rcases?" casesTarget,* (" : " num)? : tactic
syntax (name := rcases) "rcases" casesTarget,* (" with " rcasesPat)? : tactic
syntax (name := obtain) "obtain" (ppSpace rcasesPatMed)? (" : " term)? (" := " term,+)? : tactic

syntax (name := rintro?) "rintro?" (" : " num)? : tactic
syntax (name := rintro) "rintro" (ppSpace rintroPat)* (" : " term)? : tactic

syntax (name := ext1) "ext1" (ppSpace rcasesPat)* : tactic
syntax (name := ext1?) "ext1?" (ppSpace rcasesPat)* : tactic
-- The current implementation of `ext` in mathlib4 does not support `rcasesPat`,
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Tactic/Ext.lean
Expand Up @@ -5,7 +5,7 @@ Author: Gabriel Ebner
-/
import Lean
import Mathlib.Tactic.Cache
import Mathlib.Tactic.Rcases
import Mathlib.Tactic.RCases

open Tactic

Expand Down