Changing a loop reference preserves the full original history bill
ProvedAPFNativeLedgerHistory.original_based_wholeapforiginal-relativeprivate
For references with the same forgotten admission effect and an original return loop, based-loop conjugation retains the return memberships, inverse reference changes, both original composites, and the complete original prefix-and-suffix whole-ledger predicate.
Preamble
import Definitions.Def_APFOriginalRelative_Pair
import Definitions.Def_APFOriginalRelative_Arrow
import Definitions.Def_APFOriginalRelative_mul
import Definitions.Def_APFOriginalRelative_IsReturn
import Definitions.Def_APFOriginalRelative_coordinate
import Theorems.Thm_APFOriginalRelative_change_pair
import Definitions.Def_APFOriginalRelative_based
import Theorems.Thm_APFOriginalRelative_based_return
import Theorems.Thm_APFOriginalRelative_coordinate_members
import Theorems.Thm_APFOriginalRelative_based_change_comp
import Theorems.Thm_APFOriginalRelative_based_graph
import Theorems.Thm_APFSourceBoundHistory_source_bridge
import Theorems.Thm_APFNativeLedgerHistory_source_graph
import Mathlib.Tactic
set_option autoImplicit false
open APFTypedHistory APFHistorySource APFTF1 APFOriginalProcess APFOriginalSource
open APFUpstreamOccupant APFPaper1.Foundation APFOriginalFinitePossibilities APFOriginalAdmission
open APFObservedProcess APFOriginalRelative
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_based_whole
{b c : ReachableContext L₀ B₀} (q0 q1 : Arrow b c)
(hF : qForget q1.val=qForget q0.val) (ell : Arrow c c) (hEll : IsReturn ell)
(p t : SupportedWord L₀ B₀ b.val b.val)
(hp : classOf p=(mul hc₀ hb₀
(mul hc₀ hb₀ (coordinate hc₀ hb₀ q1 q0) (based hc₀ hb₀ q0 ell))
(coordinate hc₀ hb₀ q0 q1)).val)
(ht : classOf t=(based hc₀ hb₀ q1 ell).val) :
IsReturn (coordinate hc₀ hb₀ q0 q1) ∧ IsReturn (coordinate hc₀ hb₀ q1 q0) ∧
IsReturn (based hc₀ hb₀ q0 ell) ∧ IsReturn (based hc₀ hb₀ q1 ell) ∧
Pair (b:=b) (c:=b) (coordinate hc₀ hb₀ q0 q1).val (coordinate hc₀ hb₀ q1 q0).val ∧
(Comp (coordinate hc₀ hb₀ q1 q0).val (based hc₀ hb₀ q0 ell).val
(mul hc₀ hb₀ (coordinate hc₀ hb₀ q1 q0) (based hc₀ hb₀ q0 ell)).val ∧
Comp (mul hc₀ hb₀ (coordinate hc₀ hb₀ q1 q0) (based hc₀ hb₀ q0 ell)).val
(coordinate hc₀ hb₀ q0 q1).val (based hc₀ hb₀ q1 ell).val) ∧
(∀ h0 : Word T γ b.val, L₀ b.val h0 → ∀ δ (u : Word T b.val δ) v,
(∃ 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 ∧
v=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 ∧
v=APFResourceIdentity.wholeBill (A:=A) p0)) := by
sorry
Source
Accepted OriginalRelative source SHA d13cfccfed025844aeb7c6a6e0815373bd9ee5580d28d9dd8a9aa745315c2f06; independent scientific acceptance174f8cab15c6b20719b151c7d0d2a546504aeaee0531ab32e09d4f6276b7dbfa.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.