Complete admission tests determine the partial action
ProvedAPFProcessQuotient.contextual_actionFor the same root and endpoint contexts, two finite process descriptions agree in every complete before/process/after admission test exactly when their partial residual-state actions agree, including domains and resulting states. Equivalence is preserved under insertion on both sides and under concatenation; nonempty action domains are preserved as well.
Generic mathematical scope: the displayed prefix-closed language and comparison hypotheses remain explicit. This supporting result does not supply a physical language or comparison target.
This concerns complete admission behavior. It does not identify full physical boundary profiles or physical outcomes, descend costs, assert observed execution, or provide quantum structure. Supported means a nonempty action domain, not maintained physical support.
import Definitions.Def_APFProcessComparison
set_option autoImplicit false
namespace APFProcessQuotient
open APFTypedHistory
universe u v
variable {N : Type u} {E : N → N → Type v} {a b c d : N} {L : Language E a}
theorem context_to_action {p q : Path E b c} (he : ContextEq L p q) :
Action L p = Action L q := by
have forward : ∀ {p q : Path E b c}, ContextEq L p q →
∀ s t, Step (L := L) s p t → Step s q t := by
intro p q he s t hs
obtain ⟨h, _, hh⟩ := s.property
constructor
· have hsp := hs.1
rw [hh] at hsp
have e := he h c (.nil c)
simp only [Path.append_nil] at e
exact (show L c (Path.append h q) from e.mp hsp) |> fun z => by
change s.val c q
rw [hh]
exact z
· rw [hs.2]
funext d r
apply propext
simpa only [residual, hh, Path.append_assoc] using he h d r
funext s t
exact propext ⟨forward he s t, forward (fun h d r => (he h d r).symm) s t⟩
theorem action_to_context (hc : PrefixClosed L) {p q : Path E b c}
(he : Action L p = Action L q) : ContextEq L p q := by
have forward : ∀ {p q : Path E b c}, Action L p = Action L q →
∀ h d (r : Path E c d), L d (Path.append (Path.append h p) r) →
L d (Path.append (Path.append h q) r) := by
intro p q he h d r hadm
have hp : L c (Path.append h p) := hc c d _ r hadm
have hh : L b h := hc b c h p hp
let s := stateOf L h hh
let t := stateOf L (Path.append h p) hp
have st : Step s p t := ⟨hp, (residual_append L h p).symm⟩
have sq : Step s q t := by
change Action L q s t
rw [← he]
exact st
have ev := congrArg (fun K : Language E c => K d r) sq.2
have z := Eq.mp ev hadm
simpa only [t, s, stateOf, residual, Path.append_assoc] using z
intro h d r
exact ⟨forward he h d r, forward he.symm h d r⟩
theorem contextual_action_iff (hc : PrefixClosed L) (p q : Path E b c) :
ContextEq L p q ↔ Action L p = Action L q :=
⟨context_to_action, action_to_context hc⟩
theorem context_insert {e : N} {p q : Path E b c}
(l : Path E d b) (r : Path E c e) (he : ContextEq L p q) :
ContextEq L (Path.append (Path.append l p) r) (Path.append (Path.append l q) r) := by
intro h f s
simpa only [Path.append_assoc] using he (Path.append h l) f (Path.append r s)
theorem supported_iff (hc : PrefixClosed L) (p : Path E b c) :
Supported L p ↔ ∃ h : Path E a b, L c (Path.append h p) := by
constructor
· rintro ⟨s,t,hs⟩
obtain ⟨h,_,hh⟩ := s.property
exact ⟨h, by simpa only [hh, residual] using hs.1⟩
· rintro ⟨h,hp⟩
have hh := hc b c h p hp
have z : (stateOf L h hh).val c p := hp
obtain ⟨t,ht⟩ := (step_exists_iff (stateOf L h hh) p).mpr z
exact ⟨_,t,ht⟩
theorem supported_respects {p q : Path E b c} (he : ContextEq L p q) :
Supported L p ↔ Supported L q := by
change (∃ s t, Action L p s t) ↔ (∃ s t, Action L q s t)
rw [context_to_action he]
theorem context_append {p p' : Path E b c} {q q' : Path E c d}
(hp : ContextEq L p p') (hq : ContextEq L q q') :
ContextEq L (Path.append p q) (Path.append p' q') := by
intro h e r
have z := (hp h e (Path.append q r)).trans (by
simpa only [Path.append_assoc] using hq (Path.append h p') e r)
simpa only [Path.append_assoc] using z
end APFProcessQuotient
open APFTypedHistory APFProcessQuotient
universe u v w z
variable {N : Type u} {E : N → N → Type v} {a : N}
theorem APFProcessQuotient.contextual_action (L : Language E a) (hc : PrefixClosed L) : ComparisonLaws L := by sorry