Replace coinduction with an ω-limit construction #35
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 543 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.377
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #35"
general
weight: 0.35
olympichek
Replacing coinduction with an ω-limit construction
Overview
The correspondence between the indexed and fibred presentations of ν-sets (#33) assumes univalence, functional extensionality, and one additional axiom on the indexed side:
The axiom was needed because the indexed construction was closed by a coinductive tower, and Rocq's rules for coinductive records do not derive this identity principle. The intensional-stream model of Boulier, Pédrot, and Tabareau (The Next 700 Syntactical Models of Type Theory, Theorem 13) shows that bisimilarity and identity can consistently differ for coinductive streams, even in the presence of univalence.
This pull request represents the tower instead as the ω-limit of its chain of finite prefixes, following the construction of M-types without coinductive types in Ahrens, Capriotti, and Spadotti, Non-wellfounded Trees in Homotopy Type Theory (arXiv:1504.02949). On this representation the extensionality principle is provable: the new
Equiv/Extensionality.vderivesνSetsEquivEq, the conversion of a levelwise equivalence of towers into an equality, from univalence and functional extensionality. The change is applied uniformly to the three towers (νSetFrom,νGpdFrom, and the fibredνDgnSetFrom) and to the levelwise equivalence relation itself (νSetsEquiv), so no coinductive type remains in the development, and the final resultpresheafEqνSets: Presheaf = νSetsassumes exactly univalence and functional extensionality.The ω-limit tower
The coinductive closure
becomes a record over the chain of finite prefixes:
(νSetAt l.+1).(prefix)is definitionally a Σ-type over(νSetAt l).(prefix), so the bonding map is first projection, andthis/nextbecome derived destructors. Chains built by iteration (ana) bond byeq_refl, so the destructors of the resulting tower compute by conversion; the newEval computeexamples inνSet.vexercise this.The levelwise equivalence as a chain
The relation used by the round trip has the same recursive shape as the towers and receives the same representation:
νSetsEquiv SA SBis a coherent chain of per-level translation data (the filler equivalence and its restr-painting commutations), interpreted into translation towers by iteratingtrTowerStep. The witnessfg: νSetsEquiv (f (g X)) Xis a chain fixpoint in the style ofpshChain, bonding byeq_refl.Proving the extensionality theorem
νSetsEquivEq: νSetsEquiv SA SB -> SA = SBproceeds in three stages. An equality of towers is reduced to a coherent family of prefix paths (νSetsEqIntro); the destructor unfoldings are aligned with the stored chains (packPath); and the paths are generated by recursion over the witness's chain — at each level, univalence and functional extensionality turn the stored filler equivalences into the next prefix path, and path induction reduces the preservation step to a diagonal translation tower whose stored equivalences are pointwise identities, closed by layer extensionality andUIPof the frame HSets.Adaptations of the correspondence proof
The translation
f: Presheaf -> νSetsis likewise closed by a chain fixpoint (pshChain) witheq_reflbonding; the resulting computation of its destructors is what the round-trip proofs rely on.Face.vandνSetRoundtrip.vshed the chain helpers that existed only for the coinductive closure, andLib/RewLemmas.vandLib/SigT.vgain the path and Σ-type lemmas the new proofs use.| result | assumptions |
| --- | --- |
|
f,g,gf,fg| none ||
presheafEquivEq,νSetsEquivEq,presheafνSetsEquiv,presheafEqνSets| univalence and functional extensionality |