目录文档-技术白皮书47-PTN Template v1.0

第12章 附录(字段清单 / 示例 / 模板)


I. 字段与单位对照(最小集,可直接复用)

约定:字段名用蛇形;凡路径相关量显式 gamma(ell) 与测度 d ell;所有数值字段须带 unit 或在 see[] 指向量纲校核锚点。

分组

字段

含义

类型

单位/取值域

备注

核心

record_id

记录主键

string

ULID/UUIDv4

全局唯一

采集

acq.ts_start / acq.ts_end

开始/结束时间

string

ISO-8601

含时区

路径

path.gamma_ell

路径参数化

array[number]

m

与 d_ell 同长

路径

path.d_ell

路径测度步长

array[number]

m

≥2 个元素

介质

medium.n_eff_profile

有效折射率序列

array[number]

1

与路径对齐

参考

ref.c_ref

参考传播上限

number

m/s

2.9e8–3.1e8

观测

obs.T_arr

到达时

number

s

记录 delta_form

相位

obs.Phi

相位累计

number

rad

需 lambda_ref

频段

lambda_ref

参考波长

number

m

与 Phi 成对

仪器

instrument.id / instrument.mode

设备标识/模式

string

`imaging

spectral

标定

calib.version / calib.timestamp

标定版本/时间

string

SemVer / ISO-8601

误差

uncertainty.obs_T_arr / uncertainty.obs_Phi

标准不确定度

number

s / rad

噪声

noise.model

噪声模型

string

`gaussian

student

质量

quality.flags

质量标志

array[string]

例如 sync_alert

质量

quality.score_Q

稳健质量指标

number

[0,1]

越小越好

引用

see / references

内/外部引用

array[string]

“卷名+版本+锚点”

覆盖≥90% 直指锚点

版本

version

数据对象版本

string

SemVer

校验

checksum.sha256

校验和

string

64 hex


II. see: / references[] 规范样例(正文与数据双端一致)

see:

- "EFT.WP.Core.Equations v1.1:S20-1"

- "EFT.WP.Core.Metrology v1.0:check_dim"

- "EFT.WP.Core.DataSpec v1.0:TARR"

references:

- "EFT.WP.Core.Terms v1.0:P10-3"

version: "1.0.0"

文内引用固定写法:见《EFT.WP.Core.Equations v1.1》Ch.2 S20-1。


III. 模板合集(可直接落库)

A. manifest.yaml(发布清单)

dataset_id: "ptn-demo"

version: "1.0.0"

created_at: "2025-09-24T16:00:00Z"

producer: "PTN.Workgroup.Core"

see:

- "EFT.WP.Core.Equations v1.1:S20-1"

- "EFT.WP.Core.Metrology v1.0:check_dim"

- "EFT.WP.Core.DataSpec v1.0:TARR"

references:

- "EFT.WP.Core.Terms v1.0:P10-3"

checksum: { algo: "sha256", value: "<64-hex>" }

release_tier: "public"

B. schema.json(数据架构,节选)

{

"$schema": "https://json-schema.org/draft/2020-12/schema",

"title": "PTN Data Object v1.0.0",

"type": "object",

"required": ["record_id","acq","path","medium","ref","obs","version","see","references"],

"properties": {

"record_id": { "type": "string" },

"acq": {

"type": "object",

"required": ["ts_start","ts_end"],

"properties": {

"ts_start": { "type": "string", "format": "date-time" },

"ts_end": { "type": "string", "format": "date-time" }

}

},

"path": {

"type": "object",

"required": ["gamma_ell","d_ell"],

"properties": {

"gamma_ell": { "type": "array", "items": { "type": "number" }, "minItems": 2 },

"d_ell": { "type": "array", "items": { "type": "number" }, "minItems": 2 }

}

},

"medium": {

"type": "object",

"required": ["n_eff_profile"],

"properties": {

"n_eff_profile": { "type": "array", "items": { "type": "number" }, "minItems": 2 }

}

},

"ref": {

"type": "object",

"required": ["c_ref"],

"properties": { "c_ref": { "type": "number", "minimum": 2.9e8, "maximum": 3.1e8 } }

},

"obs": {

"type": "object",

"properties": { "T_arr": { "type": "number" }, "Phi": { "type": "number" } }

},

"see": { "type": "array", "items": { "type": "string" }, "minItems": 1 },

"references": { "type": "array", "items": { "type": "string" }, "minItems": 1 },

"version": { "type": "string" }

}

}


C. pipeline.yaml(处理管线契约)

version: "1.0.0"

pipeline:

- id: step-10-ingest

in: ["raw/*.parquet"]

out: ["stage/ingested.parquet"]

checks: ["G1","G8"]

- id: step-20-calibrate

in: ["stage/ingested.parquet"]

out: ["stage/calibrated.parquet"]

checks: ["G5"]

- id: step-30-arrival"

in: ["stage/calibrated.parquet"]

out: ["stage/arrival.parquet"]

compute:

form: "T_arr = ( ∫ ( n_eff / c_ref ) d ell )"

requires: ["path.gamma_ell","path.d_ell","medium.n_eff_profile","ref.c_ref"]

delta_form: "general"

checks: ["G3","G4"]

- id: step-40-noisefit

in: ["stage/arrival.parquet"]

out: ["stage/denoised.parquet","reports/noise.json"]

model: "huber"

checks: ["G6"]

- id: step-50-exports

in: ["stage/denoised.parquet"]

out: ["PTN_EXPORT/"]

checks: ["G2","G4","G7"]

exports:

must_include: ["manifest.yaml","schema.json","check_dim_report.json","quality_report.json","audit.jsonl"]


D. protocol.yaml(实验协议卡)

version: "1.0.0"

protocol:

