coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?
Chronological Thread
- From: "Kumar, Ashish" <azk640 AT psu.edu>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?
- Date: Sat, 22 Aug 2020 14:43:04 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=psu.edu; dmarc=pass action=none header.from=psu.edu; dkim=pass header.d=psu.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VdIf7Od8TJvTl3w83H9cymMCw79af2k6R22VMOToPrk=; b=hF9VqF7kAc23RGLLAGon32vePFsrFUT/MfRUOy+VMUCEBWJJz7JgtIu1JFAa71iKFPBz/e1NdBE0+bhYVKbAbNy9TD6ir3ZUbPfhalbs+xn2szb/KDhM+E3AxyMOwGF/0wCpf/KDPEyR+trFXsl/Zb4MdI97aYtI+sJGwj9zB2cjrrVftFm5Uu8IpR+UCCNk1eBwfCqB37qIrtmFLwwFn9R+x2hTAmnP58NmQHT7lGnk27+QPPcREKVQpxVjSv+0N8wN9BhWHob5xs2h9A2NRtIWgpKXq/SFENI8ilemNhNe6GpyRJQcluWL5Fn039N9LOFEQsB6zjRuuzdlrsCZlg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UhURBDnZD6eKFFf7ESmPFA9Tpn/vnr/3/y145jUyKniAxOY1CVEGxrlDsrmqq0J1nmn9DgQoaROWfn8jlKMCN68zI/Q0MybpbnFTCJLyONk1HEvvd4cpoRpTBTVHA6unVH7yehEkfwtzHhlB2uPAtQ682dmkKjbg/DQk7K/6tKAaf/9WHUUYxffyXAIJGypIQ6bLLaQcUCkW/7t4TGePMk3x4Dmt7+N8Jj40Qx+W28dxmurOOJMkiShS/UjTfc2cAnz3qm0O3H2OG3d+Ety97xx2u3y4WuEAyEsxmlxx/CDXx1V6cach67lJF9/vEkaC23xNBizYYEnqVDApQDVk8A==
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=azk640 AT psu.edu; spf=None smtp.mailfrom=azk640 AT psu.edu; spf=Pass smtp.helo=postmaster AT NAM02-CY1-obe.outbound.protection.outlook.com
- Ironport-phdr: 9a23:uCtbZRbaaXZfbWxAl9MSezr/LSx+4OfEezUN459isYplN5qZrs26bnLW6fgltlLVR4KTs6sC17OI9fm5BSdeuN6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vLRi6txjdutQZjIdtK6s91wbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDM/7WrZiNF/jLhDrRyhuRJx3pLUbo+WOvpwfKzdfM8VSmVaU8lLSyBNHpmxY5cTA+YcO+tTsonzp0EJrRu7HQSgCubhyiJNhnDsx602y/kqHB3d3AwgHtIOq3TUoNvoP6oVS++0zarIwDTMYv9Kwjr98JPIcg07rf6SQL1wbNPcxE8yHAzKklues5bqPy+J1usTqWib6fJtWO2hhmMpqwx8rTuiy8Yih4TIhowZ1l7K+Ct2zYg6KtO1VVJ3bNy6HZVetyyXNIp7T8w+Tmxpuys0xKELt5C4cSUM1Z8pxAbfZuSIfoSU+B7vSfqdLDViiH9neb+znQu+/Va+xuHkS8W4zFlHojBLn9TPrHwA2ALf5tKGR/dg5kutxzeC2xzd5+xBPEw4ibHUJp8kz7IuipYeskHOEy/ylUjziaKaa1go9+614Or9eLrmvIWTN4pshwH+LKsunsu/DPwgPAUSWGaX5fqw2KT98EL7XblGl/o2nbLHv5zAIsQbu7K5DBRS0oY+7RawEi2q0MwCnXkAMFJKZg6Ij5ToO1HJJvD0F/C/g0mwkDdvwPDGOb7hDo/RIXjElbftZbd960hCxwov1d1S6I5YBqscLP7vWEL9rt7VAx4jPwCp3errFs1x1oYEVmKOBq+ZPrnSsViN5u83OeaNZYwVtTfyJvQ5/PPulWQ5mUIHcaa3wJQXdWi0Hu56LEWBfXrsntABHH8WsQo5VezmkUGNUTpOZ3mpRK88/TE6CIe+DYjZXIytgbqB3D26HpJMfGxGBEqMQj/UcNDOUPAVLSmWP8VJkzoeVLHnRZVrnUWlsxa/wL56JMLV/DcZvNTtzo4myffUkER41iFxBt7Zm0iWT2BvnilAEzYk3/4j+WRl0UrF3KRl1a8LXedP7u9EB19pfaXXyPZ3XoirB1DxO+yRQVPjee2IRDE8StVtnI0oSmMlQZCJv0mG2CCnRbgIi7aMGZo4tLrG2GT8LNp8zHCA07Q9i14hQY1EMmj03/cupTiWPJbAlgCir4jvcK0d2CDX82LSn3KVoQdVXBMiCfyZD0BaXVPfqJHC3m2HV6WnWOY/KRYHxMKfePNH
Here's one example I could find (not the worst one, but it highlights my point):
In one of the files in my project 'vv_lt_irefl' is a lemma defined by:
Lemma vv_lt_irefl : forall (v:vpg_var), vpg_var_as_OT.lt v v -> False.
When I encountered the term 'vv_lt_irefl' in another file for the first time, I did 'Print vv_lt_irfl'. Coq's output was:
vv_lt_irefl =
It clearly unfolded the term 'vpg_var_as_OT.lt', and even unfolded terms within this term - making it hard to read. Is there a way I can print 'vv_lt_irefl' without Coq unfolding it's inner terms?
In one of the files in my project 'vv_lt_irefl' is a lemma defined by:
Lemma vv_lt_irefl : forall (v:vpg_var), vpg_var_as_OT.lt v v -> False.
When I encountered the term 'vv_lt_irefl' in another file for the first time, I did 'Print vv_lt_irfl'. Coq's output was:
vv_lt_irefl =
let s : StrictOrder vpg_var_as_OT.lt := vpg_var_as_OT.lt_strorder in
let H : forall v : vpg_var, vpg_var_as_OT.lt v v -> False :=
match s with
| {| StrictOrder_Irreflexive := StrictOrder_Irreflexive;
StrictOrder_Transitive := StrictOrder_Transitive |} =>
(fun (StrictOrder_Irreflexive0 : Irreflexive vpg_var_as_OT.lt)
(_ : Transitive vpg_var_as_OT.lt) (v : vpg_var) =>
let c : complement vpg_var_as_OT.lt v v := StrictOrder_Irreflexive0 v in
c) StrictOrder_Irreflexive StrictOrder_Transitive
end in
H
: forall v : vpg_var, vpg_var_as_OT.lt v v -> False
It clearly unfolded the term 'vpg_var_as_OT.lt', and even unfolded terms within this term - making it hard to read. Is there a way I can print 'vv_lt_irefl' without Coq unfolding it's inner terms?
From: coq-club-request AT inria.fr <coq-club-request AT inria.fr> on behalf of Gaëtan Gilbert <gaetan.gilbert AT skyskimmer.net>
Sent: Saturday, August 22, 2020 9:38 AM
To: coq-club AT inria.fr <coq-club AT inria.fr>
Subject: Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?
Sent: Saturday, August 22, 2020 9:38 AM
To: coq-club AT inria.fr <coq-club AT inria.fr>
Subject: Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?
Depending on what you mean by "sub definitions" this may be impossible. Can you give an example?
Gaëtan Gilbert
On 22/08/2020 14:58, Kumar, Ashish wrote:
> I use "Print A" to print the definition of a term A. But Coq unfolds all the sub-definitions and functions within the term and sometimes, the resultant definition becomes very long and unreadable. Is there a way by which I can print definitions without having Coq unfold the inner functions and definitions? (I tried set unprinting notations, but that didn't work).
>
> With regards,
> Ashish
Gaëtan Gilbert
On 22/08/2020 14:58, Kumar, Ashish wrote:
> I use "Print A" to print the definition of a term A. But Coq unfolds all the sub-definitions and functions within the term and sometimes, the resultant definition becomes very long and unreadable. Is there a way by which I can print definitions without having Coq unfold the inner functions and definitions? (I tried set unprinting notations, but that didn't work).
>
> With regards,
> Ashish
- [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Kumar, Ashish, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Gaëtan Gilbert, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Kumar, Ashish, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Gaëtan Gilbert, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Jasper Hugunin, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Gaëtan Gilbert, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Jasper Hugunin, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Gaëtan Gilbert, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Kumar, Ashish, 08/22/2020
- Re: [Coq-Club] How can I print definitions without unfolding the sub-definitions within it?, Gaëtan Gilbert, 08/22/2020
Archive powered by MHonArc 2.6.19+.