-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
.eq_def
theorem generation with messy universes
closes #4673
- Loading branch information
1 parent
4ed7947
commit b6b2816
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
def iscoh_wmap {A:Type _}{B:Type _} : (A -> B) -> Type _ := | ||
fun f => @Subtype (B -> A) fun r => ∀ a , a = r (f a) | ||
def wmap : Type _ -> Type _ -> Type _ := | ||
fun A B => @Sigma (A -> B) fun f => iscoh_wmap f | ||
|
||
def hgroup : Nat -> Type _ -> Type _ | ||
| .zero , T => wmap T T | ||
| .succ a, T => wmap (hgroup a T) (hgroup a T) | ||
|
||
example : hgroup 0 Unit := by | ||
unfold hgroup | ||
admit | ||
|
||
-- TODO: we should improve univere inference. It should be | ||
-- hgroup.{u} : Nat → Type u → Type u | ||
/-- | ||
info: hgroup.{u_1, u_2} : Nat → Type (max u_1 u_2) → Type (max u_1 u_2) | ||
-/ | ||
#guard_msgs in | ||
#check hgroup |