Original complete-description history interface
DefinitionAPFHistorySourceapfidentity-source-repair
Original complete instruction meanings and explicit C1/C3 clauses, with ordinary occurrence, empty, single-letter and prefix projections. Source clauses remain declared inputs; arbitrary mathematical instances are not certified physical.
Definition code
import Definitions.Def_APFTypedHistory
import Definitions.Def_APFSameDeploymentSource
import Theorems.Thm_APFTF1_fullUse_iff_occurrence
/-! Original complete-description interpretation, P1S9.27 C1/C3 and
3179-3228. These are SOURCE meanings, not properties of every abstract
UseSource. The semantic correspondence of the fields is exposed in
SOURCE_MAP.md and remains subject to independent source review.
No arbitrary language, prefix-closed-language field, independent suffix
denotation or price filter is supplied. -/
set_option autoImplicit false
namespace APFHistorySource
open APFTypedHistory APFTF1 APFOriginalProcess APFOriginalSource
open APFOriginalAdmission APFOriginalFinitePossibilities
variable {Γ : Type*} {Raw FullProcess Resource : Γ → Type*}
variable [∀ γ, AddCommMonoid (Resource γ)] [∀ γ, Preorder (Resource γ)]
variable {T : OriginalTyping Γ FullProcess} {P : ∀ γ, Set (FullProcess γ)}
variable {A : ∀ γ, Account (R := Resource γ) (P γ)}
/-- A complete original fragment, including all original qualifications.
The subtype equality only exposes its already specified output context. -/
abbrev Fragment (T : OriginalTyping Γ FullProcess) (γ δ : Γ) :=
{p : FullProcess γ // (T γ).outputContext p = δ}
abbrev Word (T : OriginalTyping Γ FullProcess) := Path (Fragment T)
def letter {γ : Γ} (p : FullProcess γ) : Word T γ ((T γ).outputContext p) :=
Path.one ⟨p,rfl⟩
/-- Full original semantic interpretation of finite sequential instruction
DESCRIPTIONS. Whole denotation is partial; no recursive semantic rule asks for
the standalone suffix. initialSegment is original finite execution-prefix
membership, not a chosen word-language relation.
boundary: executing a denoted sequence through a specified instruction
boundary names precisely its original initial segment. This is the definitional
sequential reading of P1S3184, not an admission or action axiom. It gives no
interior cut of a single original letter. c3 below supplies admission separately. -/
structure OriginalMeaning (T : OriginalTyping Γ FullProcess)
(P : ∀ γ, Set (FullProcess γ))
(A : ∀ γ, Account (R := Resource γ) (P γ)) where
denotes : ∀ {γ δ}, Word T γ δ → FullProcess γ → Prop
initialSegment : ∀ {γ}, FullProcess γ → FullProcess γ → Prop
typed : ∀ {γ δ} {h : Word T γ δ} {p}, denotes h p → (T γ).outputContext p = δ
unique : ∀ {γ δ} {h : Word T γ δ} {p q}, denotes h p → denotes h q → p = q
empty : ∀ (γ : Γ) (p : FullProcess γ),
denotes (.nil γ) p ↔ p = (A γ).nullProtocol.val
single : ∀ {γ} (p q : FullProcess γ), denotes (letter (T := T) p) q ↔ q = p
boundary : ∀ {γ δ θ} (h : Word T γ δ) (v : Word T δ θ) (q : FullProcess γ),
denotes (Path.append h v) q →
∃ p, denotes h p ∧ initialSegment p q
/-- Original C1/C3 on original processes, before any word-language construction.
The C1 process is the actual zero-fragment identity. No scalar argument
identifies it. C3 ranges over the original actual finite initial segments. -/
structure OriginalC1C3 (U : UseSource (Raw := Raw) T P A)
(M : OriginalMeaning T P A) : Prop where
c1 : ∀ γ (x : Raw γ), (A γ).nullProtocol.val ∈ Profile U γ x
c3 : ∀ {γ} (x : Raw γ) (p q : FullProcess γ),
M.initialSegment p q → q ∈ Profile U γ x → p ∈ Profile U γ x
def language (U : UseSource (Raw := Raw) T P A) (M : OriginalMeaning T P A)
{γ : Γ} (x : Raw γ) : Language (Fragment T) γ :=
fun _ h => ∃ p, M.denotes h p ∧ p ∈ Profile U γ x
/-- Positive original admission retains the actual occurrence/account packet.
An unexposed account stays unexposed. No numeric bill is extracted here. -/
structure Evidence (U : UseSource (Raw := Raw) T P A) (M : OriginalMeaning T P A)
{γ δ : Γ} (x : Raw γ) (h : Word T γ δ) where
process : FullProcess γ
denotation : M.denotes h process
boundary : Raw ((T γ).outputContext process)
occurrence : U.occurrence γ process x boundary
theorem admission_iff_evidence (U : UseSource (Raw := Raw) T P A)
(M : OriginalMeaning T P A) {γ δ : Γ} (x : Raw γ) (h : Word T γ δ) :
language U M x δ h ↔ Nonempty (Evidence U M x h) := by
constructor
· rintro ⟨p,hd,b,hb⟩
obtain ⟨o⟩ := (APFTF1.fullUse_iff_occurrence U γ p x b).mp hb
exact ⟨⟨p,hd,b,o⟩⟩
· rintro ⟨e⟩
exact ⟨e.process,e.denotation,e.boundary,⟨U.admissionOf e.occurrence⟩⟩
theorem empty_admitted (U : UseSource (Raw := Raw) T P A)
(M : OriginalMeaning T P A) (C : OriginalC1C3 U M) {γ : Γ} (x : Raw γ) :
language U M x γ (.nil γ) :=
⟨(A γ).nullProtocol.val,(M.empty γ _).mpr rfl,C.c1 γ x⟩
theorem single_exact (U : UseSource (Raw := Raw) T P A)
(M : OriginalMeaning T P A) {γ : Γ} (x : Raw γ) (p : FullProcess γ) :
language U M x ((T γ).outputContext p) (letter p) ↔ p ∈ Profile U γ x := by
constructor
· rintro ⟨q,hd,hq⟩
exact (M.single p q).mp hd ▸ hq
· intro hp
exact ⟨p,(M.single p p).mpr rfl,hp⟩
/-- Actual prefix bridge, not a PrefixClosed field. Whole denotation supplies
the actual instruction prefix; original C3 alone supplies its admission. -/
theorem prefix_from_original (U : UseSource (Raw := Raw) T P A)
(M : OriginalMeaning T P A) (C : OriginalC1C3 U M) {γ : Γ} (x : Raw γ) :
PrefixClosed (language U M x) := by
intro δ θ h v hv
obtain ⟨q,hq,ha⟩ := hv
obtain ⟨p,hp,hi⟩ := M.boundary h v q hq
exact ⟨p,hp,C.c3 x p q hi ha⟩
end APFHistorySource
Source
APF Paper1 Supplement v9.27: original identity/reach and typed continuations, full B01 possible-result meaning, original fixed calibration and empty-protocol convention. Exact C1, identity-composition and shared-source scientific acceptances,20September2026.