Zulip Chat Archive
Stream: mathlib4
Topic: simps and semireducible
Yury G. Kudryashov (Feb 12 2023 at 16:55):
@Floris van Doorn Am I right that simps
can see through semireducible definitions? I'm porting nnreal
s now, and I defined NNReal.toReal
to use as coe
.
Yury G. Kudryashov (Feb 12 2023 at 16:57):
Since defeq coe
s are no longer a thing, it makes sense to use this function in simps
.
Yury G. Kudryashov (Feb 12 2023 at 16:58):
I can redefine NNReal
as a structure
but then I'll loose all the lemmas about Subtype
(incl. those in Nonnneg
).
Eric Wieser (Feb 12 2023 at 17:14):
Yury G. Kudryashov said:
I can redefine
NNReal
as astructure
...
This sounds sufficiently awful that I wouldn't want to do it without trying a backport first
Floris van Doorn (Feb 12 2023 at 22:27):
simps
was not designed for type synonyms that are (semi)reducibly defined to as a structure, so I expect it will only apply the Subtype
configuration, and that it is not configurable.
Floris van Doorn (Feb 12 2023 at 22:27):
Did mathlib3 use simps
in the nnreal
file?
Yury G. Kudryashov (Feb 12 2023 at 22:30):
Yes, at least once. It's not a problem in mathlib3, because you get coe
.
Yury G. Kudryashov (Feb 12 2023 at 22:31):
What about banning use of simps
on type synonyms?
Last updated: Dec 20 2023 at 11:08 UTC