-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
8 changed files
with
92 additions
and
24 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,9 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:jammy | ||
|
||
USER vscode | ||
WORKDIR /home/vscode | ||
ENV HOME=/home/vscode | ||
|
||
RUN curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none | ||
|
||
ENV PATH="/home/vscode/.elan/bin:${PATH}" |
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,21 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
{ | ||
"name": "Lean DevContainer on Ubuntu", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"onCreateCommand": "lake exe cache get! && lake build", | ||
|
||
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}", | ||
|
||
"customizations": { | ||
"vscode" : { | ||
"extensions" : [ | ||
"leanprover.lean4", | ||
"mhutchie.git-graph" | ||
] | ||
} | ||
} | ||
} |
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,19 @@ | ||
import Mathlib.Data.Fintype.Quotient | ||
|
||
/-! | ||
This files contains missing API for `Quotient`. | ||
Hopefully this PR gets merged to mathlib and this file won't be necessary | ||
https://github.com/leanprover-community/mathlib4/pull/5576 | ||
-/ | ||
|
||
namespace Quotient | ||
|
||
variable {ι : Type*} [Fintype ι] [DecidableEq ι] {α : ι → Type*} [S : ∀ i, Setoid (α i)] {β : Sort*} | ||
|
||
/-- Lift a function on `∀ i, α i` to a function on `∀ i, Quotient (S i)`. -/ | ||
def finLiftOn (q : ∀ i, Quotient (S i)) (f : (∀ i, α i) → β) | ||
(h : ∀ (a b : ∀ i, α i), (∀ i, a i ≈ b i) → f a = f b) : β := | ||
(Quotient.finChoice q).liftOn (β:=β) f h |
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