第二章 统一结构模型
2.1 统一结构模型的提出
第一章建立了WSaiOS结构智能(WSaiOS-SI)的统一概念模型,明确了Element、Relation、Structure、Class、Object、Attribute、Value、Method、Knowledge、Capability、Cognition、Decision、Execution、Feedback、Learning和Evolution等基本概念。
但是,仅仅确定概念还不能形成完整的理论。
结构智能的核心问题不是:
系统拥有多少概念。
而是:
这些概念如何通过结构关系形成一个能够运行的智能系统。
因此,本章进一步建立WSaiOS-SI的统一结构模型。
统一结构模型研究的核心是:
结构如何形成→结构如何连接→结构如何嵌套→结构如何调用→结构如何运算→结构如何产生结果→结构如何更新\boxed{ 结构如何形成 \rightarrow 结构如何连接 \rightarrow 结构如何嵌套 \rightarrow 结构如何调用 \rightarrow 结构如何运算 \rightarrow 结构如何产生结果 \rightarrow 结构如何更新 }
最终形成:
Element→Relation→Structure→Knowledge→Capability→Cognition→Decision→Method→Execution→Feedback→Learning→Evolution\boxed{ Element \rightarrow Relation \rightarrow Structure \rightarrow Knowledge \rightarrow Capability \rightarrow Cognition \rightarrow Decision \rightarrow Method \rightarrow Execution \rightarrow Feedback \rightarrow Learning \rightarrow Evolution }
因此,统一结构模型不是一个简单的层级目录,而是一个能够持续运行和变化的结构系统。
2.2 结构的基本组成
WSaiOS-SI中最基本的结构关系是:
Structure={Element,Relation}\boxed{ Structure=\{Element,Relation\} }
Element提供结构单位。
Relation提供结构之间的连接。
Structure则提供整体组织。
因此:
Element+Relation→StructureElement + Relation \rightarrow Structure
如果没有Element,就没有结构内容。
如果没有Relation,Element之间就无法形成有意义的组织。
所以:
Element是结构单位\boxed{ Element是结构单位 } Relation是结构关系\boxed{ Relation是结构关系 } Structure是结构组织\boxed{ Structure是结构组织 }
三者构成WSaiOS-SI最基础的结构层。
2.3 Element的结构化
Element不是孤立存在的。
一个Element可以通过不同Relation进入不同Structure。
例如:
ElectricToothbrushElectricToothbrush
可以作为Object Element。
PricePrice
可以作为Attribute Element。
29.9929.99
可以作为Value Element。
三者通过关系形成:
ElectricToothbrush→Price→29.99ElectricToothbrush \rightarrow Price \rightarrow 29.99
即:
Object→Attribute→ValueObject \rightarrow Attribute \rightarrow Value
因此:
Element→Relation→Element\boxed{ Element \rightarrow Relation \rightarrow Element }
是结构形成的最基本形式。
多个关系继续组合以后:
{E1,R1,E2,R2,E3,…}\{E_1,R_1,E_2,R_2,E_3,\ldots\}
就形成更大的Structure。
2.4 Relation的统一作用
Relation不仅连接两个Element,还可以连接不同层次的Structure。
因此Relation至少具有三种作用。
第一,连接元素:
Element↔ElementElement \leftrightarrow Element
第二,连接结构:
Structure↔StructureStructure \leftrightarrow Structure
第三,连接结构内部的不同层次:
Object→Attribute→ValueObject \rightarrow Attribute \rightarrow Value
因此Relation可以形成:
Object→AttributeObject\rightarrow Attribute Attribute→ValueAttribute\rightarrow Value Object→ObjectObject\rightarrow Object Method→OperationMethod\rightarrow Operation Capability→MethodCapability\rightarrow Method Method→ExecutionMethod\rightarrow Execution Execution→ResultExecution\rightarrow Result Result→FeedbackResult\rightarrow Feedback Feedback→LearningFeedback\rightarrow Learning Learning→EvolutionLearning\rightarrow Evolution
所以:
Relation是整个WSaiOS−SI结构体系中的通用连接机制\boxed{ Relation是整个WSaiOS-SI结构体系中的通用连接机制 }
没有Relation,结构智能中的不同结构无法形成统一系统。
2.5 结构的嵌套
WSaiOS-SI中的Structure不是平面的。
一个结构可以包含另一个结构。
因此:
StructureA⊃StructureBStructure_A \supset Structure_B
例如一个Object结构可以包含:
AttributeStructureAttributeStructure
和:
MethodStructureMethodStructure
即:
Object={AttributeStructure,MethodStructure}Object= \{ AttributeStructure, MethodStructure \}
一个Knowledge Structure又可以包含多个Object、Attribute、Relation、State、Condition和Rule。
一个Capability Structure又可以包含Knowledge、Method、Rule和Operation。
因此:
Structure→SubStructure→Element\boxed{ Structure \rightarrow SubStructure \rightarrow Element }
结构智能具有天然的层级嵌套特征。
2.6 Class与Object的结构关系
Class是对象结构的抽象定义。
因此:
Class={AttributeDefinition,MethodDefinition}Class = \{ AttributeDefinition, MethodDefinition \}
Class定义某类对象具有的属性和方法。
Object则是Class的具体实例:
Class→Object\boxed{ Class\rightarrow Object }
例如:
ElectricToothbrushClassElectricToothbrushClass
定义:
BrandBrand PricePrice FunctionFunction CertificationCertification
等属性。
同时定义:
ComparePrice()ComparePrice() CheckCertification()CheckCertification()
等方法。
实例化:
ElectricToothbrushClass→ProductAElectricToothbrushClass \rightarrow Product_A
于是:
ProductA.BrandProduct_A.Brand ProductA.PriceProduct_A.Price
成为具体对象结构。
因此:
Class提供结构定义,Object提供结构实例\boxed{ Class提供结构定义,Object提供结构实例 }
2.7 Object、Attribute与Value的统一结构
对象结构的基本形式是:
Object→Attribute→Value\boxed{ Object\rightarrow Attribute\rightarrow Value }
例如:
ProductA→Price→29.99Product_A \rightarrow Price \rightarrow 29.99
以及:
ProductA→Function→ChargingProduct_A \rightarrow Function \rightarrow Charging
这里:
ProductAProduct_A
是Object。
PricePrice
是Attribute。
29.9929.99
是Value。
因此对象结构可以写成:
Object={Attribute1:Value1,Attribute2:Value2,…}Object= \{ Attribute_1:Value_1, Attribute_2:Value_2, \ldots \}
当对象状态发生变化时:
Valuet→Valuet+1Value_t \rightarrow Value_{t+1}
进一步:
ObjectStatet→ObjectStatet+1ObjectState_t \rightarrow ObjectState_{t+1}
所以对象结构不仅能够表示静态属性,也能够表示动态状态。
2.8 Object与Relation形成复杂结构
一个Object并不只是:
Attribute+ValueAttribute+Value
它还可以与其他Object形成Relation。
例如:
Company→Manufactures→ProductCompany \rightarrow Manufactures \rightarrow Product
或者:
Product→BelongsTo→CategoryProduct \rightarrow BelongsTo \rightarrow Category
或者:
Product→UsedBy→UserGroupProduct \rightarrow UsedBy \rightarrow UserGroup
因此完整对象结构可以表示为:
ObjectStructure={Object,Attribute,Value,Relation,State}ObjectStructure= \{ Object, Attribute, Value, Relation, State \}
进一步形成:
ObjectA→Relation→ObjectBObject_A \rightarrow Relation \rightarrow Object_B
所以:
对象结构既包括对象内部属性结构,也包括对象之间的关系结构\boxed{ 对象结构既包括对象内部属性结构,也包括对象之间的关系结构 }
2.9 Method与Object的结构关系
Method是Object结构中的重要执行结构。
基本关系:
Object→Method\boxed{ Object\rightarrow Method }
Class定义Method:
Class→MethodClass\rightarrow Method
Object实例化Class以后,可以调用其Method:
Class→Object→MethodClass\rightarrow Object\rightarrow Method
方法可以作用于:
ObjectObject
也可以作用于:
AttributeAttribute
以及:
ValueValue
例如:
ProductA.Price=29.99Product_A.Price=29.99
调用:
ComparePrice(ProductA.Price,30)ComparePrice(Product_A.Price,30)
形成:
29.99<3029.99<30
因此:
Method→Object→Attribute→Value\boxed{ Method\rightarrow Object\rightarrow Attribute\rightarrow Value }
是结构智能中的基本执行关系。
2.10 Method与Operation的结构关系
Method不是具体运算。
Method组织Operation。
例如:
Method={Compare,Filter,Sort,Verify}Method= \{ Compare, Filter, Sort, Verify \}
具体运行时:
Method→OperationMethod \rightarrow Operation
例如:
Compare(29.99,30)Compare(29.99,30)
得到:
TrueTrue
因此:
Method≠Operation\boxed{ Method\neq Operation }
Method定义执行路径。
Operation执行具体处理。
基本关系:
Method→Operation→ResultMethod \rightarrow Operation \rightarrow Result
2.11 Structure与Knowledge的关系
Knowledge是具有语义、能够被匹配、调用和运算的结构化知识。
因此:
Structure→KnowledgeStructure \rightarrow Knowledge
但并不是所有Structure自动成为Knowledge。
Knowledge需要具备:
ObjectObject AttributeAttribute ValueValue RelationRelation StateState ConditionCondition RuleRule
以及必要的Method等结构。
因此:
KnowledgeStructure={Object,Attribute,Value,Relation,State,Condition,Rule,Method}\boxed{ KnowledgeStructure= \{ Object, Attribute, Value, Relation, State, Condition, Rule, Method \} }
知识结构可以被调用:
Knowledge→CapabilityKnowledge \rightarrow Capability
也可以被认知过程匹配:
Information→KnowledgeMatchingInformation \rightarrow KnowledgeMatching
还可以被学习过程更新:
Feedback→KnowledgeUpdateFeedback \rightarrow KnowledgeUpdate
因此Knowledge处于结构智能的核心连接位置。
2.12 Knowledge内部的结构关系
知识不是一个平面数据集合。
其基本结构可以表示为:
Object→Attribute→ValueObject \rightarrow Attribute \rightarrow Value
进一步:
Object→ObjectObject \rightarrow Object
通过:
RelationRelation
建立关系。
状态可以由对象、属性、值、关系和条件形成:
State=f(Object,Attribute,Value,Relation,Condition,Environment)State= f(Object,Attribute,Value,Relation,Condition,Environment)
条件形成规则:
Condition→RuleCondition \rightarrow Rule
规则进一步影响:
DecisionDecision
或者:
MethodMethod
因此知识结构可以形成:
Object→Attribute→Value→State→Condition→Rule→Method\boxed{ Object \rightarrow Attribute \rightarrow Value \rightarrow State \rightarrow Condition \rightarrow Rule \rightarrow Method }
这是知识进入运算和智能活动的重要结构路径。
2.13 Knowledge与Capability的结构关系
Knowledge解决:
知道什么。
Capability解决:
能够利用什么完成什么任务。
因此二者不是包含关系,而是匹配关系:
KnowledgeStructure↔CapabilityStructure\boxed{ KnowledgeStructure \leftrightarrow CapabilityStructure }
能力结构规定知识需求:
CapabilityRequirement→KnowledgeRequirementCapabilityRequirement \rightarrow KnowledgeRequirement
知识结构满足能力需求:
Knowledge→CapabilityKnowledge \rightarrow Capability
当知识不足时:
KnowledgeGap→LearningRequirementKnowledgeGap \rightarrow LearningRequirement
当能力不足时:
CapabilityGap→LearningRequirementCapabilityGap \rightarrow LearningRequirement
因此知识结构和能力结构构成双向关系:
Knowledge↔Capability\boxed{ Knowledge \leftrightarrow Capability }
2.14 Capability的内部结构
Capability是一个完整结构,而不是一个单一动作。
可以表示为:
CapabilityStructure={Goal,Input,Object,Attribute,Knowledge,Condition,Method,Rule,Operation,Output,Validation}CapabilityStructure= \{ Goal, Input, Object, Attribute, Knowledge, Condition, Method, Rule, Operation, Output, Validation \}
其中:
Goal确定能力服务的目标。
Input确定输入。
Object确定处理对象。
Attribute确定需要处理的对象属性。
Knowledge提供知识基础。
Condition规定使用条件。
Method规定处理路径。
Rule规定判断规则。
Operation执行具体处理。
Output产生输出。
Validation验证结果。
因此:
Capability=Structure for Task Solving\boxed{ Capability= Structure\;for\;Task\;Solving }
2.15 Cognition的结构关系
认知不是一个孤立结构。
它连接当前信息与已有知识。
基本关系:
Information→Element→StructureInformation \rightarrow Element \rightarrow Structure
然后:
Structure↔KnowledgeStructure \leftrightarrow Knowledge
通过匹配形成:
KnowledgeMatchingKnowledgeMatching
进一步:
KnowledgeSemanticUnderstandingKnowledgeSemanticUnderstanding
最终形成:
CognitionResultCognitionResult
因此:
Information→Element→Structure→KnowledgeMatching→KnowledgeSemanticUnderstanding→Cognition\boxed{ Information \rightarrow Element \rightarrow Structure \rightarrow KnowledgeMatching \rightarrow KnowledgeSemanticUnderstanding \rightarrow Cognition }
认知结果结构:
CognitionResult={Object,Attribute,Value,State,Relation,Condition,Scene}CognitionResult= \{ Object, Attribute, Value, State, Relation, Condition, Scene \}
因此认知实际上是一个结构匹配过程。
2.16 Cognition与Knowledge的双向关系
认知依赖知识:
Cognition←KnowledgeCognition \leftarrow Knowledge
但认知过程中产生的新信息也可以更新知识:
Cognition→NewInformation→Learning→KnowledgeUpdateCognition \rightarrow NewInformation \rightarrow Learning \rightarrow KnowledgeUpdate
因此:
Knowledge→Cognition→NewInformation→Learning→Knowledge\boxed{ Knowledge \rightarrow Cognition \rightarrow NewInformation \rightarrow Learning \rightarrow Knowledge }
这形成知识与认知之间的循环关系。
知识支撑认知。
认知发现新的结构。
学习将新的结构重新形成知识。
2.17 Cognition与Decision的结构关系
认知结果是决策的输入。
因此:
CognitionResult→Decision\boxed{ CognitionResult\rightarrow Decision }
但是决策不能只依赖认知。
还需要:
GoalGoal ConditionCondition ConstraintConstraint
以及:
CandidatesCandidates
所以:
DecisionStructure={Cognition,Goal,Condition,Constraint,Candidates,Evaluation,Selection}DecisionStructure= \{ Cognition, Goal, Condition, Constraint, Candidates, Evaluation, Selection \}
形成:
Cognition+Goal+Condition+Constraint→DecisionCognition + Goal + Condition + Constraint \rightarrow Decision
因此:
Cognition提供当前认识,Decision利用当前认识进行选择\boxed{ Cognition提供当前认识,Decision利用当前认识进行选择 }
2.18 Decision与Method的结构关系
Decision确定解决方向。
Method确定执行路径。
因此:
Decision→MethodSelection\boxed{ Decision\rightarrow MethodSelection }
决策结果可能选择:
- 一个能力;
- 一个方法;
- 一个对象;
- 一个行动;
- 一个参数;
- 一个执行路径;
- 多个方法组合。
因此:
Decision→CandidateMethod→MethodSelectionDecision \rightarrow CandidateMethod \rightarrow MethodSelection
选择以后:
Method→MethodInstantiationMethod \rightarrow MethodInstantiation
所以:
Decision≠Method\boxed{ Decision\neq Method }
二者之间通过“方法选择”建立结构关系。
2.19 Method的多层结构
Method在统一结构模型中不是单层结构。
可以形成:
ClassMethodClassMethod CapabilityMethodCapabilityMethod ProblemSolvingMethodProblemSolvingMethod CompositeMethodCompositeMethod
其关系可以表示为:
ClassMethod→CapabilityMethod→ProblemSolvingMethodClassMethod \rightarrow CapabilityMethod \rightarrow ProblemSolvingMethod
而多个方法还可以组合:
Method1+Method2+⋯+Methodn→CompositeMethodMethod_1 + Method_2 + \cdots + Method_n \rightarrow CompositeMethod
如果:
Output(Mi)→Input(Mi+1)Output(M_i)\rightarrow Input(M_{i+1})
则多个方法可以形成连续解决路径。
因此Method本身也是可组合结构。
2.20 Method与Execution的结构关系
方法是执行结构。
执行是方法的具体运行。
因此:
Method→MethodInstance→Execution\boxed{ Method \rightarrow MethodInstance \rightarrow Execution }
实例化过程需要:
ObjectObject ParameterParameter ConditionCondition StateState
因此:
MethodInstance=Instantiate(Method,Object,Parameter,State,Condition)MethodInstance = Instantiate(Method,Object,Parameter,State,Condition)
然后:
Execution=Execute(MethodInstance,Input)Execution = Execute(MethodInstance,Input)
形成:
Method→Instantiation→Binding→Execution\boxed{ Method \rightarrow Instantiation \rightarrow Binding \rightarrow Execution }
2.21 Execution的结构
Execution不是单一动作。
它至少包含:
Execution={Method,Object,Input,Parameter,Condition,State,Operation,Result,Validation}Execution= \{ Method, Object, Input, Parameter, Condition, State, Operation, Result, Validation \}
执行过程可以包含:
SequenceSequence BranchBranch LoopLoop SubMethodSubMethod CapabilityCallCapabilityCall OperationOperation
因此:
Execution=Method+Binding+Condition+Operation+Result+Validation\boxed{ Execution = Method + Binding + Condition + Operation + Result + Validation }
2.22 Execution与Result的结构关系
执行产生结果:
Execution→Result\boxed{ Execution\rightarrow Result }
但Result不仅是一个返回值。
Result可以包含:
OutputOutput ObjectStateObjectState SceneStateSceneState NewInformationNewInformation ValidationValidation
因此:
Result={Output,ObjectState,SceneState,NewInformation,Validation}Result= \{ Output, ObjectState, SceneState, NewInformation, Validation \}
如果对象状态发生变化:
ObjectStatet→ObjectStatet+1ObjectState_t \rightarrow ObjectState_{t+1}
如果场景发生变化:
Scenet→Scenet+1Scene_t \rightarrow Scene_{t+1}
如果发现新的事实:
Unknown→KnownUnknown \rightarrow Known
因此执行结果是结构变化的重要来源。
2.23 Result与Feedback的结构关系
Result描述实际发生的情况。
Feedback描述实际结果与预期之间的关系。
因此:
Expected↔Actual→Difference→Evaluation→FeedbackExpected \leftrightarrow Actual \rightarrow Difference \rightarrow Evaluation \rightarrow Feedback
其中:
Actual=ResultActual=Result
所以:
Result→FeedbackResult\rightarrow Feedback
但:
Result≠Feedback\boxed{ Result\neq Feedback }
反馈结构:
Feedback={Expected,Actual,Difference,Evaluation,Cause,Correction,NextAction}Feedback= \{ Expected, Actual, Difference, Evaluation, Cause, Correction, NextAction \}
因此反馈实际上是一个比Result更高一层的评价结构。
2.24 Feedback与Learning的结构关系
Feedback是学习的重要输入。
因此:
Feedback→Learning\boxed{ Feedback\rightarrow Learning }
但不是所有Feedback都直接成为Knowledge。
反馈首先成为:
LearningMaterialLearningMaterial
然后经过:
StructureExtractionStructureExtraction KnowledgeMatchingKnowledgeMatching SemanticUnderstandingSemanticUnderstanding ValidationValidation
最终:
KnowledgeUpdateKnowledgeUpdate
因此:
Feedback→LearningMaterial→Structure→KnowledgeMatching→Validation→KnowledgeUpdate\boxed{ Feedback \rightarrow LearningMaterial \rightarrow Structure \rightarrow KnowledgeMatching \rightarrow Validation \rightarrow KnowledgeUpdate }
同时反馈还可以更新:
CapabilityCapability MethodMethod RelationRelation
所以:
Learning→KnowledgeUpdate+CapabilityUpdate+MethodUpdate+RelationUpdateLearning \rightarrow KnowledgeUpdate + CapabilityUpdate + MethodUpdate + RelationUpdate
2.25 Learning与Evolution的结构关系
Learning负责具体结构更新。
Evolution表示这些结构变化在时间维度上的持续积累、重组、选择和稳定。
因此:
Learning→StructuralUpdate→Evolution\boxed{ Learning\rightarrow StructuralUpdate\rightarrow Evolution }
设:
SIt={Kt,Ct,Mt,Rt}SI_t= \{K_t,C_t,M_t,R_t\}
经过学习:
SIt→SIt+1SI_t \rightarrow SI_{t+1}
当这种变化持续发生:
SI0→SI1→SI2→SI3→⋯SI_0 \rightarrow SI_1 \rightarrow SI_2 \rightarrow SI_3 \rightarrow \cdots
就形成结构智能的演化过程。
因此:
Evolution是结构随时间持续变化的整体过程\boxed{ Evolution是结构随时间持续变化的整体过程 }
2.26 Evolution与Structure的关系
演化最终改变的是Structure。
因此:
Evolution→StructuralChange\boxed{ Evolution\rightarrow StructuralChange }
结构变化可能包括:
Structure→NewStructureStructure \rightarrow NewStructure
也可能:
StructureA+StructureB→CompositeStructureStructure_A+Structure_B \rightarrow CompositeStructure
或者:
Structure→DecompositionStructure \rightarrow Decomposition
还可以:
StructureA→StructureBStructure_A \rightarrow Structure_B
即结构替换。
关系也可能变化:
Relationt→Relationt+1Relation_t \rightarrow Relation_{t+1}
因此演化不是在结构之外发生的,而是结构自身随时间发生变化。
2.27 结构之间的调用关系
统一结构模型必须允许结构之间相互调用。
基本调用关系:
Class→ObjectClass\rightarrow Object Object→MethodObject\rightarrow Method Method→OperationMethod\rightarrow Operation Capability→KnowledgeCapability\rightarrow Knowledge Capability→MethodCapability\rightarrow Method Capability→OperationCapability\rightarrow Operation Cognition→KnowledgeCognition\rightarrow Knowledge Decision→CapabilityDecision\rightarrow Capability Decision→MethodDecision\rightarrow Method Execution→MethodExecution\rightarrow Method Execution→CapabilityExecution\rightarrow Capability Execution→OperationExecution\rightarrow Operation Feedback→KnowledgeFeedback\rightarrow Knowledge Learning→KnowledgeLearning\rightarrow Knowledge Learning→CapabilityLearning\rightarrow Capability Learning→MethodLearning\rightarrow Method
因此WSaiOS-SI不是单向结构,而是可以调用、组合和反馈的动态结构网络。
2.28 结构之间的输入输出关系
任何能够参与智能运行的结构,都可以具有输入和输出。
例如:
Method:Input→OutputMethod: Input\rightarrow Output Operation:Input→ResultOperation: Input\rightarrow Result Capability:Input→CapabilityResultCapability: Input\rightarrow CapabilityResult Execution:Input→ExecutionResultExecution: Input\rightarrow ExecutionResult Feedback:Actual+Expected→EvaluationFeedback: Actual+Expected\rightarrow Evaluation Learning:Feedback→UpdatedStructureLearning: Feedback\rightarrow UpdatedStructure
因此结构之间可以形成:
Output(Si)→Input(Si+1)Output(S_i) \rightarrow Input(S_{i+1})
这也是复杂结构组合的基础。
例如:
CapabilityA→CapabilityB→CapabilityCCapability_A \rightarrow Capability_B \rightarrow Capability_C
满足:
OutputA→InputBOutput_A\rightarrow Input_B OutputB→InputCOutput_B\rightarrow Input_C
从而形成复合能力。
同样:
MethodA→MethodB→MethodCMethod_A \rightarrow Method_B \rightarrow Method_C
可以形成复合方法。
2.29 结构之间的参数传递
结构之间不仅传递结果,也传递参数。
参数可以来自:
RequirementRequirement Object.AttributeObject.Attribute KnowledgeKnowledge PreviousResultPreviousResult SceneStateSceneState CapabilityOutputCapabilityOutput
因此:
ParameterSource→ParameterBindingParameterSource \rightarrow ParameterBinding
形成:
Method→ParameterBinding→OperationMethod \rightarrow ParameterBinding \rightarrow Operation
例如:
ProductA.Price=29.99Product_A.Price=29.99
以及:
Threshold=30Threshold=30
绑定:
Compare(29.99,30)Compare(29.99,30)
得到:
TrueTrue
因此参数是连接对象结构和运算结构的重要中间结构。
2.30 结构之间的条件关系
结构运行并不一定无条件发生。
Condition可以限制:
- 能力是否可用;
- 方法是否可执行;
- 运算是否允许;
- 决策是否成立;
- 执行是否继续。
基本关系:
Condition→RuleCondition \rightarrow Rule
或者:
Condition→MethodCondition \rightarrow Method
例如:
Price<30Price<30
满足:
Condition=TrueCondition=True
才允许:
MethodExecutionMethodExecution
因此:
Condition是结构运行的约束关系\boxed{ Condition是结构运行的约束关系 }
2.31 结构之间的验证关系
验证贯穿整个结构智能过程。
知识可以验证:
Knowledge→ValidationKnowledge\rightarrow Validation
能力可以验证:
Capability→ValidationCapability\rightarrow Validation
方法可以验证:
Method→ValidationMethod\rightarrow Validation
执行结果可以验证:
Execution→Result→ValidationExecution\rightarrow Result\rightarrow Validation
学习更新也必须验证:
UpdateCandidate→ValidationUpdateCandidate\rightarrow Validation
因此:
Validation\boxed{ Validation }
不是某一个阶段独有的功能,而是统一结构模型中的通用结构关系。
2.32 结构关系的动态变化
结构关系不是永久固定的。
例如:
ObjectA→Relation→ObjectBObject_A \rightarrow Relation \rightarrow Object_B
随着新信息出现,可能变成:
ObjectA→NewRelation→ObjectCObject_A \rightarrow NewRelation \rightarrow Object_C
原有关系也可能失效:
Relationt→InvalidRelation_t \rightarrow Invalid
然后形成:
Relationt+1Relation_{t+1}
因此:
Relation→RelationUpdate\boxed{ Relation \rightarrow RelationUpdate }
关系变化本身就是学习和演化的重要组成部分。
2.33 统一结构模型中的上下层关系
WSaiOS-SI可以进一步形成三个相互连接的结构层。
第一层是基础结构层:
Element+Relation+Structure\boxed{ Element + Relation + Structure }
第二层是对象与知识结构层:
Class→Object→Attribute→Value→Method→Knowledge\boxed{ Class \rightarrow Object \rightarrow Attribute \rightarrow Value \rightarrow Method \rightarrow Knowledge }
第三层是智能运行结构层:
Capability→Cognition→Decision→Method→Execution→Feedback→Learning→Evolution\boxed{ Capability \rightarrow Cognition \rightarrow Decision \rightarrow Method \rightarrow Execution \rightarrow Feedback \rightarrow Learning \rightarrow Evolution }
这三层不是彼此分离的。
基础结构层支撑对象和知识结构层。
对象和知识结构层支撑智能运行结构层。
智能运行结构层又通过学习和演化反过来改变基础结构和知识结构。
因此:
基础结构→知识结构→智能运行→结构更新→基础结构变化\boxed{ 基础结构 \rightarrow 知识结构 \rightarrow 智能运行 \rightarrow 结构更新 \rightarrow 基础结构变化 }
形成完整结构循环。
2.34 统一结构模型中的核心循环
结构智能的内部循环可以表示为:
Element→Relation→Structure→Knowledge→Capability→Cognition→Decision→Method→Execution→Feedback→Learning→StructureUpdateElement \rightarrow Relation \rightarrow Structure \rightarrow Knowledge \rightarrow Capability \rightarrow Cognition \rightarrow Decision \rightarrow Method \rightarrow Execution \rightarrow Feedback \rightarrow Learning \rightarrow StructureUpdate
然后:
StructureUpdate→NewStructureStructureUpdate \rightarrow NewStructure
再重新进入:
Knowledge→Capability→CognitionKnowledge \rightarrow Capability \rightarrow Cognition
因此:
Structure→Intelligence→StructureUpdate\boxed{ Structure \rightarrow Intelligence \rightarrow StructureUpdate }
这说明结构不是智能的静态载体,而是智能运行和演化的基础。
2.35 完整统一结构模型
将前述所有关系统一起来,可以形成WSaiOS-SI完整结构模型:
Element+Relation→StructureStructure→ClassClass→ObjectObject→AttributeAttribute→ValueObject→MethodStructure→KnowledgeKnowledge↔CapabilityInformation→CognitionKnowledge→CognitionCognition→DecisionDecision→MethodMethod→ExecutionExecution→ResultResult→FeedbackFeedback→LearningLearning→StructuralUpdateStructuralUpdate→EvolutionEvolution→NewStructureNewStructure→NewRequirement\boxed{ \begin{aligned} Element &+ Relation \rightarrow Structure\\ Structure &\rightarrow Class\\ Class &\rightarrow Object\\ Object &\rightarrow Attribute\\ Attribute &\rightarrow Value\\ Object &\rightarrow Method\\ Structure &\rightarrow Knowledge\\ Knowledge &\leftrightarrow Capability\\ Information &\rightarrow Cognition\\ Knowledge &\rightarrow Cognition\\ Cognition &\rightarrow Decision\\ Decision &\rightarrow Method\\ Method &\rightarrow Execution\\ Execution &\rightarrow Result\\ Result &\rightarrow Feedback\\ Feedback &\rightarrow Learning\\ Learning &\rightarrow StructuralUpdate\\ StructuralUpdate &\rightarrow Evolution\\ Evolution &\rightarrow NewStructure\\ NewStructure &\rightarrow NewRequirement \end{aligned} }
其中Method存在两个重要连接:
Object→MethodObject\rightarrow Method
以及:
Decision→MethodDecision\rightarrow Method
前者表示对象层的方法。
后者表示问题解决层的方法。
这两个关系最终汇合到:
Method→ExecutionMethod \rightarrow Execution
2.36 统一结构模型的核心公式
整个结构体系可以压缩为:
S={E,R}\boxed{ S=\{E,R\} }
其中:
E={Element}E=\{Element\} R={Relation}R=\{Relation\}
由此形成结构。
对象结构:
O={A,V,R,M}\boxed{ O=\{A,V,R,M\} }
其中:
- AA:Attribute;
- VV:Value;
- RR:Relation;
- MM:Method。
知识结构:
K={O,A,V,R,S,C,Ru,M}\boxed{ K= \{ O,A,V,R,S,C,Ru,M \} }
其中:
- OO:Object;
- AA:Attribute;
- VV:Value;
- RR:Relation;
- SS:State;
- CC:Condition;
- RuRu:Rule;
- MM:Method。
能力结构:
C={G,I,O,A,K,C,M,Ru,Q,P,V}\boxed{ C= \{ G,I,O,A,K,C,M,Ru,Q,P,V \} }
其中:
- GG:Goal;
- II:Input;
- OO:Object;
- AA:Attribute;
- KK:Knowledge;
- CC:Condition;
- MM:Method;
- RuRu:Rule;
- QQ:Operation;
- PP:Output;
- VV:Validation。
完整智能结构:
IS={K,C,Cog,D,M,E,F,L,Evo}\boxed{ IS= \{ K,C,Cog,D,M,E,F,L,Evo \} }
其中:
- KK:Knowledge;
- CC:Capability;
- CogCog:Cognition;
- DD:Decision;
- MM:Method;
- EE:Execution;
- FF:Feedback;
- LL:Learning;
- EvoEvo:Evolution。
2.37 统一结构关系图
WSaiOS-SI的核心结构关系可以最终表示为:
Element↓Relation↓Structure↓Class↓Object→Attribute→Value↓Method↓Knowledge↔Capability↓Cognition→Decision→Method↓Execution→Result→Feedback↓Learning→StructuralUpdate→Evolution↓NewStructure→NewRequirement\boxed{ \begin{array}{c} Element \downarrow \\ Relation \downarrow \\ Structure \\ \downarrow \\ Class \downarrow \\ Object \rightarrow Attribute \rightarrow Value \\ \downarrow \\ Method \\ \downarrow \\ Knowledge \leftrightarrow Capability \\ \downarrow \\ Cognition \rightarrow Decision \rightarrow Method \\ \downarrow \\ Execution \rightarrow Result \rightarrow Feedback \\ \downarrow \\ Learning \rightarrow StructuralUpdate \rightarrow Evolution \\ \downarrow \\ NewStructure \rightarrow NewRequirement \end{array} }
但是,实际系统不是严格的单向树状结构。
它更准确地表现为:
StructureNetwork+IntelligenceLoop\boxed{ StructureNetwork + IntelligenceLoop }
即:
结构网络+智能闭环\boxed{ 结构网络 + 智能闭环 }
结构网络负责组织对象、属性、值、关系、知识、能力、方法等结构。
智能闭环负责使这些结构进入认知、决策、执行、反馈、学习和演化。
2.38 统一结构模型的最终定义
基于以上关系,可以对WSaiOS-SI统一结构模型作出定义:
WSaiOS-SI统一结构模型,是以Element作为基本结构单位,以Relation建立元素及结构之间的连接,以Structure形成具有组织关系的结构整体,以Class定义对象结构,以Object形成具体实例,以Attribute和Value构成对象具体属性结构,以Method构成对象操作和问题解决的执行结构,以Knowledge形成可理解、可调用和可运算的知识结构,以Capability组织知识、方法、规则和运算形成问题处理结构,以Cognition通过知识匹配形成当前对象和场景的认识结构,以Decision在认知结果、目标、条件和约束基础上形成选择结构,以Method形成解决路径,以Execution使方法在具体对象和条件下运行,以Feedback形成实际结果与预期之间的评价关系,以Learning将反馈转化为经过验证的结构更新,并通过Evolution形成结构随时间的持续变化,最终使新的结构进入下一轮智能活动的统一结构体系。
其最基本的结构关系为:
Element+Relation→Structure\boxed{ Element+Relation\rightarrow Structure }
其对象结构关系为:
Class→Object→Attribute→Value\boxed{ Class\rightarrow Object\rightarrow Attribute\rightarrow Value }
其对象执行关系为:
Object→Method→Operation\boxed{ Object\rightarrow Method\rightarrow Operation }
其知识能力关系为:
Knowledge↔Capability\boxed{ Knowledge\leftrightarrow Capability }
其认知决策关系为:
Knowledge→Cognition→Decision\boxed{ Knowledge\rightarrow Cognition\rightarrow Decision }
其决策执行关系为:
Decision→Method→Execution\boxed{ Decision\rightarrow Method\rightarrow Execution }
其反馈学习关系为:
Execution→Result→Feedback→Learning\boxed{ Execution\rightarrow Result\rightarrow Feedback\rightarrow Learning }
其演化关系为:
Learning→StructuralUpdate→Evolution\boxed{ Learning\rightarrow StructuralUpdate\rightarrow Evolution }
其最终闭环为:
Evolution→NewStructure→NewRequirement→Knowledge→Capability→Cognition→Decision→Method→Execution→Feedback→Learning→Evolution\boxed{ Evolution \rightarrow NewStructure \rightarrow NewRequirement \rightarrow Knowledge \rightarrow Capability \rightarrow Cognition \rightarrow Decision \rightarrow Method \rightarrow Execution \rightarrow Feedback \rightarrow Learning \rightarrow Evolution }
因此,WSaiOS-SI的结构不是静态结构。
它是一种:
可构建+可嵌套+可关联+可调用+可运算+可验证+可更新+可演化\boxed{ 可构建 + 可嵌套 + 可关联 + 可调用 + 可运算 + 可验证 + 可更新 + 可演化 }
的动态结构体系。
2.39 本章结论
第一章回答的是:
WSaiOS-SI中有哪些基本概念,以及这些概念分别是什么。
本章回答的是:
这些概念如何形成统一结构,以及这些结构如何相互连接和运行。
最终形成:
Element→Relation→Structure\boxed{ Element \rightarrow Relation \rightarrow Structure }
形成对象结构:
Class→Object→Attribute→Value\boxed{ Class \rightarrow Object \rightarrow Attribute \rightarrow Value }
形成对象方法:
Object→Method→Operation\boxed{ Object \rightarrow Method \rightarrow Operation }
形成知识结构:
Structure→Knowledge\boxed{ Structure \rightarrow Knowledge }
形成能力结构:
Knowledge↔Capability\boxed{ Knowledge \leftrightarrow Capability }
形成认知结构:
Information→KnowledgeMatching→KnowledgeSemanticUnderstanding→Cognition\boxed{ Information \rightarrow KnowledgeMatching \rightarrow KnowledgeSemanticUnderstanding \rightarrow Cognition }
形成决策结构:
Cognition→Capability→Evaluation→Decision\boxed{ Cognition \rightarrow Capability \rightarrow Evaluation \rightarrow Decision }
形成执行结构:
Decision→Method→Execution\boxed{ Decision \rightarrow Method \rightarrow Execution }
形成反馈结构:
Execution→Result→Feedback\boxed{ Execution \rightarrow Result \rightarrow Feedback }
形成学习结构:
Feedback→Learning→StructuralUpdate\boxed{ Feedback \rightarrow Learning \rightarrow StructuralUpdate }
形成演化结构:
StructuralUpdate→Evolution\boxed{ StructuralUpdate \rightarrow Evolution }
最终形成:
需求→知识需求→知识结构→运算结构→能力结构→认知结构→决策结构→方法结构→执行结构→结果结构→反馈结构→学习结构→演化结构→新结构→新需求\boxed{ \begin{aligned} 需求 &\rightarrow 知识需求\\ &\rightarrow 知识结构\\ &\rightarrow 运算结构\\ &\rightarrow 能力结构\\ &\rightarrow 认知结构\\ &\rightarrow 决策结构\\ &\rightarrow 方法结构\\ &\rightarrow 执行结构\\ &\rightarrow 结果结构\\ &\rightarrow 反馈结构\\ &\rightarrow 学习结构\\ &\rightarrow 演化结构\\ &\rightarrow 新结构\\ &\rightarrow 新需求 \end{aligned} }
由此,WSaiOS-SI形成的不是若干孤立的结构,而是一个能够从基本元素构建结构,从结构形成知识,从知识和能力形成认知与决策,从决策形成方法,从方法进入执行,从执行产生反馈,从反馈进入学习,再通过学习改变结构并形成演化的统一动态结构体系。
其最根本的结构关系可以归结为:
Element→Structure→Knowledge→Capability→Cognition→Decision→Method→Execution→Feedback→Learning→Evolution→Structure′\boxed{ Element \rightarrow Structure \rightarrow Knowledge \rightarrow Capability \rightarrow Cognition \rightarrow Decision \rightarrow Method \rightarrow Execution \rightarrow Feedback \rightarrow Learning \rightarrow Evolution \rightarrow Structure’ }
于是:
Structure→Intelligence→Structure′\boxed{ Structure \rightarrow Intelligence \rightarrow Structure’ }
这构成WSaiOS结构智能(WSaiOS-SI)的统一结构基础。