MachineSex/figures
Giorgio Gilestro db9452c9d4 E12: model speciation — the merge-compatibility limit of the sexual society
New analytic result for the evolution-of-sex paper: how far can two lineages
diverge before recombination (model merging) stops working? Frames merge failure
as biological reproductive isolation via Bateson-Dobzhansky-Muller
incompatibilities. src/knowledge/speciation.py, kind: speciation, on the E7-E11
genotype machinery (pure seeded NumPy, bitwise-reproducible; no external
simulator whose separate RNG would break that).

- BDM construction (E12.yaml): ancestor + two lineages substituting disjoint loci
  (each parent adaptive, incompatibility-free), a fraction rho of cross-lineage
  pairs are BDMIs. Sweeping divergence d reproduces the predicted
  compatible -> outbreeding depression -> hybrid inviability curve; the isolation
  cliff moves to lower d as epistasis density rises (iso at d=20: 0.00/0.03/0.50
  for rho 0.1/0.25/0.5); incompatibilities snowball ~ (d/2)^2 (Orr-Turelli).
- NK variant (E12_nk.yaml): parents = hill-climbed local optima; the epistasis
  wedge — recombination gain flips 0 -> -0.13 and OD rate 0 -> 0.90 as ruggedness
  K rises. At matched divergence, mergeability is governed by epistasis, the axis
  no divergence-only ML merge predictor captures.

plot_E12.py (3-panel), +7 tests (138 green), README with honest positioning
(concedes the empirical phenomenon to Pari 2024 / Zhou 2026 + permutation
artefacts to Git Re-Basin; claims the predictive theory + the epistasis wedge).
Wired into make layer1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 22:40:02 +01:00
..
_figlib.py Layer 1 core: Wright-Fisher knowledge-transmission model with E1-E2 2026-07-04 18:10:18 +02:00
mnist_montage.py neural: real-MNIST external-validity tier (collapse + grounding) 2026-07-05 09:19:36 +01:00
plot_architectures.py neural: grounding refinement + all five Layer-1.5 figures 2026-07-05 08:14:19 +01:00
plot_bridge.py neural: grounding refinement + all five Layer-1.5 figures 2026-07-05 08:14:19 +01:00
plot_collapse.py neural: grounding refinement + all five Layer-1.5 figures 2026-07-05 08:14:19 +01:00
plot_E1.py Layer 1 core: Wright-Fisher knowledge-transmission model with E1-E2 2026-07-04 18:10:18 +02:00
plot_E2.py Layer 1 complete: E3-E6 + E2 analysis add-ons 2026-07-04 18:54:42 +02:00
plot_E3.py Layer 1 complete: E3-E6 + E2 analysis add-ons 2026-07-04 18:54:42 +02:00
plot_E4.py Layer 1 complete: E3-E6 + E2 analysis add-ons 2026-07-04 18:54:42 +02:00
plot_E5.py Layer 1 complete: E3-E6 + E2 analysis add-ons 2026-07-04 18:54:42 +02:00
plot_E6.py Layer 1 complete: E3-E6 + E2 analysis add-ons 2026-07-04 18:54:42 +02:00
plot_E7.py society: multi-locus recombination frame — the vertical claim (E7/E8) 2026-07-05 10:51:41 +01:00
plot_E8.py society: multi-locus recombination frame — the vertical claim (E7/E8) 2026-07-05 10:51:41 +01:00
plot_E9.py society: make the sexual-transmission model rigorous (E9 epistasis, E10 directed sex) 2026-07-05 11:13:37 +01:00
plot_E10.py society: make the sexual-transmission model rigorous (E9 epistasis, E10 directed sex) 2026-07-05 11:13:37 +01:00
plot_E11.py society: the dynamic Lamarckian society — the vertical claim (E11 / C3) 2026-07-05 12:34:01 +01:00
plot_E12.py E12: model speciation — the merge-compatibility limit of the sexual society 2026-07-08 22:40:02 +01:00
plot_grounding.py neural: grounding refinement + all five Layer-1.5 figures 2026-07-05 08:14:19 +01:00
plot_kernel.py knowledge: learning kernel — model the estimator bias, not just sampling 2026-07-05 10:23:33 +01:00
plot_llm_directed.py llm_directed: directed sex (breed offspring + select on verifier) — E10 in real weights 2026-07-05 18:35:04 +01:00
plot_llm_merge.py llm_merge_hpc: the 7B firm-up makes the Fisher-Muller sign decisive 2026-07-05 17:32:51 +01:00
plot_llm_moe.py llm_moe: the union operator (route/max-merge) vs fusion — and the regime flips at scale 2026-07-05 17:53:47 +01:00
plot_mnist.py neural: real-MNIST external-validity tier (collapse + grounding) 2026-07-05 09:19:36 +01:00
plot_recombination.py neural: grounding refinement + all five Layer-1.5 figures 2026-07-05 08:14:19 +01:00