%   ORIGINAL: h4/llist/LFLATTEN__SINGLETON
% 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/AND__CLAUSES_c0: !t. T /\ t <=> t
% Assm: h4/bool/AND__CLAUSES_c1: !t. t /\ T <=> t
% Assm: h4/bool/AND__CLAUSES_c4: !t. t /\ t <=> t
% 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/EQ__CLAUSES_c1: !t. (t <=> T) <=> t
% Assm: h4/bool/IMP__DISJ__THM: !B A. A ==> B <=> ~A \/ B
% 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__FORALL__THM2: !v f. (!x. x = v ==> f x) <=> f v
% Assm: h4/option/SOME__11: !y x. h4/option/SOME x = h4/option/SOME y <=> x = y
% Assm: h4/option/THE__DEF: !x. h4/option/THE (h4/option/SOME x) = x
% Assm: h4/llist/llist__CASES: !l. l = h4/llist/LNIL \/ (?h t. l = h4/llist/LCONS h t)
% 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/LCONS__NOT__NIL_c0: !t h. ~(h4/llist/LCONS h t = h4/llist/LNIL)
% Assm: h4/llist/LLIST__BISIMULATION: !ll2 ll1. ll1 = ll2 <=> (?R. R ll1 ll2 /\ (!ll3 ll4. R ll3 ll4 ==> ll3 = h4/llist/LNIL /\ ll4 = h4/llist/LNIL \/ h4/llist/LHD ll3 = h4/llist/LHD ll4 /\ R (h4/option/THE (h4/llist/LTL ll3)) (h4/option/THE (h4/llist/LTL ll4))))
% Assm: h4/llist/LAPPEND0_c0: !x. h4/llist/LAPPEND h4/llist/LNIL x = x
% Assm: h4/llist/LAPPEND0_c1: !x t h. h4/llist/LAPPEND (h4/llist/LCONS h t) x = h4/llist/LCONS h (h4/llist/LAPPEND t x)
% Assm: h4/llist/LAPPEND__EQ__LNIL: !l2 l1. h4/llist/LAPPEND l1 l2 = h4/llist/LNIL <=> l1 = h4/llist/LNIL /\ l2 = h4/llist/LNIL
% Assm: h4/llist/LFLATTEN__THM_c0: h4/llist/LFLATTEN h4/llist/LNIL = h4/llist/LNIL
% Assm: h4/llist/LFLATTEN__APPEND: !t h. h4/llist/LFLATTEN (h4/llist/LCONS h t) = h4/llist/LAPPEND h (h4/llist/LFLATTEN t)
% Goal: !h. h4/llist/LFLATTEN (h4/llist/LCONS h h4/llist/LNIL) = h
%   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_ANDu_u_CLAUSESu_c0]: !t. T /\ t <=> t
% Assm [h4s_bools_ANDu_u_CLAUSESu_c1]: !t. t /\ T <=> t
% Assm [h4s_bools_ANDu_u_CLAUSESu_c4]: !t. t /\ t <=> t
% 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_EQu_u_CLAUSESu_c1]: !t. (t <=> T) <=> t
% Assm [h4s_bools_IMPu_u_DISJu_u_THM]: !B A. A ==> B <=> ~A \/ B
% 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_FORALLu_u_THM2]: !v f. (!x. x = v ==> happ f x) <=> happ f v
% Assm [h4s_options_SOMEu_u_11]: !y x. h4/option/SOME x = h4/option/SOME y <=> x = y
% Assm [h4s_options_THEu_u_DEF]: !x. h4/option/THE (h4/option/SOME x) = x
% Assm [h4s_llists_llistu_u_CASES]: !l. l = h4/llist/LNIL \/ (?h t. l = h4/llist/LCONS h t)
% 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_LCONSu_u_NOTu_u_NILu_c0]: !t h. ~(h4/llist/LCONS h t = h4/llist/LNIL)
% Assm [h4s_llists_LLISTu_u_BISIMULATION]: !ll2 ll1. ll1 = ll2 <=> (?R. happ (happ R ll1) ll2 /\ (!ll3 ll4. happ (happ R ll3) ll4 ==> ll3 = h4/llist/LNIL /\ ll4 = h4/llist/LNIL \/ h4/llist/LHD ll3 = h4/llist/LHD ll4 /\ happ (happ R (h4/option/THE (h4/llist/LTL ll3))) (h4/option/THE (h4/llist/LTL ll4))))
% Assm [h4s_llists_LAPPEND0u_c0]: !x. h4/llist/LAPPEND h4/llist/LNIL x = x
% Assm [h4s_llists_LAPPEND0u_c1]: !x t h. h4/llist/LAPPEND (h4/llist/LCONS h t) x = h4/llist/LCONS h (h4/llist/LAPPEND t x)
% Assm [h4s_llists_LAPPENDu_u_EQu_u_LNIL]: !l2 l1. h4/llist/LAPPEND l1 l2 = h4/llist/LNIL <=> l1 = h4/llist/LNIL /\ l2 = h4/llist/LNIL
% Assm [h4s_llists_LFLATTENu_u_THMu_c0]: h4/llist/LFLATTEN h4/llist/LNIL = h4/llist/LNIL
% Assm [h4s_llists_LFLATTENu_u_APPEND]: !t h. h4/llist/LFLATTEN (h4/llist/LCONS h t) = h4/llist/LAPPEND h (h4/llist/LFLATTEN t)
% Goal: !h. h4/llist/LFLATTEN (h4/llist/LCONS h h4/llist/LNIL) = h
fof(aHLu_TRUTH, axiom, p(s(t_bool,t))).
fof(aHLu_FALSITY, axiom, ~ (p(s(t_bool,f)))).
fof(aHLu_BOOLu_CASES, axiom, ![V_t]: (s(t_bool,V_t) = s(t_bool,t) | s(t_bool,V_t) = s(t_bool,f))).
fof(aHLu_EXT, axiom, ![TV_Q171682,TV_Q171678]: ![V_f, V_g]: (![V_x]: s(TV_Q171678,happ(s(t_fun(TV_Q171682,TV_Q171678),V_f),s(TV_Q171682,V_x))) = s(TV_Q171678,happ(s(t_fun(TV_Q171682,TV_Q171678),V_g),s(TV_Q171682,V_x))) => s(t_fun(TV_Q171682,TV_Q171678),V_f) = s(t_fun(TV_Q171682,TV_Q171678),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,f)) => 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_c1, axiom, ![V_t]: ((p(s(t_bool,V_t)) & p(s(t_bool,t))) <=> p(s(t_bool,V_t)))).
fof(ah4s_bools_ANDu_u_CLAUSESu_c4, axiom, ![V_t]: ((p(s(t_bool,V_t)) & p(s(t_bool,V_t))) <=> p(s(t_bool,V_t)))).
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,f)) | 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_EQu_u_CLAUSESu_c1, axiom, ![V_t]: (s(t_bool,V_t) = s(t_bool,t) <=> p(s(t_bool,V_t)))).
fof(ah4s_bools_IMPu_u_DISJu_u_THM, axiom, ![V_B, V_A]: ((p(s(t_bool,V_A)) => p(s(t_bool,V_B))) <=> (~ (p(s(t_bool,V_A))) | p(s(t_bool,V_B))))).
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_FORALLu_u_THM2, axiom, ![TV_u_27a]: ![V_v, V_f]: (![V_x]: (s(TV_u_27a,V_x) = s(TV_u_27a,V_v) => p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x))))) <=> p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_v)))))).
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_THEu_u_DEF, axiom, ![TV_u_27a]: ![V_x]: s(TV_u_27a,h4s_options_the(s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(TV_u_27a,V_x))))) = s(TV_u_27a,V_x)).
fof(ah4s_llists_llistu_u_CASES, axiom, ![TV_u_27a]: ![V_l]: (s(t_h4s_llists_llist(TV_u_27a),V_l) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil) | ?[V_h, V_t]: s(t_h4s_llists_llist(TV_u_27a),V_l) = 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))))).
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_LCONSu_u_NOTu_u_NILu_c0, axiom, ![TV_u_27a]: ![V_t, V_h]: ~ (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_27a),h4s_llists_lnil))).
fof(ah4s_llists_LLISTu_u_BISIMULATION, axiom, ![TV_u_27a]: ![V_ll2, V_ll1]: (s(t_h4s_llists_llist(TV_u_27a),V_ll1) = s(t_h4s_llists_llist(TV_u_27a),V_ll2) <=> ?[V_R]: (p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_bool),happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_fun(t_h4s_llists_llist(TV_u_27a),t_bool)),V_R),s(t_h4s_llists_llist(TV_u_27a),V_ll1))),s(t_h4s_llists_llist(TV_u_27a),V_ll2)))) & ![V_ll3, V_ll4]: (p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_bool),happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_fun(t_h4s_llists_llist(TV_u_27a),t_bool)),V_R),s(t_h4s_llists_llist(TV_u_27a),V_ll3))),s(t_h4s_llists_llist(TV_u_27a),V_ll4)))) => ((s(t_h4s_llists_llist(TV_u_27a),V_ll3) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil) & s(t_h4s_llists_llist(TV_u_27a),V_ll4) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil)) | (s(t_h4s_options_option(TV_u_27a),h4s_llists_lhd(s(t_h4s_llists_llist(TV_u_27a),V_ll3))) = s(t_h4s_options_option(TV_u_27a),h4s_llists_lhd(s(t_h4s_llists_llist(TV_u_27a),V_ll4))) & p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_bool),happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_fun(t_h4s_llists_llist(TV_u_27a),t_bool)),V_R),s(t_h4s_llists_llist(TV_u_27a),h4s_options_the(s(t_h4s_options_option(t_h4s_llists_llist(TV_u_27a)),h4s_llists_ltl(s(t_h4s_llists_llist(TV_u_27a),V_ll3))))))),s(t_h4s_llists_llist(TV_u_27a),h4s_options_the(s(t_h4s_options_option(t_h4s_llists_llist(TV_u_27a)),h4s_llists_ltl(s(t_h4s_llists_llist(TV_u_27a),V_ll4)))))))))))))).
fof(ah4s_llists_LAPPEND0u_c0, axiom, ![TV_u_27a]: ![V_x]: s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lappend(s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil),s(t_h4s_llists_llist(TV_u_27a),V_x))) = s(t_h4s_llists_llist(TV_u_27a),V_x)).
fof(ah4s_llists_LAPPEND0u_c1, axiom, ![TV_u_27a]: ![V_x, V_t, V_h]: s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lappend(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_27a),V_x))) = 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),h4s_llists_lappend(s(t_h4s_llists_llist(TV_u_27a),V_t),s(t_h4s_llists_llist(TV_u_27a),V_x)))))).
fof(ah4s_llists_LAPPENDu_u_EQu_u_LNIL, axiom, ![TV_u_27a]: ![V_l2, V_l1]: (s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lappend(s(t_h4s_llists_llist(TV_u_27a),V_l1),s(t_h4s_llists_llist(TV_u_27a),V_l2))) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil) <=> (s(t_h4s_llists_llist(TV_u_27a),V_l1) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil) & s(t_h4s_llists_llist(TV_u_27a),V_l2) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil)))).
fof(ah4s_llists_LFLATTENu_u_THMu_c0, axiom, ![TV_u_27a]: s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lflatten(s(t_h4s_llists_llist(t_h4s_llists_llist(TV_u_27a)),h4s_llists_lnil))) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lnil)).
fof(ah4s_llists_LFLATTENu_u_APPEND, axiom, ![TV_u_27a]: ![V_t, V_h]: s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lflatten(s(t_h4s_llists_llist(t_h4s_llists_llist(TV_u_27a)),h4s_llists_lcons(s(t_h4s_llists_llist(TV_u_27a),V_h),s(t_h4s_llists_llist(t_h4s_llists_llist(TV_u_27a)),V_t))))) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lappend(s(t_h4s_llists_llist(TV_u_27a),V_h),s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lflatten(s(t_h4s_llists_llist(t_h4s_llists_llist(TV_u_27a)),V_t)))))).
fof(ch4s_llists_LFLATTENu_u_SINGLETON, conjecture, ![TV_u_27a]: ![V_h]: s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lflatten(s(t_h4s_llists_llist(t_h4s_llists_llist(TV_u_27a)),h4s_llists_lcons(s(t_h4s_llists_llist(TV_u_27a),V_h),s(t_h4s_llists_llist(t_h4s_llists_llist(TV_u_27a)),h4s_llists_lnil))))) = s(t_h4s_llists_llist(TV_u_27a),V_h)).
