Zulip Chat Archive

Stream: general

Topic: case on intro


kana (Jun 23 2021 at 22:59):

Is there a way to split value from intro at once?
I have a lot of such code

intro i,
cases i with f g fg_inv,
cases fg_inv with gf fg,

And I want something like this

intro f, g, gf, fg⟩⟩,

Like in ssreflect

move=> [f g [gf fg]]

Adam Topaz (Jun 23 2021 at 23:00):

tactic#rintro

Kevin Buzzard (Jun 23 2021 at 23:01):

and is right associative so rintro ⟨f, g, gf, fg⟩, should work

kana (Jun 23 2021 at 23:35):

Oh, but it requires mathlib, and mathlib imports a lot of notations, that conflict with my notations, and it is impossible to hide or disable them.

Mario Carneiro (Jun 23 2021 at 23:36):

which notations?

Mario Carneiro (Jun 23 2021 at 23:37):

most mathlib notations are scoped

kana (Jun 23 2021 at 23:39):

_ᵒᵖ, _ ⟶ _

I am playing with category theory formalization from scratch, and I have such notations

Kevin Buzzard (Jun 23 2021 at 23:41):

Just import tactic.rcases then

kana (Jun 23 2021 at 23:42):

Oh thanks, it works. I tried to import the whole tactic

Kevin Buzzard (Jun 23 2021 at 23:43):

wow, I wonder which tactic needs opposite categories! (but you do seem to be right, one of them does!)

Adam Topaz (Jun 23 2021 at 23:47):

_ᵒᵖ is used for more than just opposite categories, if I recall correctly... (e.g. the opposite ring, opposite monoid, etc.). I still don't know why importing tactic imports the notation though!

Adam Topaz (Jun 23 2021 at 23:51):

I bet tactic#transport is a culprit

Bhavik Mehta (Jun 23 2021 at 23:56):

tactic#op_induction is my guess

Eric Wieser (Jun 24 2021 at 08:12):

docs#tactic.interactive.op_induction?


Last updated: Dec 20 2023 at 11:08 UTC