Zulip Chat Archive

Stream: general

Topic: Why doesn't moogle show these results for cauchy-schwarz


Sabbir Rahman (Apr 03 2025 at 17:48):

I moogled for "​cauchy schwarz inequality", and I got the vector space version results. But later I learnt that there are also theorems like Real.sum_mul_le_sqrt_mul_sqrt. This would've been useful for my usecase. But what I'm really curious about is why Real.sum_mul_le_sqrt_mul_sqrt didn't appear in the moogle result. The doc strings clearly mention Cauchy-Schwarz inequality. I thought moogle took doc strings into consideration.

Shreyas Srinivas (Apr 03 2025 at 19:28):

Hard to say. It’s an NLP tool and it might not have been trained recently enough

Yury G. Kudryashov (Apr 03 2025 at 20:18):

BTW, do we have a tool that searches in names + docstrings + module docstrings? Or google site:https://leanprover-community.github.io/mathlib4_docs/ is the best option?

Michael Rothgang (Apr 03 2025 at 22:24):

Search within VS Code?

Sabbir Rahman (Apr 04 2025 at 06:09):

yes searching works, but I had more trust on moogle to find stuff from docstrings :(

Kevin Buzzard (Apr 04 2025 at 07:18):

A lot of people are migrating to leansearch.net BTW

Sabbir Rahman (Apr 04 2025 at 08:40):

Kevin Buzzard said:

A lot of people are migrating to leansearch.net BTW

unfortunately leansearch isn't included in vscode lean extension I think, if it was, would be pretty smooth to use

Michael Rothgang (Apr 04 2025 at 08:44):

Sabbir Rahman said:

yes searching works, but I had more trust on moogle to find stuff from docstrings :(

I'm a bit confused by that: text search is literally what VS Code search does - if anything, I'd expect an LLM to do worse here.

Kim Morrison (Apr 04 2025 at 10:02):

I still basically use nothing but regexes in the VSCode search box.

Yury G. Kudryashov (Apr 04 2025 at 22:34):

I use regexes in git grep + loogle.


Last updated: May 02 2025 at 03:31 UTC