Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/yang/blob/main/evidence/lean_wilson_replica_exchange.txt # yang This project has not described itself yet. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `yang / evidence / lean_wilson_replica_exchange.txt` 281 lines · 17570 bytes Raw Blame History 1 Effective correlations under the periodic SU(2) Wilson law 2 2026-11-22 | Spark AArch64 | sh scripts/build_and_run_spark.sh openai_bridge 3 Lean 4.32.0 | `8c9756b28d64dab099da31a4c09229a9e6a2ef35` 4 Mathlib `81a5d257c8e410db227a6665ed08f64fea08e997` 5 6 Source and data SHA-256 7 `20e65bfb71a19dd8226c72656696cbda2ef25c58c94c418024bf62026029af82` proofs/WilsonWordClustering.lean 8 `267a68c43a8eacf57deb182f7be55b53bc8730108ac7239773cc6650c874601a` proofs/WilsonReplicaExchange.lean 9 `61780cb05bfc47757f60c472cea01f4bc5ddc78d51d3697ef49047d41820f87f` proofs/WilsonReplicaShells.lean 10 `d8c4be226a6df7211289c507154578177c232d84ba728303098842cfbc51549f` proofs/WilsonReplicaFrame.lean 11 `be70168a0f70ec94632ea532b33537036256058212e9b4c23c32e15ec59f25cd` proofs/WilsonReplicaSlabs.lean 12 `97f69d63315719c93ee81e04b07303537070f57f2849193a8ec5a8bd5a60576d` proofs/WilsonReplicaLoss.lean 13 `853cd194c9f9824672cfd56e70fbe472afc692608c2637f777d2a9b5c463ebc7` proofs/WilsonReplicaEndpoint.lean 14 `ef536660058a88365d70992ddc71dae72332fb7ebfe78b050c5f58856c3be4fb` proofs/WilsonReplicaColor.lean 15 `b2f3831e4a6f8fbe11be0d4db256eaf2e3d6542024b05e073808f7daf983c737` scripts/replica_shell_probe.py 16 `cdef24bb1cbfb061cd79d569c7207acb2d759c2dd5e7ce346484a29ca7af25b8` evidence/wilson_replica_shell_probe.tsv 17 18 Exact identity under the normalized Wilson law 19 Sample two independent configurations U,V. For a mask i let S_i exchange 20 the links in that mask between U and V. Write J_i = (log w - log w∘S_i)/2 21 for the joint Boltzmann weight w. Only faces split by the mask contribute 22 to J_i. If no plaquette is split by two masks and every mask flips 23 D=(F(U)-F(V))(G(U)-G(V)), then 2 Cov(F,G) = E[D product_i tanh J_i]. 24 Product Haar invariance under link exchanges proves the identity at all 25 finite beta. Shells need no probabilistic independence. 26 27 On a fine periodic torus of side b*l, l >= 2, b >= 1, take F and G to be 28 products of normalized straight-blocked spatial plaquette traces on slices 29 s,u of the coarse torus. Exactly k=b*cyclicDistance(s,u) fine slab masks 30 separate them. Hence |Cov| <= 2 E[product_{j if t=3 then s else 0, ⟨(0,1),by decide⟩) 185 private def bottom (s : ZMod 4) := (corners (face s)).1 186 private def left (s : ZMod 4) := (corners (face s)).2.2.2 187 private def right (s : ZMod 4) := (corners (face s)).2.1 188 private def top (s : ZMod 4) := (corners (face s)).2.2.1 189 private def P0 : PinnedFrame 4 := PinnedFrame.empty 4 190 private def P1 : PinnedFrame 4 := P0.attach (bottom 0) false (by decide) (by 191 intro f hf 192 exact False.elim (Finset.notMem_empty _ hf)) 193 private def P2 : PinnedFrame 4 := P1.attach (left 0) false (by decide) (by 194 intro f hf 195 change f ∈ {bottom 0} at hf 196 simp only [Finset.mem_singleton] at hf 197 rcases hf with rfl; decide) 198 private def P3 : PinnedFrame 4 := P2.attach (right 0) false (by decide) (by 199 intro f hf 200 change f ∈ {left 0, bottom 0} at hf 201 simp only [Finset.mem_insert,Finset.mem_singleton] at hf 202 rcases hf with rfl | rfl <;> decide) 203 private def P4 : PinnedFrame 4 := P3.attach (bottom 2) false (by decide) (by 204 intro f hf 205 change f ∈ {right 0, left 0, bottom 0} at hf 206 simp only [Finset.mem_insert,Finset.mem_singleton] at hf 207 rcases hf with rfl | rfl | rfl <;> decide) 208 private def P5 : PinnedFrame 4 := P4.attach (left 2) false (by decide) (by 209 intro f hf 210 change f ∈ {bottom 2, right 0, left 0, bottom 0} at hf 211 simp only [Finset.mem_insert,Finset.mem_singleton] at hf 212 rcases hf with rfl | rfl | rfl | rfl <;> decide) 213 private def P6 : PinnedFrame 4 := P5.attach (right 2) false (by decide) (by 214 intro f hf 215 change f ∈ {left 2, bottom 2, right 0, left 0, bottom 0} at hf 216 simp only [Finset.mem_insert,Finset.mem_singleton] at hf 217 rcases hf with rfl | rfl | rfl | rfl | rfl <;> decide) 218 219 -- Same six forward tree links and remaining oriented sides as the CPU probe. 220 example (β : ℝ) : 2*wilsonCovariance β (wilsonPlaquetteTrace (face 0)) (wilsonPlaquetteTrace (face 2)) = 221 ∫ z, replicaDifference (wilsonPlaquetteTrace (face 0)) (wilsonPlaquetteTrace (face 2)) z * 222 (tanh (stapleExchange β (top 0) (P6.pair z)) * tanh (stapleExchange β (top 2) (P6.pair z))) ∂replicaLaw 4 β := by 223 obtain ⟨hpq,hcut⟩ := separated_endpoint_cuts (face 0) (face 2) 3 (by decide) (by decide) 224 (by decide) (by decide) (by decide) (by decide) (by decide) 225 apply endpoint_covariance_identity P6 (by decide) β _ _ _ _ (by decide) (by decide) _ _ hpq hcut 226 all_goals 227 intro f hf hne 228 simp only [faceEdges,Finset.mem_insert,Finset.mem_singleton] at hf 229 rcases hf with rfl | rfl | rfl | rfl <;> first | exact False.elim (hne rfl) | decide 230 231 -- A reverse edge is also pinned. 232 example (U : WilsonConfig 4) : 233 (P0.attach (bottom 0) true (by decide) (fun _ h => False.elim (Finset.notMem_empty _ h))).project U (bottom 0) = 1 := 234 PinnedFrame.pins _ U ⟨_, Finset.mem_insert_self ..⟩ 235 236 example : cyclicDistance (l := 4) 0 3 = 1 := by decide 237 example : slabMask (l := 4) 3 0 1 (bottom 2) = false := by decide 238 example {l : ℕ+} (t : Axis) (s : ZMod l.val) (k : ℕ) : slabMoment 0 t s (k+1) = 0 := by 239 simp [slabMoment,exchangeField,logWeight,tanh_zero] 240 example : (1/2 : ℝ)*((1/4)^2+(3/4)^2) = 5/16 ∧ ((1/2 : ℝ)*(1/4+3/4))^2 = 1/4 := by norm_num 241 -- A side-two blocked lattice at beta four uses two fine shells on side four. 242 private def smallFace (s : ZMod 2) : Face 2 := (fun t => if t=3 then s else 0, ⟨(0,1),by decide⟩) 243 private theorem spatialSmall (s : ZMod 2) : spatialSlice 3 s [smallFace s] := by 244 intro p hp; simp only [List.mem_singleton] at hp; subst p; simp [smallFace] 245 example (m R : ℝ) (P : PinnedFrame (2*2)) (q : ℕ → ℝ) 246 (h : ∀ j < 2, (1-exp (-(m*R)))*slabMoment 4 3 (blockCoordinate 2 2 0) j (P.framedLaw 4) ≤ 247 (1-q j)*moderateShellMass 4 3 (blockCoordinate 2 2 0) j (q j) (P.framedLaw 4)) : 248 |blockedCovariance 2 4 (plaquetteProduct [smallFace 0]) (plaquetteProduct [smallFace 1])| ≤ 249 2*exp (-2*(m*R)) := by 250 have hd : (2:ℕ)*cyclicDistance (l := 2) 0 1 = 2 := by decide 251 have H := framed_blockedProduct_physical_bound_of_overlap (l := 2) (by decide) 2 4 m R P 3 0 1 _ _ 252 (spatialSmall 0) (spatialSmall 1) q (fun j hj => h j (hd ▸ hj)) 253 change _ ≤ 2*exp (-((2*cyclicDistance (l := 2) 0 1 : ℕ) : ℝ)*(m*R)) at H 254 rw [hd] at H 255 simpa only [Nat.cast_ofNat] using H 256 257 -- Every internal orientation equal to the identity fixes arbitrary replicas. 258 example {l : ℕ+} (Q : WilsonReplicas l → ℝ) (z : WilsonReplicas l) : 259 colorAverage (fun _ : Fin 4 => (1 : gaugeGroup.image)) Q z = Q z := 260 colorAverage_eq_of_commute _ _ _ (fun _ _ => Commute.one_left _) 261 262 end 263 End of Lean applications 264 265 Rejected source mutations 266 LogSign rejected exit=1 267 MutantLogSign.lean:38:101: error: unsolved goals 268 StapleNormalization rejected exit=1 269 MutantStapleNormalization.lean:66:2: error: ring failed, ring expressions not equal 270 ForestOrientation rejected exit=1 271 MutantForestOrientation.lean:51:54: error: Application type mismatch: The argument 272 WeightLoss rejected exit=1 273 MutantWeightLoss.lean:27:2: error: 'change' tactic failed, pattern 274 CutGeometry rejected exit=1 275 MutantCutGeometry.lean:58:48: error: Tactic `decide` proved that the proposition 276 Independence rejected exit=1 277 MutantIndependence.lean:62:79: error: unsolved goals 278 WrongFreeEdge rejected exit=1 279 MutantWrongFreeEdge.lean:51:82: error: Tactic `decide` proved that the proposition 280 AbsoluteAfterAverage rejected exit=1 281 MutantAbsoluteAfterAverage.lean:48:35: error: Application type mismatch: The argument