fix some comments
This commit is contained in:
parent
47069a9316
commit
2cafb35bc1
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue