-
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.
Moogle code draft (some renaming remains)
- Loading branch information
1 parent
c260ed9
commit 1bb389e
Showing
2 changed files
with
160 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import LeanSearchClient.Syntax | ||
|
||
/-! | ||
# Moogle Examples | ||
Examples of using the leansearch API. The search is triggered when the sentence ends with a full stop (period) or a question mark. | ||
-/ | ||
|
||
/-- | ||
warning: #moogle query should end with a `.` or `?`. | ||
Note this command sends your query to an external service at https://www.moogle.ai/api/search. | ||
-/ | ||
#guard_msgs in | ||
#moogle "If a natural number n is less than m, then the successor of n is less than the successor of m" | ||
|
||
/-- | ||
warning: #moogle query should end with a `.` or `?`. | ||
Note this command sends your query to an external service at https://www.moogle.ai/api/search. | ||
-/ | ||
#guard_msgs in | ||
example := #moogle "If a natural number n is less than m, then the successor of n is less than the successor of m" | ||
|
||
set_option leansearch.queries 1 | ||
|
||
/-- | ||
info: From: Nat.lt (type: Nat → Nat → Prop) | ||
• have : Nat → Nat → Prop := Nat.lt | ||
--- | ||
warning: declaration uses 'sorry' | ||
-/ | ||
#guard_msgs in | ||
example : 3 ≤ 5 := by | ||
#moogle "If a natural number n is less than m, then the successor of n is less than the successor of m." | ||
sorry |
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