%   ORIGINAL: h4/path/alt__length__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/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/EXCLUDED__MIDDLE: !t. t \/ ~t
% Assm: h4/bool/FORALL__SIMP: !t. (!x. t) <=> t
% Assm: h4/bool/AND__CLAUSES_c0: !t. T /\ t <=> t
% Assm: h4/bool/OR__CLAUSES_c2: !t. F \/ t <=> t
% Assm: h4/bool/NOT__CLAUSES_c0: !t. ~ ~t <=> t
% Assm: h4/bool/NOT__CLAUSES_c2: ~F <=> 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/COND__CLAUSES_c0: !t2 t1. h4/bool/COND T t1 t2 = t1
% Assm: h4/bool/COND__CLAUSES_c1: !t2 t1. h4/bool/COND F t1 t2 = t2
% Assm: h4/bool/IMP__F__EQ__F: !t. t ==> F <=> t <=> F
% Assm: h4/bool/AND__IMP__INTRO: !t3 t2 t1. t1 ==> t2 ==> t3 <=> t1 /\ t2 ==> t3
% Assm: h4/bool/COND__CONG: !y_27 y x_27 x Q P. (P <=> Q) /\ (Q ==> x = x_27) /\ (~Q ==> y = y_27) ==> h4/bool/COND P x y = h4/bool/COND Q x_27 y_27
% Assm: h4/bool/UNWIND__THM2: !a P. (?x. x = a /\ P x) <=> P a
% Assm: h4/option/OPTION__MAP__DEF_c0: !x f. h4/option/OPTION__MAP f (h4/option/SOME x) = h4/option/SOME (f x)
% Assm: h4/option/THE__DEF: !x. h4/option/THE (h4/option/SOME x) = x
% 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/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/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/SND0: !y x. h4/pair/SND (h4/pair/_2C x y) = y
% Assm: h4/arithmetic/TWO: h4/arithmetic/NUMERAL (h4/arithmetic/BIT2 h4/arithmetic/ZERO) = h4/num/SUC (h4/arithmetic/NUMERAL (h4/arithmetic/BIT1 h4/arithmetic/ZERO))
% Assm: h4/arithmetic/ADD__SYM: !n m. h4/arithmetic/_2B m n = h4/arithmetic/_2B n m
% Assm: h4/arithmetic/ADD__ASSOC: !p n m. h4/arithmetic/_2B m (h4/arithmetic/_2B n p) = h4/arithmetic/_2B (h4/arithmetic/_2B m n) p
% Assm: h4/arithmetic/MULT__CLAUSES_c2: !m. h4/arithmetic/_2A (h4/arithmetic/NUMERAL (h4/arithmetic/BIT1 h4/arithmetic/ZERO)) m = m
% Assm: h4/arithmetic/ADD__MONO__LESS__EQ: !p n m. h4/arithmetic/_3C_3D (h4/arithmetic/_2B m n) (h4/arithmetic/_2B m p) <=> h4/arithmetic/_3C_3D n p
% Assm: h4/arithmetic/NOT__NUM__EQ: !n m. ~(m = n) <=> h4/arithmetic/_3C_3D (h4/num/SUC m) n \/ h4/arithmetic/_3C_3D (h4/num/SUC n) m
% Assm: h4/arithmetic/SUC__ONE__ADD: !n. h4/num/SUC n = h4/arithmetic/_2B (h4/arithmetic/NUMERAL (h4/arithmetic/BIT1 h4/arithmetic/ZERO)) n
% Assm: h4/arithmetic/SUC__ADD__SYM: !n m. h4/num/SUC (h4/arithmetic/_2B m n) = h4/arithmetic/_2B (h4/num/SUC n) m
% Assm: h4/numeral/numeral__suc_c0: h4/num/SUC h4/arithmetic/ZERO = h4/arithmetic/BIT1 h4/arithmetic/ZERO
% Assm: h4/numeral/numeral__distrib_c1: !n. h4/arithmetic/_2B n h4/num/0 = n
% Assm: h4/numeral/numeral__distrib_c2: !n m. h4/arithmetic/_2B (h4/arithmetic/NUMERAL n) (h4/arithmetic/NUMERAL m) = h4/arithmetic/NUMERAL (h4/numeral/iZ (h4/arithmetic/_2B n m))
% Assm: h4/numeral/numeral__distrib_c27: !n. h4/arithmetic/_3C_3D (h4/arithmetic/NUMERAL n) h4/num/0 <=> h4/arithmetic/_3C_3D n h4/arithmetic/ZERO
% Assm: h4/numeral/numeral__add_c0: !n. h4/numeral/iZ (h4/arithmetic/_2B h4/arithmetic/ZERO n) = n
% Assm: h4/numeral/numeral__add_c2: !n m. h4/numeral/iZ (h4/arithmetic/_2B (h4/arithmetic/BIT1 n) (h4/arithmetic/BIT1 m)) = h4/arithmetic/BIT2 (h4/numeral/iZ (h4/arithmetic/_2B n m))
% Assm: h4/numeral/numeral__add_c3: !n m. h4/numeral/iZ (h4/arithmetic/_2B (h4/arithmetic/BIT1 n) (h4/arithmetic/BIT2 m)) = h4/arithmetic/BIT1 (h4/num/SUC (h4/arithmetic/_2B n m))
% Assm: h4/numeral/numeral__add_c4: !n m. h4/numeral/iZ (h4/arithmetic/_2B (h4/arithmetic/BIT2 n) (h4/arithmetic/BIT1 m)) = h4/arithmetic/BIT1 (h4/num/SUC (h4/arithmetic/_2B n m))
% Assm: h4/numeral/numeral__add_c6: !n. h4/num/SUC (h4/arithmetic/_2B h4/arithmetic/ZERO n) = h4/num/SUC n
% Assm: h4/numeral/numeral__lte_c1: !n. h4/arithmetic/_3C_3D (h4/arithmetic/BIT1 n) h4/arithmetic/ZERO <=> F
% Assm: h4/list/LENGTH0_c1: !t h. h4/list/LENGTH (h4/list/CONS h t) = h4/num/SUC (h4/list/LENGTH t)
% Assm: h4/llist/toList__THM_c1: !t h. h4/llist/toList (h4/llist/LCONS h t) = h4/option/OPTION__MAP (h4/list/CONS h) (h4/llist/toList t)
% Assm: h4/llist/LFINITE__toList: !ll. h4/llist/LFINITE ll ==> (?l. h4/llist/toList ll = h4/option/SOME l)
% Assm: h4/path/path__rep__bijections__thm_c1: !r. h4/path/fromPath (h4/path/toPath r) = r
% Assm: h4/path/pcons__def: !x r p. h4/path/pcons x r p = h4/path/toPath (h4/pair/_2C x (h4/llist/LCONS (h4/pair/_2C r (h4/path/first p)) (h4/pair/SND (h4/path/fromPath p))))
% Assm: h4/path/finite__def: !sigma. h4/path/finite sigma <=> h4/llist/LFINITE (h4/pair/SND (h4/path/fromPath sigma))
% Assm: h4/path/finite__thm_c1: !x r p. h4/path/finite (h4/path/pcons x r p) <=> h4/path/finite p
% Assm: h4/path/length__def: !p. h4/path/length p = h4/bool/COND (h4/path/finite p) (h4/option/SOME (h4/arithmetic/_2B (h4/list/LENGTH (h4/option/THE (h4/llist/toList (h4/pair/SND (h4/path/fromPath p))))) (h4/arithmetic/NUMERAL (h4/arithmetic/BIT1 h4/arithmetic/ZERO)))) h4/option/NONE
% Goal: !x r p. h4/path/length (h4/path/pcons x r p) = h4/option/OPTION__MAP h4/num/SUC (h4/path/length p)
%   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_EXCLUDEDu_u_MIDDLE]: !t. t \/ ~t
% Assm [h4s_bools_FORALLu_u_SIMP]: !t. (!x. t) <=> t
% Assm [h4s_bools_ANDu_u_CLAUSESu_c0]: !t. T /\ t <=> t
% Assm [h4s_bools_ORu_u_CLAUSESu_c2]: !t. F \/ t <=> t
% Assm [h4s_bools_NOTu_u_CLAUSESu_c0]: !t. ~ ~t <=> t
% Assm [h4s_bools_NOTu_u_CLAUSESu_c2]: ~F <=> 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_CONDu_u_CLAUSESu_c0]: !t2 t1. h4/bool/COND T t1 t2 = t1
% Assm [h4s_bools_CONDu_u_CLAUSESu_c1]: !t2 t1. h4/bool/COND F t1 t2 = t2
% Assm [h4s_bools_IMPu_u_Fu_u_EQu_u_F]: !t. t ==> F <=> t <=> F
% Assm [h4s_bools_ANDu_u_IMPu_u_INTRO]: !t3 t2 t1. t1 ==> t2 ==> t3 <=> t1 /\ t2 ==> t3
% Assm [h4s_bools_CONDu_u_CONG]: !y_27 y x_27 x Q P. (P <=> Q) /\ (Q ==> x = x_27) /\ (~Q ==> y = y_27) ==> h4/bool/COND P x y = h4/bool/COND Q 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_MAPu_u_DEFu_c0]: !x f. h4/option/OPTION__MAP f (h4/option/SOME x) = h4/option/SOME (happ f x)
% Assm [h4s_options_THEu_u_DEF]: !x. h4/option/THE (h4/option/SOME x) = x
% 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_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_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_SND0]: !y x. h4/pair/SND (h4/pair/_2C x y) = y
% Assm [h4s_arithmetics_TWO]: h4/arithmetic/NUMERAL (h4/arithmetic/BIT2 h4/arithmetic/ZERO) = happ h4/num/SUC (h4/arithmetic/NUMERAL (h4/arithmetic/BIT1 h4/arithmetic/ZERO))
% Assm [h4s_arithmetics_ADDu_u_SYM]: !n m. h4/arithmetic/_2B m n = h4/arithmetic/_2B n m
% Assm [h4s_arithmetics_ADDu_u_ASSOC]: !p n m. h4/arithmetic/_2B m (h4/arithmetic/_2B n p) = h4/arithmetic/_2B (h4/arithmetic/_2B m n) p
% Assm [h4s_arithmetics_MULTu_u_CLAUSESu_c2]: !m. h4/arithmetic/_2A (h4/arithmetic/NUMERAL (h4/arithmetic/BIT1 h4/arithmetic/ZERO)) m = m
% Assm [h4s_arithmetics_ADDu_u_MONOu_u_LESSu_u_EQ]: !p n m. h4/arithmetic/_3C_3D (h4/arithmetic/_2B m n) (h4/arithmetic/_2B m p) <=> h4/arithmetic/_3C_3D n p
% Assm [h4s_arithmetics_NOTu_u_NUMu_u_EQ]: !n m. ~(m = n) <=> h4/arithmetic/_3C_3D (happ h4/num/SUC m) n \/ h4/arithmetic/_3C_3D (happ h4/num/SUC n) m
% Assm [h4s_arithmetics_SUCu_u_ONEu_u_ADD]: !n. happ h4/num/SUC n = h4/arithmetic/_2B (h4/arithmetic/NUMERAL (h4/arithmetic/BIT1 h4/arithmetic/ZERO)) n
% Assm [h4s_arithmetics_SUCu_u_ADDu_u_SYM]: !n m. happ h4/num/SUC (h4/arithmetic/_2B m n) = h4/arithmetic/_2B (happ h4/num/SUC n) m
% Assm [h4s_numerals_numeralu_u_sucu_c0]: happ h4/num/SUC h4/arithmetic/ZERO = h4/arithmetic/BIT1 h4/arithmetic/ZERO
% Assm [h4s_numerals_numeralu_u_distribu_c1]: !n. h4/arithmetic/_2B n h4/num/0 = n
% Assm [h4s_numerals_numeralu_u_distribu_c2]: !n m. h4/arithmetic/_2B (h4/arithmetic/NUMERAL n) (h4/arithmetic/NUMERAL m) = h4/arithmetic/NUMERAL (h4/numeral/iZ (h4/arithmetic/_2B n m))
% Assm [h4s_numerals_numeralu_u_distribu_c27]: !n. h4/arithmetic/_3C_3D (h4/arithmetic/NUMERAL n) h4/num/0 <=> h4/arithmetic/_3C_3D n h4/arithmetic/ZERO
% Assm [h4s_numerals_numeralu_u_addu_c0]: !n. h4/numeral/iZ (h4/arithmetic/_2B h4/arithmetic/ZERO n) = n
% Assm [h4s_numerals_numeralu_u_addu_c2]: !n m. h4/numeral/iZ (h4/arithmetic/_2B (h4/arithmetic/BIT1 n) (h4/arithmetic/BIT1 m)) = h4/arithmetic/BIT2 (h4/numeral/iZ (h4/arithmetic/_2B n m))
% Assm [h4s_numerals_numeralu_u_addu_c3]: !n m. h4/numeral/iZ (h4/arithmetic/_2B (h4/arithmetic/BIT1 n) (h4/arithmetic/BIT2 m)) = h4/arithmetic/BIT1 (happ h4/num/SUC (h4/arithmetic/_2B n m))
% Assm [h4s_numerals_numeralu_u_addu_c4]: !n m. h4/numeral/iZ (h4/arithmetic/_2B (h4/arithmetic/BIT2 n) (h4/arithmetic/BIT1 m)) = h4/arithmetic/BIT1 (happ h4/num/SUC (h4/arithmetic/_2B n m))
% Assm [h4s_numerals_numeralu_u_addu_c6]: !n. happ h4/num/SUC (h4/arithmetic/_2B h4/arithmetic/ZERO n) = happ h4/num/SUC n
% Assm [h4s_numerals_numeralu_u_lteu_c1]: !n. h4/arithmetic/_3C_3D (h4/arithmetic/BIT1 n) h4/arithmetic/ZERO <=> F
% Assm [h4s_lists_LENGTH0u_c1]: !t h. h4/list/LENGTH (happ (h4/list/CONS h) t) = happ h4/num/SUC (h4/list/LENGTH t)
% Assm [h4s_llists_toListu_u_THMu_c1]: !t h. h4/llist/toList (h4/llist/LCONS h t) = h4/option/OPTION__MAP (h4/list/CONS h) (h4/llist/toList t)
% Assm [h4s_llists_LFINITEu_u_toList]: !ll. h4/llist/LFINITE ll ==> (?l. h4/llist/toList ll = h4/option/SOME l)
% Assm [h4s_paths_pathu_u_repu_u_bijectionsu_u_thmu_c1]: !r. h4/path/fromPath (h4/path/toPath r) = r
% Assm [h4s_paths_pconsu_u_def]: !x r p. h4/path/pcons x r p = h4/path/toPath (h4/pair/_2C x (h4/llist/LCONS (h4/pair/_2C r (h4/path/first p)) (h4/pair/SND (h4/path/fromPath p))))
% Assm [h4s_paths_finiteu_u_def]: !sigma. h4/path/finite sigma <=> h4/llist/LFINITE (h4/pair/SND (h4/path/fromPath sigma))
% Assm [h4s_paths_finiteu_u_thmu_c1]: !x r p. h4/path/finite (h4/path/pcons x r p) <=> h4/path/finite p
% Assm [h4s_paths_lengthu_u_def]: !p. h4/path/length p = h4/bool/COND (h4/path/finite p) (h4/option/SOME (h4/arithmetic/_2B (h4/list/LENGTH (h4/option/THE (h4/llist/toList (h4/pair/SND (h4/path/fromPath p))))) (h4/arithmetic/NUMERAL (h4/arithmetic/BIT1 h4/arithmetic/ZERO)))) h4/option/NONE
% Goal: !x r p. h4/path/length (h4/path/pcons x r p) = h4/option/OPTION__MAP h4/num/SUC (h4/path/length p)
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_Q141051,TV_Q141047]: ![V_f, V_g]: (![V_x]: s(TV_Q141047,happ(s(t_fun(TV_Q141051,TV_Q141047),V_f),s(TV_Q141051,V_x))) = s(TV_Q141047,happ(s(t_fun(TV_Q141051,TV_Q141047),V_g),s(TV_Q141051,V_x))) => s(t_fun(TV_Q141051,TV_Q141047),V_f) = s(t_fun(TV_Q141051,TV_Q141047),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_EXCLUDEDu_u_MIDDLE, axiom, ![V_t]: (p(s(t_bool,V_t)) | ~ (p(s(t_bool,V_t))))).
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_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_NOTu_u_CLAUSESu_c0, axiom, ![V_t]: (~ (~ (p(s(t_bool,V_t)))) <=> p(s(t_bool,V_t)))).
fof(ah4s_bools_NOTu_u_CLAUSESu_c2, axiom, (~ (p(s(t_bool,f))) <=> 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_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_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_IMPu_u_Fu_u_EQu_u_F, axiom, ![V_t]: ((p(s(t_bool,V_t)) => p(s(t_bool,f))) <=> s(t_bool,V_t) = s(t_bool,f))).
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_CONDu_u_CONG, axiom, ![TV_u_27a]: ![V_yu_27, V_y, V_xu_27, V_x, V_Q, V_P]: ((s(t_bool,V_P) = s(t_bool,V_Q) & ((p(s(t_bool,V_Q)) => s(TV_u_27a,V_x) = s(TV_u_27a,V_xu_27)) & (~ (p(s(t_bool,V_Q))) => s(TV_u_27a,V_y) = s(TV_u_27a,V_yu_27)))) => s(TV_u_27a,h4s_bools_cond(s(t_bool,V_P),s(TV_u_27a,V_x),s(TV_u_27a,V_y))) = s(TV_u_27a,h4s_bools_cond(s(t_bool,V_Q),s(TV_u_27a,V_xu_27),s(TV_u_27a,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_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_some(s(TV_u_27a,V_x))))) = s(t_h4s_options_option(TV_u_27b),h4s_options_some(s(TV_u_27b,happ(s(t_fun(TV_u_27a,TV_u_27b),V_f),s(TV_u_27a,V_x)))))).
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_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_some(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_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_some(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_some(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_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_SND0, axiom, ![TV_u_27a,TV_u_27b]: ![V_y, V_x]: s(TV_u_27b,h4s_pairs_snd(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_27b,V_y)).
fof(ah4s_arithmetics_TWO, axiom, s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,h4s_arithmetics_bit2(s(t_h4s_nums_num,h4s_arithmetics_zero))))) = s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,h4s_arithmetics_zero)))))))).
fof(ah4s_arithmetics_ADDu_u_SYM, axiom, ![V_n, V_m]: s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_m),s(t_h4s_nums_num,V_n))) = s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,V_m)))).
fof(ah4s_arithmetics_ADDu_u_ASSOC, axiom, ![V_p, V_n, V_m]: s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_m),s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,V_p))))) = s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_m),s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,V_p)))).
fof(ah4s_arithmetics_MULTu_u_CLAUSESu_c2, axiom, ![V_m]: s(t_h4s_nums_num,h4s_arithmetics_u_2a(s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,h4s_arithmetics_zero))))),s(t_h4s_nums_num,V_m))) = s(t_h4s_nums_num,V_m)).
fof(ah4s_arithmetics_ADDu_u_MONOu_u_LESSu_u_EQ, axiom, ![V_p, V_n, V_m]: s(t_bool,h4s_arithmetics_u_3cu_3d(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_m),s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_m),s(t_h4s_nums_num,V_p))))) = s(t_bool,h4s_arithmetics_u_3cu_3d(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,V_p)))).
fof(ah4s_arithmetics_NOTu_u_NUMu_u_EQ, axiom, ![V_n, V_m]: (~ (s(t_h4s_nums_num,V_m) = s(t_h4s_nums_num,V_n)) <=> (p(s(t_bool,h4s_arithmetics_u_3cu_3d(s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,V_m))),s(t_h4s_nums_num,V_n)))) | p(s(t_bool,h4s_arithmetics_u_3cu_3d(s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,V_m))))))).
fof(ah4s_arithmetics_SUCu_u_ONEu_u_ADD, axiom, ![V_n]: s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,V_n))) = s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,h4s_arithmetics_zero))))),s(t_h4s_nums_num,V_n)))).
fof(ah4s_arithmetics_SUCu_u_ADDu_u_SYM, axiom, ![V_n, V_m]: s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_m),s(t_h4s_nums_num,V_n))))) = s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,V_m)))).
fof(ah4s_numerals_numeralu_u_sucu_c0, axiom, s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,h4s_arithmetics_zero))) = s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,h4s_arithmetics_zero)))).
fof(ah4s_numerals_numeralu_u_distribu_c1, axiom, ![V_n]: s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,h4s_nums_0))) = s(t_h4s_nums_num,V_n)).
fof(ah4s_numerals_numeralu_u_distribu_c2, axiom, ![V_n, V_m]: s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,V_m))))) = s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,h4s_numerals_iz(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,V_m)))))))).
fof(ah4s_numerals_numeralu_u_distribu_c27, axiom, ![V_n]: s(t_bool,h4s_arithmetics_u_3cu_3d(s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,h4s_nums_0))) = s(t_bool,h4s_arithmetics_u_3cu_3d(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,h4s_arithmetics_zero)))).
fof(ah4s_numerals_numeralu_u_addu_c0, axiom, ![V_n]: s(t_h4s_nums_num,h4s_numerals_iz(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_arithmetics_zero),s(t_h4s_nums_num,V_n))))) = s(t_h4s_nums_num,V_n)).
fof(ah4s_numerals_numeralu_u_addu_c2, axiom, ![V_n, V_m]: s(t_h4s_nums_num,h4s_numerals_iz(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,V_m))))))) = s(t_h4s_nums_num,h4s_arithmetics_bit2(s(t_h4s_nums_num,h4s_numerals_iz(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,V_m)))))))).
fof(ah4s_numerals_numeralu_u_addu_c3, axiom, ![V_n, V_m]: s(t_h4s_nums_num,h4s_numerals_iz(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,h4s_arithmetics_bit2(s(t_h4s_nums_num,V_m))))))) = s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,V_m)))))))).
fof(ah4s_numerals_numeralu_u_addu_c4, axiom, ![V_n, V_m]: s(t_h4s_nums_num,h4s_numerals_iz(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_arithmetics_bit2(s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,V_m))))))) = s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,V_n),s(t_h4s_nums_num,V_m)))))))).
fof(ah4s_numerals_numeralu_u_addu_c6, axiom, ![V_n]: s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_arithmetics_zero),s(t_h4s_nums_num,V_n))))) = s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,V_n)))).
fof(ah4s_numerals_numeralu_u_lteu_c1, axiom, ![V_n]: s(t_bool,h4s_arithmetics_u_3cu_3d(s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,V_n))),s(t_h4s_nums_num,h4s_arithmetics_zero))) = s(t_bool,f)).
fof(ah4s_lists_LENGTH0u_c1, axiom, ![TV_u_27a]: ![V_t, V_h]: s(t_h4s_nums_num,h4s_lists_length(s(t_h4s_lists_list(TV_u_27a),happ(s(t_fun(t_h4s_lists_list(TV_u_27a),t_h4s_lists_list(TV_u_27a)),h4s_lists_cons(s(TV_u_27a,V_h))),s(t_h4s_lists_list(TV_u_27a),V_t))))) = s(t_h4s_nums_num,happ(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_nums_num,h4s_lists_length(s(t_h4s_lists_list(TV_u_27a),V_t)))))).
fof(ah4s_llists_toListu_u_THMu_c1, axiom, ![TV_u_27b]: ![V_t, V_h]: s(t_h4s_options_option(t_h4s_lists_list(TV_u_27b)),h4s_llists_tolist(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_lists_list(TV_u_27b)),h4s_options_optionu_u_map(s(t_fun(t_h4s_lists_list(TV_u_27b),t_h4s_lists_list(TV_u_27b)),h4s_lists_cons(s(TV_u_27b,V_h))),s(t_h4s_options_option(t_h4s_lists_list(TV_u_27b)),h4s_llists_tolist(s(t_h4s_llists_llist(TV_u_27b),V_t)))))).
fof(ah4s_llists_LFINITEu_u_toList, axiom, ![TV_u_27a]: ![V_ll]: (p(s(t_bool,h4s_llists_lfinite(s(t_h4s_llists_llist(TV_u_27a),V_ll)))) => ?[V_l]: s(t_h4s_options_option(t_h4s_lists_list(TV_u_27a)),h4s_llists_tolist(s(t_h4s_llists_llist(TV_u_27a),V_ll))) = s(t_h4s_options_option(t_h4s_lists_list(TV_u_27a)),h4s_options_some(s(t_h4s_lists_list(TV_u_27a),V_l))))).
fof(ah4s_paths_pathu_u_repu_u_bijectionsu_u_thmu_c1, axiom, ![TV_u_27b,TV_u_27a]: ![V_r]: s(t_h4s_pairs_prod(TV_u_27a,t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a))),h4s_paths_frompath(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),h4s_paths_topath(s(t_h4s_pairs_prod(TV_u_27a,t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a))),V_r))))) = s(t_h4s_pairs_prod(TV_u_27a,t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a))),V_r)).
fof(ah4s_paths_pconsu_u_def, axiom, ![TV_u_27a,TV_u_27b]: ![V_x, V_r, V_p]: s(t_h4s_paths_path(TV_u_27a,TV_u_27b),h4s_paths_pcons(s(TV_u_27a,V_x),s(TV_u_27b,V_r),s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_p))) = s(t_h4s_paths_path(TV_u_27a,TV_u_27b),h4s_paths_topath(s(t_h4s_pairs_prod(TV_u_27a,t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a))),h4s_pairs_u_2c(s(TV_u_27a,V_x),s(t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a)),h4s_llists_lcons(s(t_h4s_pairs_prod(TV_u_27b,TV_u_27a),h4s_pairs_u_2c(s(TV_u_27b,V_r),s(TV_u_27a,h4s_paths_first(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_p))))),s(t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a)),h4s_pairs_snd(s(t_h4s_pairs_prod(TV_u_27a,t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a))),h4s_paths_frompath(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_p)))))))))))).
fof(ah4s_paths_finiteu_u_def, axiom, ![TV_u_27a,TV_u_27b]: ![V_sigma]: s(t_bool,h4s_paths_finite(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_sigma))) = s(t_bool,h4s_llists_lfinite(s(t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a)),h4s_pairs_snd(s(t_h4s_pairs_prod(TV_u_27a,t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a))),h4s_paths_frompath(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_sigma)))))))).
fof(ah4s_paths_finiteu_u_thmu_c1, axiom, ![TV_u_27a,TV_u_27b]: ![V_x, V_r, V_p]: s(t_bool,h4s_paths_finite(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),h4s_paths_pcons(s(TV_u_27a,V_x),s(TV_u_27b,V_r),s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_p))))) = s(t_bool,h4s_paths_finite(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_p)))).
fof(ah4s_paths_lengthu_u_def, axiom, ![TV_u_27a,TV_u_27b]: ![V_p]: s(t_h4s_options_option(t_h4s_nums_num),h4s_paths_length(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_p))) = s(t_h4s_options_option(t_h4s_nums_num),h4s_bools_cond(s(t_bool,h4s_paths_finite(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_p))),s(t_h4s_options_option(t_h4s_nums_num),h4s_options_some(s(t_h4s_nums_num,h4s_arithmetics_u_2b(s(t_h4s_nums_num,h4s_lists_length(s(t_h4s_lists_list(t_h4s_pairs_prod(TV_u_27b,TV_u_27a)),h4s_options_the(s(t_h4s_options_option(t_h4s_lists_list(t_h4s_pairs_prod(TV_u_27b,TV_u_27a))),h4s_llists_tolist(s(t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a)),h4s_pairs_snd(s(t_h4s_pairs_prod(TV_u_27a,t_h4s_llists_llist(t_h4s_pairs_prod(TV_u_27b,TV_u_27a))),h4s_paths_frompath(s(t_h4s_paths_path(TV_u_27a,TV_u_27b),V_p))))))))))),s(t_h4s_nums_num,h4s_arithmetics_numeral(s(t_h4s_nums_num,h4s_arithmetics_bit1(s(t_h4s_nums_num,h4s_arithmetics_zero))))))))),s(t_h4s_options_option(t_h4s_nums_num),h4s_options_none)))).
fof(ch4s_paths_altu_u_lengthu_u_thmu_c1, conjecture, ![TV_u_27c,TV_u_27d]: ![V_x, V_r, V_p]: s(t_h4s_options_option(t_h4s_nums_num),h4s_paths_length(s(t_h4s_paths_path(TV_u_27c,TV_u_27d),h4s_paths_pcons(s(TV_u_27c,V_x),s(TV_u_27d,V_r),s(t_h4s_paths_path(TV_u_27c,TV_u_27d),V_p))))) = s(t_h4s_options_option(t_h4s_nums_num),h4s_options_optionu_u_map(s(t_fun(t_h4s_nums_num,t_h4s_nums_num),h4s_nums_suc),s(t_h4s_options_option(t_h4s_nums_num),h4s_paths_length(s(t_h4s_paths_path(TV_u_27c,TV_u_27d),V_p)))))).
