slice is a conv tactic; if the current focus is a composition of several morphisms,
slice a b reassociates as needed, and zooms in on the a-th through b-th morphisms.
Thus if the current focus is (a ≫ b) ≫ ((c ≫ d) ≫ e), then slice 2 3 zooms to b ≫ c.
def
tactic.interactive.slice_lhs
(a b : interactive.parse lean.parser.small_nat)
(t : conv.interactive.itactic) :
slice_lhs a b { tac } zooms to the left hand side, uses associativity for categorical
composition as needed, zooms in on the a-th through b-th morphisms, and invokes tac.
def
tactic.interactive.slice_rhs
(a b : interactive.parse lean.parser.small_nat)
(t : conv.interactive.itactic) :
slice_rhs a b { tac } zooms to the right hand side, uses associativity for categorical
composition as needed, zooms in on the a-th through b-th morphisms, and invokes tac.