fix some comments

This commit is contained in:
rhiannon morris 2023-11-27 06:43:48 +01:00
parent 47069a9316
commit 2cafb35bc1

View file

@ -83,7 +83,7 @@ isTagHead (Ann (Tag {}) (Enum {}) _) = True
isTagHead (Coe {}) = True isTagHead (Coe {}) = True
isTagHead _ = False isTagHead _ = False
||| an expression like `0 ∷ ` or `suc n ∷ ` ||| an expression like `𝑘` for a natural constant 𝑘, or `suc n ∷ `
public export %inline public export %inline
isNatHead : Elim {} -> Bool isNatHead : Elim {} -> Bool
isNatHead (Ann (Nat {}) (NAT {}) _) = True isNatHead (Ann (Nat {}) (NAT {}) _) = True
@ -160,11 +160,13 @@ isK (K {}) = True
isK _ = False isK _ = False
||| if `ty` is a type constructor, and `val` is a value of that type where a ||| true if `ty` is a type constructor, and `val` is a value of that type where
||| coercion can be reduced. which is the case if any of: ||| a coercion can be reduced
||| - `ty` is an atomic type |||
||| - `ty` has η ||| 1. `ty` is an atomic type
||| - `val` is a constructor form ||| 2. `ty` has an η law that is usable in this context
||| (e.g. η for pairs only exists when σ=0, not when σ=1)
||| 3. `val` is a constructor form
public export %inline public export %inline
canPushCoe : SQty -> (ty, val : Term {}) -> Bool canPushCoe : SQty -> (ty, val : Term {}) -> Bool
canPushCoe sg (TYPE {}) _ = True canPushCoe sg (TYPE {}) _ = True