Zulip Chat Archive

Stream: general

Topic: tidy subtype


Yury G. Kudryashov (Feb 07 2023 at 03:47):

Does tidy have some kind of special support for subtypes?

Johan Commelin (Feb 07 2023 at 03:55):

Not that I know of. Probably ext takes care of things?

Yury G. Kudryashov (Feb 07 2023 at 04:02):

I changed docs#topological_space.opens to a structure (like docs#topological_space.closeds) and some tidys in category_theory fail.

Johan Commelin (Feb 07 2023 at 04:02):

Weird :shrug:

Yury G. Kudryashov (Feb 07 2023 at 08:59):

Found it! tactic#auto_cases has a list of types it runs cases on.

Yury G. Kudryashov (Feb 07 2023 at 08:59):

I don't know how to fix it.

Yury G. Kudryashov (Feb 07 2023 at 09:20):

@Mario Carneiro :up:

Yury G. Kudryashov (Feb 07 2023 at 09:21):

Should I write something like tactic.op_induction'?

Mario Carneiro (Feb 07 2023 at 09:22):

subtype is in the list though?

Mario Carneiro (Feb 07 2023 at 09:23):

what does "fix it" mean here?

Mario Carneiro (Feb 07 2023 at 09:24):

(I need to not look at this now, I have to write a presentation)

Yury G. Kudryashov (Feb 07 2023 at 18:51):

I want to support a custom structure that can't be imported to tactic.auto_cases.

Yury G. Kudryashov (Feb 07 2023 at 18:52):

(another approach is to rewrite simp lemmas so that they don't expect an U : opens _ to be cased.

Yury G. Kudryashov (Feb 07 2023 at 18:52):

Probably, I'll try this.

Reid Barton (Feb 07 2023 at 18:53):

Or can it just stay a subtype?

Yaël Dillies (Feb 07 2023 at 18:55):

It being a subtype is quite impractical, because we want named projections to extend it.

Yaël Dillies (Feb 07 2023 at 18:56):

The reasoning might be clearer when looking at docs#topological_space.nonempty_compacts

Yury G. Kudryashov (Feb 07 2023 at 18:57):

We moved most of other bundled sets to structures (from submonoids to closeds). I think that we should be consistent here.

Yury G. Kudryashov (Feb 07 2023 at 18:57):

/me is going to prepare for a lecture that starts in <2h


Last updated: Dec 20 2023 at 11:08 UTC