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: add benchmarking tactic TACBENCH #838

Merged
merged 5 commits into from
Nov 14, 2024
Merged

feat: add benchmarking tactic TACBENCH #838

merged 5 commits into from
Nov 14, 2024

Conversation

bollu
Copy link
Collaborator

@bollu bollu commented Nov 14, 2024

This allows a user to run

theorem eg1 : 1 = 1 := by
  tac_bench ["rfl" : rfl, "wrong" : (rw [Nat.add_comm]), "success" : simp, "done" : done, "sorry" : sorry]
  sorry

which results in the trace output of

▶ 94:3-94:107: information:
TACSTART
  TACBENCH rfl PASS, TIME_ELAPSED 0.691666 ms, 
  TACBENCH wrong FAIL, TIME_ELAPSED 0.129250 ms, 
    tactic 'rewrite' failed, did not find instance of the pattern in the target expression
      ?n + ?m
    ⊢ 1 = 1
  TACBENCH success PASS, TIME_ELAPSED 0.290417 ms, 
  TACBENCH done FAIL, TIME_ELAPSED 0.030875 ms, 
    internal exception #4
  TACBENCH sorry PASS, TIME_ELAPSED 0.120958 ms, 
TACEND

which can be then parsed by our tools for easy benchmarking.

@bollu bollu enabled auto-merge November 14, 2024 04:05
@tobiasgrosser tobiasgrosser changed the title Tac bench feat: add benchmarking tactic Tac bench Nov 14, 2024
@tobiasgrosser tobiasgrosser changed the title feat: add benchmarking tactic Tac bench feat: add benchmarking tactic TACBENCH Nov 14, 2024
Copy link

Alive Statistics: 90 / 93 (3 failed)

@bollu bollu added this pull request to the merge queue Nov 14, 2024
Merged via the queue into main with commit ff6beb8 Nov 14, 2024
1 of 2 checks passed
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