J0 source model: QuotientSource
DefinitionAPFJ0_20260927_J0_QuotientSourceapf-j0-pcj0-20260927
Supporting definitions and definition-required proofs from the independently accepted J0/PC-J0 model. Private reference material; it is not a universal hardware law or generic universe of physical models.
Definition code
import Definitions.Def_APFJ0_20260927_J0_NativeSource
import Definitions.Def_APFJ0_20260927_J0_Occupancy
import Definitions.Def_APFCompleteActualHeld
set_option autoImplicit false
set_option maxRecDepth 8192
set_option maxHeartbeats 1600000
open Classical
namespace APFJ0
open APFUpstreamOccupant
abbrev PhysicalState := APFPaper1.Foundation.PhysicalState profile
noncomputable def pi (x : Raw) : PhysicalState := APFPaper1.Foundation.physicalClass profile x
noncomputable def physicalEquiv : Raw ≃ PhysicalState := Equiv.ofBijective pi ⟨by
intro x y h
exact profile_injective (Quotient.exact h), by
intro z
refine Quotient.inductionOn z (fun x => ?_)
exact ⟨x,rfl⟩⟩
def originalDomain : Set (PhysicalState → Bool) := {d | ∃ x y,d x ≠ d y}
abbrev OriginalDistinction := OriginalTask profile originalDomain
noncomputable def originalTaskEquiv : OriginalDistinction ≃ Task where
toFun d := ⟨fun x => d.val (pi x), by
obtain ⟨a,b,h⟩ := d.property
obtain ⟨x,rfl⟩ := physicalEquiv.surjective a
obtain ⟨y,rfl⟩ := physicalEquiv.surjective b
exact ⟨x,y,h⟩⟩
invFun d := ⟨fun z => d.val (physicalEquiv.symm z), by
obtain ⟨x,y,h⟩ := d.property
exact ⟨physicalEquiv x,physicalEquiv y,by simpa using h⟩⟩
left_inv d := by apply Subtype.ext; funext z; exact congrArg d.val (physicalEquiv.apply_symm_apply z)
right_inv d := by apply Subtype.ext; funext x; exact congrArg d.val (physicalEquiv.symm_apply_apply x)
noncomputable def encodeOriginalFamily (S : Finset OriginalDistinction) : Finset Task :=
S.map originalTaskEquiv.toEmbedding
noncomputable def originalHeld (x : Raw) : Finset OriginalDistinction :=
(held x).map originalTaskEquiv.symm.toEmbedding
theorem held_members_true (x : Raw) : ∀ d ∈ held x, d.val x = true := by
intro d hd
simp only [held,Finset.mem_union,Finset.mem_insert,Finset.mem_singleton] at hd
rcases hd with (rfl | rfl) | hd
· simp [axisTask]
· simp [axisTask]
· split_ifs at hd with h
· have he : d = axisTask 2 true := Finset.mem_singleton.mp hd
subst d
simp [axisTask,h]
· simp at hd
noncomputable def originalAlignment (x : Raw) : OriginalAlignment profile originalDomain where
carrier := pi x
carried := originalHeld x
active := by
intro d hd
obtain ⟨e,he,rfl⟩ := Finset.mem_map.mp hd
change e.val (physicalEquiv.symm (physicalEquiv x)) = true
rw [physicalEquiv.symm_apply_apply]
exact held_members_true x e he
noncomputable def quotientSource (w : Weights) :
APFOriginalSource.SourceData OriginalDistinction Protocol WholeLoad Position where
nullProtocol := nullProtocol
wholeResource := (rawSource w).wholeResource
calibration := (rawSource w).calibration
calibration_monotone := (rawSource w).calibration_monotone
calibration_zero := (rawSource w).calibration_zero
null_bill := (rawSource w).null_bill
maintained := retained
sufficient := fun p σ d => (rawSource w).sufficient p σ (originalTaskEquiv d)
usesToRealize := fun p d σ => (rawSource w).usesToRealize p (originalTaskEquiv d) σ
theorem quotient_realizes_iff (w : Weights) (p : Protocol) (d : OriginalDistinction) :
APFOriginalSource.RealizesMember (quotientSource w) p d ↔
(∀ x, Enabled p.val.word x) ∧ Carries p.val (originalTaskEquiv d) :=
source_realizes_iff w p (originalTaskEquiv d)
def originalProtocols : Set Process := Qualified
noncomputable def originalData (w : Weights) :
OriginalData profile originalDomain originalProtocols WholeLoad Position where
service := quotientSource w
jointClass := fun S => {p | Serves p (encodeOriginalFamily S)}
joint_support := by
intro S p hp d hd
exact (quotient_realizes_iff w p d).mpr ⟨hp.1,hp.2 _ (Finset.mem_map.mpr ⟨d,hd,rfl⟩)⟩
physical := by
intro d
refine ⟨d.property,server Support.abm,?_⟩
exact (quotient_realizes_iff w _ d).mpr ⟨server_full Support.abm,by simpa [Carries] using full_readable (originalTaskEquiv d).val⟩
noncomputable def nativeFamilyValue (w : Weights) (S : Finset Task) : NNReal :=
⟨cost w.val S,cost_nonneg w S⟩
noncomputable def actualAlignments : Set (OriginalAlignment profile originalDomain) :=
{a | ∃ r : Boundary, a = originalAlignment (realized r)}
noncomputable def completeAlignment (a : OriginalAlignment profile originalDomain) : Prop :=
∃ x, a = originalAlignment x
end APFJ0
Source
APF private accepted J0/PC-J0 source; exact source SHA256 4c21e389eabb4c309aeb9bcfc1bd5caf6abd8d2c9aaa63ebe5799e252d037cd3; module J0.QuotientSource