Forgetting ledger observations preserves exact admission domains
ProvedAPFObservedProcess.forgetting_lawsDropping the observation component maps realized states and process classes onto the existing admission-only structure. The same-history lift gives exact action correspondence and both preservation and reflection of product domains; products and inhabited identities are preserved. No injectivity or ledger descent to the coarser quotient is claimed.
Generic mathematics under the displayed hypotheses; this does not supply a physical source or observation family.
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_APFObservedProcess_quotient_laws
import Theorems.Thm_APFProcessQuotient_quotient_laws
set_option autoImplicit false
namespace APFObservedProcess
open APFTypedHistory APFObservedHistory
universe u v w
variable {N : Type u} {E : N → N → Type v} {V : Type w} {a b c d : N}
variable {L : Language E a} {B : Observation E V a}
theorem stateForget_onto (s : APFTypedHistory.State L b) :
∃z : APFObservedHistory.State L B b,stateForget z=s := by
obtain ⟨h,hh,hs⟩ := s.property
refine ⟨APFObservedHistory.stateOf L B h hh,?_⟩
apply Subtype.ext
exact hs.symm
theorem forget_step (s : APFObservedHistory.State L B b) (p : Path E b c)
(t : APFTypedHistory.State L c) : APFTypedHistory.Step (stateForget s) p t ↔
∃z,APFObservedHistory.Step s p z ∧ stateForget z=t := by
constructor
· intro ht
obtain ⟨z,hz⟩ := (APFObservedHistory.step_exists_iff s p).mpr ht.1
refine ⟨z,hz,?_⟩
apply APFTypedHistory.step_unique (v:=p) (s:=stateForget s) _ ht
exact ⟨hz.1,congrArg Prod.fst hz.2⟩
· rintro ⟨z,hz,rfl⟩
exact ⟨hz.1,congrArg Prod.fst hz.2⟩
theorem support_forget (hc : PrefixClosed L) (p : Path E b c) :
Supported L B p ↔ APFProcessQuotient.Supported L p := by
-- Both directions retain the SAME admitted history h, including the reverse lift.
rw [supported_iff hc,APFProcessQuotient.supported_iff hc]
theorem qForget_onto (hc : PrefixClosed L) (q : APFProcessQuotient.Q L b c) :
∃r : Q L B b c,qForget r=q := by
induction q using Quotient.inductionOn with | h p =>
exact ⟨classOf ⟨p.val,(support_forget hc p.val).mpr p.property⟩,rfl⟩
theorem forget_domain (hc : PrefixClosed L) (hb : Compatible L B) (q : Q L B b c) (r : Q L B c d) :
Domain q r ↔ APFProcessQuotient.Domain (qForget q) (qForget r) := by
induction q using Quotient.inductionOn with | h p =>
induction r using Quotient.inductionOn with | h q =>
change Domain (classOf p) (classOf q) ↔
APFProcessQuotient.Domain (APFProcessQuotient.classOf (wordForget p)) (APFProcessQuotient.classOf (wordForget q))
rw [domain_class_iff hc hb,APFProcessQuotient.domain_class_iff hc]
exact support_forget hc (Path.append p.val q.val)
theorem forget_comp (hc : PrefixClosed L) (hb : Compatible L B)
(q : Q L B b c) (r : Q L B c d) (t : Q L B b d) (ht : Comp q r t) :
APFProcessQuotient.Comp (qForget q) (qForget r) (qForget t) := by
induction q using Quotient.inductionOn with | h p =>
induction r using Quotient.inductionOn with | h q =>
have hsup := (domain_class_iff hc hb p q).mp ht.1
have he := comp_unique hc hb ht (comp_class hc hb p q hsup)
subst t
exact APFProcessQuotient.comp_class hc (wordForget p) (wordForget q)
((support_forget hc _).mp hsup)
end APFObservedProcess
open APFTypedHistory APFObservedHistory APFObservedProcess
universe u v w
variable {N : Type u} {E : N → N → Type v} {V : Type w} {a : N}
theorem APFObservedProcess.forgetting_laws (L : Language E a) (B : Observation E V a)
(hc : PrefixClosed L) (hb : Compatible L B) : ForgettingLaws L B := by
sorry