Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhartha-gadgil committed Sep 10, 2024
1 parent 46afd25 commit 6c3497f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MetaExamples/LeanSearch.lean
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def toTacticSuggestions (sr: SearchResult) : Array TryThis.Suggestion :=
match sr.type? with
| some type => #[{suggestion := s!"apply {sr.name}"},
{suggestion := s!"have : {type} := {sr.name}"},
{suggestion := s!"rw [sr.name]"},
{suggestion := s!"rw [← sr.name]" }]
{suggestion := s!"rw [{sr.name}]"},
{suggestion := s!"rw [← {sr.name}]" }]
| none => #[]

end SearchResult
Expand Down Expand Up @@ -158,9 +158,8 @@ An example of using the leansearch API. The search is triggered when the sentenc

example := lean_search# "There are infinitely many odd numbers"

example : True := by
skip
lean_search? "There are infinitely many odd numbers"
example : 35 := by
lean_search? "If a natural number n is less than m, then the successor of n is less than the successor of m"
sorry

open Parser
Expand Down

0 comments on commit 6c3497f

Please sign in to comment.