Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Problem with contradiction

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Problem with contradiction


Chronological Thread 
  • From: Fabian Kunze <fabian.kunze AT cs.uni-saarland.de>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Problem with contradiction
  • Date: Sat, 12 Sep 2020 15:23:20 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=fabian.kunze AT cs.uni-saarland.de; spf=Pass smtp.mailfrom=fabian.kunze AT cs.uni-saarland.de; spf=None smtp.helo=postmaster AT triton.rz.uni-saarland.de
  • Ironport-phdr: 9a23:Q75MZBRw+L7hGn5Rpu2dnpF5xtpsv+yvbD5Q0YIujvd0So/mwa6yYxaN2/xhgRfzUJnB7Loc0qyK6v6mADZcqsbY+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAi3oAnLq8Uan4RvJqkyxxfUv3BFZ/lYyWR0KFyJgh3y/N2w/Jlt8yRRv/Iu6ctNWrjkcqo7ULJVEi0oP3g668P3uxbDSxCP5mYHXWUNjhVIGQnF4wrkUZr3ryD3q/By2CiePc3xULA0RTGv5LplRRP0lCsKMSMy/WfKgcJyka1bugqsqQFhzY7aYI+bN/Rwca3SctwYWWVMRdxeWzBbD46mc4cCAegMMOBFpIf9vVsOqh6+CBGsCuz10TBIh2X53asn2OokDAHG2g0hEMwTu3nTotX6LrwdUeGvw6nO1znDbO5W2TH86YfWaR0uveqMUahtccrXyEkjDhjFgU+Kpoz/OzOazOINvHWB4+V9S+2ikmgqoBx+rTaz3MkjkJXJhp4LxVDe8yV02Ig4KNymREN7fNOpDppdui6UOYV2Rs4vX2BltigkxrAEvZO2eCcHxYojyhPCZfGKd5SE7BLjWuuTLjp1inxodbC5ih2v8kag0vXxWtS63VtFtCZIltjBumoP2hDJ9MSKSuNx80Wj1DqVygzf9PtILEE1mKbBNpIsxqA8m5wOukrZBCD2gl/5jKqOe0Uk5Oeo7+Pnb636pp+GNo90lgb+MqI0lsylAOU0KBUOX26a+eilz73s51f2QK9OjvIslKnWrYrWKtkFqaKhAg9V1Jgs6wqnAju73tkVkmMLIVZEdR6djYXlIU/CLfDgAfe6mVuskTNrx/7cPr3mB5XANnbDn636crZ88UFczhA/zdNC55JSC7AOPun+VVPqtNDCEx85NQ20z//8CNpnzIweQ2aPDbWfMKzPq1OH+/wgL/GWZIAJoDb9N+Ql5/n2gHAlnl8dZLCl0ocTaHClBftrOF6ZYHrpgtcZC2gGpAs+TOrwiF2DSzFffXiyX7hvrg08XYmhFMLIQp2nqL2HxiayWJNMNU5cDVXZP37idoyCE9QRbjCfaptvmzYFXL7nSJInxxyGvxS81rxma/Hd8zccvJTvktR4sb6A3Sou/CB5WpzOm1qGSHt5yztRFm0GmZtnqEk48W+tlK1xgvhWD9tWvasbWRx8KJjdivdzAsr2UwTNONuEGg//H4eWRAopR9d0+OcgJkZwH9L40ULfxSu2BLlTja7NGZo1t7nV1mL1LsBxjXrLhvF40wsWB/BXPGjjvZZRshDJDtSRwU6C0busdOEH1SfX8G6FwSyCsRMAXQ==

Hi Richard,

what I always do in that case is to enable the exlicit printing of the used coercions:

Set Printing Coercions. (Or even "Set Printing All.")

My assumption would be that either H0 or H3 does not talk about equality between man, but between object (did you explicetly use "eqobject" somewhere?). If H0 uses coercions, need that ObjMan is actually injective as an explicit assumption. If H3 uses the coercion, "congruence" should just be able to solve the goal.

Best,
Fabian

Am 9/12/2020 um 14:45 schrieb Richard Dapoigny:
Dear Coq users,
I have the following problem.
Using the following inductive type:
Inductive man : Type := | Englishman | Spaniard | Ukrainian | Norwegian | Japanese.

with the following coercion:
Parameter ObjMan : man -> object. Coercion ObjMan  : man >-> object.

with:
Parameter object : Type.
Definition eqobject := @Logic.eq object.

In a demonstration I have the two hypotheses:
H0 : Englishman = Norwegian
H3 : Englishman = Norwegian → False
for which the tactic "contradiction" outputs: No such contradiction

What is the problem here? the coercion?
Thanks for your help.
Richard



Archive powered by MHonArc 2.6.19+.

Top of Page