框架与脚本:给预期留下来源记录
Frames and scripts
保留多重继承中的默认冲突,区分观察与预期,再检查带角色绑定和可选步骤的事件日志。
frames-scripts有用的预期,也可能猜错
Lin 从社区设备图书馆借一套相机。室内服务通常在服务台取件,移动服务通常在推车取件。这次借用同时属于两类,记录里该写哪个地点?
若按父框架出现顺序随便选一个,就会把分歧藏起来。本例保留两个候选,直到有人补充观察:这套设备实际放在储物柜。记录把储物柜标为观察值,同时保留此前服务台与推车两个默认候选。
框架(frame)围绕命名字段组织一种熟悉的情境,这些字段常叫槽(slot)。实例为某个具体情况填槽。默认值在细节缺失时提供预期;约束限制可接受的填充值;关联过程则可以帮助获取、检查或更新信息。Minsky 在 1974 年 6 月的 MIT 备忘录中讨论了这些问题,也讨论选中的框架不适合当前情境时该怎么办。备忘录 306,开头及第 4 节
脚本(script)进一步组织事件预期:在什么情境下,谁通常做什么,一个事件又怎样联系另一个事件。本例的借用记录为“预约 → 交接 → 使用 → 归还 → 检查”,交接后可以有一次可选演示。Schank 与 Abelson 的 1975 年论文用角色、相连场景和偏离情形描述脚本。原理论中的脚本可以分支,并包含因果联系,范围比平面清单更广。第 III、IV 节
下面的程序实现一个范围更小、规则完整明确的练习:按规定的继承政策解析框架默认值,再用一个有序脚本检查有限事件日志。它不理解自由文本,也不执行列出的动作。
把值的来历与值放在一起
相机框架有四个槽。有限层次中的默认声明如下:
| 框架 | 父框架 | 在此处声明的默认值 |
|---|---|---|
| Loan | 无 | duration = one-day;case = padded |
| Indoor | Loan | pickup = desk |
| Mobile | Loan | pickup = cart;duration = two-hours |
| CameraLoan | Indoor、Mobile | case = hard-shell |
borrower 槽没有默认值,我们把 borrower=Lin 作为观察输入。对 CameraLoan,Mobile 的两小时覆盖 Loan 的一天,CameraLoan 的硬壳箱覆盖 Loan 的软垫箱。Indoor 与 Mobile 在取件地点上互不可比,因此两个不同值保持冲突。
这是本例规定的解析政策,不是所有框架系统的统一定义,也不是声称 Minsky 给出了这套算法。层次必须是有向无环图,边从框架指向父框架。后代的声明比祖先更具体,这取决于祖先关系,不取决于路径长度或父列表顺序。
对目标框架 t 和槽 s,先收集 t 及其全部祖先中声明过该槽默认值的框架:
然后保留没有被更具体声明覆盖的候选:
多个保留的声明可以给出相同值,此时得到一个有多个来源的默认值。若值不一致,就不选定槽值。实例自身的观察优先,但输出仍保留上述默认候选:
O 为观察映射,δ 为框架的默认值映射。结果区分 observed、default、conflict、missing。后两种的 value 都是 None,但冲突保留竞争来源,缺失则没有候选。observed 只表示调用者把它作为观察提供,程序没有独立核查现实。修改观察后重新实例化,不改变可复用的框架定义。
框架系统还可以把过程关联到槽,例如要求询问缺失的序列号,或根据其他字段计算一个值。Minsky 第 4 节提出,终端可以指向收集信息和报告困难的指令,也讨论局部过程与集中控制的关系。这类过程需要执行约定:何时运行、读取哪些输入、输出如何标记。计算结果不会自动成为观察事实。本小程序没有过程注册表,也不会自动触发槽回调。控制讨论
解析框架,再检查一个有序脚本
Python 3.10+ 程序只使用内置数据结构。框架和观察容器必须恰为字典;父列表及槽列表为列表或元组。框架 ID、槽名和值都必须是非空字符串。每个框架写成 (parents, defaults)。未知父框架、所给图任何位置的继承环、重复父项、未声明槽和非法值都会被拒绝;即使环出现在未用到的连通部分,也属于配置错误。没有隐含的空值约定:缺失观察就不写入映射,None 留作未解析输出。
程序为每个槽计算最具体的声明框架,按排序后的 (frame_id, value) 返回候选。排序让解释稳定,不决定冲突时谁获胜。具体性检查覆盖全部祖先:即使某个一般父框架只隔一条边,另一分支上隔两条边的后代声明仍应覆盖它。
脚本是一列 (event_id, role, optional) 步骤。事件 ID 唯一,角色有明确的执行者绑定,optional 必须是真正的布尔值。两个角色允许绑定同一个人,模型没有假定角色对应不同的人。每条观察事件为 (event_id, actor);这些已经是结构化输入,不是待分析的自然语言句子。
本练习的完整日志属于有限语言:
eᵢ 包含事件 ID 及其角色绑定的执行者,ε 表示省略可选步骤;并排书写表示序列连接。每一步最多出现一次,顺序固定。主脚本有六步,其中演示可选,因此在角色绑定固定时,恰好允许两种完整日志。
检查器沿步骤推进游标,可以跳过可选步骤,不能跳过必需步骤。位置早于游标的事件不能再次消费。正式匹配前,会验证全部输入行,包括可能发生早期异常之后的行。返回状态如下:
| 状态 | 在本模型中的含义 |
|---|---|
complete | 观察日志已经是一条允许的完整序列。 |
prefix | 尚未关闭的日志可以补成允许序列,但仍有必需步骤。 |
incomplete | 调用者声明日志已关闭,但仍缺少必需步骤。 |
anomaly | 找到了第一条不能延伸已接受前缀的事件。 |
异常依次检查并报告 unknown-event、out-of-order、missing-required、role-mismatch。同一事件既跨过必需步骤又执行者不符时,先报告必需步骤缺口。失败事件算作已检查,但不算已消费。next 列出从已接受前缀出发,接下来允许的事件 ID,包括开头的可选步骤,直到下一个必需步骤;remaining 列出前方仍缺少的必需步骤。
def text_id(value):
if type(value) is not str or not value:
raise ValueError('IDs and values must be nonempty strings')
return value
def sequence(value):
if type(value) not in (list, tuple):
raise ValueError('use a list or tuple')
return value
def instantiate(frames, target, slots, observed):
if type(frames) is not dict or type(observed) is not dict:
raise ValueError('frames and observed must be dictionaries')
slots = tuple(text_id(s) for s in sequence(slots))
if len(set(slots)) != len(slots):
raise ValueError('slot names must be unique')
allowed = set(slots)
normalized = {}
for name, row in frames.items():
text_id(name)
if len(sequence(row)) != 2:
raise ValueError('a frame is (parents, defaults)')
parents, defaults = row
parents = tuple(text_id(p) for p in sequence(parents))
if len(set(parents)) != len(parents) or type(defaults) is not dict:
raise ValueError('unique parents and a defaults dictionary required')
if any(text_id(s) not in allowed for s in defaults):
raise ValueError('undeclared default slot')
normalized[name] = (parents, {s: text_id(v) for s, v in defaults.items()})
if text_id(target) not in normalized:
raise ValueError('unknown target frame')
if any(p not in normalized for parents, _ in normalized.values() for p in parents):
raise ValueError('unknown parent frame')
if any(text_id(s) not in allowed for s in observed):
raise ValueError('undeclared observed slot')
observations = {s: text_id(v) for s, v in observed.items()}
ancestry, active = {}, set()
def ancestors(name):
if name in active:
raise ValueError('inheritance cycle')
if name in ancestry:
return ancestry[name]
active.add(name)
found = set()
for parent in normalized[name][0]:
found.add(parent)
found.update(ancestors(parent))
active.remove(name)
ancestry[name] = frozenset(found)
return ancestry[name]
for name in normalized:
ancestors(name)
lineage = ancestry[target] | {target}
result = {}
for slot in slots:
providers = [name for name in lineage if slot in normalized[name][1]]
winners = [name for name in providers
if not any(name in ancestry[other] for other in providers)]
candidates = tuple(sorted((name, normalized[name][1][slot]) for name in winners))
values = {value for _, value in candidates}
if slot in observations:
status, value = 'observed', observations[slot]
elif len(values) == 1:
status, value = 'default', next(iter(values))
else:
status, value = ('conflict' if values else 'missing'), None
result[slot] = dict(status=status, value=value, candidates=candidates)
return result
def check_script(steps, bindings, events, closed=False):
if type(bindings) is not dict or type(closed) is not bool:
raise ValueError('bindings must be a dictionary and closed a Boolean')
roles = {text_id(role): text_id(actor) for role, actor in bindings.items()}
normalized, positions = [], {}
for row in sequence(steps):
if len(sequence(row)) != 3:
raise ValueError('a step is (event_id, role, optional)')
label, role, optional = row
text_id(label); text_id(role)
if label in positions or role not in roles or type(optional) is not bool:
raise ValueError('unique event IDs, bound roles and Boolean optional flags required')
positions[label] = len(normalized)
normalized.append((label, role, optional))
log = []
for row in sequence(events):
if len(sequence(row)) != 2:
raise ValueError('an event is (event_id, actor)')
log.append(tuple(text_id(x) for x in row))
cursor, checked = 0, 0
matched, skipped = [], []
def finish(status, reason, at=None):
upcoming = []
for label, _, optional in normalized[cursor:]:
upcoming.append(label)
if not optional:
break
remaining = tuple(label for label, _, optional in normalized[cursor:] if not optional)
return dict(status=status, reason=reason, at=at, consumed=len(matched), checked=checked,
matched=tuple(matched), skipped=tuple(skipped), next=tuple(upcoming), remaining=remaining)
for at, (label, actor) in enumerate(log):
checked += 1
if label not in positions:
return finish('anomaly', 'unknown-event', at)
index = positions[label]
if index < cursor:
return finish('anomaly', 'out-of-order', at)
if any(not normalized[i][2] for i in range(cursor, index)):
return finish('anomaly', 'missing-required', at)
if actor != roles[normalized[index][1]]:
return finish('anomaly', 'role-mismatch', at)
skipped.extend(normalized[i][0] for i in range(cursor, index))
matched.append(label)
cursor = index + 1
if any(not optional for _, _, optional in normalized[cursor:]):
return finish('incomplete' if closed else 'prefix', 'unfinished', len(log))
return finish('complete', 'accepted')
SLOTS = ('pickup', 'duration', 'case', 'borrower')
FRAMES = {
'Loan': ((), {'duration': 'one-day', 'case': 'padded'}),
'Indoor': (('Loan',), {'pickup': 'desk'}),
'Mobile': (('Loan',), {'pickup': 'cart', 'duration': 'two-hours'}),
'CameraLoan': (('Indoor', 'Mobile'), {'case': 'hard-shell'}),
}
STEPS = (('reserve', 'borrower', False), ('handover', 'attendant', False),
('demo', 'attendant', True), ('use', 'borrower', False),
('return', 'borrower', False), ('inspect', 'attendant', False))
BINDINGS = {'borrower': 'Lin', 'attendant': 'Noor'}
EVENTS = (('reserve', 'Lin'), ('handover', 'Noor'), ('use', 'Lin'),
('return', 'Lin'), ('inspect', 'Noor'))
if __name__ == '__main__':
before = instantiate(FRAMES, 'CameraLoan', SLOTS, {'borrower': 'Lin'})
after = instantiate(FRAMES, 'CameraLoan', SLOTS, {'borrower': 'Lin', 'pickup': 'locker'})
print('before:', before)
print('after pickup:', after['pickup'])
print('complete:', check_script(STEPS, BINDINGS, EVENTS, closed=True))
print('prefix:', check_script(STEPS, BINDINGS, EVENTS[:2]))
print('closed prefix:', check_script(STEPS, BINDINGS, EVENTS[:2], closed=True)['status'])
wrong = EVENTS[:2] + (('return', 'Lin'),)
print('exception:', check_script(STEPS, BINDINGS, wrong))
加入取件观察之前,结果为:
| 槽 | 状态 | 值 | 保留的默认来源 |
|---|---|---|---|
| pickup | conflict | 未解析 | Indoor: desk;Mobile: cart |
| duration | default | two-hours | Mobile |
| case | default | hard-shell | CameraLoan |
| borrower | observed | Lin | 无 |
加入 pickup=locker 后,只有 pickup 的值和状态改变,候选仍保留 Indoor 与 Mobile。读取新记录,不会重写这些类别通常预期什么。
五事件日志成功完成:consumed=5、checked=5、skipped=('demo',)。skipped 记录匹配后续事件时跨过的可选步骤,不表示这些步骤不可能发生,也不能证明日志以外发生过什么。预约和交接构成的两事件前缀,得到 next=('demo','use')、remaining=('use','return','inspect');尚未关闭时为 prefix,声明关闭后为 incomplete。
若接下来记录归还,结果为 anomaly,原因为 missing-required,位置是从 0 开始的下标 2;消费了两个事件,检查了三个。程序不会虚构一次使用,让序列看起来符合脚本。这是刻意选择的输入语义:日志被视为它声称已经经过的步骤的完整记录,而不是允许推测未明说事件的压缩叙述。
终点还有一个细节:一条已接受日志,仍可能接上末尾可选事件。对“必需步骤 → 可选拍照”,只有必需步骤的日志已经 complete,但 next 仍包含可选拍照。完成表示属于所定义的语言,不独立断言事件流在现实中已经终止。
默认政策与正常顺序都有适用边界
默认值选择在日常计算意义上具有非单调性:加入观察或更具体声明,会替换先前选中的默认值。它不是经典蕴含;加入另一个互不可比的声明,也可能把原本明确的默认值变成冲突。本程序没有实现形式默认逻辑、真值维护系统或概率置信度模型。
这种区别也划清了本篇与语义网络、本体的范围。图提供关系,但还需要规则说明一条边表示继承、成员、部分关系还是别的含义。本体公理可以约束每个模型,而这里的默认值是可修订候选。字段字典不会因为被称为“框架”,就自动拥有其中任何一种语义。描述逻辑另行介绍明确的模型论语义。
本例的框架政策有一个精确解释。在无环层次中,“更具体”构成严格偏序。只有存在更具体声明时,才删除一个声明祖先。剩下的候选,恰好就是在所有“祖先先于后代”的处理顺序中,可能最后被处理的声明。测试用这些可能顺序作独立参照。互不可比的来源,各自都可能在某种合法顺序中最后出现;所以它们意见不同时,任选一次遍历是不充分的。
事件检查使用另一项不变量:每消费一个事件,已有日志都是有限语言中某个词的前缀。唯一事件 ID 确定它唯一可能对应的步骤;跳过可选步骤保持此前缀性质,跳过必需步骤则不行;角色绑定也必须匹配。结束时不再有必需步骤,表示此前缀已经是一个完整词。这说明所选线性可选步骤模型中的正确性,不是任意分支、循环或并发场景脚本的正确性。
设 F 为框架数,E 为父边数,S 为声明槽数,L 为输入框架数据规模再加 1。在字符串操作为单位成本、集合及字典访问具有期望常数成本的假设下,框架实例化的保守时间界为 O(L + F(1+E) + S·F²),空间为 O(L + F² + S·F)。每次祖先并集可能复制 F 项,每个槽的两两具体性检查可能遍历 F² 对提供者。Python 递归深度会限制很长的合法层次。这份代码优先把来源解释清楚,没有做成优化的继承引擎。
若脚本有 P 步、B 个角色绑定、J 条事件,按同样的字符串原子成本假设,检查的时间与空间均为 O(1+P+B+J)。成功推进时,每个步骤最多被跨过一次;最多一次失败扫描再增加 P 的工作。即使语义匹配提前停止,输入复制和验证仍包括全部 J 条事件。程序没有搜索预算或修复循环。
新出现的 damage 事件可能表示另一种脚本、异常路径、不完整日志,或模型本身不合适。程序报告不匹配,不诊断原因。可选步骤、执行者绑定和必需顺序都是本练习的建模选择,不是设备借用的普遍事实。更广的系统必须明确情境选择和异常处理,并把推测事件与观察分开。
先看解释,再接受填好的记录
-
为什么 pickup 没有选定值,duration 却是 two-hours?交换两个父框架的顺序能解决 pickup 吗?
答案:Indoor 与 Mobile 都声明 pickup,彼此却没有祖先关系,所以 desk 与 cart 冲突。Mobile 的 duration 声明比 Loan 更具体,因此胜出。交换父顺序不会改变这些关系;名称排序只影响候选对的展示顺序。
-
补入
pickup=locker后,候选应该怎样变化?locker 现在是关于所有 CameraLoan 的定理吗?答案:实例把 locker 标为
observed,仍保留 desk/cart 候选作为来源信息,不修改任何可复用框架。这种标记只表示调用者提供了观察,不代表程序独立验证了它,也不对其他相机借用作普遍断言。去掉这条观察后,又会恢复未解析的默认冲突。 -
预约和交接之后,比较尚未关闭的日志、已关闭的日志、下一条由 Noor 执行 demo,以及下一条由 Lin 执行 return。
答案:未关闭日志为前缀,已关闭日志为未完成。Noor 的 demo 被允许,之后 use 仍是下一个必需步骤。Lin 的 return 跨过必需的 use,因此在下标 2 报告
missing-required异常,两个事件已消费、三个已检查。可以省略可选 demo,不能悄悄补上缺失的必需 use。 -
脚本以“必需步骤 → 可选拍照”结束,只有第一步的日志算完成吗?如果日志实际提供了执行者不符的可选拍照,会怎样?
答案:算完成,因为允许省略可选步骤,但可选拍照仍可作为下一事件。一旦它实际出现在日志中,执行者仍必须符合角色绑定。“可选”允许不出现,不宽免非法出现。执行者错误时,会在已经接受必需步骤之后报告
role-mismatch。
分开阅读理论提案与实现范围
Minsky 的 A Framework for Representing Knowledge 在 MIT 保存文本中标为备忘录 306,日期为 1974 年 6 月,并列出 1975 年重印。开头描述情境框架、终端条件和可替换默认值,第 4 节讨论过程与预期怎样控制信息获取;文中也明确承认一些机制尚未解决。所链接 HTML 是带有后期回顾性编辑内容的版本,不是每句话都能直接断代到 1974 年 6 月的影印件。MIT 保存文本
Schank 与 Abelson 的 Scripts, Plans, and Knowledge 发表于 IJCAI 1975,区分熟悉事件结构和较不常规情形中的计划。第 III 节描述角色、因果联系、分支路径和 what-if 响应;第 IV 节介绍 SAM,它接收概念依赖结构,并使用其他组件处理英语输入与输出。作者称其知识和词汇规模很小。这是他们对自身系统的报告,不是独立认知实验,也不是说本篇序列检查器复现了 SAM。原始会议论文,第 151–157 页
这些提案提出了一个本例可以直接检查的问题:哪些信息由外部提供,哪些来自预期,又是哪条政策选中了它?测试把框架结果与小型层次中全部尊重祖先关系的顺序比较,把脚本结果与显式生成的允许日志比较;另检多重继承、观察、角色不匹配、可选终点、非法输入和调用方数据不变。相机例子与代码为原创,没有复制来源场景、图或程序。
先判断,再看解释
CameraLoan 的 Indoor 与 Mobile 父框架分别默认 pickup=desk/cart,二者互不可比。没有取件观察时应怎样输出?
学习目标
- 保留观察、默认、缺失与冲突的不同来源,按明确的祖先偏序处理多重继承,而不随父列表顺序猜值。
- 把有限有序脚本的角色、必需/可选步骤、前缀和异常写成可核查接口,说明它与历史因果脚本及自然语言理解的距离。
先修与延伸
查看知识关联图 →参考文献
- A Framework for Representing Knowledge — MIT-AI Laboratory Memo306, MIT-hosted presentation
Marvin Minsky · 1974 - Scripts, Plans, and Knowledge
Roger C. Schank; Robert P. Abelson · 1975
版本1 · 编写状态: 已完成记录中的技术复核
查看技术检查记录(AI)
Codex · 2026-09-05 · Codex technical check: primary-source locations, original runnable models, independent finite-state oracles, bilingual review and second-agent cross-checks; not independent human peer review.
- 完整复读两语,4显示公式、6稳定锚点、4已答练习、完整相同Python与主例表一一对应。用原创相机借用场景解释Minsky情境/槽/默认/过程与SchankAbelson角色/事件/因果脚本;明确原文脚本可分支,程序是有限线性可选步骤模型,没有附带过程注册器或自由文本理解。
- 8项作者测试全过。框架oracle用Floyd可达性与全部祖先先于后代的线性扩展,逐顺序取最后声明提供者;不使用正文递归祖先/成对覆盖筛选。4框架固定拓扑方向的64个DAG×81种单槽缺失/red/blue声明×4目标×有无观察,共41472次完整结果对应。另检跨路径非最近声明、同值多源一致、父/字典顺序反转、中文/标点身份重命名、实例隔离、未知父/循环包括无关环和零槽。
- 脚本oracle先枚举完整允许日志语言,再用全词前缀判定,不使用正文游标算法。0至3步骤、全部optional组合、各事件正确/错误执行者及未知事件、长度0至P+1、closed两值,共46120次完整返回对应;250随机0至6步骤与0至8事件×2closed另500次。核对所有status/reason/at/checked/consumed/matched/skipped/next/remaining,不只最终接受位。
- 主例继承pickup两源冲突、Mobile时长、CameraLoan箱体与观察borrower正确;locker观察只改值/状态并保留两默认来源。6步骤/1可选使固定绑定恰有2完整日志;所展示5事件complete、demo被跳过,2事件prefix有next(demo,use)。直接return在下标2以missing-required中断,2消费/3检查;closed prefix为incomplete,尾可选在complete时仍可next,不把可选等于任意执行者。
- 单独核对有限DAG严格偏序与极大声明集合、全部线性扩展的最后声明刻画,以及脚本消费前缀不变量和唯一ID下的完整判定。框架成本计入F²祖先存储、EF集合并与每槽F²具体性;脚本计入全部输入验证/复制及单次失败扫描,明确字符串原子/期望哈希、递归限制。观察标记为调用者提供,默认不是定理,缺日志不自动补事实,异常原因不冒充因果诊断。
- 使用已固定Humanizer 2.11.2与中文指南定向复读,无套话模式命中;删除中文零宽字符。严格MDX配仓库显示数学插件/strict KaTeX后实际React静态HTML每语4公式/6标题/4strong答案,无数学错误或代码外残留强调。记录为AI作者自检,review written,交叉审查另记;未称人类专家审校、全站构建、浏览器验收或历史程序复现。
- 根代理独立交叉审查发现分段value公式前两条件可重叠;已在默认值分支显式加入s不在观察域,使其与优先观察分支互斥。程序原先已正确优先观察,代码未改。两语公式同步后8项作者测试与严格MDX/KaTeX实际HTML重跑通过。此项为AI交叉审查修复。
- 完整复读两语、完整Python和来源元数据;4显示公式、6稳定主锚点、4展开式答案对应。核对Minsky提案/后来网页呈现、SchankAbelson因果分支脚本/本文线性optional模型的区别;实例观察只是调用者标记,默认不是经典定理,保留冲突来源。随后发现分段公式的前两条件重叠,修正见下条。
- 独立框架参照以Fraction精确Gauss–Jordan求(I−A)逆矩阵,DAG矩阵项计数路径,不调用作者递归祖先或其线性扩展oracle。检查全部543个四顶点标号DAG×81单槽声明×4目标×2观察情况,共351864个完整结果;另外3553个含环图均拒绝,300个最多8框架的随机多槽/中文标点命名结果通过,输入保全。
- 独立脚本参照构造epsilon-NFA并逐事件求状态导数,不枚举作者完整日志语言,也不运行正文游标。0至3步骤的全部可选标记、角色同人/不同人、正常/错误执行者/未知事件、0至P+1日志长度及两种closed,共92240次完整返回一致,包含所有异常优先级、checked/consumed、skipped、next、remaining;另9非法输入包含早期异常之后的非法行。
- 重新运行作者8项测试和主例;手工核对pickup两源冲突、观察覆盖保留候选、2种完整日志、prefix/closed/incomplete及尾可选complete仍可next。核对严格偏序/线性扩展刻画、日志前缀不变量,EF祖先合并、SF²特异性与P+B+J完整验证成本;保留字符串原子/期望哈希/Python递归限制。
- 独立严格MDX+仓库显示数学/KaTeX并实际React静态渲染,两语各4显示公式、4strong答案,无KaTeX错误或代码外裸强调;代码围栏逐字一致,公式逐项一致。原始5文件SHA全部匹配冻结manifest。没有称为人类审校、全站构建或手机验收。
- 交叉发现并修正value(s)公式的条件重叠:当观察与单一默认值不同,原来的前两条件可同时成立。作者在两语第二分支补s不在观察域的条件,与已有程序的观察优先一致。反向移除这个公式条件可恢复两语原文件的全部SHA;代码/作者测试字节未改,元数据追加修复。
- 完整正文、公式、代码和习题迁入;测试只读取正式MDX,删除临时目录回退及草稿跳过,状态断言更新为checked。没有修改算法或独立参照,最终记录绑定两语SHA。
- 仅导航与出版时态更新:本体/语义网络改为已完成正文直达链接。保留此前所有论点、代码、公式、练习、来源及检查证据,反向替换可恢复此前正文。
核对的来源位置:
- A Framework for Representing Knowledge — MIT-AI Laboratory Memo306, MIT-hosted presentation · Actually opened MIT-preserved author text, full972-line HTML. Read header lines0–6 for Memo306 June1974/reprint1975; opening16–30 for situation frames, terminal constraints, defaults displaced by better-fitting information and acknowledged incompleteness; lines94–106 for information requests and mismatch handling; §4 lines679–696 for terminal instructions, local demons versus central control and frames as data/process packets. Read697–704 showing the later retrospective Fahlman note, which prevents treating all HTML sentences as dated1974. Also opened MIT course-hosted76-page reformatted PDF https://courses.media.mit.edu/2004spring/mas966/Minsky%201974%20Framework%20for%20knowledge.pdf and read pages1–3 confirming the same opening. DSpace handle1721.1/6089 returned405; no original facsimile, precise publication day, historical runtime or complete original control implementation is claimed. The specificity/conflict policy is our explicit teaching choice, not attributed to Minsky.
- Scripts, Plans, and Knowledge · Actually opened official7-page IJCAI Proceedings/75/Papers/021.pdf. Read printed151 §III lines77–101 for contextual slots/events; printed152 lines151–206 for roles, point of view, enabling causal sequences and inferred missing events; printed153 lines234–291 for multiple paths, context headers, distraction/obstacles/errors and what-ifs; §§IV–V printed153–154 lines321–375 for SAM receiving Conceptual Dependency structures via a separate parser, other generation components, small knowledge/vocabulary and plans versus familiar scripts. Official IJCAI1975 contents lines123–129 lists the paper at151 and the next at158. The output checker does not implement those causal inference, parsing or plan mechanisms. No exact conference day is inferred from the malformed official header, and no published-program reproduction is claimed.
- A Framework for Representing Knowledge — MIT-AI Laboratory Memo306, MIT-hosted presentation · Independently opened official MIT-preserved HTML. Read lines0–6 Memo306 June1974 and1975reprint;16–30 situation structure, slots/conditions, revisable default assignments and explicitly incomplete proposal;679–696 procedures, terminal instructions, local demons/central control and unresolved implementation;697–700 clearly retrospective Fahlman editorial material. Supports restricted historical claims, not an original-scan or full-text-all-sections claim. The hierarchy specificity policy is explicitly this article's choice, not attributed to the1974 author.
- Scripts, Plans, and Knowledge · Independently opened official7-page IJCAI1975 PDF and read printed152§III lines151–206 for roles, viewpoints, causal connections and inferred missing narrative events;printed153 lines234–284 for branching paths, headers and deviations;§IV lines321–348 and§V349–375 for SAM's Conceptual Dependency input, separate parser/generator and small knowledge/vocabulary versus broader plans. No SAM run or independent cognitive experiment claimed. Screenshot endpoint was requested but no image was displayed to the reviewer, so this is text reading rather than claimed visual facsimile inspection.
相关主题