Decoded reference changes preserve the original whole ledger
ProvedAPFNativeLedgerHistory.original_reference_change_wholeapforiginal-referenceprivate
Changing references preserves the decoded original history and its full continuation ledger, including the same wholeBill predicate.
Preamble
import Definitions.Def_APFOriginalReference_Frame
import Definitions.Def_APFOriginalReference_decode
import Definitions.Def_APFOriginalReference_change
import Theorems.Thm_APFOriginalReference_decode_change
import Theorems.Thm_APFOriginalReference_change_graph
import Definitions.Def_APFOriginalRelative_Arrow
import Definitions.Def_APFObservedQuotient
import Definitions.Def_APFObservedComparison
import Definitions.Def_APFResourceIdentity
import Theorems.Thm_APFNativeLedgerHistory_source_graph
import Theorems.Thm_APFSourceBoundHistory_source_bridge
import Mathlib.Tactic
set_option autoImplicit false
open APFTypedHistory APFHistorySource APFTF1 APFOriginalProcess APFOriginalSource
open APFUpstreamOccupant APFPaper1.Foundation APFOriginalFinitePossibilities APFOriginalAdmission
open APFObservedProcess APFOriginalRelative APFOriginalReference
variable {Γ : Type*} {Raw FullProcess Resource : Γ → Type*}
variable [∀ γ, AddCommMonoid (Resource γ)] [∀ γ, Preorder (Resource γ)]
variable {T : OriginalTyping Γ FullProcess} {P : ∀ γ, Set (FullProcess γ)}
variable {A : ∀ γ, Account (R := Resource γ) (P γ)}
variable (U : UseSource (Raw := Raw) T P A) (S : APFIdentityHistoryBinding.OriginalSource U)
variable {γ : Γ} (x : Raw γ)
local notation "L₀" => language U S.toHistoryMeaning x
local notation "B₀" => APFNativeLedgerHistory.graph U S.toHistoryMeaning x
local notation "hc₀" => And.right (And.right (And.right (APFSourceBoundHistory.source_bridge U S x)))
local notation "hb₀" => And.left (And.right (And.right (APFNativeLedgerHistory.source_graph U S x)))
Formal statement
theorem APFNativeLedgerHistory.original_reference_change_whole
{b c : ReachableContext L₀ B₀} (rb sb : Frame b) (rc sc : Frame c) (q : Arrow b c)
(p t : SupportedWord L₀ B₀ b.val c.val)
(hp : classOf p=(decode hc₀ hb₀ sb sc (change hc₀ hb₀ rb sb rc sc q)).val)
(ht : classOf t=(decode hc₀ hb₀ rb rc q).val) :
decode hc₀ hb₀ sb sc (change hc₀ hb₀ rb sb rc sc q)=decode hc₀ hb₀ rb rc q ∧
(∀ h0 : Word T γ b.val, L₀ b.val h0 → ∀ δ (u : Word T c.val δ) v0,
(∃ p0 : ProtocolView (P γ),
S.toHistoryMeaning.denotes (Path.append (Path.append h0 p.val) u) p0.val ∧
p0.val ∈ Profile U γ x ∧ APFResourceIdentity.affordable (A:=A) p0 ∧
v0=APFResourceIdentity.wholeBill (A:=A) p0) ↔
(∃ p0 : ProtocolView (P γ),
S.toHistoryMeaning.denotes (Path.append (Path.append h0 t.val) u) p0.val ∧
p0.val ∈ Profile U γ x ∧ APFResourceIdentity.affordable (A:=A) p0 ∧
v0=APFResourceIdentity.wholeBill (A:=A) p0)) := by
sorry
Source
OriginalReference.lean (accepted source SHA0d31b494215be05dce4e29d52b2fc706de560a64d6b201ddf332008c1bf603c9), independent scientific acceptance70d0071595719eb0ec87dd6c0461d25d203bbccb7e619cdb0aff75f0aec72708. OriginalRelative native delivery acceptance1211feca1d01ab9cd5972405d39c6531a34d3e0814b2c8fd8ede91034f457718.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.