defpred S1[ set , set ] means ( ( $1 = NAT & $2 = NAT ) or ( $1 in SCM-Data-Loc & $2 = INT ) or ( $1 in NAT & $2 = SCM-Instr ) );
A1:
now let k be
Element of
SCM-Memory ;
ex b being Element of {INT } \/ {SCM-Instr ,NAT } st S1[k,b]A2:
{INT } \/ {SCM-Instr ,NAT } = {INT ,SCM-Instr ,NAT }
by ENUMSET1:42;
then A3:
NAT in {INT } \/ {SCM-Instr ,NAT }
by ENUMSET1:def 1;
A4:
(
S1[
k,
NAT ] or
S1[
k,
INT ] or
S1[
k,
SCM-Instr ] )
by Lm1;
(
INT in {INT } \/ {SCM-Instr ,NAT } &
SCM-Instr in {INT } \/ {SCM-Instr ,NAT } )
by A2, ENUMSET1:def 1;
hence
ex
b being
Element of
{INT } \/ {SCM-Instr ,NAT } st
S1[
k,
b]
by A3, A4;
verum end;
consider h being Function of SCM-Memory ,({INT } \/ {SCM-Instr ,NAT }) such that
A5:
for a being Element of SCM-Memory holds S1[a,h . a]
from FUNCT_2:sch 3(A1);
take
h
; for k being Element of SCM-Memory holds
( ( k = NAT implies h . k = NAT ) & ( k in SCM-Data-Loc implies h . k = INT ) & ( k in NAT implies h . k = SCM-Instr ) )
let k be Element of SCM-Memory ; ( ( k = NAT implies h . k = NAT ) & ( k in SCM-Data-Loc implies h . k = INT ) & ( k in NAT implies h . k = SCM-Instr ) )
A6:
S1[k,h . k]
by A5;
hence
( k = NAT implies h . k = NAT )
by Lm2; ( ( k in SCM-Data-Loc implies h . k = INT ) & ( k in NAT implies h . k = SCM-Instr ) )
thus
( k in SCM-Data-Loc implies h . k = INT )
by A6, Lm2, Lm3, XBOOLE_0:3; ( k in NAT implies h . k = SCM-Instr )
thus
( k in NAT implies h . k = SCM-Instr )
by A6, Lm3, XBOOLE_0:3; verum