Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hint of "exact?" & "apply?" #4

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

feat: hint of "exact?" & "apply?" #4

wants to merge 4 commits into from

Conversation

kokic
Copy link
Contributor

@kokic kokic commented Aug 15, 2024

Example

elab "show_exact?" : tactic =>
  Lean.Elab.Tactic.withMainContext do
    let ref := (← getRef)
    let hint := (← getGoalExactHint ref)
    IO.print s!"[*] try: {hint}"

def target_goal: ∀ (n m : Nat), n + m = m + n := by
  show_exact?

@kokic kokic changed the title feat: hint of "exact?" feat: hint of "exact?" & "apply?" Aug 19, 2024
@kokic kokic requested a review from tonyxty August 19, 2024 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant