-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7fa7bc
commit 7110734
Showing
3 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import LeanSearchClient.Syntax | ||
|
||
/-! | ||
# Moogle Examples | ||
Examples of using the Loogle API. The search is triggered when the sentence ends with a full stop (period) or a question mark. The final character (`.` or `?`) is omitted in the query. | ||
-/ | ||
|
||
/-- | ||
warning: #loogle query should end with a `.` or `?`. | ||
Note this command sends your query to an external service at https://loogle.lean-lang.org/json. | ||
-/ | ||
#guard_msgs in | ||
#loogle "List ?a → ?a" | ||
|
||
/-- | ||
warning: #loogle query should end with a `.` or `?`. | ||
Note this command sends your query to an external service at https://loogle.lean-lang.org/json. | ||
-/ | ||
#guard_msgs in | ||
example := #loogle "List ?a → ?a" | ||
|
||
|
||
set_option loogle.queries 1 | ||
|
||
/-- warning: declaration uses 'sorry' -/ | ||
#guard_msgs in | ||
example : 3 ≤ 5 := by | ||
#loogle "List ?a = ?b." | ||
sorry |