Skip to content

Commit bd7db55

Browse files
authored
Merge pull request #149 from stanford-centaur/frontend/distil
doc: Set `ignore_values = False` by default
2 parents fba39f1 + 350bbd0 commit bd7db55

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/goal.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
"def f : Nat -> Nat := sorry\n",
495495
"theorem property (n : Nat) : f n = n + 1 := sorry\n",
496496
"\"\"\"\n",
497-
"target, = await server.load_sorry_async(sketch)\n",
497+
"target, = await server.load_sorry_async(sketch, ignore_values=True)\n",
498498
"print(target.goal_state)"
499499
]
500500
},

pantograph/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ async def load_sorry_async(
564564
self,
565565
src: str,
566566
binder_name: Optional[str] = None,
567-
ignore_values: bool = True) -> list[SearchTarget]:
567+
ignore_values: bool = False) -> list[SearchTarget]:
568568
"""
569569
Condense search target into goals
570570
"""

pantograph/test_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def test_load_definitions(self):
268268

269269
def test_load_sorry(self):
270270
server = Server()
271-
unit, = server.load_sorry("theorem mystery (p: Prop) : p → p := sorry", ignore_values=False)
271+
unit, = server.load_sorry("theorem mystery (p: Prop) : p → p := sorry")
272272
#self.assertIsNotNone(unit.goal_state, f"{unit.messages}")
273273
state0 = unit.goal_state
274274
self.assertEqual(state0.goals, [
@@ -301,7 +301,7 @@ def test_load_sorry(self):
301301

302302
def test_distil_search_target(self):
303303
server = Server()
304-
unit, = server.load_sorry("theorem mystery (p: Prop) : p → p := sorry")
304+
unit, = server.load_sorry("theorem mystery (p: Prop) : p → p := sorry", ignore_values = True)
305305
state0 = unit.goal_state
306306
self.assertEqual(state0.goals, [
307307
Goal(

0 commit comments

Comments
 (0)