%   ORIGINAL: h4/llist/LMAP__LUNFOLD
% Assm: HL_TRUTH: T
% Assm: HL_FALSITY: ~F
% Assm: HL_BOOL_CASES: !t. (t <=> T) \/ (t <=> F)
% Assm: HL_EXT: !f g. (!x. f x = g x) ==> f = g
% Assm: h4/bool/TRUTH: T
% Assm: h4/bool/IMP__ANTISYM__AX: !t2 t1. (t1 ==> t2) ==> (t2 ==> t1) ==> (t1 <=> t2)
% Assm: h4/bool/FALSITY: !t. F ==> t
% Assm: h4/bool/EXISTS__SIMP: !t. (?x. t) <=> t
% Assm: h4/bool/AND__CLAUSES_c0: !t. T /\ t <=> t
% Assm: h4/bool/AND__CLAUSES_c2: !t. F /\ t <=> F
% Assm: h4/bool/OR__CLAUSES_c0: !t. T \/ t <=> T
% Assm: h4/bool/OR__CLAUSES_c2: !t. F \/ t <=> t
% Assm: h4/bool/REFL__CLAUSE: !x. x = x <=> T
% Assm: h4/bool/EQ__SYM__EQ: !y x. x = y <=> y = x
% Assm: h4/bool/AND__IMP__INTRO: !t3 t2 t1. t1 ==> t2 ==> t3 <=> t1 /\ t2 ==> t3
% Assm: h4/bool/IMP__CONG: !y_27 y x_27 x. (x <=> x_27) /\ (x_27 ==> (y <=> y_27)) ==> (x ==> y <=> x_27 ==> y_27)
% Assm: h4/bool/UNWIND__THM2: !a P. (?x. x = a /\ P x) <=> P a
% Assm: h4/option/option__nchotomy: !opt. opt = h4/option/NONE \/ (?x. opt = h4/option/SOME x)
% Assm: h4/option/SOME__11: !y x. h4/option/SOME x = h4/option/SOME y <=> x = y
% Assm: h4/option/NOT__NONE__SOME: !x. ~(h4/option/NONE = h4/option/SOME x)
% Assm: h4/option/OPTION__MAP__EQ__SOME: !y x f. h4/option/OPTION__MAP f x = h4/option/SOME y <=> (?z. x = h4/option/SOME z /\ y = f z)
% Assm: h4/option/OPTION__MAP__EQ__NONE__both__ways_c1: !x f. h4/option/NONE = h4/option/OPTION__MAP f x <=> x = h4/option/NONE
% Assm: h4/pair/CLOSED__PAIR__EQ: !y x b a. h4/pair/_2C x y = h4/pair/_2C a b <=> x = a /\ y = b
% Assm: h4/pair/ABS__PAIR__THM: !x. ?q r. x = h4/pair/_2C q r
% Assm: h4/pair/UNCURRY__DEF: !y x f. h4/pair/UNCURRY f (h4/pair/_2C x y) = f x y
% Assm: h4/llist/LHD__THM_c0: h4/llist/LHD h4/llist/LNIL = h4/option/NONE
% Assm: h4/llist/LHD__THM_c1: !t h. h4/llist/LHD (h4/llist/LCONS h t) = h4/option/SOME h
% Assm: h4/llist/LTL__THM_c0: h4/llist/LTL h4/llist/LNIL = h4/option/NONE
% Assm: h4/llist/LTL__THM_c1: !t h. h4/llist/LTL (h4/llist/LCONS h t) = h4/option/SOME t
% Assm: h4/llist/LMAP0_c0: !f. h4/llist/LMAP f h4/llist/LNIL = h4/llist/LNIL
% Assm: h4/llist/LMAP0_c1: !t h f. h4/llist/LMAP f (h4/llist/LCONS h t) = h4/llist/LCONS (f h) (h4/llist/LMAP f t)
% Assm: h4/llist/LUNFOLD__THM_c0: !x f. f x = h4/option/NONE ==> h4/llist/LUNFOLD f x = h4/llist/LNIL
% Assm: h4/llist/LUNFOLD__THM_c1: !x v2 v1 f. f x = h4/option/SOME (h4/pair/_2C v1 v2) ==> h4/llist/LUNFOLD f x = h4/llist/LCONS v2 (h4/llist/LUNFOLD f v1)
% Assm: h4/llist/LUNFOLD__EQ: !s ll f R. R s ll /\ (!s0 ll0. R s0 ll0 ==> f s0 = h4/option/NONE /\ ll0 = h4/llist/LNIL \/ (?s_27 x ll_27. f s0 = h4/option/SOME (h4/pair/_2C s_27 x) /\ h4/llist/LHD ll0 = h4/option/SOME x /\ h4/llist/LTL ll0 = h4/option/SOME ll_27 /\ R s_27 ll_27)) ==> h4/llist/LUNFOLD f s = ll
% Goal: !s g f. h4/llist/LMAP f (h4/llist/LUNFOLD g s) = h4/llist/LUNFOLD (\s0. h4/option/OPTION__MAP (h4/pair/UNCURRY (\x y. h4/pair/_2C x (f y))) (g s0)) s
%   PROCESSED
% Assm [HLu_TRUTH]: T
% Assm [HLu_FALSITY]: ~F
% Assm [HLu_BOOLu_CASES]: !t. (t <=> T) \/ (t <=> F)
% Assm [HLu_EXT]: !f g. (!x. happ f x = happ g x) ==> f = g
% Assm [h4s_bools_TRUTH]: T
% Assm [h4s_bools_IMPu_u_ANTISYMu_u_AX]: !t2 t1. (t1 ==> t2) ==> (t2 ==> t1) ==> (t1 <=> t2)
% Assm [h4s_bools_FALSITY]: !t. F ==> t
% Assm [h4s_bools_EXISTSu_u_SIMP]: !t. (?x. t) <=> t
% Assm [h4s_bools_ANDu_u_CLAUSESu_c0]: !t. T /\ t <=> t
% Assm [h4s_bools_ANDu_u_CLAUSESu_c2]: !t. F /\ t <=> F
% Assm [h4s_bools_ORu_u_CLAUSESu_c0]: !t. T \/ t <=> T
% Assm [h4s_bools_ORu_u_CLAUSESu_c2]: !t. F \/ t <=> t
% Assm [h4s_bools_REFLu_u_CLAUSE]: !x. x = x <=> T
% Assm [h4s_bools_EQu_u_SYMu_u_EQ]: !y x. x = y <=> y = x
% Assm [h4s_bools_ANDu_u_IMPu_u_INTRO]: !t3 t2 t1. t1 ==> t2 ==> t3 <=> t1 /\ t2 ==> t3
% Assm [h4s_bools_IMPu_u_CONG]: !y_27 y x_27 x. (x <=> x_27) /\ (x_27 ==> (y <=> y_27)) ==> (x ==> y <=> x_27 ==> y_27)
% Assm [h4s_bools_UNWINDu_u_THM2]: !a P. (?x. x = a /\ happ P x) <=> happ P a
% Assm [h4s_options_optionu_u_nchotomy]: !opt. opt = h4/option/NONE \/ (?x. opt = h4/option/SOME x)
% Assm [h4s_options_SOMEu_u_11]: !y x. h4/option/SOME x = h4/option/SOME y <=> x = y
% Assm [h4s_options_NOTu_u_NONEu_u_SOME]: !x. ~(h4/option/NONE = h4/option/SOME x)
% Assm [h4s_options_OPTIONu_u_MAPu_u_EQu_u_SOME]: !y x f. h4/option/OPTION__MAP f x = h4/option/SOME y <=> (?z. x = h4/option/SOME z /\ y = happ f z)
% Assm [h4s_options_OPTIONu_u_MAPu_u_EQu_u_NONEu_u_bothu_u_waysu_c1]: !x f. h4/option/NONE = h4/option/OPTION__MAP f x <=> x = h4/option/NONE
% Assm [h4s_pairs_CLOSEDu_u_PAIRu_u_EQ]: !y x b a. h4/pair/_2C x y = h4/pair/_2C a b <=> x = a /\ y = b
% Assm [h4s_pairs_ABSu_u_PAIRu_u_THM]: !x. ?q r. x = h4/pair/_2C q r
% Assm [h4s_pairs_UNCURRYu_u_DEF]: !y x f. happ (h4/pair/UNCURRY f) (h4/pair/_2C x y) = happ (happ f x) y
% Assm [h4s_llists_LHDu_u_THMu_c0]: h4/llist/LHD h4/llist/LNIL = h4/option/NONE
% Assm [h4s_llists_LHDu_u_THMu_c1]: !t h. h4/llist/LHD (h4/llist/LCONS h t) = h4/option/SOME h
% Assm [h4s_llists_LTLu_u_THMu_c0]: h4/llist/LTL h4/llist/LNIL = h4/option/NONE
% Assm [h4s_llists_LTLu_u_THMu_c1]: !t h. h4/llist/LTL (h4/llist/LCONS h t) = h4/option/SOME t
% Assm [h4s_llists_LMAP0u_c0]: !f. h4/llist/LMAP f h4/llist/LNIL = h4/llist/LNIL
% Assm [h4s_llists_LMAP0u_c1]: !t h f. h4/llist/LMAP f (h4/llist/LCONS h t) = h4/llist/LCONS (happ f h) (h4/llist/LMAP f t)
% Assm [h4s_llists_LUNFOLDu_u_THMu_c0]: !x f. happ f x = h4/option/NONE ==> h4/llist/LUNFOLD f x = h4/llist/LNIL
% Assm [h4s_llists_LUNFOLDu_u_THMu_c1]: !x v2 v1 f. happ f x = h4/option/SOME (h4/pair/_2C v1 v2) ==> h4/llist/LUNFOLD f x = h4/llist/LCONS v2 (h4/llist/LUNFOLD f v1)
% Assm [h4s_llists_LUNFOLDu_u_EQ]: !s ll f R. happ (happ R s) ll /\ (!s0 ll0. happ (happ R s0) ll0 ==> happ f s0 = h4/option/NONE /\ ll0 = h4/llist/LNIL \/ (?s_27 x ll_27. happ f s0 = h4/option/SOME (h4/pair/_2C s_27 x) /\ h4/llist/LHD ll0 = h4/option/SOME x /\ h4/llist/LTL ll0 = h4/option/SOME ll_27 /\ happ (happ R s_27) ll_27)) ==> h4/llist/LUNFOLD f s = ll
% Goal: !_2. (!x f y. happ (happ (happ _2 x) f) y = h4/pair/_2C x (happ f y)) ==> (!_1. (!f x. happ (happ _1 f) x = happ (happ _2 x) f) ==> (!_0. (!f g s0. happ (happ (happ _0 f) g) s0 = h4/option/OPTION__MAP (h4/pair/UNCURRY (happ _1 f)) (happ g s0)) ==> (!s g f. h4/llist/LMAP f (h4/llist/LUNFOLD g s) = h4/llist/LUNFOLD (happ (happ _0 f) g) s)))
fof(aHLu_TRUTH, axiom, p(s(t_bool,t))).
fof(aHLu_FALSITY, axiom, ~ (p(s(t_bool,f0)))).
fof(aHLu_BOOLu_CASES, axiom, ![V_t]: (s(t_bool,V_t) = s(t_bool,t) | s(t_bool,V_t) = s(t_bool,f0))).
fof(aHLu_EXT, axiom, ![TV_Q171832,TV_Q171828]: ![V_f, V_g]: (![V_x]: s(TV_Q171828,happ(s(t_fun(TV_Q171832,TV_Q171828),V_f),s(TV_Q171832,V_x))) = s(TV_Q171828,happ(s(t_fun(TV_Q171832,TV_Q171828),V_g),s(TV_Q171832,V_x))) => s(t_fun(TV_Q171832,TV_Q171828),V_f) = s(t_fun(TV_Q171832,TV_Q171828),V_g))).
fof(ah4s_bools_TRUTH, axiom, p(s(t_bool,t))).
fof(ah4s_bools_IMPu_u_ANTISYMu_u_AX, axiom, ![V_t2, V_t1]: ((p(s(t_bool,V_t1)) => p(s(t_bool,V_t2))) => ((p(s(t_bool,V_t2)) => p(s(t_bool,V_t1))) => s(t_bool,V_t1) = s(t_bool,V_t2)))).
fof(ah4s_bools_FALSITY, axiom, ![V_t]: (p(s(t_bool,f0)) => p(s(t_bool,V_t)))).
fof(ah4s_bools_EXISTSu_u_SIMP, axiom, ![TV_u_27a]: ![V_t]: (?[V_x]: p(s(t_bool,V_t)) <=> p(s(t_bool,V_t)))).
fof(ah4s_bools_ANDu_u_CLAUSESu_c0, axiom, ![V_t]: ((p(s(t_bool,t)) & p(s(t_bool,V_t))) <=> p(s(t_bool,V_t)))).
fof(ah4s_bools_ANDu_u_CLAUSESu_c2, axiom, ![V_t]: ((p(s(t_bool,f0)) & p(s(t_bool,V_t))) <=> p(s(t_bool,f0)))).
fof(ah4s_bools_ORu_u_CLAUSESu_c0, axiom, ![V_t]: ((p(s(t_bool,t)) | p(s(t_bool,V_t))) <=> p(s(t_bool,t)))).
fof(ah4s_bools_ORu_u_CLAUSESu_c2, axiom, ![V_t]: ((p(s(t_bool,f0)) | p(s(t_bool,V_t))) <=> p(s(t_bool,V_t)))).
fof(ah4s_bools_REFLu_u_CLAUSE, axiom, ![TV_u_27a]: ![V_x]: (s(TV_u_27a,V_x) = s(TV_u_27a,V_x) <=> p(s(t_bool,t)))).
fof(ah4s_bools_EQu_u_SYMu_u_EQ, axiom, ![TV_u_27a]: ![V_y, V_x]: (s(TV_u_27a,V_x) = s(TV_u_27a,V_y) <=> s(TV_u_27a,V_y) = s(TV_u_27a,V_x))).
fof(ah4s_bools_ANDu_u_IMPu_u_INTRO, axiom, ![V_t3, V_t2, V_t1]: ((p(s(t_bool,V_t1)) => (p(s(t_bool,V_t2)) => p(s(t_bool,V_t3)))) <=> ((p(s(t_bool,V_t1)) & p(s(t_bool,V_t2))) => p(s(t_bool,V_t3))))).
fof(ah4s_bools_IMPu_u_CONG, axiom, ![V_yu_27, V_y, V_xu_27, V_x]: ((s(t_bool,V_x) = s(t_bool,V_xu_27) & (p(s(t_bool,V_xu_27)) => s(t_bool,V_y) = s(t_bool,V_yu_27))) => ((p(s(t_bool,V_x)) => p(s(t_bool,V_y))) <=> (p(s(t_bool,V_xu_27)) => p(s(t_bool,V_yu_27)))))).
fof(ah4s_bools_UNWINDu_u_THM2, axiom, ![TV_u_27a]: ![V_a, V_P]: (?[V_x]: (s(TV_u_27a,V_x) = s(TV_u_27a,V_a) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_P),s(TV_u_27a,V_x))))) <=> p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_P),s(TV_u_27a,V_a)))))).
fof(ah4s_options_optionu_u_nchotomy, axiom, ![TV_u_27a]: ![V_opt]: (s(t_h4s_options_option(TV_u_27a),V_opt) = s(t_h4s_options_option(TV_u_27a),h4s_options_none) | ?[V_x]: s(t_h4s_options_option(TV_u_27a),V_opt) = s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(TV_u_27a,V_x))))).
fof(ah4s_options_SOMEu_u_11, axiom, ![TV_u_27a]: ![V_y, V_x]: (s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(TV_u_27a,V_x))) = s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(TV_u_27a,V_y))) <=> s(TV_u_27a,V_x) = s(TV_u_27a,V_y))).
fof(ah4s_options_NOTu_u_NONEu_u_SOME, axiom, ![TV_u_27a]: ![V_x]: ~ (s(t_h4s_options_option(TV_u_27a),h4s_options_none) = s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(TV_u_27a,V_x))))).
fof(ah4s_options_OPTIONu_u_MAPu_u_EQu_u_SOME, axiom, ![TV_u_27b,TV_u_27a]: ![V_y, V_x, V_f]: (s(t_h4s_options_option(TV_u_27b),h4s_options_optionu_u_map(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(t_h4s_options_option(TV_u_27a),V_x))) = s(t_h4s_options_option(TV_u_27b),h4s_options_some(s(TV_u_27b,V_y))) <=> ?[V_z]: (s(t_h4s_options_option(TV_u_27a),V_x) = s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(TV_u_27a,V_z))) & s(TV_u_27b,V_y) = s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_z)))))).
fof(ah4s_options_OPTIONu_u_MAPu_u_EQu_u_NONEu_u_bothu_u_waysu_c1, axiom, ![TV_u_27a,TV_u_27b]: ![V_x, V_f]: (s(t_h4s_options_option(TV_u_27a),h4s_options_none) = s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_map(s(t_fun(TV_u_27b,TV_u_27a),V_f),s(t_h4s_options_option(TV_u_27b),V_x))) <=> s(t_h4s_options_option(TV_u_27b),V_x) = s(t_h4s_options_option(TV_u_27b),h4s_options_none))).
fof(ah4s_pairs_CLOSEDu_u_PAIRu_u_EQ, axiom, ![TV_u_27a,TV_u_27b]: ![V_y, V_x, V_b, V_a]: (s(t_h4s_pairs_prod(TV_u_27a,TV_u_27b),h4s_pairs_u_2c(s(TV_u_27a,V_x),s(TV_u_27b,V_y))) = s(t_h4s_pairs_prod(TV_u_27a,TV_u_27b),h4s_pairs_u_2c(s(TV_u_27a,V_a),s(TV_u_27b,V_b))) <=> (s(TV_u_27a,V_x) = s(TV_u_27a,V_a) & s(TV_u_27b,V_y) = s(TV_u_27b,V_b)))).
fof(ah4s_pairs_ABSu_u_PAIRu_u_THM, axiom, ![TV_u_27a,TV_u_27b]: ![V_x]: ?[V_q, V_r]: s(t_h4s_pairs_prod(TV_u_27a,TV_u_27b),V_x) = s(t_h4s_pairs_prod(TV_u_27a,TV_u_27b),h4s_pairs_u_2c(s(TV_u_27a,V_q),s(TV_u_27b,V_r)))).
fof(ah4s_pairs_UNCURRYu_u_DEF, axiom, ![TV_u_27c,TV_u_27a,TV_u_27b]: ![V_y, V_x, V_f]: s(TV_u_27c,happ(s(t_fun(t_h4s_pairs_prod(TV_u_27a,TV_u_27b),TV_u_27c),h4s_pairs_uncurry(s(t_fun(TV_u_27a,t_fun(TV_u_27b,TV_u_27c)),V_f))),s(t_h4s_pairs_prod(TV_u_27a,TV_u_27b),h4s_pairs_u_2c(s(TV_u_27a,V_x),s(TV_u_27b,V_y))))) = s(TV_u_27c,happ(s(t_fun(TV_u_27b,TV_u_27c),happ(s(t_fun(TV_u_27a,t_fun(TV_u_27b,TV_u_27c)),V_f),s(TV_u_27a,V_x))),s(TV_u_27b,V_y)))).
fof(ah4s_llists_LHDu_u_THMu_c0, axiom, ![TV_u_27a]: s(t_h4s_options_option(TV_u_27a),h4s_llists_lhd(s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil))) = s(t_h4s_options_option(TV_u_27a),h4s_options_none)).
fof(ah4s_llists_LHDu_u_THMu_c1, axiom, ![TV_u_27b]: ![V_t, V_h]: s(t_h4s_options_option(TV_u_27b),h4s_llists_lhd(s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lcons(s(TV_u_27b,V_h),s(t_h4s_llists_llist(TV_u_27b),V_t))))) = s(t_h4s_options_option(TV_u_27b),h4s_options_some(s(TV_u_27b,V_h)))).
fof(ah4s_llists_LTLu_u_THMu_c0, axiom, ![TV_u_27a]: s(t_h4s_options_option(t_h4s_llists_llist(TV_u_27a)),h4s_llists_ltl(s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil))) = s(t_h4s_options_option(t_h4s_llists_llist(TV_u_27a)),h4s_options_none)).
fof(ah4s_llists_LTLu_u_THMu_c1, axiom, ![TV_u_27b]: ![V_t, V_h]: s(t_h4s_options_option(t_h4s_llists_llist(TV_u_27b)),h4s_llists_ltl(s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lcons(s(TV_u_27b,V_h),s(t_h4s_llists_llist(TV_u_27b),V_t))))) = s(t_h4s_options_option(t_h4s_llists_llist(TV_u_27b)),h4s_options_some(s(t_h4s_llists_llist(TV_u_27b),V_t)))).
fof(ah4s_llists_LMAP0u_c0, axiom, ![TV_u_27a,TV_u_27b]: ![V_f]: s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lmap(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil))) = s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lnil)).
fof(ah4s_llists_LMAP0u_c1, axiom, ![TV_u_27b,TV_u_27a]: ![V_t, V_h, V_f]: s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lmap(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lcons(s(TV_u_27a,V_h),s(t_h4s_llists_llist(TV_u_27a),V_t))))) = s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lcons(s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_h))),s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lmap(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(t_h4s_llists_llist(TV_u_27a),V_t)))))).
fof(ah4s_llists_LUNFOLDu_u_THMu_c0, axiom, ![TV_u_27a,TV_u_27b]: ![V_x, V_f]: (s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b)),happ(s(t_fun(TV_u_27a,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b))),V_f),s(TV_u_27a,V_x))) = s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b)),h4s_options_none) => s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lunfold(s(t_fun(TV_u_27a,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b))),V_f),s(TV_u_27a,V_x))) = s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lnil))).
fof(ah4s_llists_LUNFOLDu_u_THMu_c1, axiom, ![TV_u_27b,TV_u_27a]: ![V_x, V_v2, V_v1, V_f]: (s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b)),happ(s(t_fun(TV_u_27a,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b))),V_f),s(TV_u_27a,V_x))) = s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b)),h4s_options_some(s(t_h4s_pairs_prod(TV_u_27a,TV_u_27b),h4s_pairs_u_2c(s(TV_u_27a,V_v1),s(TV_u_27b,V_v2))))) => s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lunfold(s(t_fun(TV_u_27a,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b))),V_f),s(TV_u_27a,V_x))) = s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lcons(s(TV_u_27b,V_v2),s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lunfold(s(t_fun(TV_u_27a,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b))),V_f),s(TV_u_27a,V_v1))))))).
fof(ah4s_llists_LUNFOLDu_u_EQ, axiom, ![TV_u_27a,TV_u_27b]: ![V_s, V_ll, V_f, V_R]: ((p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27b),t_bool),happ(s(t_fun(TV_u_27a,t_fun(t_h4s_llists_llist(TV_u_27b),t_bool)),V_R),s(TV_u_27a,V_s))),s(t_h4s_llists_llist(TV_u_27b),V_ll)))) & ![V_s0, V_ll0]: (p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27b),t_bool),happ(s(t_fun(TV_u_27a,t_fun(t_h4s_llists_llist(TV_u_27b),t_bool)),V_R),s(TV_u_27a,V_s0))),s(t_h4s_llists_llist(TV_u_27b),V_ll0)))) => ((s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b)),happ(s(t_fun(TV_u_27a,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b))),V_f),s(TV_u_27a,V_s0))) = s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b)),h4s_options_none) & s(t_h4s_llists_llist(TV_u_27b),V_ll0) = s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lnil)) | ?[V_su_27, V_x, V_llu_27]: (s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b)),happ(s(t_fun(TV_u_27a,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b))),V_f),s(TV_u_27a,V_s0))) = s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b)),h4s_options_some(s(t_h4s_pairs_prod(TV_u_27a,TV_u_27b),h4s_pairs_u_2c(s(TV_u_27a,V_su_27),s(TV_u_27b,V_x))))) & (s(t_h4s_options_option(TV_u_27b),h4s_llists_lhd(s(t_h4s_llists_llist(TV_u_27b),V_ll0))) = s(t_h4s_options_option(TV_u_27b),h4s_options_some(s(TV_u_27b,V_x))) & (s(t_h4s_options_option(t_h4s_llists_llist(TV_u_27b)),h4s_llists_ltl(s(t_h4s_llists_llist(TV_u_27b),V_ll0))) = s(t_h4s_options_option(t_h4s_llists_llist(TV_u_27b)),h4s_options_some(s(t_h4s_llists_llist(TV_u_27b),V_llu_27))) & p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27b),t_bool),happ(s(t_fun(TV_u_27a,t_fun(t_h4s_llists_llist(TV_u_27b),t_bool)),V_R),s(TV_u_27a,V_su_27))),s(t_h4s_llists_llist(TV_u_27b),V_llu_27)))))))))) => s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lunfold(s(t_fun(TV_u_27a,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27a,TV_u_27b))),V_f),s(TV_u_27a,V_s))) = s(t_h4s_llists_llist(TV_u_27b),V_ll))).
fof(ch4s_llists_LMAPu_u_LUNFOLD, conjecture, ![TV_u_27b,TV_u_27a,TV_u_27c]: ![V_uu_2]: (![V_x, V_f, V_y]: s(t_h4s_pairs_prod(TV_u_27c,TV_u_27b),happ(s(t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b)),happ(s(t_fun(t_fun(TV_u_27a,TV_u_27b),t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b))),happ(s(t_fun(TV_u_27c,t_fun(t_fun(TV_u_27a,TV_u_27b),t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b)))),V_uu_2),s(TV_u_27c,V_x))),s(t_fun(TV_u_27a,TV_u_27b),V_f))),s(TV_u_27a,V_y))) = s(t_h4s_pairs_prod(TV_u_27c,TV_u_27b),h4s_pairs_u_2c(s(TV_u_27c,V_x),s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_y))))) => ![V_uu_1]: (![V_f, V_x]: s(t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b)),happ(s(t_fun(TV_u_27c,t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b))),happ(s(t_fun(t_fun(TV_u_27a,TV_u_27b),t_fun(TV_u_27c,t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b)))),V_uu_1),s(t_fun(TV_u_27a,TV_u_27b),V_f))),s(TV_u_27c,V_x))) = s(t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b)),happ(s(t_fun(t_fun(TV_u_27a,TV_u_27b),t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b))),happ(s(t_fun(TV_u_27c,t_fun(t_fun(TV_u_27a,TV_u_27b),t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b)))),V_uu_2),s(TV_u_27c,V_x))),s(t_fun(TV_u_27a,TV_u_27b),V_f))) => ![V_uu_0]: (![V_f, V_g, V_s0]: s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27b)),happ(s(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27b))),happ(s(t_fun(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a))),t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27b)))),happ(s(t_fun(t_fun(TV_u_27a,TV_u_27b),t_fun(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a))),t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27b))))),V_uu_0),s(t_fun(TV_u_27a,TV_u_27b),V_f))),s(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a))),V_g))),s(TV_u_27c,V_s0))) = s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27b)),h4s_options_optionu_u_map(s(t_fun(t_h4s_pairs_prod(TV_u_27c,TV_u_27a),t_h4s_pairs_prod(TV_u_27c,TV_u_27b)),h4s_pairs_uncurry(s(t_fun(TV_u_27c,t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b))),happ(s(t_fun(t_fun(TV_u_27a,TV_u_27b),t_fun(TV_u_27c,t_fun(TV_u_27a,t_h4s_pairs_prod(TV_u_27c,TV_u_27b)))),V_uu_1),s(t_fun(TV_u_27a,TV_u_27b),V_f))))),s(t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a)),happ(s(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a))),V_g),s(TV_u_27c,V_s0))))) => ![V_s, V_g, V_f]: s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lmap(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lunfold(s(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a))),V_g),s(TV_u_27c,V_s))))) = s(t_h4s_llists_llist(TV_u_27b),h4s_llists_lunfold(s(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27b))),happ(s(t_fun(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a))),t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27b)))),happ(s(t_fun(t_fun(TV_u_27a,TV_u_27b),t_fun(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a))),t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27b))))),V_uu_0),s(t_fun(TV_u_27a,TV_u_27b),V_f))),s(t_fun(TV_u_27c,t_h4s_options_option(t_h4s_pairs_prod(TV_u_27c,TV_u_27a))),V_g))),s(TV_u_27c,V_s))))))).
