Apply Hfnot to the current goal.
We prove the intermediate
claim HfnR:
apply_fun f n ∈ R.
We prove the intermediate
claim HgnR:
apply_fun g n ∈ R.
We prove the intermediate
claim HM_S:
SNo M.
An
exact proof term for the current goal is
(real_SNo M HM).
We prove the intermediate
claim HK_S:
SNo K.
An
exact proof term for the current goal is
(real_SNo K HKR).
An exact proof term for the current goal is (Hgprop n HnO).
An exact proof term for the current goal is (HUapply n HnO).
rewrite the current goal using HappUn (from right to left).
An exact proof term for the current goal is HgnU.
We prove the intermediate
claim Hgn_lt_M:
Rlt (apply_fun g n) M.
rewrite the current goal using Hx_to_xL1 (from right to left) at position 1.
An exact proof term for the current goal is HxL1_lt_y1.
We prove the intermediate
claim Hy_lt_M_lt:
apply_fun g n < M.
An
exact proof term for the current goal is
(RltE_lt (apply_fun g n) M Hgn_lt_M).
We prove the intermediate
claim Hx_lt_K:
Rlt (apply_fun f n) K.
rewrite the current goal using Hx1m1_eq (from right to left).
An exact proof term for the current goal is Hy_m1_lt_x0.
An exact proof term for the current goal is Hdist.
rewrite the current goal using HKneg (from left to right).
An exact proof term for the current goal is Htmp.