%   ORIGINAL: 'h4/thm/option/IF_EQUALS_OPTION_2'
% 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
% Goal: !y x P. 'h4/const/bool/COND' P ('h4/const/option/SOME' x) 'h4/const/option/NONE' = 'h4/const/option/SOME' y <=> P /\ x = y
%   PROCESSED
% Assm ['HL_TRUTH']: T
% Assm ['HL_FALSITY']: ~F
% Assm ['HL_BOOL_CASES']: !t. (t <=> T) \/ (t <=> F)
% Assm ['HL_EXT']: !f g. (!x. happ f x = happ g x) ==> f = g
% Goal: !y x P. 'h4/const/bool/COND' P ('h4/const/option/SOME' x) 'h4/const/option/NONE' = 'h4/const/option/SOME' y <=> P /\ x = y
fof('HL_TRUTH', axiom, p(s(bool,'T'))).
fof('HL_FALSITY', axiom, ~ (p(s(bool,'F')))).
fof('HL_BOOL_CASES', axiom, ![T]: (s(bool,T) = s(bool,'T') | s(bool,T) = s(bool,'F'))).
fof('HL_EXT', axiom, ![V_3f99982,V_3f99978]: ![F, G]: (![X]: s(V_3f99978,happ(s(fun(V_3f99982,V_3f99978),F),s(V_3f99982,X))) = s(V_3f99978,happ(s(fun(V_3f99982,V_3f99978),G),s(V_3f99982,X))) => s(fun(V_3f99982,V_3f99978),F) = s(fun(V_3f99982,V_3f99978),G))).
fof('h4/thm/option/IF_EQUALS_OPTION_2', conjecture, ![A]: ![Y, X, P]: (s('h4/type/option/option'(A),'h4/const/bool/COND'(s(bool,P),s('h4/type/option/option'(A),'h4/const/option/SOME'(s(A,X))),s('h4/type/option/option'(A),'h4/const/option/NONE'))) = s('h4/type/option/option'(A),'h4/const/option/SOME'(s(A,Y))) <=> (p(s(bool,P)) & s(A,X) = s(A,Y)))).
