Encode arity as `Fin.t n` and get rid of functional extensionality axiom #16
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 198 lines diff across 2 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.317
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16"
general
weight: 0.35
olympichek
Overview
This PR implements a refactoring of Bonak to represent arity using
Fin.t ninstead of an arbitrary type. This PR addsVec.v, a representation of vectors asn-length dependent tuples and uses them to encode layers in νSet construction.We prove various lemmas for them, such as:
And the extensionality principle:
The latter replaces the use of
functional_extensionality_depaxiom in the proofs of coherences for layers.The vector module is parameterised over the module type encapsulating the algebra of Σ-types. This generality is added in order to support not only the current implementation limited to h-sets, but also the work-in-progress extension to h-groupoids.
Achievements
This refactoring allows us to make (after also making some opaque lemmas transparent) the
SemiSimplicial4example fully computable, without being stuck on opaquefunctional_extensionality_depaxiom.Tradeoffs
Encoding of layers with vectors requires the use of a few additional lemmas in the proofs of coherences. In
mkCohLayerand the base case ofmkCohPaintingwe now have to perform a rewrite withvec_nth_maplemma. Similar rewrites are also added to νDgnSet coherences.For this reason I make this PR to the newly created
no-funextbranch rather than tomaster.Update: another downside of this branch is that apparently it makes compilation time slightly worse.