fix: Shield tactics from the environment generated by frontend.process #199

Merged
aniva merged 5 commits from bug/exact-question-mark into dev 2025-05-01 09:26:53 -07:00
Owner

exact? should fail when applied to 1 + 2 = 2 + 3, so this is correct:

goal.start {"expr": "1 + 2 = 2 + 3"}
goal.tactic {"stateId": 0, "goalId": 0, "tactic": "exact?"}

but this is not

frontend.process {"file": "theorem lenislemma : 1 + 2 = 2 + 3 := by sorry", "readHeader": false, "inheritEnv": false, "invocations": false, "sorrys": true, "typeErrorsAsGoals": false, "newConstants": false}
goal.tactic {"stateId": 0, "goalId": 0, "tactic": "exact?"}

same incorrect behaviour shows up when we replace by sorry with sorry.

  • feat: Add message log even in the successful case of tactic execution
  • fix: Prevent tactics from using constants when they're in the constants definitions
`exact?` should fail when applied to `1 + 2 = 2 + 3`, so this is correct: ```jsonl goal.start {"expr": "1 + 2 = 2 + 3"} goal.tactic {"stateId": 0, "goalId": 0, "tactic": "exact?"} ``` but this is not ```jsonl frontend.process {"file": "theorem lenislemma : 1 + 2 = 2 + 3 := by sorry", "readHeader": false, "inheritEnv": false, "invocations": false, "sorrys": true, "typeErrorsAsGoals": false, "newConstants": false} goal.tactic {"stateId": 0, "goalId": 0, "tactic": "exact?"} ``` same incorrect behaviour shows up when we replace `by sorry` with `sorry`. - feat: Add message log even in the successful case of tactic execution - fix: Prevent tactics from using constants when they're in the constants definitions
aniva added the
part/Frontend
category
bug
labels 2025-05-01 08:59:16 -07:00
aniva self-assigned this 2025-05-01 08:59:16 -07:00
aniva added 1 commit 2025-05-01 08:59:16 -07:00
aniva added 1 commit 2025-05-01 09:21:53 -07:00
aniva added 2 commits 2025-05-01 09:24:55 -07:00
aniva added 1 commit 2025-05-01 09:25:14 -07:00
aniva merged commit 06071c1044 into dev 2025-05-01 09:26:53 -07:00
aniva deleted branch bug/exact-question-mark 2025-05-01 09:26:54 -07:00
Sign in to join this conversation.
No description provided.