%   ORIGINAL: h4/llist/exists__thm_c1
% 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/ETA__AX: !t. (\x. t x) = t
% Assm: h4/bool/TRUTH: T
% Assm: h4/bool/IMP__ANTISYM__AX: !t2 t1. (t1 ==> t2) ==> (t2 ==> t1) ==> (t1 <=> t2)
% Assm: h4/bool/IMP__CLAUSES_c3: !t. t ==> 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/MONO__AND: !z y x w. (x ==> y) /\ (z ==> w) ==> x /\ z ==> y /\ w
% Assm: h4/bool/MONO__OR: !z y x w. (x ==> y) /\ (z ==> w) ==> x \/ z ==> y \/ w
% Assm: h4/bool/MONO__EXISTS: !Q P. (!x. P x ==> Q x) ==> (?x. P x) ==> (?x. Q x)
% Assm: h4/bool/UNWIND__THM2: !a P. (?x. x = a /\ P x) <=> P a
% Assm: h4/llist/LCONS__11: !t2 t1 h2 h1. h4/llist/LCONS h1 t1 = h4/llist/LCONS h2 t2 <=> h1 = h2 /\ t1 = t2
% Assm: h4/llist/exists__def: h4/llist/exists = (\P a0. !exists_27. (!a00. (?h t. a00 = h4/llist/LCONS h t /\ P h) \/ (?h t. a00 = h4/llist/LCONS h t /\ exists_27 t) ==> exists_27 a00) ==> exists_27 a0)
% Goal: !t h P. h4/llist/exists P (h4/llist/LCONS h t) <=> P h \/ h4/llist/exists P t
%   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_ETAu_u_AX]: !t x. happ t x = happ t x
% Assm [h4s_bools_TRUTH]: T
% Assm [h4s_bools_IMPu_u_ANTISYMu_u_AX]: !t2 t1. (t1 ==> t2) ==> (t2 ==> t1) ==> (t1 <=> t2)
% Assm [h4s_bools_IMPu_u_CLAUSESu_c3]: !t. t ==> 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_MONOu_u_AND]: !z y x w. (x ==> y) /\ (z ==> w) ==> x /\ z ==> y /\ w
% Assm [h4s_bools_MONOu_u_OR]: !z y x w. (x ==> y) /\ (z ==> w) ==> x \/ z ==> y \/ w
% Assm [h4s_bools_MONOu_u_EXISTS]: !Q P. (!x. happ P x ==> happ Q x) ==> (?x. happ P x) ==> (?x. happ Q x)
% Assm [h4s_bools_UNWINDu_u_THM2]: !a P. (?x. x = a /\ happ P x) <=> happ P a
% Assm [h4s_llists_LCONSu_u_11]: !t2 t1 h2 h1. h4/llist/LCONS h1 t1 = h4/llist/LCONS h2 t2 <=> h1 = h2 /\ t1 = t2
% Assm [h4s_llists_existsu_u_def]: !x x. h4/llist/exists x x <=> (!exists_27. (!a00. (?h t. a00 = h4/llist/LCONS h t /\ happ x h) \/ (?h t. a00 = h4/llist/LCONS h t /\ happ exists_27 t) ==> happ exists_27 a00) ==> happ exists_27 x)
% Goal: !t h P. h4/llist/exists P (h4/llist/LCONS h t) <=> happ P h \/ h4/llist/exists P t
fof(aHLu_TRUTH, axiom, p(s(t_bool,t0))).
fof(aHLu_FALSITY, axiom, ~ (p(s(t_bool,f)))).
fof(aHLu_BOOLu_CASES, axiom, ![V_t]: (s(t_bool,V_t) = s(t_bool,t0) | s(t_bool,V_t) = s(t_bool,f))).
fof(aHLu_EXT, axiom, ![TV_Q171125,TV_Q171121]: ![V_f, V_g]: (![V_x]: s(TV_Q171121,happ(s(t_fun(TV_Q171125,TV_Q171121),V_f),s(TV_Q171125,V_x))) = s(TV_Q171121,happ(s(t_fun(TV_Q171125,TV_Q171121),V_g),s(TV_Q171125,V_x))) => s(t_fun(TV_Q171125,TV_Q171121),V_f) = s(t_fun(TV_Q171125,TV_Q171121),V_g))).
fof(ah4s_bools_ETAu_u_AX, axiom, ![TV_u_27b,TV_u_27a]: ![V_t, V_x]: s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_t),s(TV_u_27a,V_x))) = s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_t),s(TV_u_27a,V_x)))).
fof(ah4s_bools_TRUTH, axiom, p(s(t_bool,t0))).
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_IMPu_u_CLAUSESu_c3, axiom, ![V_t]: ((p(s(t_bool,V_t)) => p(s(t_bool,V_t))) <=> p(s(t_bool,t0)))).
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,t0)))).
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_MONOu_u_AND, axiom, ![V_z, V_y, V_x, V_w]: (((p(s(t_bool,V_x)) => p(s(t_bool,V_y))) & (p(s(t_bool,V_z)) => p(s(t_bool,V_w)))) => ((p(s(t_bool,V_x)) & p(s(t_bool,V_z))) => (p(s(t_bool,V_y)) & p(s(t_bool,V_w)))))).
fof(ah4s_bools_MONOu_u_OR, axiom, ![V_z, V_y, V_x, V_w]: (((p(s(t_bool,V_x)) => p(s(t_bool,V_y))) & (p(s(t_bool,V_z)) => p(s(t_bool,V_w)))) => ((p(s(t_bool,V_x)) | p(s(t_bool,V_z))) => (p(s(t_bool,V_y)) | p(s(t_bool,V_w)))))).
fof(ah4s_bools_MONOu_u_EXISTS, axiom, ![TV_u_27a]: ![V_Q, V_P]: (![V_x]: (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_Q),s(TV_u_27a,V_x))))) => (?[V_x]: p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_P),s(TV_u_27a,V_x)))) => ?[V_x]: p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_Q),s(TV_u_27a,V_x))))))).
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_llists_LCONSu_u_11, axiom, ![TV_u_27a]: ![V_t2, V_t1, V_h2, V_h1]: (s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lcons(s(TV_u_27a,V_h1),s(t_h4s_llists_llist(TV_u_27a),V_t1))) = s(t_h4s_llists_llist(TV_u_27a),h4s_llists_lcons(s(TV_u_27a,V_h2),s(t_h4s_llists_llist(TV_u_27a),V_t2))) <=> (s(TV_u_27a,V_h1) = s(TV_u_27a,V_h2) & s(t_h4s_llists_llist(TV_u_27a),V_t1) = s(t_h4s_llists_llist(TV_u_27a),V_t2)))).
fof(ah4s_llists_existsu_u_def, axiom, ![TV_u_27a]: ![V_x, V_x0]: (p(s(t_bool,h4s_llists_exists(s(t_fun(TV_u_27a,t_bool),V_x),s(t_h4s_llists_llist(TV_u_27a),V_x0)))) <=> ![V_existsu_27]: (![V_a00]: ((?[V_h, V_t]: (s(t_h4s_llists_llist(TV_u_27a),V_a00) = 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))) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_x),s(TV_u_27a,V_h))))) | ?[V_h, V_t]: (s(t_h4s_llists_llist(TV_u_27a),V_a00) = 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))) & p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_bool),V_existsu_27),s(t_h4s_llists_llist(TV_u_27a),V_t)))))) => p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_bool),V_existsu_27),s(t_h4s_llists_llist(TV_u_27a),V_a00))))) => p(s(t_bool,happ(s(t_fun(t_h4s_llists_llist(TV_u_27a),t_bool),V_existsu_27),s(t_h4s_llists_llist(TV_u_27a),V_x0))))))).
fof(ch4s_llists_existsu_u_thmu_c1, conjecture, ![TV_u_27a]: ![V_t, V_h, V_P]: (p(s(t_bool,h4s_llists_exists(s(t_fun(TV_u_27a,t_bool),V_P),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)))))) <=> (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_P),s(TV_u_27a,V_h)))) | p(s(t_bool,h4s_llists_exists(s(t_fun(TV_u_27a,t_bool),V_P),s(t_h4s_llists_llist(TV_u_27a),V_t))))))).
