-
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.
Merge pull request #3 from leanprover-community/moogle
Moogle syntax
- Loading branch information
Showing
3 changed files
with
189 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import LeanSearchClient.Syntax | ||
|
||
/-! | ||
# Moogle Examples | ||
Examples of using the Moogle 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 moogle.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