Zulip Chat Archive
Stream: mathlib4
Topic: Using Loogle
Darij Grinberg (Oct 16 2025 at 20:09):
So I'm trying to understand how to use loogle. I want to find a basic logical rule:
https://loogle.lean-lang.org/?q=%28A+%E2%88%A8+B%29+-%3E+%C2%AC+B+-%3E+A
It suggests "* (Std.Time.Modifier.A ∨ B) → ¬B → A" and a bunch of similarly strange hits. What can I do with them?
Darij Grinberg (Oct 16 2025 at 20:09):
(Getting the impression that these aren't actual hits)
Mauricio Collares (Oct 16 2025 at 20:12):
https://loogle.lean-lang.org/?q=%28%3Fa+%E2%88%A8+%3Fb%29+-%3E+%C2%AC+%3Fb+-%3E+%3Fa
Robin Arnez (Oct 16 2025 at 20:12):
You need placeholders (e.g ?A and ?B). It interprets A and B and identifiers
Darij Grinberg (Oct 16 2025 at 20:13):
ah!
Darij Grinberg (Oct 16 2025 at 20:14):
so placeholders use ?
Darij Grinberg (Oct 16 2025 at 20:14):
works perfectly
Kenny Lau (Oct 17 2025 at 00:18):
works in lean too
Kevin Buzzard (Oct 17 2025 at 07:39):
(i.e.
import Mathlib
#loogle (?a ∨ ?b) -> ¬ ?b -> ?a -- results appear in infoview
at least if you're connected to the internet)
Kenny Lau (Oct 17 2025 at 10:56):
I meant that ?a is valid lean syntax not in the context of loogle
Kenny Lau (Oct 17 2025 at 10:57):
when you do refine ?_ you can also instead do refine ?a
Kenny Lau (Oct 17 2025 at 10:57):
?a is syntax for named metavariable
Last updated: Dec 20 2025 at 21:32 UTC