id: "ptn-exp-0001"

geometry:

frame: "RA-Dec"

r_hat: [<unit_vector>]

path:

gamma_ell: "<array-of-meters>"

d_ell: "<array-of-meters>"

L_min: 10.0

timebase: { fs_hz: 2000, t_exp_s: 0.01, cadence_s: 0.05 }

band: { lambda_ref_m: 1.55e-6, bandwidth_hz: 2.0e9, window: "hann" }

instrument: { id: "INS-001", mode: "timing" }

calibration:

version: "1.2.0"

timestamp: "2025-09-24T10:00:00Z"

freshness_s: 86400

sync: { ref: "GNSS_PPS", fallback: ["PTP","NTP"] }

gates: ["G1","G2","G3","G4","G5","G6","G7","G8"]

E. error_budget.csv(误差预算卡,列头)

source,symbol,unit,type,estimate,distribution,correlation,note,see[]

Absolute timing,δt_abs,s,A,u(δt_abs),approx-N,vs_channel_skew,,Core.Metrology v1.0

Path measure,d ell,m,B,u(d ell),uniform,with gamma(ell),,Core.DataSpec v1.0:TARR

Medium index,n_eff(ell),1,A/B,u(n_eff),GP(L_c),length L_c,,Core.Terms v1.0

F. scorecard.json(评分卡,节选)

{

"version": "1.0.0",

"dataset_id": "ptn-demo",

"baseline": { "id": "base-001", "version": "1.2.3" },

"method": { "id": "mA-010", "version": "2.0.0" },

"metrics": {

"DeltaT_arr_s": { "mean": -2.3e-9, "std": 4.8e-9, "U_k2": 1.5e-9 },

"r_phi": { "value": 0.72, "ci95": [0.61, 0.80] },

"epsilon_flux": { "median": 0.004, "p95": 0.011 },

"p_dim": 1.0,

"Q_res": 0.13

},

"score": { "Q": 0.78 },

"see": [

"EFT.WP.Core.Equations v1.1:S20-1",

"EFT.WP.Core.Metrology v1.0:check_dim",

"Data.Benchmarks v1.0:PROTO"

],

"version_lock": true

}


IV. 常用规范片段(直接贴用)

  1. 到达时(两种等价口径,需显式路径与测度)
    T_arr = ( ∫ ( n_eff / c_ref ) d ell ) = ( 1 / c_ref ) * ( ∫ n_eff d ell )
  2. 相位累计(带参考波长)
    Phi = ( 2π / λ_ref ) ( ∫ n_eff d ell )
  3. 量纲校核调用(机读)

call: "I70-dim_check"

expr: "T_arr = ∫ ( n_eff / c_ref ) d ell"

units: { n_eff: "1", c_ref: "m/s", d_ell: "m", T_arr: "s" }

expect: "closed"

  1. 禁止裸用与冲突名

V. 导出目录结构(发布版建议)

PTN_EXPORT/

manifest.yaml

data/

observations.parquet

paths.parquet

schema/

schema.json

reports/

check_dim_report.json

quality_report.json

audit.jsonl

figs/

*.pdf

*.png

scorecard.json

results.md

SIGNATURE.asc


VI. 自动化检查配置(Citation & Dim Lint)
lint_config.yaml

version: "1.0.0"

rules:

version_presence: 1.00

anchor_coverage: 0.90

path_measure_presence: 1.00

forbid_raw_symbols: ["c","T","n"]

conflict_pairs:

- ["T_fil","T_trans"]

- ["n","n_eff"]

dag_enforce: true

outputs:

report: "reports/citation_lint.json"

gate: "G2"


VII. 结果页模板(最小必填,Markdown)

# PTN Results — v1.0.0

## 1. Summary

- One-liner; core metrics with uncertainty (ΔT_arr, r_phi, ε_flux, p_dim, Q_res).

## 2. Methods & Data

- dataset_id / method_id / baseline_id / versions / seeds.

## 3. Core Metrics

- ΔT_arr (s): mean±U, histogram, BA plot.

- r_phi: value + 95% CI; phase scatter vs. identity.

- ε_flux: distribution; paraxial guard.

## 4. Compliance & Audit

- check_dim_report.json, audit.jsonl, see[], references[], version.

## 5. Figures

- PDF/PNG list with units & legends.


VIII. 术语与符号注册(最小清单,YAML)

version: "1.0.0"

symbols:

- { name: "c_ref", kind: "constant", unit: "m/s", desc: "reference propagation limit", see: ["EFT.WP.Core.Terms v1.0:P10-3"] }

- { name: "n_eff", kind: "variable", unit: "1", desc: "effective refractive index", see: ["EFT.WP.Core.Terms v1.0:P10-3"] }

- { name: "T_arr", kind: "variable", unit: "s", desc: "arrival time", requires: { path: "gamma(ell)", measure: "d ell" },

see: ["EFT.WP.Core.Equations v1.1:S20-1","EFT.WP.Core.Metrology v1.0:check_dim","EFT.WP.Core.DataSpec v1.0:TARR"] }


IX. 发布前自检清单(一页式)


版权与许可(CC BY 4.0)

版权声明:除另有说明外,《能量丝理论》(含文本、图表、插图、符号与公式)的著作权由作者(“屠广林”先生)享有。
许可方式:本作品采用 Creative Commons 署名 4.0 国际许可协议(CC BY 4.0)进行许可;在注明作者与来源的前提下,允许为商业或非商业目的进行复制、转载、节选、改编与再分发。
署名格式(建议):作者:“屠广林”;作品:《能量丝理论》;来源:energyfilament.org;许可证:CC BY 4.0。

首次发布: 2025-11-11|当前版本:v5.1
协议链接:https://creativecommons.org/licenses/by/4.0/