{"action":"created","issue":{"url":"https://api.github.com/repos/coq/coq/issues/6676","repository_url":"https://api.github.com/repos/coq/coq","labels_url":"https://api.github.com/repos/coq/coq/issues/6676/labels{/name}","comments_url":"https://api.github.com/repos/coq/coq/issues/6676/comments","events_url":"https://api.github.com/repos/coq/coq/issues/6676/events","html_url":"https://github.com/coq/coq/pull/6676","id":293159749,"number":6676,"title":"[proofview] goals come with a state","user":{"login":"gares","id":1013846,"avatar_url":"https://avatars2.githubusercontent.com/u/1013846?v=4","gravatar_id":"","url":"https://api.github.com/users/gares","html_url":"https://github.com/gares","followers_url":"https://api.github.com/users/gares/followers","following_url":"https://api.github.com/users/gares/following{/other_user}","gists_url":"https://api.github.com/users/gares/gists{/gist_id}","starred_url":"https://api.github.com/users/gares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gares/subscriptions","organizations_url":"https://api.github.com/users/gares/orgs","repos_url":"https://api.github.com/users/gares/repos","events_url":"https://api.github.com/users/gares/events{/privacy}","received_events_url":"https://api.github.com/users/gares/received_events","type":"User","site_admin":false},"labels":[{"id":723611231,"url":"https://api.github.com/repos/coq/coq/labels/kind:%20enhancement","name":"kind: enhancement","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/coq/coq/milestones/5","html_url":"https://github.com/coq/coq/milestone/5","labels_url":"https://api.github.com/repos/coq/coq/milestones/5/labels","id":2550427,"number":5,"title":"8.8","description":"","creator":{"login":"maximedenes","id":647105,"avatar_url":"https://avatars1.githubusercontent.com/u/647105?v=4","gravatar_id":"","url":"https://api.github.com/users/maximedenes","html_url":"https://github.com/maximedenes","followers_url":"https://api.github.com/users/maximedenes/followers","following_url":"https://api.github.com/users/maximedenes/following{/other_user}","gists_url":"https://api.github.com/users/maximedenes/gists{/gist_id}","starred_url":"https://api.github.com/users/maximedenes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximedenes/subscriptions","organizations_url":"https://api.github.com/users/maximedenes/orgs","repos_url":"https://api.github.com/users/maximedenes/repos","events_url":"https://api.github.com/users/maximedenes/events{/privacy}","received_events_url":"https://api.github.com/users/maximedenes/received_events","type":"User","site_admin":false},"open_issues":147,"closed_issues":366,"state":"open","created_at":"2017-05-30T13:02:47Z","updated_at":"2018-02-23T10:44:28Z","due_on":null,"closed_at":null},"comments":43,"created_at":"2018-01-31T13:35:10Z","updated_at":"2018-02-23T11:20:03Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/coq/coq/pulls/6676","html_url":"https://github.com/coq/coq/pull/6676","diff_url":"https://github.com/coq/coq/pull/6676.diff","patch_url":"https://github.com/coq/coq/pull/6676.patch"},"body":"This PR attaches to goals a (extensible) state.\r\nThe purpose is to make the threading of data between sub-tactics easy, in turn to let one write tactics out of smaller components.\r\n\r\nFor example take the goal:\r\n```\r\n=====\r\nforall a, a = 3 -> G\r\n```\r\nthe semantics of `=> _ b` (for any b) is `intro \"_a_\" <*> b <*> clear \"_a_\"`.\r\nThe actual clear is delayed to accommodate cases in which \"_a_\" is used in the goal, but the rest of the intro patters (`b` in the example) gets rid of all occurrences of `_a_` (examples of such `b` is `->`, or `_` if `G` does not contain `a`).\r\n\r\nOf course one could process the entire sequence of ipat in one gigantic tactic, but I want to write it in the\r\nmore natural/compositional style `init_state <*> ipat_1 <*>... <*> ipat_n <*> end_state`.  For this to work some state (e.g. the list of hyps to be cleared) has to be threaded with goals and inherited by subgoals (e.g. is a clear was scheduled, and a case (`[]`) is performed, all branches have to inherit the set of hyps to be cleared).\r\n\r\nThis PR is related to the work of implementing the intro-patter-machine (`ssripats.ml`) in the tactic monad."},"comment":{"url":"https://api.github.com/repos/coq/coq/issues/comments/367982755","html_url":"https://github.com/coq/coq/pull/6676#issuecomment-367982755","issue_url":"https://api.github.com/repos/coq/coq/issues/6676","id":367982755,"user":{"login":"ejgallego","id":7192257,"avatar_url":"https://avatars2.githubusercontent.com/u/7192257?v=4","gravatar_id":"","url":"https://api.github.com/users/ejgallego","html_url":"https://github.com/ejgallego","followers_url":"https://api.github.com/users/ejgallego/followers","following_url":"https://api.github.com/users/ejgallego/following{/other_user}","gists_url":"https://api.github.com/users/ejgallego/gists{/gist_id}","starred_url":"https://api.github.com/users/ejgallego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejgallego/subscriptions","organizations_url":"https://api.github.com/users/ejgallego/orgs","repos_url":"https://api.github.com/users/ejgallego/repos","events_url":"https://api.github.com/users/ejgallego/events{/privacy}","received_events_url":"https://api.github.com/users/ejgallego/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T11:20:03Z","updated_at":"2018-02-23T11:20:03Z","author_association":"MEMBER","body":"Another thing to be suspicious of backtracking monads is their bad interaction with `cut` [in the Prolog sense], IIRC cut will basically destroy associativity for bind and can indeed create lots of trouble for that reason."}}
{"actor":{"display_login":"ejgallego"}}