I'm trying to use a CoQ/SSReflect proof using nat
to prove a very similar statement in rat
. The current proof status, within an Open Scope ring_scope
, is
(price bs i - price bs' i <= tnth bs i * ('ctr_ (sOi i) - 'ctr_ (sOi i')))%N
→ (price bs i)%:~R - (price bs' i)%:~R <=
(value_per_click i)%:~R * (('ctr_ (sOi i))%:~R - ('ctr_ (sOi i'))%:~R)
and, using Set Printing All
, it shows as
forall
_ : is_true
(leq (subn (price bs i) (price bs' i))
(muln (@nat_of_ord p (@tnth n bid bs i))
(subn (@nat_of_ord q (@tnth k ctr cs (sOi i)))
(@nat_of_ord q (@tnth k ctr cs (sOi i')))))),
is_true
(@Order.le ring_display (Num.NumDomain.porderType rat_numDomainType)
(@GRing.add rat_ZmodType
(@intmul (GRing.Ring.zmodType rat_Ring) (GRing.one rat_Ring) (Posz (price bs i)))
(@GRing.opp rat_ZmodType
(@intmul (GRing.Ring.zmodType rat_Ring) (GRing.one rat_Ring) (Posz (price bs' i)))))
(@GRing.mul rat_Ring
(@intmul (GRing.Ring.zmodType rat_Ring) (GRing.one rat_Ring)
(Posz (value_per_click i)))
(@GRing.add (GRing.Ring.zmodType rat_Ring)
(@intmul (GRing.Ring.zmodType rat_Ring) (GRing.one rat_Ring)
(Posz (@nat_of_ord q (@tnth k ctr cs (sOi i)))))
(@GRing.opp (GRing.Ring.zmodType rat_Ring)
(@intmul (GRing.Ring.zmodType rat_Ring) (GRing.one rat_Ring)
(Posz (@nat_of_ord q (@tnth k ctr cs (sOi i')))))))))
I have been trying to use various rewrite
such as ler_nat
, PoszM
, intrM
, but with not much success. Could anyone provide me with some hints on how to proceed?
PS: I'm not able to provide a minimal working example, given I'm not exactly mastering what I'm doing here ;)