Skip to content

Commit 60a4ae0

Browse files
committed
Disable problematic sorry detection.
1 parent f54ffd7 commit 60a4ae0

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

REPL/Main.lean

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,17 @@ def sorries (trees : List InfoTree) (env? : Option Environment) (rootGoals? : Op
122122
pure ("\n".intercalate <| (← s.ppGoals).map fun s => s!"{s}", some s)
123123
| .term _ none => unreachable!
124124
let proofStateId ← proofState.mapM recordProofSnapshot
125-
let goalInfo : Option GoalInfo ← match proofState with
126-
| some proofState => do
127-
match proofState.tacticState.goals[0]? with
128-
| some goalId => do
129-
-- TODO: this does not work when it's just `sorry` instead of `by sorry` - allow printGoalInfo to return none
130-
let info ← printGoalInfo ctx goalId
131-
pure (some info)
132-
| none => pure none
133-
| none => pure none
125+
-- let goalInfo : Option GoalInfo ← match proofState with
126+
-- | some proofState => do
127+
-- match proofState.tacticState.goals[0]? with
128+
-- | some goalId => do
129+
-- -- TODO: this does not work when it's just `sorry` instead of `by sorry` - allow printGoalInfo to return none
130+
-- let info ← printGoalInfo ctx goalId
131+
-- pure (some info)
132+
-- | none => pure none
133+
-- | none => pure none
134+
-- TODO
135+
let goalInfo : Option GoalInfo := none
134136
return Sorry.of goal goalInfo pos endPos proofStateId
135137

136138
def ppTactic (ctx : ContextInfo) (stx : Syntax) : IO Format :=

0 commit comments

Comments
 (0)