Zulip Chat Archive

Stream: lean4

Topic: Getting a proof term out of `grind`


Wrenna Robson (Oct 03 2025 at 15:09):

I have the following.

theorem blahj {a b : Fin 2} (hab : a < b) : a = 0  b = 1 := by grind

I would like to understand what grind is using for this. How do I do this?

Wrenna Robson (Oct 03 2025 at 15:10):

Ah I think it might be using cutsat?

Ruben Van de Velde (Oct 03 2025 at 15:48):

Not yet, but it will come

Wrenna Robson (Oct 03 2025 at 15:48):

Fair.

Bhavik Mehta (Oct 03 2025 at 16:42):

You can see the proof term like this:

theorem blahj {a b : Fin 2} (hab : a < b) : a = 0  b = 1 := by
  grind -abstractProof

#print blahj

Last updated: Dec 20 2025 at 21:32 UTC