Set F to be the term λx y a ⇒ SNoCut ({a w y|wSNoL x} {a x w|wSNoL y}) ({a z y|zSNoR x} {a x z|zSNoR y}) of type setset(setsetset)set.
We prove the intermediate claim L1: ∀x, SNo x∀y, SNo y∀g h : setsetset, (wSNoS_ (SNoLev x), ∀z, SNo zg w z = h w z)(zSNoS_ (SNoLev y), g x z = h x z)F x y g = F x y h.
Let x be given.
Assume Hx: SNo x.
Let y be given.
Assume Hy: SNo y.
Let g and h be given.
Assume Hgh1: wSNoS_ (SNoLev x), ∀z, SNo zg w z = h w z.
Assume Hgh2: zSNoS_ (SNoLev y), g x z = h x z.
We will prove F x y g = F x y h.
We prove the intermediate claim L1a: {g w y|wSNoL x} = {h w y|wSNoL x}.
Apply ReplEq_ext to the current goal.
Let w be given.
Assume Hw: w SNoL x.
We will prove g w y = h w y.
Apply Hgh1 to the current goal.
We will prove w SNoS_ (SNoLev x).
An exact proof term for the current goal is SNoL_SNoS x Hx w Hw.
We will prove SNo y.
An exact proof term for the current goal is Hy.
We prove the intermediate claim L1b: {g x w|wSNoL y} = {h x w|wSNoL y}.
Apply ReplEq_ext to the current goal.
Let w be given.
Assume Hw: w SNoL y.
We will prove g x w = h x w.
Apply Hgh2 to the current goal.
We will prove w SNoS_ (SNoLev y).
An exact proof term for the current goal is SNoL_SNoS y Hy w Hw.
We prove the intermediate claim L1c: {g z y|zSNoR x} = {h z y|zSNoR x}.
Apply ReplEq_ext to the current goal.
Let z be given.
Assume Hz: z SNoR x.
We will prove g z y = h z y.
Apply Hgh1 to the current goal.
We will prove z SNoS_ (SNoLev x).
An exact proof term for the current goal is SNoR_SNoS x Hx z Hz.
We will prove SNo y.
An exact proof term for the current goal is Hy.
We prove the intermediate claim L1d: {g x z|zSNoR y} = {h x z|zSNoR y}.
Apply ReplEq_ext to the current goal.
Let z be given.
Assume Hz: z SNoR y.
We will prove g x z = h x z.
Apply Hgh2 to the current goal.
We will prove z SNoS_ (SNoLev y).
An exact proof term for the current goal is SNoR_SNoS y Hy z Hz.
We will prove SNoCut ({g w y|wSNoL x} {g x w|wSNoL y}) ({g z y|zSNoR x} {g x z|zSNoR y}) = SNoCut ({h w y|wSNoL x} {h x w|wSNoL y}) ({h z y|zSNoR x} {h x z|zSNoR y}).
rewrite the current goal using L1a (from left to right).
rewrite the current goal using L1b (from left to right).
rewrite the current goal using L1c (from left to right).
rewrite the current goal using L1d (from left to right).
Use reflexivity.
An exact proof term for the current goal is SNo_rec2_eq F L1.