Zulip Chat Archive

Stream: mathlib4

Topic: has_to_tactic_format


Shreyas Srinivas (Feb 13 2023 at 14:09):

What is the lean 4 typeclass that is equivalent to lean3's has_to_tactic_format?

Eric Wieser (Feb 13 2023 at 14:54):

I think it's merged with docs4#Repr now?

Shreyas Srinivas (Feb 13 2023 at 15:01):

So can I just delete those extra instances?

Shreyas Srinivas (Feb 13 2023 at 15:02):

There was a separate instance for has_to_format in the lean3 version and there seems to be a corresponding lean4 typeclass is Std.Format and not Repr

Eric Wieser (Feb 13 2023 at 15:18):

docs4#Std.Format is not a typeclass. Are you thinking of something else?

Shreyas Srinivas (Feb 13 2023 at 15:27):

Sorry Std.ToFormat (https://leanprover-community.github.io/mathlib4_docs/Init/Data/Format/Basic.html#Std.ToFormat)

Notification Bot (Feb 13 2023 at 15:31):

6 messages were moved here from #mathlib4 > Data.Array.Lemmas PR !4#2194 by Eric Wieser.

Eric Wieser (Feb 13 2023 at 15:31):

Moved for more visibility

Shreyas Srinivas (Feb 13 2023 at 15:32):

The instances of Repr and Std.ToFormat are doing the exact same thing in this case.

Shreyas Srinivas (Feb 13 2023 at 15:33):

But the instance of whatever is supposed to replace has_to_tactic_format is calling tactic.pp ∘ toList, instead of format ∘ toList

Shreyas Srinivas (Feb 13 2023 at 15:34):

I can't find tactic.pp in the lean 4 docs


Last updated: Dec 20 2023 at 11:08 UTC