%   ORIGINAL: h4/option/some__elim
% 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/option/some__intro: !Q P. (!x. P x ==> Q (h4/option/SOME x)) /\ ((!x. ~P x) ==> Q h4/option/NONE) ==> Q (h4/option/some P)
% Assm: h4/option/some__def: !P. h4/option/some P = h4/bool/COND (?x. P x) (h4/option/SOME (h4/min/_40 (\x. P x))) h4/option/NONE
% Assm: h4/bool/TRUTH: T
% Assm: h4/option/option__induction: !P. P h4/option/NONE /\ (!a. P (h4/option/SOME a)) ==> (!x. P x)
% Assm: h4/bool/EQ__CLAUSES_c1: !t. (t <=> T) <=> t
% Assm: h4/bool/EQ__SYM__EQ: !y x. x = y <=> y = x
% Assm: h4/option/EXISTS__OPTION: !P. (?opt. P opt) <=> P h4/option/NONE \/ (?x. P (h4/option/SOME x))
% Assm: h4/bool/IMP__ANTISYM__AX: !t2 t1. (t1 ==> t2) ==> (t2 ==> t1) ==> (t1 <=> t2)
% Assm: h4/option/FORALL__OPTION: !P. (!opt. P opt) <=> P h4/option/NONE /\ (!x. P (h4/option/SOME x))
% Assm: h4/bool/EXISTS__DEF: $exists = (\P. P (h4/min/_40 P))
% Assm: h4/bool/NOT__CLAUSES_c0: !t. ~ ~t <=> t
% Assm: h4/sat/NOT__NOT: !t. ~ ~t <=> t
% Assm: h4/sat/OR__DUAL3: !B A. ~(~A \/ B) ==> F <=> A ==> ~B ==> F
% Assm: h4/sat/OR__DUAL2: !B A. ~(A \/ B) ==> F <=> (A ==> F) ==> ~B ==> F
% Assm: h4/bool/IMP__CLAUSES_c4: !t. t ==> F <=> ~t
% Assm: h4/sat/dc__eq: !r q p. (p <=> q <=> r) <=> (p \/ q \/ r) /\ (p \/ ~r \/ ~q) /\ (q \/ ~r \/ ~p) /\ (r \/ ~q \/ ~p)
% Assm: h4/sat/dc__neg: !q p. (p <=> ~q) <=> (p \/ q) /\ (~q \/ ~p)
% Assm: h4/sat/AND__INV2: !A. (~A ==> F) ==> (A ==> F) ==> F
% Assm: h4/sat/AND__INV__IMP: !A. A ==> ~A ==> F
% Assm: h4/sat/dc__disj: !r q p. (p <=> q \/ r) <=> (p \/ ~q) /\ (p \/ ~r) /\ (q \/ r \/ ~p)
% Assm: h4/sat/dc__imp: !r q p. (p <=> q ==> r) <=> (p \/ q) /\ (p \/ ~r) /\ (~q \/ r \/ ~p)
% Assm: h4/sat/pth__ni2: !q p. ~(p ==> q) ==> ~q
% Assm: h4/sat/pth__ni1: !q p. ~(p ==> q) ==> p
% Assm: h4/bool/FALSITY: !t. F ==> t
% Assm: h4/bool/COND__CLAUSES_c1: !t2 t1. h4/bool/COND F t1 t2 = t2
% Assm: h4/bool/COND__CLAUSES_c0: !t2 t1. h4/bool/COND T t1 t2 = t1
% Assm: h4/bool/EXCLUDED__MIDDLE: !t. t \/ ~t
% 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/AND__IMP__INTRO: !t3 t2 t1. t1 ==> t2 ==> t3 <=> t1 /\ t2 ==> t3
% Assm: h4/bool/RIGHT__FORALL__OR__THM: !Q P. (!x. P \/ Q x) <=> P \/ (!x. Q x)
% Assm: h4/bool/SELECT__AX: !x P. P x ==> P (h4/min/_40 P)
% Assm: h4/bool/FORALL__SIMP: !t. (!x. t) <=> t
% Assm: h4/bool/AND__CLAUSES_c0: !t. T /\ t <=> t
% Assm: h4/option/NONE__DEF: h4/option/NONE = h4/option/option__ABS (h4/sum/INR h4/one/one0)
% Assm: h4/option/SOME__DEF: !x. h4/option/SOME x = h4/option/option__ABS (h4/sum/INL x)
% Assm: h4/one/one1: !v. v = h4/one/one0
% Assm: h4/sum/sum__INDUCT: !P. (!x. P (h4/sum/INL x)) /\ (!y. P (h4/sum/INR y)) ==> (!s. P s)
% Assm: h4/option/option__REP__ABS__DEF_c0: !a. h4/option/option__ABS (h4/option/option__REP a) = a
% Assm: h4/sat/dc__conj: !r q p. (p <=> q /\ r) <=> (p \/ ~q \/ ~r) /\ (q \/ ~p) /\ (r \/ ~p)
% Assm: h4/bool/ETA__AX: !t. (\x. t x) = t
% Assm: h4/option/option__nchotomy: !opt. opt = h4/option/NONE \/ (?x. opt = h4/option/SOME x)
% Assm: h4/bool/LEFT__FORALL__OR__THM: !Q P. (!x. P x \/ Q) <=> (!x. P x) \/ Q
% Assm: h4/bool/RIGHT__AND__FORALL__THM: !Q P. P /\ (!x. Q x) <=> (!x. P /\ Q x)
% Assm: h4/sat/pth__nn: !p. ~ ~p ==> p
% Assm: h4/sat/pth__no1: !q p. ~(p \/ q) ==> ~p
% Assm: h4/sat/pth__no2: !q p. ~(p \/ q) ==> ~q
% Assm: h4/bool/RES__EXISTS__DEF: h4/bool/RES__EXISTS = (\p m. ?x. h4/bool/IN x p /\ m x)
% Assm: h4/bool/RES__EXISTS__UNIQUE__DEF: h4/bool/RES__EXISTS__UNIQUE = (\p m. h4/bool/RES__EXISTS p (\x. m x) /\ h4/bool/RES__FORALL p (\x. h4/bool/RES__FORALL p (\y. m x /\ m y ==> x = y)))
% Assm: h4/bool/RES__SELECT__DEF: h4/bool/RES__SELECT = (\p m. h4/min/_40 (\x. h4/bool/IN x p /\ m x))
% Assm: h4/bool/RES__FORALL__DEF: h4/bool/RES__FORALL = (\p m. !x. h4/bool/IN x p ==> m x)
% Assm: h4/normalForms/UNIV__POINT__DEF: !p. p (h4/normalForms/UNIV__POINT p) ==> (!x. p x)
% Assm: h4/bool/TYPE__DEFINITION0: h4/bool/TYPE__DEFINITION = (\P rep. (!x_27 x_27_27. rep x_27 = rep x_27_27 ==> x_27 = x_27_27) /\ (!x. P x <=> (?x_27. x = rep x_27)))
% Assm: h4/bool/EXISTS__UNIQUE__DEF: h4/bool/_3F_21 = (\P. $exists P /\ (!x y. P x /\ P y ==> x = y))
% Assm: h4/bool/RES__SELECT__THM: !f P. h4/bool/RES__SELECT P f = h4/min/_40 (\x. h4/bool/IN x P /\ f x)
% Assm: h4/bool/SELECT__UNIQUE: !x P. (!y. P y <=> y = x) ==> h4/min/_40 P = x
% Assm: h4/option/NOT__NONE__SOME: !x. ~(h4/option/NONE = h4/option/SOME x)
% Assm: h4/normalForms/UNIV__POINT0: !p. p (h4/normalForms/UNIV__POINT p) <=> (!x. p x)
% Assm: h4/bool/TYPE__DEFINITION__THM: !rep P. h4/bool/TYPE__DEFINITION P rep <=> (!x_27 x_27_27. rep x_27 = rep x_27_27 ==> x_27 = x_27_27) /\ (!x. P x <=> (?x_27. x = rep x_27))
% Assm: h4/bool/SELECT__ELIM__THM: !Q P. (?x. P x) /\ (!x. P x ==> Q x) ==> Q (h4/min/_40 P)
% Assm: h4/bool/EXISTS__THM: !f. $exists f <=> (?x. f x)
% Assm: h4/bool/RES__FORALL__THM: !f P. h4/bool/RES__FORALL P f <=> (!x. h4/bool/IN x P ==> f x)
% Assm: h4/bool/JRH__INDUCT__UTIL: !t P. (!x. x = t ==> P x) ==> $exists P
% Assm: h4/option/NOT__SOME__NONE: !x. ~(h4/option/SOME x = h4/option/NONE)
% Assm: h4/bool/RES__EXISTS__CONG: !g f Q P. P = Q ==> (!x. h4/bool/IN x Q ==> (f x <=> g x)) ==> (h4/bool/RES__EXISTS P f <=> h4/bool/RES__EXISTS Q g)
% Assm: h4/bool/RES__FORALL__CONG: !g f Q P. P = Q ==> (!x. h4/bool/IN x Q ==> (f x <=> g x)) ==> (h4/bool/RES__FORALL P f <=> h4/bool/RES__FORALL Q g)
% Assm: h4/bool/FORALL__THM: !f. $forall f <=> (!x. f x)
% Assm: h4/bool/RES__EXISTS__THM: !f P. h4/bool/RES__EXISTS P f <=> (?x. h4/bool/IN x P /\ f x)
% Assm: h4/bool/NOT__CLAUSES_c2: ~F <=> T
% Assm: h4/bool/RES__EXISTS__UNIQUE__THM: !f P. h4/bool/RES__EXISTS__UNIQUE P f <=> h4/bool/RES__EXISTS P (\x. f x) /\ h4/bool/RES__FORALL P (\x. h4/bool/RES__FORALL P (\y. f x /\ f y ==> x = y))
% Assm: h4/option/option__CLAUSES_c2: !x. ~(h4/option/NONE = h4/option/SOME x)
% Assm: h4/bool/IMP__CLAUSES_c0: !t. T ==> t <=> t
% Assm: h4/option/option__REP__ABS__DEF_c1: !r. (\x. T) r <=> h4/option/option__REP (h4/option/option__ABS r) = r
% Assm: h4/sum/INR__neq__INL: !v2 v1. ~(h4/sum/INR v2 = h4/sum/INL v1)
% Assm: h4/bool/REFL__CLAUSE: !x. x = x <=> T
% Assm: h4/option/option__CLAUSES_c3: !x. ~(h4/option/SOME x = h4/option/NONE)
% Assm: h4/option/IF__EQUALS__OPTION_c3: !y x P. h4/bool/COND P h4/option/NONE (h4/option/SOME x) = h4/option/SOME y <=> ~P /\ x = y
% Assm: h4/bool/EQ__CLAUSES_c2: !t. (F <=> t) <=> ~t
% Assm: h4/option/SOME__11: !y x. h4/option/SOME x = h4/option/SOME y <=> x = y
% Assm: h4/option/IF__EQUALS__OPTION_c0: !x P. h4/bool/COND P (h4/option/SOME x) h4/option/NONE = h4/option/NONE <=> ~P
% Assm: h4/bool/AND__CLAUSES_c2: !t. F /\ t <=> F
% Assm: h4/option/IF__EQUALS__OPTION_c1: !x P. h4/bool/COND P h4/option/NONE (h4/option/SOME x) = h4/option/NONE <=> P
% Assm: h4/option/IF__EQUALS__OPTION_c2: !y x P. h4/bool/COND P (h4/option/SOME x) h4/option/NONE = h4/option/SOME y <=> P /\ x = y
% Assm: h4/option/IF__NONE__EQUALS__OPTION_c3: !x X P. h4/bool/COND P h4/option/NONE X = h4/option/SOME x <=> ~P /\ X = h4/option/SOME x
% Assm: h4/bool/EQ__CLAUSES_c0: !t. (T <=> t) <=> t
% Assm: h4/bool/NOT__CLAUSES_c1: ~T <=> F
% Assm: h4/bool/RES__ABSTRACT__DEF_c1: !p m2 m1. (!x. h4/bool/IN x p ==> m1 x = m2 x) ==> h4/bool/RES__ABSTRACT p m1 = h4/bool/RES__ABSTRACT p m2
% Assm: h4/combin/LET__FORALL__ELIM: !v f. h4/bool/LET f v <=> $forall (h4/combin/S (h4/combin/o $imply (h4/combin/o h4/marker/Abbrev (h4/combin/C $equals v))) f)
% Assm: h4/bool/BOOL__CASES__AX: !t. (t <=> T) \/ (t <=> F)
% Assm: h4/bool/OR__DEF: $or = (\t1 t2. !t. (t1 ==> t) ==> (t2 ==> t) ==> t)
% Assm: h4/bool/F__DEF: F <=> (!t. t)
% Assm: h4/bool/T__DEF: T <=> (\x. x) = (\x. x)
% Assm: h4/option/IS__SOME__DEF_c0: !x. h4/option/IS__SOME (h4/option/SOME x) <=> T
% Assm: h4/option/IS__SOME__DEF_c1: h4/option/IS__SOME h4/option/NONE <=> F
% Assm: h4/combin/literal__case__FORALL__ELIM: !v f. h4/bool/literal__case f v <=> $forall (h4/combin/S (h4/combin/o $imply (h4/combin/o h4/marker/Abbrev (h4/combin/C $equals v))) f)
% Assm: h4/combin/C__DEF: h4/combin/C = (\f x y. f y x)
% Assm: h4/marker/Abbrev__def: !x. h4/marker/Abbrev x <=> x
% Assm: h4/combin/o__THM: !x g f. h4/combin/o f g x = f (g x)
% Assm: h4/combin/S__DEF: h4/combin/S = (\f g x. f x (g x))
% Assm: h4/bool/IMP__CLAUSES_c2: !t. F ==> t <=> T
% Assm: h4/option/IS__NONE__DEF_c1: h4/option/IS__NONE h4/option/NONE <=> T
% Assm: h4/option/IS__NONE__DEF_c0: !x. h4/option/IS__NONE (h4/option/SOME x) <=> F
% Assm: h4/bool/COND__ID: !t b. h4/bool/COND b t t = t
% Assm: h4/bool/AND__CLAUSES_c3: !t. t /\ F <=> F
% Assm: h4/bool/IMP__CLAUSES_c1: !t. t ==> T <=> T
% Assm: h4/bool/RES__FORALL__TRUE: !P. h4/bool/RES__FORALL P (\x. T) <=> T
% Assm: h4/bool/COND__DEF: h4/bool/COND = (\t t1 t2. h4/min/_40 (\x. ((t <=> T) ==> x = t1) /\ ((t <=> F) ==> x = t2)))
% Assm: h4/bool/EXCLUDED__MIDDLE0: !t. t \/ ~t
% Assm: h4/bool/NOT__DEF: $not = (\t. t ==> F)
% Assm: h4/bool/LET__THM: !x f. h4/bool/LET f x = f x
% Assm: h4/bool/RES__EXISTS__FALSE: !P. h4/bool/RES__EXISTS P (\x. F) <=> F
% Assm: h4/bool/literal__case__THM: !x f. h4/bool/literal__case f x = f x
% Assm: h4/bool/EXISTS__SIMP: !t. (?x. t) <=> t
% Assm: h4/bool/AND__DEF: $and = (\t1 t2. !t. (t1 ==> t2 ==> t) ==> t)
% Assm: h4/bool/FORALL__DEF: $forall = (\P. P = (\x. T))
% Assm: h4/option/OPTREL__def: !y x R. h4/option/OPTREL R x y <=> x = h4/option/NONE /\ y = h4/option/NONE \/ (?x0 y0. x = h4/option/SOME x0 /\ y = h4/option/SOME y0 /\ R x0 y0)
% Assm: h4/option/OPTION__BIND__EQUALS__OPTION_c0: !p f. h4/option/OPTION__BIND p f = h4/option/NONE <=> p = h4/option/NONE \/ (?x. p = h4/option/SOME x /\ f x = h4/option/NONE)
% Assm: h4/option/OPTION__MAP2__THM_c1: !x f. h4/option/OPTION__MAP2 f (h4/option/SOME x) h4/option/NONE = h4/option/NONE
% Assm: h4/option/IF__NONE__EQUALS__OPTION_c2: !x X P. h4/bool/COND P X h4/option/NONE = h4/option/SOME x <=> P /\ X = h4/option/SOME x
% Assm: h4/bool/OR__CLAUSES_c0: !t. T \/ t <=> T
% Assm: h4/bool/OR__CLAUSES_c2: !t. F \/ t <=> t
% Assm: h4/bool/UNWIND__THM2: !a P. (?x. x = a /\ P x) <=> P a
% Assm: h4/option/OPTION__BIND__def_c1: !x f. h4/option/OPTION__BIND (h4/option/SOME x) f = f x
% Assm: h4/option/OPTION__BIND__def_c0: !f. h4/option/OPTION__BIND h4/option/NONE f = h4/option/NONE
% Assm: h4/option/OPTION__MAP2__DEF: !y x f. h4/option/OPTION__MAP2 f x y = h4/bool/COND (h4/option/IS__SOME x /\ h4/option/IS__SOME y) (h4/option/SOME (f (h4/option/THE x) (h4/option/THE y))) h4/option/NONE
% Assm: h4/option/THE__DEF: !x. h4/option/THE (h4/option/SOME x) = 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__DEF_c1: !f. h4/option/OPTION__MAP f h4/option/NONE = h4/option/NONE
% Assm: h4/option/OPTION__MAP__DEF_c0: !x f. h4/option/OPTION__MAP f (h4/option/SOME x) = h4/option/SOME (f x)
% Goal: !Q P. Q (h4/option/some P) ==> (?x. P x /\ Q (h4/option/SOME x)) \/ (!x. ~P x) /\ Q h4/option/NONE
%   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_options_someu_u_intro]: !Q P. (!x. happ P x ==> happ Q (h4/option/SOME x)) /\ ((!x. ~happ P x) ==> happ Q h4/option/NONE) ==> happ Q (h4/option/some P)
% Assm [h4s_options_someu_u_def]: !_0. (!P x. happ (happ _0 P) x <=> happ P x) ==> (!P. ?v. (v <=> (?x. happ P x)) /\ h4/option/some P = h4/bool/COND v (h4/option/SOME (h4/min/_40 (happ _0 P))) h4/option/NONE)
% Assm [h4s_bools_TRUTH]: T
% Assm [h4s_options_optionu_u_induction]: !P. happ P h4/option/NONE /\ (!a. happ P (h4/option/SOME a)) ==> (!x. happ P x)
% Assm [h4s_bools_EQu_u_CLAUSESu_c1]: !t. (t <=> T) <=> t
% Assm [h4s_bools_EQu_u_SYMu_u_EQ]: !y x. x = y <=> y = x
% Assm [h4s_options_EXISTSu_u_OPTION]: !P. (?opt. happ P opt) <=> happ P h4/option/NONE \/ (?x. happ P (h4/option/SOME x))
% Assm [h4s_bools_IMPu_u_ANTISYMu_u_AX]: !t2 t1. (t1 ==> t2) ==> (t2 ==> t1) ==> (t1 <=> t2)
% Assm [h4s_options_FORALLu_u_OPTION]: !P. (!opt. happ P opt) <=> happ P h4/option/NONE /\ (!x. happ P (h4/option/SOME x))
% Assm [h4s_bools_EXISTSu_u_DEF]: !x. $exists x <=> happ x (h4/min/_40 x)
% Assm [h4s_bools_NOTu_u_CLAUSESu_c0]: !t. ~ ~t <=> t
% Assm [h4s_sats_NOTu_u_NOT]: !t. ~ ~t <=> t
% Assm [h4s_sats_ORu_u_DUAL3]: !B A. ~(~A \/ B) ==> F <=> A ==> ~B ==> F
% Assm [h4s_sats_ORu_u_DUAL2]: !B A. ~(A \/ B) ==> F <=> (A ==> F) ==> ~B ==> F
% Assm [h4s_bools_IMPu_u_CLAUSESu_c4]: !t. t ==> F <=> ~t
% Assm [h4s_sats_dcu_u_eq]: !r q p. (p <=> q <=> r) <=> (p \/ q \/ r) /\ (p \/ ~r \/ ~q) /\ (q \/ ~r \/ ~p) /\ (r \/ ~q \/ ~p)
% Assm [h4s_sats_dcu_u_neg]: !q p. (p <=> ~q) <=> (p \/ q) /\ (~q \/ ~p)
% Assm [h4s_sats_ANDu_u_INV2]: !A. (~A ==> F) ==> (A ==> F) ==> F
% Assm [h4s_sats_ANDu_u_INVu_u_IMP]: !A. A ==> ~A ==> F
% Assm [h4s_sats_dcu_u_disj]: !r q p. (p <=> q \/ r) <=> (p \/ ~q) /\ (p \/ ~r) /\ (q \/ r \/ ~p)
% Assm [h4s_sats_dcu_u_imp]: !r q p. (p <=> q ==> r) <=> (p \/ q) /\ (p \/ ~r) /\ (~q \/ r \/ ~p)
% Assm [h4s_sats_pthu_u_ni2]: !q p. ~(p ==> q) ==> ~q
% Assm [h4s_sats_pthu_u_ni1]: !q p. ~(p ==> q) ==> p
% Assm [h4s_bools_FALSITY]: !t. F ==> t
% Assm [h4s_bools_CONDu_u_CLAUSESu_c1]: !t2 t1. h4/bool/COND F t1 t2 = t2
% Assm [h4s_bools_CONDu_u_CLAUSESu_c0]: !t2 t1. h4/bool/COND T t1 t2 = t1
% Assm [h4s_bools_EXCLUDEDu_u_MIDDLE]: !t. t \/ ~t
% 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_ANDu_u_IMPu_u_INTRO]: !t3 t2 t1. t1 ==> t2 ==> t3 <=> t1 /\ t2 ==> t3
% Assm [h4s_bools_RIGHTu_u_FORALLu_u_ORu_u_THM]: !Q P. (!x. P \/ happ Q x) <=> P \/ (!x. happ Q x)
% Assm [h4s_bools_SELECTu_u_AX]: !x P. happ P x ==> happ P (h4/min/_40 P)
% Assm [h4s_bools_FORALLu_u_SIMP]: !t. (!x. t) <=> t
% Assm [h4s_bools_ANDu_u_CLAUSESu_c0]: !t. T /\ t <=> t
% Assm [h4s_options_NONEu_u_DEF]: h4/option/NONE = h4/option/option__ABS (h4/sum/INR h4/one/one0)
% Assm [h4s_options_SOMEu_u_DEF]: !x. h4/option/SOME x = h4/option/option__ABS (h4/sum/INL x)
% Assm [h4s_ones_one1]: !v. v = h4/one/one0
% Assm [h4s_sums_sumu_u_INDUCT]: !P. (!x. happ P (h4/sum/INL x)) /\ (!y. happ P (h4/sum/INR y)) ==> (!s. happ P s)
% Assm [h4s_options_optionu_u_REPu_u_ABSu_u_DEFu_c0]: !a. h4/option/option__ABS (h4/option/option__REP a) = a
% Assm [h4s_sats_dcu_u_conj]: !r q p. (p <=> q /\ r) <=> (p \/ ~q \/ ~r) /\ (q \/ ~p) /\ (r \/ ~p)
% Assm [h4s_bools_ETAu_u_AX]: !t x. happ t x = happ t x
% Assm [h4s_options_optionu_u_nchotomy]: !opt. opt = h4/option/NONE \/ (?x. opt = h4/option/SOME x)
% Assm [h4s_bools_LEFTu_u_FORALLu_u_ORu_u_THM]: !Q P. (!x. happ P x \/ Q) <=> (!x. happ P x) \/ Q
% Assm [h4s_bools_RIGHTu_u_ANDu_u_FORALLu_u_THM]: !Q P. P /\ (!x. happ Q x) <=> (!x. P /\ happ Q x)
% Assm [h4s_sats_pthu_u_nn]: !p. ~ ~p ==> p
% Assm [h4s_sats_pthu_u_no1]: !q p. ~(p \/ q) ==> ~p
% Assm [h4s_sats_pthu_u_no2]: !q p. ~(p \/ q) ==> ~q
% Assm [h4s_bools_RESu_u_EXISTSu_u_DEF]: !x x'. h4/bool/RES__EXISTS x x' <=> (?x. h4/bool/IN x x /\ happ x' x)
% Assm [h4s_bools_RESu_u_EXISTSu_u_UNIQUEu_u_DEF]: !_2. (!x' x y. happ (happ (happ _2 x') x) y <=> happ x' x /\ happ x' y ==> x = y) ==> (!_1. (!x x' x. happ (happ (happ _1 x) x') x <=> h4/bool/RES__FORALL x (happ (happ _2 x') x)) ==> (!_0. (!x' x. happ (happ _0 x') x <=> happ x' x) ==> (!x x'. h4/bool/RES__EXISTS__UNIQUE x x' <=> h4/bool/RES__EXISTS x (happ _0 x') /\ h4/bool/RES__FORALL x (happ _0 (happ (happ _1 x) x')))))
% Assm [h4s_bools_RESu_u_SELECTu_u_DEF]: !_0. (!x x' x. happ (happ (happ _0 x) x') x <=> h4/bool/IN x x /\ happ x' x) ==> (!x x'. h4/bool/RES__SELECT x x' = h4/min/_40 (happ (happ _0 x) x'))
% Assm [h4s_bools_RESu_u_FORALLu_u_DEF]: !x x'. h4/bool/RES__FORALL x x' <=> (!x. h4/bool/IN x x ==> happ x' x)
% Assm [h4s_normalFormss_UNIVu_u_POINTu_u_DEF]: !p. happ p (h4/normalForms/UNIV__POINT p) ==> (!x. happ p x)
% Assm [h4s_bools_TYPEu_u_DEFINITION0]: !x x. h4/bool/TYPE__DEFINITION x x <=> (!x_27 x_27_27. happ x x_27 = happ x x_27_27 ==> x_27 = x_27_27) /\ (!x. happ x x <=> (?x_27. x = happ x x_27))
% Assm [h4s_bools_EXISTSu_u_UNIQUEu_u_DEF]: !x. h4/bool/_3F_21 x <=> $exists x /\ (!x y. happ x x /\ happ x y ==> x = y)
% Assm [h4s_bools_RESu_u_SELECTu_u_THM]: !_0. (!P f x. happ (happ (happ _0 P) f) x <=> h4/bool/IN x P /\ happ f x) ==> (!f P. h4/bool/RES__SELECT P f = h4/min/_40 (happ (happ _0 P) f))
% Assm [h4s_bools_SELECTu_u_UNIQUE]: !x P. (!y. happ P y <=> y = x) ==> h4/min/_40 P = x
% Assm [h4s_options_NOTu_u_NONEu_u_SOME]: !x. ~(h4/option/NONE = h4/option/SOME x)
% Assm [h4s_normalFormss_UNIVu_u_POINT0]: !p. happ p (h4/normalForms/UNIV__POINT p) <=> (!x. happ p x)
% Assm [h4s_bools_TYPEu_u_DEFINITIONu_u_THM]: !rep P. h4/bool/TYPE__DEFINITION P rep <=> (!x_27 x_27_27. happ rep x_27 = happ rep x_27_27 ==> x_27 = x_27_27) /\ (!x. happ P x <=> (?x_27. x = happ rep x_27))
% Assm [h4s_bools_SELECTu_u_ELIMu_u_THM]: !Q P. (?x. happ P x) /\ (!x. happ P x ==> happ Q x) ==> happ Q (h4/min/_40 P)
% Assm [h4s_bools_EXISTSu_u_THM]: !f. $exists f <=> (?x. happ f x)
% Assm [h4s_bools_RESu_u_FORALLu_u_THM]: !f P. h4/bool/RES__FORALL P f <=> (!x. h4/bool/IN x P ==> happ f x)
% Assm [h4s_bools_JRHu_u_INDUCTu_u_UTIL]: !t P. (!x. x = t ==> happ P x) ==> $exists P
% Assm [h4s_options_NOTu_u_SOMEu_u_NONE]: !x. ~(h4/option/SOME x = h4/option/NONE)
% Assm [h4s_bools_RESu_u_EXISTSu_u_CONG]: !g f Q P. P = Q ==> (!x. h4/bool/IN x Q ==> (happ f x <=> happ g x)) ==> (h4/bool/RES__EXISTS P f <=> h4/bool/RES__EXISTS Q g)
% Assm [h4s_bools_RESu_u_FORALLu_u_CONG]: !g f Q P. P = Q ==> (!x. h4/bool/IN x Q ==> (happ f x <=> happ g x)) ==> (h4/bool/RES__FORALL P f <=> h4/bool/RES__FORALL Q g)
% Assm [h4s_bools_FORALLu_u_THM]: !f. $forall f <=> (!x. happ f x)
% Assm [h4s_bools_RESu_u_EXISTSu_u_THM]: !f P. h4/bool/RES__EXISTS P f <=> (?x. h4/bool/IN x P /\ happ f x)
% Assm [h4s_bools_NOTu_u_CLAUSESu_c2]: ~F <=> T
% Assm [h4s_bools_RESu_u_EXISTSu_u_UNIQUEu_u_THM]: !_2. (!f x y. happ (happ (happ _2 f) x) y <=> happ f x /\ happ f y ==> x = y) ==> (!_1. (!P f x. happ (happ (happ _1 P) f) x <=> h4/bool/RES__FORALL P (happ (happ _2 f) x)) ==> (!_0. (!f x. happ (happ _0 f) x <=> happ f x) ==> (!f P. h4/bool/RES__EXISTS__UNIQUE P f <=> h4/bool/RES__EXISTS P (happ _0 f) /\ h4/bool/RES__FORALL P (happ _0 (happ (happ _1 P) f)))))
% Assm [h4s_options_optionu_u_CLAUSESu_c2]: !x. ~(h4/option/NONE = h4/option/SOME x)
% Assm [h4s_bools_IMPu_u_CLAUSESu_c0]: !t. T ==> t <=> t
% Assm [h4s_options_optionu_u_REPu_u_ABSu_u_DEFu_c1]: !r. T <=> h4/option/option__REP (h4/option/option__ABS r) = r
% Assm [h4s_sums_INRu_u_nequ_u_INL]: !v2 v1. ~(h4/sum/INR v2 = h4/sum/INL v1)
% Assm [h4s_bools_REFLu_u_CLAUSE]: !x. x = x <=> T
% Assm [h4s_options_optionu_u_CLAUSESu_c3]: !x. ~(h4/option/SOME x = h4/option/NONE)
% Assm [h4s_options_IFu_u_EQUALSu_u_OPTIONu_c3]: !y x P. h4/bool/COND P h4/option/NONE (h4/option/SOME x) = h4/option/SOME y <=> ~P /\ x = y
% Assm [h4s_bools_EQu_u_CLAUSESu_c2]: !t. (F <=> t) <=> ~t
% Assm [h4s_options_SOMEu_u_11]: !y x. h4/option/SOME x = h4/option/SOME y <=> x = y
% Assm [h4s_options_IFu_u_EQUALSu_u_OPTIONu_c0]: !x P. h4/bool/COND P (h4/option/SOME x) h4/option/NONE = h4/option/NONE <=> ~P
% Assm [h4s_bools_ANDu_u_CLAUSESu_c2]: !t. F /\ t <=> F
% Assm [h4s_options_IFu_u_EQUALSu_u_OPTIONu_c1]: !x P. h4/bool/COND P h4/option/NONE (h4/option/SOME x) = h4/option/NONE <=> P
% Assm [h4s_options_IFu_u_EQUALSu_u_OPTIONu_c2]: !y x P. h4/bool/COND P (h4/option/SOME x) h4/option/NONE = h4/option/SOME y <=> P /\ x = y
% Assm [h4s_options_IFu_u_NONEu_u_EQUALSu_u_OPTIONu_c3]: !x X P. h4/bool/COND P h4/option/NONE X = h4/option/SOME x <=> ~P /\ X = h4/option/SOME x
% Assm [h4s_bools_EQu_u_CLAUSESu_c0]: !t. (T <=> t) <=> t
% Assm [h4s_bools_NOTu_u_CLAUSESu_c1]: ~T <=> F
% Assm [h4s_bools_RESu_u_ABSTRACTu_u_DEFu_c1]: !p m2 m1. (!x. h4/bool/IN x p ==> happ m1 x = happ m2 x) ==> h4/bool/RES__ABSTRACT p m1 = h4/bool/RES__ABSTRACT p m2
% Assm [h4s_combins_LETu_u_FORALLu_u_ELIM]: !v f. h4/bool/LET f v <=> $forall (h4/combin/S (h4/combin/o $imply (h4/combin/o h4/marker/Abbrev (h4/combin/C $equals v))) f)
% Assm [h4s_bools_BOOLu_u_CASESu_u_AX]: !t. (t <=> T) \/ (t <=> F)
% Assm [h4s_bools_ORu_u_DEF]: !x x'. $or x x' <=> (!t. (x ==> t) ==> (x' ==> t) ==> t)
% Assm [h4s_bools_Fu_u_DEF]: F <=> (!t. t)
% Assm [h4s_bools_Tu_u_DEF]: T <=> (!x. x <=> x)
% Assm [h4s_options_ISu_u_SOMEu_u_DEFu_c0]: !x. h4/option/IS__SOME (h4/option/SOME x) <=> T
% Assm [h4s_options_ISu_u_SOMEu_u_DEFu_c1]: h4/option/IS__SOME h4/option/NONE <=> F
% Assm [h4s_combins_literalu_u_caseu_u_FORALLu_u_ELIM]: !v f. h4/bool/literal__case f v <=> $forall (h4/combin/S (h4/combin/o $imply (h4/combin/o h4/marker/Abbrev (h4/combin/C $equals v))) f)
% Assm [h4s_combins_Cu_u_DEF]: !x x x. happ (h4/combin/C x x) x = happ (happ x x) x
% Assm [h4s_markers_Abbrevu_u_def]: !x. happ h4/marker/Abbrev x <=> x
% Assm [h4s_combins_ou_u_THM]: !x g f. happ (h4/combin/o f g) x = happ f (happ g x)
% Assm [h4s_combins_Su_u_DEF]: !x x x. happ (h4/combin/S x x) x = happ (happ x x) (happ x x)
% Assm [h4s_bools_IMPu_u_CLAUSESu_c2]: !t. F ==> t <=> T
% Assm [h4s_options_ISu_u_NONEu_u_DEFu_c1]: h4/option/IS__NONE h4/option/NONE <=> T
% Assm [h4s_options_ISu_u_NONEu_u_DEFu_c0]: !x. h4/option/IS__NONE (h4/option/SOME x) <=> F
% Assm [h4s_bools_CONDu_u_ID]: !t b. h4/bool/COND b t t = t
% Assm [h4s_bools_ANDu_u_CLAUSESu_c3]: !t. t /\ F <=> F
% Assm [h4s_bools_IMPu_u_CLAUSESu_c1]: !t. t ==> T <=> T
% Assm [h4s_bools_RESu_u_FORALLu_u_TRUE]: !_0. (!x. happ _0 x <=> T) ==> (!P. h4/bool/RES__FORALL P _0 <=> T)
% Assm [h4s_bools_CONDu_u_DEF]: !_0. (!x x x' x''. happ (happ (happ (happ _0 x) x) x') x'' <=> ((x <=> T) ==> x'' = x) /\ ((x <=> F) ==> x'' = x')) ==> (!x x x'. h4/bool/COND x x x' = h4/min/_40 (happ (happ (happ _0 x) x) x'))
% Assm [h4s_bools_EXCLUDEDu_u_MIDDLE0]: !t. t \/ ~t
% Assm [h4s_bools_NOTu_u_DEF]: !x. $not x <=> x ==> F
% Assm [h4s_bools_LETu_u_THM]: !x f. h4/bool/LET f x = happ f x
% Assm [h4s_bools_RESu_u_EXISTSu_u_FALSE]: !_0. (!x. happ _0 x <=> F) ==> (!P. h4/bool/RES__EXISTS P _0 <=> F)
% Assm [h4s_bools_literalu_u_caseu_u_THM]: !x f. h4/bool/literal__case f x = happ f x
% Assm [h4s_bools_EXISTSu_u_SIMP]: !t. (?x. t) <=> t
% Assm [h4s_bools_ANDu_u_DEF]: !x x'. $and x x' <=> (!t. (x ==> x' ==> t) ==> t)
% Assm [h4s_bools_FORALLu_u_DEF]: !x. $forall x <=> (!x. happ x x <=> T)
% Assm [h4s_options_OPTRELu_u_def]: !y x R. h4/option/OPTREL R x y <=> x = h4/option/NONE /\ y = h4/option/NONE \/ (?x0 y0. x = h4/option/SOME x0 /\ y = h4/option/SOME y0 /\ happ (happ R x0) y0)
% Assm [h4s_options_OPTIONu_u_BINDu_u_EQUALSu_u_OPTIONu_c0]: !p f. h4/option/OPTION__BIND p f = h4/option/NONE <=> p = h4/option/NONE \/ (?x. p = h4/option/SOME x /\ happ f x = h4/option/NONE)
% Assm [h4s_options_OPTIONu_u_MAP2u_u_THMu_c1]: !x f. h4/option/OPTION__MAP2 f (h4/option/SOME x) h4/option/NONE = h4/option/NONE
% Assm [h4s_options_IFu_u_NONEu_u_EQUALSu_u_OPTIONu_c2]: !x X P. h4/bool/COND P X h4/option/NONE = h4/option/SOME x <=> P /\ X = h4/option/SOME x
% 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_UNWINDu_u_THM2]: !a P. (?x. x = a /\ happ P x) <=> happ P a
% Assm [h4s_options_OPTIONu_u_BINDu_u_defu_c1]: !x f. h4/option/OPTION__BIND (h4/option/SOME x) f = happ f x
% Assm [h4s_options_OPTIONu_u_BINDu_u_defu_c0]: !f. h4/option/OPTION__BIND h4/option/NONE f = h4/option/NONE
% Assm [h4s_options_OPTIONu_u_MAP2u_u_DEF]: !y x f. ?v. (v <=> h4/option/IS__SOME x /\ h4/option/IS__SOME y) /\ h4/option/OPTION__MAP2 f x y = h4/bool/COND v (h4/option/SOME (happ (happ f (h4/option/THE x)) (h4/option/THE y))) h4/option/NONE
% Assm [h4s_options_THEu_u_DEF]: !x. h4/option/THE (h4/option/SOME x) = 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_DEFu_c1]: !f. h4/option/OPTION__MAP f h4/option/NONE = h4/option/NONE
% Assm [h4s_options_OPTIONu_u_MAPu_u_DEFu_c0]: !x f. h4/option/OPTION__MAP f (h4/option/SOME x) = h4/option/SOME (happ f x)
% Goal: !Q P. happ Q (h4/option/some P) ==> (?x. happ P x /\ happ Q (h4/option/SOME x)) \/ (!x. ~happ P x) /\ happ Q h4/option/NONE
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_Q1135556,TV_Q1135552]: ![V_f, V_g]: (![V_x]: s(TV_Q1135552,happ(s(t_fun(TV_Q1135556,TV_Q1135552),V_f),s(TV_Q1135556,V_x))) = s(TV_Q1135552,happ(s(t_fun(TV_Q1135556,TV_Q1135552),V_g),s(TV_Q1135556,V_x))) => s(t_fun(TV_Q1135556,TV_Q1135552),V_f) = s(t_fun(TV_Q1135556,TV_Q1135552),V_g))).
fof(ah4s_options_someu_u_intro, 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(t_h4s_options_option(TV_u_27a),t_bool),V_Q),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(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))))) => p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_Q),s(t_h4s_options_option(TV_u_27a),h4s_options_none)))))) => p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_Q),s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(t_fun(TV_u_27a,t_bool),V_P)))))))).
fof(ah4s_options_someu_u_def, axiom, ![TV_u_27a]: ![V_uu_0]: (![V_P, V_x]: 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_uu_0),s(t_fun(TV_u_27a,t_bool),V_P))),s(TV_u_27a,V_x))) = s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_P),s(TV_u_27a,V_x))) => ![V_P]: ?[V_v]: ((p(s(t_bool,V_v)) <=> ?[V_x]: p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_P),s(TV_u_27a,V_x))))) & s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(t_fun(TV_u_27a,t_bool),V_P))) = s(t_h4s_options_option(TV_u_27a),h4s_bools_cond(s(t_bool,V_v),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,h4s_mins_u_40(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_uu_0),s(t_fun(TV_u_27a,t_bool),V_P))))))),s(t_h4s_options_option(TV_u_27a),h4s_options_none)))))).
fof(ah4s_bools_TRUTH, axiom, p(s(t_bool,t))).
fof(ah4s_options_optionu_u_induction, axiom, ![TV_u_27a]: ![V_P]: ((p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_none)))) & ![V_a]: p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_a))))))) => ![V_x]: p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(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_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_options_EXISTSu_u_OPTION, axiom, ![TV_u_27a]: ![V_P]: (?[V_opt]: p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(TV_u_27a),V_opt)))) <=> (p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_none)))) | ?[V_x]: p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))))))))).
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_options_FORALLu_u_OPTION, axiom, ![TV_u_27a]: ![V_P]: (![V_opt]: p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(TV_u_27a),V_opt)))) <=> (p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_none)))) & ![V_x]: p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))))))))).
fof(ah4s_bools_EXISTSu_u_DEF, axiom, ![TV_u_27a]: ![V_x]: s(t_bool,d_exists(s(t_fun(TV_u_27a,t_bool),V_x))) = s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_x),s(TV_u_27a,h4s_mins_u_40(s(t_fun(TV_u_27a,t_bool),V_x)))))).
fof(ah4s_bools_NOTu_u_CLAUSESu_c0, axiom, ![V_t]: (~ (~ (p(s(t_bool,V_t)))) <=> p(s(t_bool,V_t)))).
fof(ah4s_sats_NOTu_u_NOT, axiom, ![V_t]: (~ (~ (p(s(t_bool,V_t)))) <=> p(s(t_bool,V_t)))).
fof(ah4s_sats_ORu_u_DUAL3, axiom, ![V_B, V_A]: ((~ ((~ (p(s(t_bool,V_A))) | p(s(t_bool,V_B)))) => p(s(t_bool,f))) <=> (p(s(t_bool,V_A)) => (~ (p(s(t_bool,V_B))) => p(s(t_bool,f)))))).
fof(ah4s_sats_ORu_u_DUAL2, axiom, ![V_B, V_A]: ((~ ((p(s(t_bool,V_A)) | p(s(t_bool,V_B)))) => p(s(t_bool,f))) <=> ((p(s(t_bool,V_A)) => p(s(t_bool,f))) => (~ (p(s(t_bool,V_B))) => p(s(t_bool,f)))))).
fof(ah4s_bools_IMPu_u_CLAUSESu_c4, axiom, ![V_t]: ((p(s(t_bool,V_t)) => p(s(t_bool,f))) <=> ~ (p(s(t_bool,V_t))))).
fof(ah4s_sats_dcu_u_eq, axiom, ![V_r, V_q, V_p]: ((p(s(t_bool,V_p)) <=> s(t_bool,V_q) = s(t_bool,V_r)) <=> ((p(s(t_bool,V_p)) | (p(s(t_bool,V_q)) | p(s(t_bool,V_r)))) & ((p(s(t_bool,V_p)) | (~ (p(s(t_bool,V_r))) | ~ (p(s(t_bool,V_q))))) & ((p(s(t_bool,V_q)) | (~ (p(s(t_bool,V_r))) | ~ (p(s(t_bool,V_p))))) & (p(s(t_bool,V_r)) | (~ (p(s(t_bool,V_q))) | ~ (p(s(t_bool,V_p)))))))))).
fof(ah4s_sats_dcu_u_neg, axiom, ![V_q, V_p]: ((p(s(t_bool,V_p)) <=> ~ (p(s(t_bool,V_q)))) <=> ((p(s(t_bool,V_p)) | p(s(t_bool,V_q))) & (~ (p(s(t_bool,V_q))) | ~ (p(s(t_bool,V_p))))))).
fof(ah4s_sats_ANDu_u_INV2, axiom, ![V_A]: ((~ (p(s(t_bool,V_A))) => p(s(t_bool,f))) => ((p(s(t_bool,V_A)) => p(s(t_bool,f))) => p(s(t_bool,f))))).
fof(ah4s_sats_ANDu_u_INVu_u_IMP, axiom, ![V_A]: (p(s(t_bool,V_A)) => (~ (p(s(t_bool,V_A))) => p(s(t_bool,f))))).
fof(ah4s_sats_dcu_u_disj, axiom, ![V_r, V_q, V_p]: ((p(s(t_bool,V_p)) <=> (p(s(t_bool,V_q)) | p(s(t_bool,V_r)))) <=> ((p(s(t_bool,V_p)) | ~ (p(s(t_bool,V_q)))) & ((p(s(t_bool,V_p)) | ~ (p(s(t_bool,V_r)))) & (p(s(t_bool,V_q)) | (p(s(t_bool,V_r)) | ~ (p(s(t_bool,V_p))))))))).
fof(ah4s_sats_dcu_u_imp, axiom, ![V_r, V_q, V_p]: ((p(s(t_bool,V_p)) <=> (p(s(t_bool,V_q)) => p(s(t_bool,V_r)))) <=> ((p(s(t_bool,V_p)) | p(s(t_bool,V_q))) & ((p(s(t_bool,V_p)) | ~ (p(s(t_bool,V_r)))) & (~ (p(s(t_bool,V_q))) | (p(s(t_bool,V_r)) | ~ (p(s(t_bool,V_p))))))))).
fof(ah4s_sats_pthu_u_ni2, axiom, ![V_q, V_p]: (~ ((p(s(t_bool,V_p)) => p(s(t_bool,V_q)))) => ~ (p(s(t_bool,V_q))))).
fof(ah4s_sats_pthu_u_ni1, axiom, ![V_q, V_p]: (~ ((p(s(t_bool,V_p)) => p(s(t_bool,V_q)))) => p(s(t_bool,V_p)))).
fof(ah4s_bools_FALSITY, axiom, ![V_t]: (p(s(t_bool,f)) => p(s(t_bool,V_t)))).
fof(ah4s_bools_CONDu_u_CLAUSESu_c1, axiom, ![TV_u_27a]: ![V_t2, V_t1]: s(TV_u_27a,h4s_bools_cond(s(t_bool,f),s(TV_u_27a,V_t1),s(TV_u_27a,V_t2))) = s(TV_u_27a,V_t2)).
fof(ah4s_bools_CONDu_u_CLAUSESu_c0, axiom, ![TV_u_27a]: ![V_t2, V_t1]: s(TV_u_27a,h4s_bools_cond(s(t_bool,t),s(TV_u_27a,V_t1),s(TV_u_27a,V_t2))) = s(TV_u_27a,V_t1)).
fof(ah4s_bools_EXCLUDEDu_u_MIDDLE, axiom, ![V_t]: (p(s(t_bool,V_t)) | ~ (p(s(t_bool,V_t))))).
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_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_RIGHTu_u_FORALLu_u_ORu_u_THM, axiom, ![TV_u_27a]: ![V_Q, V_P]: (![V_x]: (p(s(t_bool,V_P)) | p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_Q),s(TV_u_27a,V_x))))) <=> (p(s(t_bool,V_P)) | ![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_SELECTu_u_AX, axiom, ![TV_u_27a]: ![V_x, V_P]: (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,h4s_mins_u_40(s(t_fun(TV_u_27a,t_bool),V_P)))))))).
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_options_NONEu_u_DEF, axiom, ![TV_u_27a]: s(t_h4s_options_option(TV_u_27a),h4s_options_none) = s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_abs(s(t_h4s_sums_sum(TV_u_27a,t_h4s_ones_one),h4s_sums_inr(s(t_h4s_ones_one,h4s_ones_one0)))))).
fof(ah4s_options_SOMEu_u_DEF, axiom, ![TV_u_27a]: ![V_x]: s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))) = s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_abs(s(t_h4s_sums_sum(TV_u_27a,t_h4s_ones_one),h4s_sums_inl(s(TV_u_27a,V_x)))))).
fof(ah4s_ones_one1, axiom, ![V_v]: s(t_h4s_ones_one,V_v) = s(t_h4s_ones_one,h4s_ones_one0)).
fof(ah4s_sums_sumu_u_INDUCT, axiom, ![TV_u_27a,TV_u_27b]: ![V_P]: ((![V_x]: p(s(t_bool,happ(s(t_fun(t_h4s_sums_sum(TV_u_27a,TV_u_27b),t_bool),V_P),s(t_h4s_sums_sum(TV_u_27a,TV_u_27b),h4s_sums_inl(s(TV_u_27a,V_x)))))) & ![V_y]: p(s(t_bool,happ(s(t_fun(t_h4s_sums_sum(TV_u_27a,TV_u_27b),t_bool),V_P),s(t_h4s_sums_sum(TV_u_27a,TV_u_27b),h4s_sums_inr(s(TV_u_27b,V_y))))))) => ![V_s]: p(s(t_bool,happ(s(t_fun(t_h4s_sums_sum(TV_u_27a,TV_u_27b),t_bool),V_P),s(t_h4s_sums_sum(TV_u_27a,TV_u_27b),V_s)))))).
fof(ah4s_options_optionu_u_REPu_u_ABSu_u_DEFu_c0, axiom, ![TV_u_27a]: ![V_a]: s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_abs(s(t_h4s_sums_sum(TV_u_27a,t_h4s_ones_one),h4s_options_optionu_u_rep(s(t_h4s_options_option(TV_u_27a),V_a))))) = s(t_h4s_options_option(TV_u_27a),V_a)).
fof(ah4s_sats_dcu_u_conj, axiom, ![V_r, V_q, V_p]: ((p(s(t_bool,V_p)) <=> (p(s(t_bool,V_q)) & p(s(t_bool,V_r)))) <=> ((p(s(t_bool,V_p)) | (~ (p(s(t_bool,V_q))) | ~ (p(s(t_bool,V_r))))) & ((p(s(t_bool,V_q)) | ~ (p(s(t_bool,V_p)))) & (p(s(t_bool,V_r)) | ~ (p(s(t_bool,V_p)))))))).
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_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_some0(s(TV_u_27a,V_x))))).
fof(ah4s_bools_LEFTu_u_FORALLu_u_ORu_u_THM, 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,V_Q))) <=> (![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,V_Q))))).
fof(ah4s_bools_RIGHTu_u_ANDu_u_FORALLu_u_THM, axiom, ![TV_u_27a]: ![V_Q, V_P]: ((p(s(t_bool,V_P)) & ![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,V_P)) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_Q),s(TV_u_27a,V_x))))))).
fof(ah4s_sats_pthu_u_nn, axiom, ![V_p]: (~ (~ (p(s(t_bool,V_p)))) => p(s(t_bool,V_p)))).
fof(ah4s_sats_pthu_u_no1, axiom, ![V_q, V_p]: (~ ((p(s(t_bool,V_p)) | p(s(t_bool,V_q)))) => ~ (p(s(t_bool,V_p))))).
fof(ah4s_sats_pthu_u_no2, axiom, ![V_q, V_p]: (~ ((p(s(t_bool,V_p)) | p(s(t_bool,V_q)))) => ~ (p(s(t_bool,V_q))))).
fof(ah4s_bools_RESu_u_EXISTSu_u_DEF, axiom, ![TV_u_27a]: ![V_x, V_xi_]: (p(s(t_bool,h4s_bools_resu_u_exists(s(t_fun(TV_u_27a,t_bool),V_x),s(t_fun(TV_u_27a,t_bool),V_xi_)))) <=> ?[V_x0]: (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x0),s(t_fun(TV_u_27a,t_bool),V_x)))) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_xi_),s(TV_u_27a,V_x0))))))).
fof(ah4s_bools_RESu_u_EXISTSu_u_UNIQUEu_u_DEF, axiom, ![TV_u_27a]: ![V_uu_2]: (![V_xi_, V_x, V_y]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),happ(s(t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool))),V_uu_2),s(t_fun(TV_u_27a,t_bool),V_xi_))),s(TV_u_27a,V_x))),s(TV_u_27a,V_y)))) <=> ((p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_xi_),s(TV_u_27a,V_x)))) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_xi_),s(TV_u_27a,V_y))))) => s(TV_u_27a,V_x) = s(TV_u_27a,V_y))) => ![V_uu_1]: (![V_x, V_xi_, V_x0]: 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)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool))),V_uu_1),s(t_fun(TV_u_27a,t_bool),V_x))),s(t_fun(TV_u_27a,t_bool),V_xi_))),s(TV_u_27a,V_x0))) = s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_x),s(t_fun(TV_u_27a,t_bool),happ(s(t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool))),V_uu_2),s(t_fun(TV_u_27a,t_bool),V_xi_))),s(TV_u_27a,V_x0))))) => ![V_uu_0]: (![V_xi_, V_x]: 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_uu_0),s(t_fun(TV_u_27a,t_bool),V_xi_))),s(TV_u_27a,V_x))) = s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_xi_),s(TV_u_27a,V_x))) => ![V_x, V_xi_]: (p(s(t_bool,h4s_bools_resu_u_existsu_u_unique(s(t_fun(TV_u_27a,t_bool),V_x),s(t_fun(TV_u_27a,t_bool),V_xi_)))) <=> (p(s(t_bool,h4s_bools_resu_u_exists(s(t_fun(TV_u_27a,t_bool),V_x),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_uu_0),s(t_fun(TV_u_27a,t_bool),V_xi_)))))) & p(s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_x),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_uu_0),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)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool))),V_uu_1),s(t_fun(TV_u_27a,t_bool),V_x))),s(t_fun(TV_u_27a,t_bool),V_xi_)))))))))))))).
fof(ah4s_bools_RESu_u_SELECTu_u_DEF, axiom, ![TV_u_27a]: ![V_uu_0]: (![V_x, V_xi_, V_x0]: (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)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool))),V_uu_0),s(t_fun(TV_u_27a,t_bool),V_x))),s(t_fun(TV_u_27a,t_bool),V_xi_))),s(TV_u_27a,V_x0)))) <=> (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x0),s(t_fun(TV_u_27a,t_bool),V_x)))) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_xi_),s(TV_u_27a,V_x0)))))) => ![V_x, V_xi_]: s(TV_u_27a,h4s_bools_resu_u_select(s(t_fun(TV_u_27a,t_bool),V_x),s(t_fun(TV_u_27a,t_bool),V_xi_))) = s(TV_u_27a,h4s_mins_u_40(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)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool))),V_uu_0),s(t_fun(TV_u_27a,t_bool),V_x))),s(t_fun(TV_u_27a,t_bool),V_xi_))))))).
fof(ah4s_bools_RESu_u_FORALLu_u_DEF, axiom, ![TV_u_27a]: ![V_x, V_xi_]: (p(s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_x),s(t_fun(TV_u_27a,t_bool),V_xi_)))) <=> ![V_x0]: (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x0),s(t_fun(TV_u_27a,t_bool),V_x)))) => p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_xi_),s(TV_u_27a,V_x0))))))).
fof(ah4s_normalFormss_UNIVu_u_POINTu_u_DEF, axiom, ![TV_u_27a]: ![V_p]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_p),s(TV_u_27a,h4s_normalformss_univu_u_point(s(t_fun(TV_u_27a,t_bool),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)))))).
fof(ah4s_bools_TYPEu_u_DEFINITION0, axiom, ![TV_u_27a,TV_u_27b]: ![V_x, V_x0]: (p(s(t_bool,h4s_bools_typeu_u_definition(s(t_fun(TV_u_27a,t_bool),V_x),s(t_fun(TV_u_27b,TV_u_27a),V_x0)))) <=> (![V_xu_27, V_xu_27u_27]: (s(TV_u_27a,happ(s(t_fun(TV_u_27b,TV_u_27a),V_x0),s(TV_u_27b,V_xu_27))) = s(TV_u_27a,happ(s(t_fun(TV_u_27b,TV_u_27a),V_x0),s(TV_u_27b,V_xu_27u_27))) => s(TV_u_27b,V_xu_27) = s(TV_u_27b,V_xu_27u_27)) & ![V_x1]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_x),s(TV_u_27a,V_x1)))) <=> ?[V_xu_27]: s(TV_u_27a,V_x1) = s(TV_u_27a,happ(s(t_fun(TV_u_27b,TV_u_27a),V_x0),s(TV_u_27b,V_xu_27))))))).
fof(ah4s_bools_EXISTSu_u_UNIQUEu_u_DEF, axiom, ![TV_u_27a]: ![V_x]: (p(s(t_bool,h4s_bools_u_3fu_21(s(t_fun(TV_u_27a,t_bool),V_x)))) <=> (p(s(t_bool,d_exists(s(t_fun(TV_u_27a,t_bool),V_x)))) & ![V_x0, V_y]: ((p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_x),s(TV_u_27a,V_x0)))) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_x),s(TV_u_27a,V_y))))) => s(TV_u_27a,V_x0) = s(TV_u_27a,V_y))))).
fof(ah4s_bools_RESu_u_SELECTu_u_THM, axiom, ![TV_u_27a]: ![V_uu_0]: (![V_P, V_f, V_x]: (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)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool))),V_uu_0),s(t_fun(TV_u_27a,t_bool),V_P))),s(t_fun(TV_u_27a,t_bool),V_f))),s(TV_u_27a,V_x)))) <=> (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x),s(t_fun(TV_u_27a,t_bool),V_P)))) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x)))))) => ![V_f, V_P]: s(TV_u_27a,h4s_bools_resu_u_select(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),V_f))) = s(TV_u_27a,h4s_mins_u_40(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)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool))),V_uu_0),s(t_fun(TV_u_27a,t_bool),V_P))),s(t_fun(TV_u_27a,t_bool),V_f))))))).
fof(ah4s_bools_SELECTu_u_UNIQUE, axiom, ![TV_u_27a]: ![V_x, V_P]: (![V_y]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_P),s(TV_u_27a,V_y)))) <=> s(TV_u_27a,V_y) = s(TV_u_27a,V_x)) => s(TV_u_27a,h4s_mins_u_40(s(t_fun(TV_u_27a,t_bool),V_P))) = s(TV_u_27a,V_x))).
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_some0(s(TV_u_27a,V_x))))).
fof(ah4s_normalFormss_UNIVu_u_POINT0, axiom, ![TV_u_27a]: ![V_p]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_p),s(TV_u_27a,h4s_normalformss_univu_u_point(s(t_fun(TV_u_27a,t_bool),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)))))).
fof(ah4s_bools_TYPEu_u_DEFINITIONu_u_THM, axiom, ![TV_u_27a,TV_u_27b]: ![V_rep, V_P]: (p(s(t_bool,h4s_bools_typeu_u_definition(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27b,TV_u_27a),V_rep)))) <=> (![V_xu_27, V_xu_27u_27]: (s(TV_u_27a,happ(s(t_fun(TV_u_27b,TV_u_27a),V_rep),s(TV_u_27b,V_xu_27))) = s(TV_u_27a,happ(s(t_fun(TV_u_27b,TV_u_27a),V_rep),s(TV_u_27b,V_xu_27u_27))) => s(TV_u_27b,V_xu_27) = s(TV_u_27b,V_xu_27u_27)) & ![V_x]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_P),s(TV_u_27a,V_x)))) <=> ?[V_xu_27]: s(TV_u_27a,V_x) = s(TV_u_27a,happ(s(t_fun(TV_u_27b,TV_u_27a),V_rep),s(TV_u_27b,V_xu_27))))))).
fof(ah4s_bools_SELECTu_u_ELIMu_u_THM, 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)))) & ![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)))))) => p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_Q),s(TV_u_27a,h4s_mins_u_40(s(t_fun(TV_u_27a,t_bool),V_P)))))))).
fof(ah4s_bools_EXISTSu_u_THM, axiom, ![TV_u_27a]: ![V_f]: (p(s(t_bool,d_exists(s(t_fun(TV_u_27a,t_bool),V_f)))) <=> ?[V_x]: p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x)))))).
fof(ah4s_bools_RESu_u_FORALLu_u_THM, axiom, ![TV_u_27a]: ![V_f, V_P]: (p(s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),V_f)))) <=> ![V_x]: (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x),s(t_fun(TV_u_27a,t_bool),V_P)))) => p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x))))))).
fof(ah4s_bools_JRHu_u_INDUCTu_u_UTIL, axiom, ![TV_u_27a]: ![V_t, V_P]: (![V_x]: (s(TV_u_27a,V_x) = s(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_x))))) => p(s(t_bool,d_exists(s(t_fun(TV_u_27a,t_bool),V_P)))))).
fof(ah4s_options_NOTu_u_SOMEu_u_NONE, axiom, ![TV_u_27a]: ![V_x]: ~ (s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))) = s(t_h4s_options_option(TV_u_27a),h4s_options_none))).
fof(ah4s_bools_RESu_u_EXISTSu_u_CONG, axiom, ![TV_u_27a]: ![V_g, V_f, V_Q, V_P]: (s(t_fun(TV_u_27a,t_bool),V_P) = s(t_fun(TV_u_27a,t_bool),V_Q) => (![V_x]: (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x),s(t_fun(TV_u_27a,t_bool),V_Q)))) => s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x))) = s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_g),s(TV_u_27a,V_x)))) => s(t_bool,h4s_bools_resu_u_exists(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),V_f))) = s(t_bool,h4s_bools_resu_u_exists(s(t_fun(TV_u_27a,t_bool),V_Q),s(t_fun(TV_u_27a,t_bool),V_g)))))).
fof(ah4s_bools_RESu_u_FORALLu_u_CONG, axiom, ![TV_u_27a]: ![V_g, V_f, V_Q, V_P]: (s(t_fun(TV_u_27a,t_bool),V_P) = s(t_fun(TV_u_27a,t_bool),V_Q) => (![V_x]: (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x),s(t_fun(TV_u_27a,t_bool),V_Q)))) => s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x))) = s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_g),s(TV_u_27a,V_x)))) => s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),V_f))) = s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_Q),s(t_fun(TV_u_27a,t_bool),V_g)))))).
fof(ah4s_bools_FORALLu_u_THM, axiom, ![TV_u_27a]: ![V_f]: (p(s(t_bool,d_forall(s(t_fun(TV_u_27a,t_bool),V_f)))) <=> ![V_x]: p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x)))))).
fof(ah4s_bools_RESu_u_EXISTSu_u_THM, axiom, ![TV_u_27a]: ![V_f, V_P]: (p(s(t_bool,h4s_bools_resu_u_exists(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),V_f)))) <=> ?[V_x]: (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x),s(t_fun(TV_u_27a,t_bool),V_P)))) & p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x))))))).
fof(ah4s_bools_NOTu_u_CLAUSESu_c2, axiom, (~ (p(s(t_bool,f))) <=> p(s(t_bool,t)))).
fof(ah4s_bools_RESu_u_EXISTSu_u_UNIQUEu_u_THM, axiom, ![TV_u_27a]: ![V_uu_2]: (![V_f, V_x, V_y]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),happ(s(t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool))),V_uu_2),s(t_fun(TV_u_27a,t_bool),V_f))),s(TV_u_27a,V_x))),s(TV_u_27a,V_y)))) <=> ((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_y))))) => s(TV_u_27a,V_x) = s(TV_u_27a,V_y))) => ![V_uu_1]: (![V_P, V_f, V_x]: 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)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool))),V_uu_1),s(t_fun(TV_u_27a,t_bool),V_P))),s(t_fun(TV_u_27a,t_bool),V_f))),s(TV_u_27a,V_x))) = s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),happ(s(t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool))),V_uu_2),s(t_fun(TV_u_27a,t_bool),V_f))),s(TV_u_27a,V_x))))) => ![V_uu_0]: (![V_f, V_x]: 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_uu_0),s(t_fun(TV_u_27a,t_bool),V_f))),s(TV_u_27a,V_x))) = s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_x))) => ![V_f, V_P]: (p(s(t_bool,h4s_bools_resu_u_existsu_u_unique(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),V_f)))) <=> (p(s(t_bool,h4s_bools_resu_u_exists(s(t_fun(TV_u_27a,t_bool),V_P),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_uu_0),s(t_fun(TV_u_27a,t_bool),V_f)))))) & p(s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_P),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_uu_0),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)),happ(s(t_fun(t_fun(TV_u_27a,t_bool),t_fun(t_fun(TV_u_27a,t_bool),t_fun(TV_u_27a,t_bool))),V_uu_1),s(t_fun(TV_u_27a,t_bool),V_P))),s(t_fun(TV_u_27a,t_bool),V_f)))))))))))))).
fof(ah4s_options_optionu_u_CLAUSESu_c2, 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_some0(s(TV_u_27a,V_x))))).
fof(ah4s_bools_IMPu_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_options_optionu_u_REPu_u_ABSu_u_DEFu_c1, axiom, ![TV_u_27a]: ![V_r]: (p(s(t_bool,t)) <=> s(t_h4s_sums_sum(TV_u_27a,t_h4s_ones_one),h4s_options_optionu_u_rep(s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_abs(s(t_h4s_sums_sum(TV_u_27a,t_h4s_ones_one),V_r))))) = s(t_h4s_sums_sum(TV_u_27a,t_h4s_ones_one),V_r))).
fof(ah4s_sums_INRu_u_nequ_u_INL, axiom, ![TV_u_27b,TV_u_27a]: ![V_v2, V_v1]: ~ (s(t_h4s_sums_sum(TV_u_27a,TV_u_27b),h4s_sums_inr(s(TV_u_27b,V_v2))) = s(t_h4s_sums_sum(TV_u_27a,TV_u_27b),h4s_sums_inl(s(TV_u_27a,V_v1))))).
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_options_optionu_u_CLAUSESu_c3, axiom, ![TV_u_27a]: ![V_x]: ~ (s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))) = s(t_h4s_options_option(TV_u_27a),h4s_options_none))).
fof(ah4s_options_IFu_u_EQUALSu_u_OPTIONu_c3, axiom, ![TV_u_27a]: ![V_y, V_x, V_P]: (s(t_h4s_options_option(TV_u_27a),h4s_bools_cond(s(t_bool,V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_none),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))))) = s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_y))) <=> (~ (p(s(t_bool,V_P))) & s(TV_u_27a,V_x) = s(TV_u_27a,V_y)))).
fof(ah4s_bools_EQu_u_CLAUSESu_c2, axiom, ![V_t]: (s(t_bool,f) = s(t_bool,V_t) <=> ~ (p(s(t_bool,V_t))))).
fof(ah4s_options_SOMEu_u_11, axiom, ![TV_u_27a]: ![V_y, V_x]: (s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))) = s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_y))) <=> s(TV_u_27a,V_x) = s(TV_u_27a,V_y))).
fof(ah4s_options_IFu_u_EQUALSu_u_OPTIONu_c0, axiom, ![TV_u_27a]: ![V_x, V_P]: (s(t_h4s_options_option(TV_u_27a),h4s_bools_cond(s(t_bool,V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(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_none) <=> ~ (p(s(t_bool,V_P))))).
fof(ah4s_bools_ANDu_u_CLAUSESu_c2, axiom, ![V_t]: ((p(s(t_bool,f)) & p(s(t_bool,V_t))) <=> p(s(t_bool,f)))).
fof(ah4s_options_IFu_u_EQUALSu_u_OPTIONu_c1, axiom, ![TV_u_27a]: ![V_x, V_P]: (s(t_h4s_options_option(TV_u_27a),h4s_bools_cond(s(t_bool,V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_none),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))))) = s(t_h4s_options_option(TV_u_27a),h4s_options_none) <=> p(s(t_bool,V_P)))).
fof(ah4s_options_IFu_u_EQUALSu_u_OPTIONu_c2, axiom, ![TV_u_27a]: ![V_y, V_x, V_P]: (s(t_h4s_options_option(TV_u_27a),h4s_bools_cond(s(t_bool,V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(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_some0(s(TV_u_27a,V_y))) <=> (p(s(t_bool,V_P)) & s(TV_u_27a,V_x) = s(TV_u_27a,V_y)))).
fof(ah4s_options_IFu_u_NONEu_u_EQUALSu_u_OPTIONu_c3, axiom, ![TV_u_27a]: ![V_x, V_X, V_P]: (s(t_h4s_options_option(TV_u_27a),h4s_bools_cond(s(t_bool,V_P),s(t_h4s_options_option(TV_u_27a),h4s_options_none),s(t_h4s_options_option(TV_u_27a),V_X))) = s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))) <=> (~ (p(s(t_bool,V_P))) & s(t_h4s_options_option(TV_u_27a),V_X) = s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x)))))).
fof(ah4s_bools_EQu_u_CLAUSESu_c0, axiom, ![V_t]: (s(t_bool,t) = s(t_bool,V_t) <=> p(s(t_bool,V_t)))).
fof(ah4s_bools_NOTu_u_CLAUSESu_c1, axiom, (~ (p(s(t_bool,t))) <=> p(s(t_bool,f)))).
fof(ah4s_bools_RESu_u_ABSTRACTu_u_DEFu_c1, axiom, ![TV_u_27a,TV_u_27b]: ![V_p, V_m2, V_m1]: (![V_x]: (p(s(t_bool,h4s_bools_in(s(TV_u_27a,V_x),s(t_fun(TV_u_27a,t_bool),V_p)))) => s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_m1),s(TV_u_27a,V_x))) = s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_m2),s(TV_u_27a,V_x)))) => s(t_fun(TV_u_27a,TV_u_27b),h4s_bools_resu_u_abstract(s(t_fun(TV_u_27a,t_bool),V_p),s(t_fun(TV_u_27a,TV_u_27b),V_m1))) = s(t_fun(TV_u_27a,TV_u_27b),h4s_bools_resu_u_abstract(s(t_fun(TV_u_27a,t_bool),V_p),s(t_fun(TV_u_27a,TV_u_27b),V_m2))))).
fof(ah4s_combins_LETu_u_FORALLu_u_ELIM, axiom, ![TV_u_27a]: ![V_v, V_f]: s(t_bool,h4s_bools_let(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_v))) = s(t_bool,d_forall(s(t_fun(TV_u_27a,t_bool),h4s_combins_s(s(t_fun(TV_u_27a,t_fun(t_bool,t_bool)),h4s_combins_o(s(t_fun(t_bool,t_fun(t_bool,t_bool)),d_imply),s(t_fun(TV_u_27a,t_bool),h4s_combins_o(s(t_fun(t_bool,t_bool),h4s_markers_abbrev),s(t_fun(TV_u_27a,t_bool),h4s_combins_c(s(t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)),d_equals),s(TV_u_27a,V_v))))))),s(t_fun(TV_u_27a,t_bool),V_f)))))).
fof(ah4s_bools_BOOLu_u_CASESu_u_AX, axiom, ![V_t]: (s(t_bool,V_t) = s(t_bool,t) | s(t_bool,V_t) = s(t_bool,f))).
fof(ah4s_bools_ORu_u_DEF, axiom, ![V_x, V_xi_]: (p(s(t_bool,d_or(s(t_bool,V_x),s(t_bool,V_xi_)))) <=> ![V_t]: ((p(s(t_bool,V_x)) => p(s(t_bool,V_t))) => ((p(s(t_bool,V_xi_)) => p(s(t_bool,V_t))) => p(s(t_bool,V_t)))))).
fof(ah4s_bools_Fu_u_DEF, axiom, (p(s(t_bool,f)) <=> ![V_t]: p(s(t_bool,V_t)))).
fof(ah4s_bools_Tu_u_DEF, axiom, (p(s(t_bool,t)) <=> ![V_x]: s(t_bool,V_x) = s(t_bool,V_x))).
fof(ah4s_options_ISu_u_SOMEu_u_DEFu_c0, axiom, ![TV_u_27a]: ![V_x]: s(t_bool,h4s_options_isu_u_some(s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))))) = s(t_bool,t)).
fof(ah4s_options_ISu_u_SOMEu_u_DEFu_c1, axiom, ![TV_u_27a]: s(t_bool,h4s_options_isu_u_some(s(t_h4s_options_option(TV_u_27a),h4s_options_none))) = s(t_bool,f)).
fof(ah4s_combins_literalu_u_caseu_u_FORALLu_u_ELIM, axiom, ![TV_u_27a]: ![V_v, V_f]: s(t_bool,h4s_bools_literalu_u_case(s(t_fun(TV_u_27a,t_bool),V_f),s(TV_u_27a,V_v))) = s(t_bool,d_forall(s(t_fun(TV_u_27a,t_bool),h4s_combins_s(s(t_fun(TV_u_27a,t_fun(t_bool,t_bool)),h4s_combins_o(s(t_fun(t_bool,t_fun(t_bool,t_bool)),d_imply),s(t_fun(TV_u_27a,t_bool),h4s_combins_o(s(t_fun(t_bool,t_bool),h4s_markers_abbrev),s(t_fun(TV_u_27a,t_bool),h4s_combins_c(s(t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)),d_equals),s(TV_u_27a,V_v))))))),s(t_fun(TV_u_27a,t_bool),V_f)))))).
fof(ah4s_combins_Cu_u_DEF, axiom, ![TV_u_27c,TV_u_27a,TV_u_27b]: ![V_x, V_x0, V_x1]: s(TV_u_27c,happ(s(t_fun(TV_u_27a,TV_u_27c),h4s_combins_c(s(t_fun(TV_u_27a,t_fun(TV_u_27b,TV_u_27c)),V_x),s(TV_u_27b,V_x0))),s(TV_u_27a,V_x1))) = 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_x),s(TV_u_27a,V_x1))),s(TV_u_27b,V_x0)))).
fof(ah4s_markers_Abbrevu_u_def, axiom, ![V_x]: s(t_bool,happ(s(t_fun(t_bool,t_bool),h4s_markers_abbrev),s(t_bool,V_x))) = s(t_bool,V_x)).
fof(ah4s_combins_ou_u_THM, axiom, ![TV_u_27b,TV_u_27a,TV_u_27c]: ![V_x, V_g, V_f]: s(TV_u_27b,happ(s(t_fun(TV_u_27c,TV_u_27b),h4s_combins_o(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(t_fun(TV_u_27c,TV_u_27a),V_g))),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,happ(s(t_fun(TV_u_27c,TV_u_27a),V_g),s(TV_u_27c,V_x)))))).
fof(ah4s_combins_Su_u_DEF, axiom, ![TV_u_27c,TV_u_27b,TV_u_27a]: ![V_x, V_x0, V_x1]: s(TV_u_27c,happ(s(t_fun(TV_u_27a,TV_u_27c),h4s_combins_s(s(t_fun(TV_u_27a,t_fun(TV_u_27b,TV_u_27c)),V_x),s(t_fun(TV_u_27a,TV_u_27b),V_x0))),s(TV_u_27a,V_x1))) = 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_x),s(TV_u_27a,V_x1))),s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_x0),s(TV_u_27a,V_x1)))))).
fof(ah4s_bools_IMPu_u_CLAUSESu_c2, axiom, ![V_t]: ((p(s(t_bool,f)) => p(s(t_bool,V_t))) <=> p(s(t_bool,t)))).
fof(ah4s_options_ISu_u_NONEu_u_DEFu_c1, axiom, ![TV_u_27a]: s(t_bool,h4s_options_isu_u_none(s(t_h4s_options_option(TV_u_27a),h4s_options_none))) = s(t_bool,t)).
fof(ah4s_options_ISu_u_NONEu_u_DEFu_c0, axiom, ![TV_u_27a]: ![V_x]: s(t_bool,h4s_options_isu_u_none(s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))))) = s(t_bool,f)).
fof(ah4s_bools_CONDu_u_ID, axiom, ![TV_u_27a]: ![V_t, V_b]: s(TV_u_27a,h4s_bools_cond(s(t_bool,V_b),s(TV_u_27a,V_t),s(TV_u_27a,V_t))) = s(TV_u_27a,V_t)).
fof(ah4s_bools_ANDu_u_CLAUSESu_c3, axiom, ![V_t]: ((p(s(t_bool,V_t)) & p(s(t_bool,f))) <=> p(s(t_bool,f)))).
fof(ah4s_bools_IMPu_u_CLAUSESu_c1, axiom, ![V_t]: ((p(s(t_bool,V_t)) => p(s(t_bool,t))) <=> p(s(t_bool,t)))).
fof(ah4s_bools_RESu_u_FORALLu_u_TRUE, axiom, ![TV_u_27a]: ![V_uu_0]: (![V_x]: s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_uu_0),s(TV_u_27a,V_x))) = s(t_bool,t) => ![V_P]: s(t_bool,h4s_bools_resu_u_forall(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),V_uu_0))) = s(t_bool,t))).
fof(ah4s_bools_CONDu_u_DEF, axiom, ![TV_u_27a]: ![V_uu_0]: (![V_x, V_x0, V_xi_, V_xi_i_]: (p(s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),happ(s(t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)),happ(s(t_fun(t_bool,t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool))),happ(s(t_fun(TV_u_27a,t_fun(t_bool,t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)))),V_uu_0),s(TV_u_27a,V_x))),s(t_bool,V_x0))),s(TV_u_27a,V_xi_))),s(TV_u_27a,V_xi_i_)))) <=> ((s(t_bool,V_x0) = s(t_bool,t) => s(TV_u_27a,V_xi_i_) = s(TV_u_27a,V_x)) & (s(t_bool,V_x0) = s(t_bool,f) => s(TV_u_27a,V_xi_i_) = s(TV_u_27a,V_xi_)))) => ![V_x, V_x0, V_xi_]: s(TV_u_27a,h4s_bools_cond(s(t_bool,V_x),s(TV_u_27a,V_x0),s(TV_u_27a,V_xi_))) = s(TV_u_27a,h4s_mins_u_40(s(t_fun(TV_u_27a,t_bool),happ(s(t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)),happ(s(t_fun(t_bool,t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool))),happ(s(t_fun(TV_u_27a,t_fun(t_bool,t_fun(TV_u_27a,t_fun(TV_u_27a,t_bool)))),V_uu_0),s(TV_u_27a,V_x0))),s(t_bool,V_x))),s(TV_u_27a,V_xi_))))))).
fof(ah4s_bools_EXCLUDEDu_u_MIDDLE0, axiom, ![V_t]: (p(s(t_bool,V_t)) | ~ (p(s(t_bool,V_t))))).
fof(ah4s_bools_NOTu_u_DEF, axiom, ![V_x]: (p(s(t_bool,d_not(s(t_bool,V_x)))) <=> (p(s(t_bool,V_x)) => p(s(t_bool,f))))).
fof(ah4s_bools_LETu_u_THM, axiom, ![TV_u_27b,TV_u_27a]: ![V_x, V_f]: s(TV_u_27b,h4s_bools_let(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_x))) = s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_x)))).
fof(ah4s_bools_RESu_u_EXISTSu_u_FALSE, axiom, ![TV_u_27a]: ![V_uu_0]: (![V_x]: s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_uu_0),s(TV_u_27a,V_x))) = s(t_bool,f) => ![V_P]: s(t_bool,h4s_bools_resu_u_exists(s(t_fun(TV_u_27a,t_bool),V_P),s(t_fun(TV_u_27a,t_bool),V_uu_0))) = s(t_bool,f))).
fof(ah4s_bools_literalu_u_caseu_u_THM, axiom, ![TV_u_27b,TV_u_27a]: ![V_x, V_f]: s(TV_u_27b,h4s_bools_literalu_u_case(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_x))) = s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_x)))).
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_DEF, axiom, ![V_x, V_xi_]: (p(s(t_bool,d_and(s(t_bool,V_x),s(t_bool,V_xi_)))) <=> ![V_t]: ((p(s(t_bool,V_x)) => (p(s(t_bool,V_xi_)) => p(s(t_bool,V_t)))) => p(s(t_bool,V_t))))).
fof(ah4s_bools_FORALLu_u_DEF, axiom, ![TV_u_27a]: ![V_x]: (p(s(t_bool,d_forall(s(t_fun(TV_u_27a,t_bool),V_x)))) <=> ![V_x0]: s(t_bool,happ(s(t_fun(TV_u_27a,t_bool),V_x),s(TV_u_27a,V_x0))) = s(t_bool,t))).
fof(ah4s_options_OPTRELu_u_def, axiom, ![TV_u_27a,TV_u_27b]: ![V_y, V_x, V_R]: (p(s(t_bool,h4s_options_optrel(s(t_fun(TV_u_27a,t_fun(TV_u_27b,t_bool)),V_R),s(t_h4s_options_option(TV_u_27a),V_x),s(t_h4s_options_option(TV_u_27b),V_y)))) <=> ((s(t_h4s_options_option(TV_u_27a),V_x) = s(t_h4s_options_option(TV_u_27a),h4s_options_none) & s(t_h4s_options_option(TV_u_27b),V_y) = s(t_h4s_options_option(TV_u_27b),h4s_options_none)) | ?[V_x0, V_y0]: (s(t_h4s_options_option(TV_u_27a),V_x) = s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x0))) & (s(t_h4s_options_option(TV_u_27b),V_y) = s(t_h4s_options_option(TV_u_27b),h4s_options_some0(s(TV_u_27b,V_y0))) & p(s(t_bool,happ(s(t_fun(TV_u_27b,t_bool),happ(s(t_fun(TV_u_27a,t_fun(TV_u_27b,t_bool)),V_R),s(TV_u_27a,V_x0))),s(TV_u_27b,V_y0))))))))).
fof(ah4s_options_OPTIONu_u_BINDu_u_EQUALSu_u_OPTIONu_c0, axiom, ![TV_u_27a,TV_u_27b]: ![V_p, V_f]: (s(t_h4s_options_option(TV_u_27b),h4s_options_optionu_u_bind(s(t_h4s_options_option(TV_u_27a),V_p),s(t_fun(TV_u_27a,t_h4s_options_option(TV_u_27b)),V_f))) = s(t_h4s_options_option(TV_u_27b),h4s_options_none) <=> (s(t_h4s_options_option(TV_u_27a),V_p) = s(t_h4s_options_option(TV_u_27a),h4s_options_none) | ?[V_x]: (s(t_h4s_options_option(TV_u_27a),V_p) = s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x))) & s(t_h4s_options_option(TV_u_27b),happ(s(t_fun(TV_u_27a,t_h4s_options_option(TV_u_27b)),V_f),s(TV_u_27a,V_x))) = s(t_h4s_options_option(TV_u_27b),h4s_options_none))))).
fof(ah4s_options_OPTIONu_u_MAP2u_u_THMu_c1, axiom, ![TV_u_27b,TV_u_27c,TV_u_27a]: ![V_x, V_f]: s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_map2(s(t_fun(TV_u_27b,t_fun(TV_u_27c,TV_u_27a)),V_f),s(t_h4s_options_option(TV_u_27b),h4s_options_some0(s(TV_u_27b,V_x))),s(t_h4s_options_option(TV_u_27c),h4s_options_none))) = s(t_h4s_options_option(TV_u_27a),h4s_options_none)).
fof(ah4s_options_IFu_u_NONEu_u_EQUALSu_u_OPTIONu_c2, axiom, ![TV_u_27a]: ![V_x, V_X, V_P]: (s(t_h4s_options_option(TV_u_27a),h4s_bools_cond(s(t_bool,V_P),s(t_h4s_options_option(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_some0(s(TV_u_27a,V_x))) <=> (p(s(t_bool,V_P)) & s(t_h4s_options_option(TV_u_27a),V_X) = s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,V_x)))))).
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_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_BINDu_u_defu_c1, axiom, ![TV_u_27a,TV_u_27b]: ![V_x, V_f]: s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_bind(s(t_h4s_options_option(TV_u_27b),h4s_options_some0(s(TV_u_27b,V_x))),s(t_fun(TV_u_27b,t_h4s_options_option(TV_u_27a)),V_f))) = s(t_h4s_options_option(TV_u_27a),happ(s(t_fun(TV_u_27b,t_h4s_options_option(TV_u_27a)),V_f),s(TV_u_27b,V_x)))).
fof(ah4s_options_OPTIONu_u_BINDu_u_defu_c0, axiom, ![TV_u_27b,TV_u_27a]: ![V_f]: s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_bind(s(t_h4s_options_option(TV_u_27b),h4s_options_none),s(t_fun(TV_u_27b,t_h4s_options_option(TV_u_27a)),V_f))) = s(t_h4s_options_option(TV_u_27a),h4s_options_none)).
fof(ah4s_options_OPTIONu_u_MAP2u_u_DEF, axiom, ![TV_u_27b,TV_u_27c,TV_u_27a]: ![V_y, V_x, V_f]: ?[V_v]: ((p(s(t_bool,V_v)) <=> (p(s(t_bool,h4s_options_isu_u_some(s(t_h4s_options_option(TV_u_27b),V_x)))) & p(s(t_bool,h4s_options_isu_u_some(s(t_h4s_options_option(TV_u_27c),V_y)))))) & s(t_h4s_options_option(TV_u_27a),h4s_options_optionu_u_map2(s(t_fun(TV_u_27b,t_fun(TV_u_27c,TV_u_27a)),V_f),s(t_h4s_options_option(TV_u_27b),V_x),s(t_h4s_options_option(TV_u_27c),V_y))) = s(t_h4s_options_option(TV_u_27a),h4s_bools_cond(s(t_bool,V_v),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(s(TV_u_27a,happ(s(t_fun(TV_u_27c,TV_u_27a),happ(s(t_fun(TV_u_27b,t_fun(TV_u_27c,TV_u_27a)),V_f),s(TV_u_27b,h4s_options_the(s(t_h4s_options_option(TV_u_27b),V_x))))),s(TV_u_27c,h4s_options_the(s(t_h4s_options_option(TV_u_27c),V_y))))))),s(t_h4s_options_option(TV_u_27a),h4s_options_none))))).
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_some0(s(TV_u_27a,V_x))))) = 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_some0(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_some0(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_DEFu_c1, axiom, ![TV_u_27a,TV_u_27b]: ![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),h4s_options_none))) = s(t_h4s_options_option(TV_u_27b),h4s_options_none)).
fof(ah4s_options_OPTIONu_u_MAPu_u_DEFu_c0, axiom, ![TV_u_27b,TV_u_27a]: ![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),h4s_options_some0(s(TV_u_27a,V_x))))) = s(t_h4s_options_option(TV_u_27b),h4s_options_some0(s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_x)))))).
fof(ch4s_options_someu_u_elim, conjecture, ![TV_u_27a]: ![V_Q, V_P]: (p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_Q),s(t_h4s_options_option(TV_u_27a),h4s_options_some(s(t_fun(TV_u_27a,t_bool),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(t_h4s_options_option(TV_u_27a),t_bool),V_Q),s(t_h4s_options_option(TV_u_27a),h4s_options_some0(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))))) & p(s(t_bool,happ(s(t_fun(t_h4s_options_option(TV_u_27a),t_bool),V_Q),s(t_h4s_options_option(TV_u_27a),h4s_options_none)))))))).
