Zulip Chat Archive

Stream: mathlib4

Topic: A potential path towards a faster field_simp


Yaël Dillies (May 14 2025 at 18:48):

I would like to point out that #8102 is a PR which adds a tactic that could become an internal of a future reimplementation of field_simp: unify_denoms sums fractions together and collects the denominators into one.

Yaël Dillies (May 14 2025 at 18:49):

The current implementation of unify_denoms is based on rewriting, and thus suffers from a variety of issues avoided by smarter tactics, like ring. I therefore suggested reusing the ring internals to collect the denominators.

Yaël Dillies (May 14 2025 at 18:50):

Unfortunately, the PR author doesn't have the time to implement such a suggestion. But I do think it would be a very good first metaprogramming project for a beginner. Hence I have marked the PR please-adopt and good-first-issue.

Paul Lezeau (May 14 2025 at 19:39):

I’d be happy to take that up (once I’m back from holidays:))

Kim Morrison (May 14 2025 at 22:20):

The most useful thing from my point of view would be for someone to write a good test suite for the field_simps they wish existed, so we can do a clean efficient reimplementation.

Kim Morrison (May 14 2025 at 22:21):

I haven't looked at the state of the test suite for positivity, but the same may apply there.


Last updated: Dec 20 2025 at 21:32 UTC