%   ORIGINAL: h4/Omega__Automata/ELGOT__LEMMA
% 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/FORALL__SIMP: !t. (!x. t) <=> t
% Assm: h4/bool/AND__CLAUSES_c0: !t. T /\ t <=> t
% Assm: h4/bool/IMP__CLAUSES_c3: !t. t ==> t <=> T
% Assm: h4/bool/EQ__CLAUSES_c1: !t. (t <=> T) <=> t
% Goal: !PHI. (?x. !p. PHI p x) <=> (?q. (!x. q x ==> (!p. PHI p x)) /\ (?z. q z))
%   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_FORALLu_u_SIMP]: !t. (!x. t) <=> t
% Assm [h4s_bools_ANDu_u_CLAUSESu_c0]: !t. T /\ t <=> t
% Assm [h4s_bools_IMPu_u_CLAUSESu_c3]: !t. t ==> t <=> T
% Assm [h4s_bools_EQu_u_CLAUSESu_c1]: !t. (t <=> T) <=> t
% Goal: !PHI. (?x. !p. happ (happ PHI p) x) <=> (?q. (!x. happ q x ==> (!p. happ (happ PHI p) x)) /\ (?z. happ q z))
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_Q218071,TV_Q218067]: ![V_f, V_g]: (![V_x]: s(TV_Q218067,happ(s(t_fun(TV_Q218071,TV_Q218067),V_f),s(TV_Q218071,V_x))) = s(TV_Q218067,happ(s(t_fun(TV_Q218071,TV_Q218067),V_g),s(TV_Q218071,V_x))) => s(t_fun(TV_Q218071,TV_Q218067),V_f) = s(t_fun(TV_Q218071,TV_Q218067),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_FORALLu_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_IMPu_u_CLAUSESu_c3, axiom, ![V_t]: ((p(s(t_bool,V_t)) => p(s(t_bool,V_t))) <=> p(s(t_bool,t)))).
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(ch4s_Omegau_u_Automatas_ELGOTu_u_LEMMA, conjecture, ![TV_u_27a]: ![V_PHI]: (?[V_x]: ![V_p]: p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool)),V_PHI),s(t_fun(TV_u_27a,t_bool),V_p))),s(TV_u_27a,V_x)))) <=> ?[V_q]: (![V_x]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_q),s(TV_u_27a,V_x)))) => ![V_p]: p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool)),V_PHI),s(t_fun(TV_u_27a,t_bool),V_p))),s(TV_u_27a,V_x))))) & ?[V_z]: p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_q),s(TV_u_27a,V_z))))))).
