File size: 17,442 Bytes
e3e0a0d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | import Mathlib
import OAI.SetTheory.PartitionConsistency.Construction.DiagramPlacements
import OAI.SetTheory.PartitionConsistency.Forcing.ProductNames
namespace OAI
/-! ## OrderedPair -/
namespace PartitionConsistency.SetForcingNames.SymmetricSystem
universe u v w
noncomputable section
variable {P : Type w} [PartialOrder P] [OrderTop P] {Γ : Type v} [Group Γ]
variable (S : SymmetricSystem.{u} P Γ)
@[simp] theorem Name.smul_pair (g : Γ) (σ τ : S.Name) :
g • σ.pair τ = (g • σ).pair (g • τ) := by
apply Subtype.ext
exact ConditionAction.Name.smul_pair (S.code_mem ⊤) g (S.code_top_fixed g) σ.val τ.val
/-- The equivariant name for the actual Kuratowski pair. -/
def Name.opair {S : SymmetricSystem.{u} P Γ} (σ τ : S.Name) : S.Name := (σ.pair σ).pair (σ.pair τ)
@[simp] theorem Name.smul_opair (g : Γ) (σ τ : S.Name) :
g • σ.opair τ = (g • σ).opair (g • τ) := by simp [Name.opair]
theorem mem_pair_left (p : P) (σ τ : S.Name) : S.atomic.MemF p σ (σ.pair τ) :=
(S.mem_pair σ τ σ p).mpr (fun q _ => ⟨q,le_rfl,Or.inl (S.atomic.eq_refl q σ)⟩)
theorem mem_pair_right (p : P) (σ τ : S.Name) : S.atomic.MemF p τ (σ.pair τ) :=
(S.mem_pair σ τ τ p).mpr (fun q _ => ⟨q,le_rfl,Or.inr (S.atomic.eq_refl q τ)⟩)
theorem eq_pair_congr {p : P} {σ σ' τ τ' : S.Name}
(hσ : S.atomic.EqF p σ σ') (hτ : S.atomic.EqF p τ τ') :
S.atomic.EqF p (σ.pair τ) (σ'.pair τ') := by
apply S.eq_of_same_members
intro ν q hqp
rw [S.mem_pair,S.mem_pair]
constructor
· intro h r hrq
obtain ⟨s,hsr,h | h⟩ := h r hrq
· exact ⟨s,hsr,Or.inl (S.atomic.eq_trans h (S.atomic.eq_mono (hsr.trans (hrq.trans hqp)) hσ))⟩
· exact ⟨s,hsr,Or.inr (S.atomic.eq_trans h (S.atomic.eq_mono (hsr.trans (hrq.trans hqp)) hτ))⟩
· intro h r hrq
obtain ⟨s,hsr,h | h⟩ := h r hrq
· exact ⟨s,hsr,Or.inl (S.atomic.eq_trans h
(S.atomic.eq_symm (S.atomic.eq_mono (hsr.trans (hrq.trans hqp)) hσ)))⟩
· exact ⟨s,hsr,Or.inr (S.atomic.eq_trans h
(S.atomic.eq_symm (S.atomic.eq_mono (hsr.trans (hrq.trans hqp)) hτ)))⟩
theorem mem_singleton (p : P) (σ τ : S.Name) :
S.atomic.MemF p σ (τ.pair τ) ↔ S.atomic.EqF p σ τ := by
rw [S.mem_pair]
constructor
· intro h
apply S.atomic_regular.1
intro q hqp
obtain ⟨r,hrq,h | h⟩ := h q hqp <;> exact ⟨r,hrq,h⟩
· intro h q hqp
exact ⟨q,le_rfl,Or.inl (S.atomic.eq_mono hqp h)⟩
theorem eq_pair_singleton {p : P} {σ τ ν : S.Name}
(he : S.atomic.EqF p (σ.pair τ) (ν.pair ν)) :
S.atomic.EqF p σ ν ∧ S.atomic.EqF p τ ν := by
constructor
· exact (S.mem_singleton p σ ν).mp
((S.atomic.mem_congr (S.atomic.eq_refl p σ) he).mp (S.mem_pair_left p σ τ))
· exact (S.mem_singleton p τ ν).mp
((S.atomic.mem_congr (S.atomic.eq_refl p τ) he).mp (S.mem_pair_right p σ τ))
/-- Cancellation for unordered pairs with a common first entry. -/
theorem eq_pair_cancel_left {p : P} {σ τ ν : S.Name}
(he : S.atomic.EqF p (σ.pair τ) (σ.pair ν)) : S.atomic.EqF p τ ν := by
apply S.atomic_regular.1
intro q hqp
have hm := (S.atomic.mem_congr (S.atomic.eq_refl p τ) he).mp (S.mem_pair_right p σ τ)
obtain ⟨r,hrq,h | h⟩ := (S.mem_pair σ ν τ p).mp hm q hqp
· have hs := S.eq_pair_congr (S.atomic.eq_refl r σ) h
have h' := S.atomic.eq_trans (S.atomic.eq_symm (S.atomic.eq_mono (hrq.trans hqp) he)) hs
exact ⟨r,hrq,S.atomic.eq_trans h (S.atomic.eq_symm (S.eq_pair_singleton h').2)⟩
· exact ⟨r,hrq,h⟩
theorem eq_opair_congr {p : P} {σ σ' τ τ' : S.Name}
(hσ : S.atomic.EqF p σ σ') (hτ : S.atomic.EqF p τ τ') :
S.atomic.EqF p (σ.opair τ) (σ'.opair τ') :=
S.eq_pair_congr (S.eq_pair_congr hσ hσ) (S.eq_pair_congr hσ hτ)
/-- Injectivity of ordered-pair names is a forcing theorem, not an assumption
on the name quotient. -/
theorem eq_opair_iff {p : P} {σ σ' τ τ' : S.Name} :
S.atomic.EqF p (σ.opair τ) (σ'.opair τ') ↔
S.atomic.EqF p σ σ' ∧ S.atomic.EqF p τ τ' := by
constructor
· intro he
have hσ : S.atomic.EqF p σ σ' := by
apply S.atomic_regular.1
intro q hqp
have hm := (S.atomic.mem_congr (S.atomic.eq_refl p (σ.pair σ)) he).mp
(S.mem_pair_left p (σ.pair σ) (σ.pair τ))
obtain ⟨r,hrq,h | h⟩ := (S.mem_pair (σ'.pair σ') (σ'.pair τ') (σ.pair σ) p).mp hm q hqp
· exact ⟨r,hrq,(S.eq_pair_singleton h).1⟩
· exact ⟨r,hrq,S.atomic.eq_symm (S.eq_pair_singleton (S.atomic.eq_symm h)).1⟩
refine ⟨hσ,?_⟩
have h := S.atomic.eq_trans (S.atomic.eq_symm (S.eq_opair_congr hσ (S.atomic.eq_refl p τ))) he
have h' := S.eq_pair_cancel_left h
exact S.eq_pair_cancel_left h'
· rintro ⟨hσ,hτ⟩
exact S.eq_opair_congr hσ hτ
/-- The pure first-order unordered-pair formula agrees with the canonical name. -/
theorem forces_unorderedPair {n} (v : Fin n → S.Name) (p : P) (a x y : Fin n) :
S.Forces v p (SetLanguage.unorderedPair a x y) ↔
S.atomic.EqF p (v a) ((v x).pair (v y)) := by
simp only [Forces,SetLanguage.unorderedPair,Formula.iff,
S.atomic.forceFormula_rename S.atomic_regular,S.atomic.forceFormula_all S.atomic_regular,
S.atomic.forceFormula_imp S.atomic_regular,ForcingQuotient.AtomicData.forceFormula_conj,
ForcingQuotient.AtomicData.forceFormula_mem,ForcingQuotient.AtomicData.forceFormula_disj,
ForcingQuotient.AtomicData.forceFormula_equal]
constructor
· intro h
apply S.eq_of_same_members
intro ν q hqp
rw [S.mem_pair]
exact ⟨(h ν).1 q hqp,(h ν).2 q hqp⟩
· intro he ν
constructor
· intro q hqp hm
exact (S.mem_pair _ _ ν q).mp
((S.atomic.mem_congr (S.atomic.eq_refl q ν) (S.atomic.eq_mono hqp he)).mp hm)
· intro q hqp hm
exact (S.atomic.mem_congr (S.atomic.eq_refl q ν) (S.atomic.eq_mono hqp he)).mpr
((S.mem_pair _ _ ν q).mpr hm)
/-- The pure first-order Kuratowski-pair formula agrees with the canonical name. -/
theorem forces_orderedPair {n} (v : Fin n → S.Name) (p : P) (a x y : Fin n) :
S.Forces v p (SetLanguage.orderedPair a x y) ↔
S.atomic.EqF p (v a) ((v x).opair (v y)) := by
simp only [Forces,SetLanguage.orderedPair,S.atomic.forceFormula_rename S.atomic_regular,
ForcingQuotient.AtomicData.forceFormula_ex,ForcingQuotient.AtomicData.forceFormula_conj,
S.forces_unorderedPair]
constructor
· intro h
apply S.atomic_regular.1
intro q hqp
obtain ⟨r,hrq,A,h⟩ := h q hqp
obtain ⟨s,hsr,B,hA,hB,hp⟩ := h r le_rfl
exact ⟨s,hsr.trans hrq,S.atomic.eq_trans hp (S.eq_pair_congr hA hB)⟩
· intro h q hqp
refine ⟨q,le_rfl,(v x).pair (v x),?_⟩
intro r hrq
exact ⟨r,le_rfl,(v x).pair (v y),S.atomic.eq_refl _ _, S.atomic.eq_refl _ _,
S.atomic.eq_mono (hrq.trans hqp) h⟩
/-- Internal application is literal membership of the Kuratowski-pair name. -/
theorem app_iff_mem_opair (p : P) (f x y : S.Name) :
S.App p f x y ↔ S.atomic.MemF p (x.opair y) f := by
simp only [App,Forces,SetLanguage.edge,S.atomic.forceFormula_rename S.atomic_regular,
ForcingQuotient.AtomicData.forceFormula_ex,ForcingQuotient.AtomicData.forceFormula_conj,
ForcingQuotient.AtomicData.forceFormula_mem,S.forces_orderedPair]
constructor
· intro h
apply S.atomic_regular.2
intro q hqp
obtain ⟨r,hrq,z,hm,he⟩ := h q hqp
exact ⟨r,hrq,(S.atomic.mem_congr he (S.atomic.eq_refl r f)).mp hm⟩
· intro h q hqp
exact ⟨q,le_rfl,x.opair y,S.atomic.mem_mono hqp h,S.atomic.eq_refl _ _⟩
end
end PartitionConsistency.SetForcingNames.SymmetricSystem
/-! ## Orbit -/
namespace PartitionConsistency.SetForcingNames.SymmetricSystem
universe u v w t
noncomputable section
variable {P : Type w} [Preorder P] {Γ : Type v} [Group Γ]
variable (S : SymmetricSystem.{u} P Γ)
/-- The forcing membership value of an arbitrary collected family. The
index type, not the ranks of its entries, is required to be small. -/
theorem mem_collect {ι : Type t} [Small.{u} ι] (f : ι → S.Name)
(R : ι → P → Prop) (H : Subgroup Γ) (hH : H ∈ S.filter)
(permutes : ∀ g ∈ H, ∀ i p, R i p → ∃ j,
f j = g • f i ∧ R j (S.move g p)) (ν : S.Name) (p : P) :
S.atomic.MemF p ν (S.collect f R H hH permutes) ↔
∀ q, q ≤ p → ∃ r, r ≤ q ∧ ∃ i a, R i a ∧ r ≤ a ∧ S.atomic.EqF r ν (f i) := by
constructor
· intro hm q hqp
obtain ⟨r,hrq,τ,a,he,hra,heq⟩ := S.mem_iff.mp hm q hqp
obtain ⟨i,b,hR,hτ,hba⟩ := (S.edge_collectRaw f R τ.raw (S.code a)).mp he
obtain rfl := S.code_injective hba
exact ⟨r,hrq,i,b,hR,hra,(Name.ext hτ : f i = τ) ▸ heq⟩
· intro h
apply S.mem_iff.mpr
intro q hqp
obtain ⟨r,hrq,i,a,hR,hra,heq⟩ := h q hqp
exact ⟨r,hrq,f i,a,(S.edge_collectRaw f R _ _).mpr ⟨i,a,hR,rfl,rfl⟩,hra,heq⟩
end
end PartitionConsistency.SetForcingNames.SymmetricSystem
namespace PartitionConsistency.DiagramForcing.Diagram
universe u
variable {M I : Type u} [LeftCancelMonoid M] [DiagramOrder.IsConical M]
/-- Compatible diagrams with the same center agree pointwise. This is the
functional feature of diagram forcing used by the name-orbit presentation. -/
theorem eq_of_compatible_centers {r p q : Diagram M I}
(hrp : r ≤ p) (hrq : r ≤ q) (hcenter : p 1 = q 1) : p = q := by
obtain ⟨a,rfl⟩ := hrp
obtain ⟨b,rfl⟩ := hrq
have hab : a = b := r.injective (by simpa only [sub_apply,mul_one] using hcenter)
rw [hab]
end PartitionConsistency.DiagramForcing.Diagram
namespace PartitionConsistency.CohenForcing.Condition
universe u
variable {I κ : Type u}
@[simp] theorem permute_top (π : Equiv.Perm I) :
(⊤ : Condition I κ).permute π = ⊤ := by
apply ext
simp only [permute, graph_top, Set.image_empty]
end PartitionConsistency.CohenForcing.Condition
namespace PartitionConsistency.ProductForcing
universe u
open SetForcingNames SetForcingNames.SymmetricSystem DiagramForcing
noncomputable section
variable {M I κ : Type u} [LeftCancelMonoid M] [DiagramOrder.IsConical M]
variable {μ : Cardinal.{u}} (hμ : Cardinal.aleph0 ≤ μ)
/-- Ordinary names in an orbit agree literally when their supporting diagrams
do. This does not define an action on an evaluated symmetric model. -/
theorem smul_name_eq_of_diagram_eq
(σ : (system (M := M) (I := I) (κ := κ) hμ).Name) (p : Diagram M I)
(hσ : ∀ g ∈ SupportFilter.Fix p.range, g • σ = σ)
(π ρ : Equiv.Perm I) (hp : p.permute π = p.permute ρ) : π • σ = ρ • σ := by
have hg : ρ⁻¹ * π ∈ SupportFilter.Fix p.range := by
apply (SupportFilter.mem_Fix _ _).mpr
rintro j ⟨x,rfl⟩
have hh := congrArg (fun d : Diagram M I => d x) hp
change π (p x) = ρ (p x) at hh
change ρ.symm (π (p x)) = p x
rw [hh,Equiv.symm_apply_apply]
have hh := congrArg (fun ν => ρ • ν) (hσ _ hg)
simpa only [mul_smul,smul_inv_smul] using hh
/-- The invariant graph of the partial name-orbit map in
`eq:partial-orbit-map`. Each entry is activated by its actual moved diagram. -/
def orbitGraph (c : κ → ZFSet.{u})
(σ : (system (M := M) (I := I) (κ := κ) hμ).Name) (p : Diagram M I) :
(system (M := M) (I := I) (κ := κ) hμ).Name :=
(system (M := M) (I := I) (κ := κ) hμ).collect
(fun π : Equiv.Perm I => (label (M := M) hμ c (π (p 1))).opair (π • σ))
(fun π t => t = (((⊤ : CohenForcing.Condition I κ),p.permute π) : Poset M I κ))
⊤ (system (M := M) (I := I) (κ := κ) hμ).normal.1 (by
intro ρ _ π t ht
refine ⟨ρ * π,?_,?_⟩
· simp only [Name.smul_opair,smul_label,mul_smul]; rfl
· rw [ht,move_coe]
change ((CohenForcing.Condition.permute ρ (⊤ : CohenForcing.Condition I κ),(p.permute π).permute ρ) : Poset M I κ) = _
simp only [CohenForcing.Condition.permute_top,Diagram.permute_mul])
@[simp] theorem smul_orbitGraph (c : κ → ZFSet.{u})
(σ : (system (M := M) (I := I) (κ := κ) hμ).Name) (p : Diagram M I)
(ρ : Equiv.Perm I) : ρ • orbitGraph hμ c σ p = orbitGraph hμ c σ p := by
apply Subtype.ext
apply (system (M := M) (I := I) (κ := κ) hμ).collectName_fixed _ _ ⊤ _ ρ (Subgroup.mem_top _)
intro γ _ π t ht
refine ⟨γ * π,?_,?_⟩
· simp only [Name.smul_opair,smul_label,mul_smul]; rfl
· rw [ht,move_coe]
change ((CohenForcing.Condition.permute γ (⊤ : CohenForcing.Condition I κ),
(p.permute π).permute γ) : Poset M I κ) = _
simp only [CohenForcing.Condition.permute_top,Diagram.permute_mul]
/-- Complete local-witness description of the partial graph, including the
moved diagram that authorizes a contributed pair. -/
theorem mem_orbitGraph (c : κ → ZFSet.{u})
(σ : (system (M := M) (I := I) (κ := κ) hμ).Name) (p : Diagram M I)
(ν : (system (M := M) (I := I) (κ := κ) hμ).Name) (t : Poset M I κ) :
(system (M := M) (I := I) (κ := κ) hμ).atomic.MemF t ν (orbitGraph hμ c σ p) ↔
∀ q, q ≤ t → ∃ r, r ≤ q ∧ ∃ π : Equiv.Perm I,
r ≤ (((⊤ : CohenForcing.Condition I κ),p.permute π) : Poset M I κ) ∧
(system (M := M) (I := I) (κ := κ) hμ).atomic.EqF r ν ((label (M := M) hμ c (π (p 1))).opair (π • σ)) := by
rw [orbitGraph,(system (M := M) (I := I) (κ := κ) hμ).mem_collect]
simp only [exists_eq_left]
/-- Application is computed by actual contributed input-output pairs. -/
theorem app_orbitGraph (c : κ → ZFSet.{u})
(σ : (system (M := M) (I := I) (κ := κ) hμ).Name) (p : Diagram M I)
(x y : (system (M := M) (I := I) (κ := κ) hμ).Name) (t : Poset M I κ) :
(system (M := M) (I := I) (κ := κ) hμ).App t (orbitGraph hμ c σ p) x y ↔
∀ q, q ≤ t → ∃ r, r ≤ q ∧ ∃ π : Equiv.Perm I,
r ≤ (((⊤ : CohenForcing.Condition I κ),p.permute π) : Poset M I κ) ∧
(system (M := M) (I := I) (κ := κ) hμ).atomic.EqF r x (label (M := M) hμ c (π (p 1))) ∧
(system (M := M) (I := I) (κ := κ) hμ).atomic.EqF r y (π • σ) := by
rw [(system (M := M) (I := I) (κ := κ) hμ).app_iff_mem_opair,mem_orbitGraph]
simp only [(system (M := M) (I := I) (κ := κ) hμ).eq_opair_iff]
/-- The identity copy maps the label at the supporting diagram's center to
the original arbitrary-rank name. -/
theorem orbitGraph_app_self (c : κ → ZFSet.{u})
(σ : (system (M := M) (I := I) (κ := κ) hμ).Name) (p : Diagram M I) :
(system (M := M) (I := I) (κ := κ) hμ).App (((⊤ : CohenForcing.Condition I κ),p) : Poset M I κ) (orbitGraph hμ c σ p)
(label (M := M) hμ c (p 1)) σ := by
apply (app_orbitGraph hμ c σ p _ _ _).mpr
intro q hq
refine ⟨q,le_rfl,1,?_,?_,?_⟩
· simpa only [Diagram.permute_one] using hq
· exact (system (M := M) (I := I) (κ := κ) hμ).atomic.eq_refl q _
· simpa only [one_smul] using (system (M := M) (I := I) (κ := κ) hμ).atomic.eq_refl q σ
/-- All contributed inputs lie in the one invariant label set. -/
theorem orbitGraph_input (c : κ → ZFSet.{u})
(σ : (system (M := M) (I := I) (κ := κ) hμ).Name) (p : Diagram M I)
(x y : (system (M := M) (I := I) (κ := κ) hμ).Name) (t : Poset M I κ)
(h : (system (M := M) (I := I) (κ := κ) hμ).App t (orbitGraph hμ c σ p) x y) :
(system (M := M) (I := I) (κ := κ) hμ).atomic.MemF t x (labelSet (M := M) (I := I) hμ c) := by
apply (mem_labelSet hμ c x t).mpr
intro q hq
obtain ⟨r,hr,π,_,hx,_⟩ := (app_orbitGraph hμ c σ p x y t).mp h q hq
exact ⟨r,hr,π (p 1),hx⟩
/-- The graph is forced single-valued. Its two contributing diagrams are
compared only below a common condition, never by moving a fixed generic. -/
theorem orbitGraph_unique [Uncountable κ] (c : κ → ZFSet.{u})
(hc : Function.Injective c)
(σ : (system (M := M) (I := I) (κ := κ) hμ).Name) (p : Diagram M I)
(hσ : ∀ g ∈ SupportFilter.Fix p.range, g • σ = σ)
(x y z : (system (M := M) (I := I) (κ := κ) hμ).Name) (t : Poset M I κ)
(hy : (system (M := M) (I := I) (κ := κ) hμ).App t (orbitGraph hμ c σ p) x y)
(hz : (system (M := M) (I := I) (κ := κ) hμ).App t (orbitGraph hμ c σ p) x z) :
(system (M := M) (I := I) (κ := κ) hμ).atomic.EqF t y z := by
let S := system (M := M) (I := I) (κ := κ) hμ
let : Nonempty (Diagram M I) := ⟨p⟩
apply S.atomic_regular.1
intro q hq
obtain ⟨r,hrq,π,hrπ,hxπ,hyπ⟩ := (app_orbitGraph hμ c σ p x y t).mp hy q hq
obtain ⟨s,hsr,ρ,hsρ,hxρ,hzρ⟩ := (app_orbitGraph hμ c σ p x z t).mp hz r (hrq.trans hq)
have heq := S.atomic.eq_trans (S.atomic.eq_symm (S.atomic.eq_mono hsr hxπ)) hxρ
have hcenter : π (p 1) = ρ (p 1) := by
by_contra hn
exact label_not_equal hμ c hc hn s heq
obtain ⟨s₀,hs₀⟩ := exists_condition_below s
have hsp : s₀.2 ≤ p.permute π := (WithTop.coe_le_coe.mp (hs₀.trans (hsr.trans hrπ))).2
have hsq : s₀.2 ≤ p.permute ρ := (WithTop.coe_le_coe.mp (hs₀.trans hsρ)).2
have hp := Diagram.eq_of_compatible_centers hsp hsq hcenter
have hn := smul_name_eq_of_diagram_eq hμ σ p hσ π ρ hp
refine ⟨s,hsr.trans hrq,?_⟩
rw [hn] at hyπ
exact S.atomic.eq_trans (S.atomic.eq_mono hsr hyπ) (S.atomic.eq_symm hzρ)
end
end PartitionConsistency.ProductForcing
end OAI
|