-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: zeramorphic <[email protected]>
- Loading branch information
1 parent
a1311ff
commit 0d4db1c
Showing
7 changed files
with
175 additions
and
26 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
// Place your con-nf workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | ||
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | ||
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | ||
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | ||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | ||
// Placeholders with the same ids are connected. | ||
// Example: | ||
// "Print to console": { | ||
// "scope": "javascript,typescript", | ||
// "prefix": "log", | ||
// "body": [ | ||
// "console.log('$1');", | ||
// "$2" | ||
// ], | ||
// "description": "Log output to console" | ||
// } | ||
"New file template": { | ||
"scope": "lean4", | ||
"prefix": "newfile", | ||
"body": [ | ||
"import ConNF.Setup.Params", | ||
"", | ||
"/-!", | ||
"# New file", | ||
"", | ||
"In this file...", | ||
"", | ||
"## Main declarations", | ||
"", | ||
"* `ConNF.foo`: Something new.", | ||
"-/", | ||
"", | ||
"noncomputable section", | ||
"universe u", | ||
"", | ||
"open Cardinal Ordinal", | ||
"", | ||
"namespace ConNF", | ||
"", | ||
"variable [Params.{u}]", | ||
"", | ||
"", | ||
"", | ||
"end ConNF", | ||
], | ||
"description": "New file template" | ||
} | ||
} |
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
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,40 @@ | ||
import ConNF.Setup.Params | ||
|
||
/-! | ||
# Type indices | ||
In this file, we declare the notion of a type index, and prove some of its basic properties. | ||
## Main declarations | ||
* `ConNF.TypeIndex`: The type of type indices. | ||
-/ | ||
|
||
noncomputable section | ||
universe u | ||
|
||
open Cardinal Ordinal | ||
|
||
namespace ConNF | ||
|
||
variable [Params.{u}] | ||
|
||
/-- Either the base type or a proper type index (an inhabitant of `Λ`). | ||
The base type is written `⊥`. -/ | ||
@[reducible] | ||
def TypeIndex := | ||
WithBot Λ | ||
|
||
@[simp] | ||
protected theorem TypeIndex.type : | ||
type ((· < ·) : TypeIndex → TypeIndex → Prop) = type ((· < ·) : Λ → Λ → Prop) := by | ||
rw [type_withBot] | ||
exact one_add_of_omega_le <| omega_le_of_isLimit Λ_type_isLimit | ||
|
||
@[simp] | ||
protected theorem TypeIndex.card : | ||
#TypeIndex = #Λ := by | ||
have := congr_arg Ordinal.card TypeIndex.type | ||
rwa [card_type, card_type] at this | ||
|
||
end ConNF |
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