Original whole-process ledger observations have an exact partial domain
ProvedAPFNativeLedgerHistory.source_graphThe graph retains the same original complete protocol, its denotation, actual occurrence, boundary and unchanged account annotation. It evaluates that protocol’s existing whole-resource calibration under its original bill bound. Its domain is exactly the original admitted, accounted and affordable descriptions; values are unique. Unpriced admissions remain admitted and missing graph entries are not zero.
Uses the unchanged original U/S/input and independently accepted source meanings.
Evidence: the papers supply the original resource and continuation meanings; existing code supplies the explicit source interfaces; independent Lean checking covers these exact exports; recursive physical-premise closure is accepted for the original-source applications only.
This is the native whole-ledger component of history comparison at the stated source and input. It does not establish all-input or full physical-profile equivalence, universal accounting of composites, observed readout, physical transport completion, or quantum structure.
import Theorems.Thm_APFTF1_fullUse_iff_occurrence
import Definitions.Def_APFNativeLedgerHistory
set_option autoImplicit false
open APFTypedHistory APFHistorySource APFTF1 APFOriginalProcess APFOriginalSource
open APFUpstreamOccupant APFPaper1.Foundation APFOriginalFinitePossibilities APFOriginalAdmission
variable {Γ : Type*} {Raw FullProcess Resource : Γ → Type*}
variable [∀ γ, AddCommMonoid (Resource γ)] [∀ γ, Preorder (Resource γ)]
variable {T : OriginalTyping Γ FullProcess} {P : ∀ γ, Set (FullProcess γ)}
variable {A : ∀ γ, Account (R := Resource γ) (P γ)}
namespace APFNativeLedgerHistory
theorem graph_exact (U : UseSource (Raw := Raw) T P A) (M : OriginalMeaning T P A)
{γ δ : Γ} (x : Raw γ) (h : Word T γ δ) (t : ℝ) :
graph U M x δ h t ↔ ∃p : ProtocolView (P γ),M.denotes h p.val ∧
p.val ∈ Profile U γ x ∧ APFResourceIdentity.affordable (A:=A) p ∧
t=APFResourceIdentity.wholeBill (A:=A) p := by
constructor
· rintro ⟨e,he⟩
exact ⟨e.protocol,e.denotation,⟨e.boundary,⟨U.admissionOf e.occurrence⟩⟩,e.bound,he⟩
· rintro ⟨p,hd,⟨b,hb⟩,hc,ht⟩
obtain ⟨rho⟩ := (APFTF1.fullUse_iff_occurrence U γ p.val x b).mp hb
exact ⟨⟨p,hd,b,rho,hc⟩,ht⟩
theorem graph_admitted (U : UseSource (Raw := Raw) T P A) (M : OriginalMeaning T P A)
{γ : Γ} (x : Raw γ) : APFObservedHistory.Compatible (language U M x) (graph U M x) := by
rintro δ h t ⟨e,_⟩
exact ⟨e.protocol.val,e.denotation,e.boundary,⟨U.admissionOf e.occurrence⟩⟩
theorem graph_unique (U : UseSource (Raw := Raw) T P A) (M : OriginalMeaning T P A)
{γ δ : Γ} (x : Raw γ) (h : Word T γ δ) (t t' : ℝ)
(ht : graph U M x δ h t) (ht' : graph U M x δ h t') : t=t' := by
obtain ⟨p,hp,_,_,hv⟩ := (graph_exact U M x h t).mp ht
obtain ⟨q,hq,_,_,hv'⟩ := (graph_exact U M x h t').mp ht'
have he : p=q := Subtype.ext (M.unique hp hq)
rw [hv,hv',he]
end APFNativeLedgerHistory
theorem APFNativeLedgerHistory.source_graph (U : UseSource (Raw := Raw) T P A)
(S : APFIdentityHistoryBinding.OriginalSource U) {γ : Γ} (x : Raw γ) :
APFNativeLedgerHistory.SourceGraphLaws U S.toHistoryMeaning x := by
sorry
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.