coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Burak Ekici <ekcburak AT hotmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Coq reals as a field instance.
- Date: Mon, 4 Apr 2016 23:00:01 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=ekcburak AT hotmail.com; spf=Pass smtp.mailfrom=ekcburak AT hotmail.com; spf=None smtp.helo=postmaster AT BLU004-OMC1S17.hotmail.com
- Ironport-phdr: 9a23:76qqWB2HS+xj8TyFsmDT+DRfVm0co7zxezQtwd8ZsegSI/ad9pjvdHbS+e9qxAeQG96Lu7Qf26GJ6ejJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6CyZ/nnL/os7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYjdt6qJUFCfmyP/lgDO8QMDNzOGcsocbvqBPrTA2V53JaXH9FvABPBl3v8QvzXd/csSrxt6Ip1SqRN9DsRLMcWTO+6q5qTFnjjyJRZG1xy33elsEl1PETmxmmvREqntbZ
Hi all,
I've been trying to prove Coq reals as an algebraic field instance.
Please find my code here:
https://github.com/ekiciburak/algebraic-groups-fields/blob/master/algebraic_groups_fields.v
Considering the last instance (at line 128):
"Program Instance field_reals: `(@field R (Req_setoid) _ rmult _ rid2 _ rinv2
group_reals)."
I was not able to prove the below obligation (at line 132):
"Obligation 4 of field_reals:
forall a : R, a == rid -> rmult (rinv2 a) a == rid2 -> False."
This basically looks like
1 subgoals
H0 : 1 / 0 * 0 = 1
______________________________________(1/1)
False
after unfolds. When to say "revert H0; psatz R 1.", Coq does not
complain, but it is not happy either; I'm getting something like
1 subgoals
______________________________________(1/1)
let __wit := nil in
let __varmap := VarMap.Empty R in
let __ff :=
Tauto.I
(Tauto.A
{|
Flhs := EnvRing.PEc
(RMicromega.CMult
(RMicromega.CMult RMicromega.C1
(RMicromega.CInv RMicromega.C0)) RMicromega.C0);
Fop := OpEq;
Frhs := EnvRing.PEc RMicromega.C1 |})
(Tauto.FF (Formula RMicromega.Rcst)) in
1 / 0 * 0 = 1 -> False.
I guess, this is because there is no witness for "psatz R 1" but I don't
know how to provide one.
I'd be more than appreciated if you could point me a way to get around
it. The problem might be a consequence of the way that I've
implemented things?
Many thanks in advance!
Best,
Burak.
- [Coq-Club] Coq reals as a field instance., Burak Ekici, 04/05/2016
- Re: [Coq-Club] Coq reals as a field instance., Frédéric Besson, 04/06/2016
Archive powered by MHonArc 2.6.18.