{"action":"created","issue":{"url":"https://api.github.com/repos/coq/coq/issues/268","repository_url":"https://api.github.com/repos/coq/coq","labels_url":"https://api.github.com/repos/coq/coq/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/coq/coq/issues/268/comments","events_url":"https://api.github.com/repos/coq/coq/issues/268/events","html_url":"https://github.com/coq/coq/pull/268","id":174068437,"number":268,"title":"Warning on names generated by Coq","user":{"login":"herbelin","id":460771,"avatar_url":"https://avatars2.githubusercontent.com/u/460771?v=3","gravatar_id":"","url":"https://api.github.com/users/herbelin","html_url":"https://github.com/herbelin","followers_url":"https://api.github.com/users/herbelin/followers","following_url":"https://api.github.com/users/herbelin/following{/other_user}","gists_url":"https://api.github.com/users/herbelin/gists{/gist_id}","starred_url":"https://api.github.com/users/herbelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herbelin/subscriptions","organizations_url":"https://api.github.com/users/herbelin/orgs","repos_url":"https://api.github.com/users/herbelin/repos","events_url":"https://api.github.com/users/herbelin/events{/privacy}","received_events_url":"https://api.github.com/users/herbelin/received_events","type":"User","site_admin":false},"labels":[{"id":485986179,"url":"https://api.github.com/repos/coq/coq/labels/feature","name":"feature","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://avatars2.githubusercontent.com/u/647105?v=3","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":41,"closed_issues":0,"state":"open","created_at":"2017-05-30T13:02:47Z","updated_at":"2017-06-09T11:59:15Z","due_on":null,"closed_at":null},"comments":86,"created_at":"2016-08-30T16:43:35Z","updated_at":"2017-06-09T18:55:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coq/coq/pulls/268","html_url":"https://github.com/coq/coq/pull/268","diff_url":"https://github.com/coq/coq/pull/268.diff","patch_url":"https://github.com/coq/coq/pull/268.patch"},"body":"This commit implements a mechanism to remember if a name is generated by Coq or not.\n\nThe idea is to build on PMP's fast-named branch (#263) and add another table in named_context_val which collects the names generated by Coq.\n\nCurrently, there is a flag `Set Generated Names Warning`, on by default, which makes that internalization outputs a warning every time it has to interpret a name registered as generated by Coq. E.g.:\n\n`Goal True -> True.`\n`intro.`\n`Check H.`\n`(* Warning: H is a mechanically generated name [private-name,ltac] *)`\n`clear H.`\n`(* Warning: H is a mechanically generated name [private-name,ltac] *)`\n\nMaybe the flag is not needed, and a \"-w\" would be enough.\n\nMaybe the possibility of returning an error could be interested for some people too.\n\nNote that the API on named_context_val is not very nice and I did not take time to make it nicer :(, taking instead the fastest path so that a prototype works and a discussion can happen. I did not check thoroughly yet that I did not make mistake in deciding what name is generated, what is not, looking first comments.\n"},"comment":{"url":"https://api.github.com/repos/coq/coq/issues/comments/307471762","html_url":"https://github.com/coq/coq/pull/268#issuecomment-307471762","issue_url":"https://api.github.com/repos/coq/coq/issues/268","id":307471762,"user":{"login":"JasonGross","id":396076,"avatar_url":"https://avatars3.githubusercontent.com/u/396076?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonGross","html_url":"https://github.com/JasonGross","followers_url":"https://api.github.com/users/JasonGross/followers","following_url":"https://api.github.com/users/JasonGross/following{/other_user}","gists_url":"https://api.github.com/users/JasonGross/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonGross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonGross/subscriptions","organizations_url":"https://api.github.com/users/JasonGross/orgs","repos_url":"https://api.github.com/users/JasonGross/repos","events_url":"https://api.github.com/users/JasonGross/events{/privacy}","received_events_url":"https://api.github.com/users/JasonGross/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T18:55:40Z","updated_at":"2017-06-09T18:55:40Z","body":">  Wasn't there some situation where IXn would be produced instead?\r\n\r\nOne of these?\r\n```coq\r\nInductive tree T := leaf (_ : T) | node (_ _ : tree T).\r\nGoal tree Set -> True.\r\n  intro x.\r\n  induction x; [ constructor | ].\r\n  (* 1 subgoal (ID 14)\r\n\r\n  x1, x2 : tree Set\r\n  IHx1, IHx2 : True\r\n  ============================\r\n  True\r\n   *)\r\nAbort.\r\nGoal nat -> False -> True.\r\n  intros n IHn.\r\n  induction n; [ constructor | ]. (*\r\n  n : nat\r\n  IHn : False\r\n  IHn0 : True\r\n  ============================\r\n  True\r\n *)\r\n```"}}
{"actor":{"display_login":"JasonGross"}}