Let y be given.
We prove the intermediate
claim Hsub:
((i,j) 1) 0 ⊆ ((i,j) 0) 0.
An
exact proof term for the current goal is
(andEL (((i,j) 1) 0 ⊆ ((i,j) 0) 0) ((((i,j) 0) 1,((i,j) 1) 1) ∈ le) Hraw).
We prove the intermediate
claim Hy1:
y ∈ (((i,j) 1) 0).
rewrite the current goal using
(tuple_2_1_eq i j) (from left to right).
An exact proof term for the current goal is Hy.
We prove the intermediate
claim Hy0:
y ∈ (((i,j) 0) 0).
An exact proof term for the current goal is (Hsub y Hy1).
rewrite the current goal using
(tuple_2_0_eq i j) (from right to left).
An exact proof term for the current goal is Hy0.
We prove the intermediate
claim Hle:
(((i,j) 0) 1,((i,j) 1) 1) ∈ le.
An
exact proof term for the current goal is
(andER (((i,j) 1) 0 ⊆ ((i,j) 0) 0) ((((i,j) 0) 1,((i,j) 1) 1) ∈ le) Hraw).
We prove the intermediate
claim Hi1:
((i,j) 0) 1 = (i 1).
rewrite the current goal using
(tuple_2_0_eq i j) (from left to right).
Use reflexivity.
We prove the intermediate
claim Hj1:
((i,j) 1) 1 = (j 1).
rewrite the current goal using
(tuple_2_1_eq i j) (from left to right).
Use reflexivity.
rewrite the current goal using Hi1 (from right to left).
rewrite the current goal using Hj1 (from right to left).
An exact proof term for the current goal is Hle.
∎