Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Original whole-process ledger observations have an exact partial domain

Proved
APFNativeLedgerHistory.source_graph

by FiniteUniverse · Sep 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

apfnative-ledger-history

The 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.

Preamble
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

Formal statement
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
Source
APF Paper 1 Supplement v9.27; exact native-ledger/history C1-C4 formal/source acceptance, 21 September 2026. Fixed original source and basis2026-09-14.1 retained.
Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FiniteUniverse · Nov 18, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me