Skip to content

Commit

Permalink
Add hcomp case for coe in HITs
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasHoefer committed Jun 26, 2024
1 parent c00afc9 commit e1ac604
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PosTT/Eval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ import PosTT.Terms
import PosTT.Values
import PosTT.Poset

-- import Debug.Trace
-- import {-# SOURCE #-} PosTT.Pretty -- only for debugging


--------------------------------------------------------------------------------
---- Utilities
Expand Down Expand Up @@ -502,7 +499,10 @@ doCoeHSum r₀ r₁ i d lbl f (VHCon c vs is sys) | Just tel <- lookup c lbl =
(mapSys sys (doCoeHSum (re r₀) (re r₁) i d lbl f))
-- we do not restrict the line (λHSum d lbl)f because this formally yields (λHSum d lbl)fη
-- where η only projects onto the quotient with the additional equation.
doCoeHSum r₀ r₁ i d lbl f (VNeu k) = VNeuCoeHSum r₀ r₁ i d lbl f k
doCoeHSum r₀ r₁ i d lbl f (VHCompHSum r r' _ _ u₀ sys) = -- the two d lbl should be equal
let= TrIntClosure i (VHSum d lbl) f
in doHComp r r' (ℓ $$ r₁) (doCoe r₀ r₁ ℓ u₀) (mapSys sys $ rebindI $ \_ -> doCoe (re r₀) (re r₁) (re ℓ))
doCoeHSum r₀ r₁ i d lbl f (VNeu k) = VNeuCoeHSum r₀ r₁ i d lbl f k


--------------------------------------------------------------------------------
Expand Down

0 comments on commit e1ac604

Please sign in to comment.