Skip to content

Commit

Permalink
Merge pull request #107 from lean-dojo/peiyang
Browse files Browse the repository at this point in the history
Incorporate recent commits
  • Loading branch information
Peiyang-Song authored Aug 14, 2024
2 parents 91dbe27 + c1c3b19 commit e5a993a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
tmp
.lake
clang+llvm*
python/__pycache__
**/__pycache__
*/.DS_Store
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.lake
.vscode
*.olean
python/__pycache__
**/__pycache__
*/.DS_Store
6 changes: 3 additions & 3 deletions LeanCopilot/Tactics.lean
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ private def annotatePremise (pi : PremiseInfo) : MetaM String := do
let info ← getConstInfo declName
let premise_type ← Meta.ppExpr info.type
let some doc_str ← findDocString? (← getEnv) declName
| return s!"\n{pi.name} : {premise_type}"
return s!"\n{pi.name} : {premise_type}\n```doc\n{doc_str}\n```"
catch _ => return s!"\n{pi.name} needs to be imported from {pi.path}.\n```code\n{pi.code}\n```"
| return s!"{pi.name} : {premise_type}\n"
return s!"{pi.name} : {premise_type}\n```doc\n{doc_str}\n```\n"
catch _ => return s!"{pi.name} needs to be imported from `{pi.path}`.\n```code\n{pi.code}\n```\n"


/--
Expand Down
3 changes: 1 addition & 2 deletions LeanCopilotTests/ProofSearch.lean
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ set_option trace.aesop true


example (a b c : Nat) : a + b + c = c + b + a := by
try aesop? (config := { maxRuleApplications := 2 })
try sorry
aesop? (config := { maxRuleApplications := 2 })

0 comments on commit e5a993a

Please sign in to comment.