File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ import SP1Foundations.Opcode
88import SP1Foundations.Register
99import SP1Foundations.SP1State
1010import SP1Foundations.SailM
11+ import SP1Foundations.Tactics
1112import SP1Foundations.Unsigned
1213import SP1Foundations.Word
Original file line number Diff line number Diff line change 1+ import Lean
2+
3+ open Lean
4+
5+ /-- Recursively extract a goal from nested conjunctions in the context.
6+ Splits ANDs and tries exact on each branch, recursing if needed. -/
7+ syntax "extract_from_and" ident : tactic
8+
9+ macro_rules
10+ | `(tactic| extract_from_and $h:ident) => `(tactic|
11+ first
12+ | exact $h
13+ | (obtain ⟨h_left, h_right⟩ := $h
14+ first
15+ | exact h_left
16+ | exact h_right
17+ | extract_from_and h_left
18+ | extract_from_and h_right)
19+ )
You can’t perform that action at this time.
0 commit comments