blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3517983137be1d7ea8d20272db061ad35296b315 | d5ff69c5608a867046609101d89910f1257aaf8c | /src/2020/functions/bijection_game.lean | 58a3427700bdc15f0302747d4961919519508189 | [] | no_license | jiaminglimjm/M40001_lean | c299ff574a22d3a636a2b9720dc9b5e853a3bab0 | c8bd8922f37f3e10e2d448f226798ebd0a2af232 | refs/heads/master | 1,672,312,761,737 | 1,603,095,035,000 | 1,603,095,035,000 | 304,831,347 | 0 | 0 | null | 1,603,094,893,000 | 1,602,922,986,000 | null | UTF-8 | Lean | false | false | 1,454 | lean | import tactic
-- Let's make bijections between ℕ, ℤ and ℚ.
#check infinite
#print prefix infinite
#print infinite
#print int.infinite
#check infinite.of_injective
example : infinite ℕ := by apply_instance
example : infinite ℤ := by show_term {apply_instance}
#check rat.of_int
example : infinite ℚ := infinite.of_... |
e3c389e3ea1ce80e8f8a0c06afffada5c90feb06 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/nat/examples/fib2.lean | 2ff8e444f0274206a485a572cbf3575c0ff728bc | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 1,166 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Show that tail recursive fib is equal to standard one.
-/
import data.nat
open nat
definition fib : nat → nat
| 0 := 1
| 1 := 1
| (n+2) := fib (n+1) +... |
be2db7a90e3f73c5c746e270fcdeb45ddde7b6dc | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/topology/local_homeomorph.lean | 42bbe797d9e0ef0477f933e7961197ecc1923995 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 27,695 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.equiv.local_equiv topology.continuous_on topology.homeomorph
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of ... |
5ec5dd4e283d1ccd194d42257e9528c60fe8f7a5 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Leanpkg/Resolve.lean | fc379eeefe78093557b474c918cf7a051d72db05 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,329 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
-/
import Leanpkg.Manifest
import Leanpkg.Proc
import Leanpkg.Git
namespace Leanpkg
def Assignment := List (String × String)
namespace Assign... |
af3e87af711e68fc0e2e6daae6f8925769cbd687 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/equiv/embedding.lean | 666ab82e4d65283dedc7533cc9225c893998eb0f | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,779 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import logic.embedding
import data.set.lattice
/-!
# Equivalences on embeddings
This file shows some advanced equivalences on embeddings, useful for constructing la... |
8314ed4003181108bbfebedcecc39fd3d78687eb | 37336e9dcf558f325cf43bdf45bab5d8e455a3b4 | /M1F/2017-18/Example_Sheet_01/Question_07/M1F_sheet01_question07.lean | e8663d80199f3628202321a6cc930ebc556f6bdf | [] | no_license | rafaelbailo/xena | bfeab41b3b401c812689a4879d58f2ad046240b5 | fad865c3d1bac6279f9a77e8aa6ba7e0cd572e06 | refs/heads/master | 1,626,002,809,060 | 1,507,793,086,000 | 1,507,793,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 590 | lean | import topology.real
-- real numbers live in here in Lean 3.3.0 mathlib
-- NB you need mathlib installed to get this working.
-- of_rat is the injection from the rationals to the reals.
def A : set ℝ := { x | x^2 < 3}
def B : set ℝ := {x | (∃ y : ℤ, x = of_rat y) ∧ x^2 < 3}
def C : set ℝ := {x | x^3 < 3}
theorem part... |
a945a11253288a4f246428dd8c5073c7cc30f330 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/list/zip.lean | 1539eab5120d39790002956f9ca8389cd2a19b76 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 5,453 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.basic
universes u v w z
variables {α : Type u} {β : Type v} {γ : Type w} {δ : Type z}
open nat
namespace list
/- zip & unzip -/
@[si... |
e56356f4d638df8df14b0b8ee119db5526effbd9 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/galois_stdlib/src/galois/data/buffer.lean | 29af7a83d4a72d12494a049825bb8edae36c0133 | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 12,974 | lean | /-
Provides a decidable_eq instance for buffer.
-/
import data.buffer
import galois.algebra.ordered_group
import galois.data.array
import galois.data.char
import galois.data.fin
import galois.data.nat
namespace galois
namespace buffer
open buffer
section
variable {α:Type _}
open galois
-- Taken from mathlib
@[simp... |
2c5c64d90d489a4e04b35f1e5345fcd56dd1d28f | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/complex/basic.lean | 41c059ef38ddc574ee6d4c5a71d745a487ec76a7 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 7,781 | lean | /-
Copyright (c) Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.deriv
import analysis.normed_space.finite_dimension
/-!
# Normed space structure on `ℂ`.
This file gathers basic facts on complex numbers ... |
3090a57e7233041737554d8214ed3ae83a87d56a | 7a76361040c55ae1eba5856c1a637593117a6556 | /src/lectures/love00_preface_demo.lean | ad912da09bee71e3c729623cdea20ff2335c1850 | [] | no_license | rgreenblatt/fpv2021 | c2cbe7b664b648cef7d240a654d6bdf97a559272 | c65d72e48c8fa827d2040ed6ea86c2be62db36fa | refs/heads/main | 1,692,245,693,819 | 1,633,364,621,000 | 1,633,364,621,000 | 407,231,487 | 0 | 0 | null | 1,631,808,608,000 | 1,631,808,608,000 | null | UTF-8 | Lean | false | false | 3,273 | lean |
import data.nat.prime
import tactic.linarith
/-! # LoVe Preface
## Proof Assistants
Proof assistants (also called interactive theorem provers)
* check and help develop formal proofs;
* can be used to prove big theorems, not only logic puzzles;
* can be tedious to use;
* are highly addictive (think video games).
A... |
6972065e8678d485cf8a01cb9d2113d9e7006215 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/data/sigma.lean | 2f1b811266c6d789aa5ab5dd0eba84ebcb758001 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,481 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.sigma
Author: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
Sigma types, aka dependent sum.
-/
import logic.cast
open inhabited eq.ops sigma.ops
namespace sigma
un... |
52f233acc29075cace1beca7eeda1b73ca2b1eb7 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/io_fs_2.lean | 4a0cdc9be3612e34e77184788c07219c11008b8d | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 2,115 | lean | import system.io
open io io.fs
def TEST_DIR : string := "_test_dir"
def TEST_DIR1 : string := "_test_dir1"
def TEST_DIR2 : string := "_test_dir2"
def TEST_FILE_1 : string := "_test_file1"
def TEST_FILE_2 : string := "_test_file2"
meta def ycheck (s : string) (t : io bool) : io unit :=
do r ← t,
if r then return (... |
05287f9b3b3f8e1eeef84a6f1f6bd707cfbb3653 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/anonymousCtor.lean | d9f8427c86776b243e50157e8db73858efcefb5b | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 95 | lean | #lang lean4
inductive S
| mk : List S → String → S
def f (s : String) : S :=
⟨[], s⟩
|
59caef5f9f1ba5771b289fa6587ea03560b490ab | efd582de089592b7c646b48c90e85d8db560e581 | /src/matrix_cookbook/2_derivatives.lean | 50c71b5eeff218318ddc074df9279cb8faa3141a | [
"MIT"
] | permissive | Daniel-Packer/lean-matrix-cookbook | 3e44ce059a16e5334d6c95f8e9b87acbdeb838e9 | d7d5079e2513c2800f76915f1f30953c9676673c | refs/heads/master | 1,693,182,725,966 | 1,636,125,196,000 | 1,636,125,196,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,418 | lean | import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.matrix.trace
import analysis.calculus.deriv
import data.matrix.kronecker
import data.matrix.hadamard
import analysis.special_functions.exp_log
/-! # Derivatives -/
variables {ι : Type*} {R : Type*} {m n p : Type*}
variables [fintype m] [fintype n]... |
93af760e01e59fbcbe8228f339c5ccd54cb084a5 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/specific_groups/cyclic.lean | 3499df0fee3b921ff0698655436b649c25ab70d1 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 22,218 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.order
import data.nat.totient
import group_theory.order_of_element
import tactic.group
import group_theory.exponent
/-!
# Cyclic groups... |
74396b833ef3d3a98d51e2a888d884c91665a957 | f57749ca63d6416f807b770f67559503fdb21001 | /hott/types/nat/hott.hlean | 81fd9102755f0c8eb7fb64ff80ddcd39a612a3cd | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,325 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about the natural numbers specific to HoTT
-/
import .basic
open is_trunc unit empty eq equiv
namespace nat
definition is_hprop_le [instance] (n m : ℕ)... |
809e2575841f4836bdceea7bae93fa399de1f330 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/missingSizeOfArrayGetThm.lean | 058e020c0a26b9b15c308932f56fc27bfc74e686 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 430 | lean | inductive Node (Data : Type) : Type where
| empty : Node Data
| node (children : Array (Node Data)) : Node Data
| leaf (data : Data) : Node Data
def Node.FixedBranching (n : Nat) : Node Data → Prop
| empty => True
| node children => children.size = n ∧ ∀ i, (children.get i).FixedBranching n
| leaf _ => True
s... |
caf7eb1ad6c525f5ec244dc55a12b1c7ace0525c | ff5230333a701471f46c57e8c115a073ebaaa448 | /tests/lean/run/mrw.lean | 6b8130151b0c5fd869e13d895243b3693db9275d | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 134 | lean | example (n : nat) : ∃ x, x + n = n + 1 :=
begin
constructor,
fail_if_success {rw [zero_add] {unify := ff}},
rw [add_comm]
end
|
961402fc91389c363001e6f5f00215bad040c6fa | 618003631150032a5676f229d13a079ac875ff77 | /src/analysis/mean_inequalities.lean | 82e15ed80cc9b42a28fab77437651f986ec4bf4f | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 6,816 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.convex.specific_functions
import analysis.special_functions.pow
/-!
# Mean value inequalities
In this file we prove various inequalities between m... |
136c51a8a961daa9467854d064e33fc23634403f | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/span.lean | 54c850ab6fabd557be8d03803544af90dbd401cb | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 35,886 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov, Frédéric Dupuis,
Heather Macbeth
-/
import linear_algebra.basic
import order.compactly_generated
import order.omega_co... |
74805452e23aca135cf3a12dddb0e9bbee3ef919 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/dual.lean | d89b4bf590847629b02f497ebf82151bfdaaab12 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 24,717 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian Glöckle
-/
import linear_algebra.finite_dimensional
import linear_algebra.projection
/-!
# Dual vector spaces
The dual space of an R-module M is the R-module o... |
7bf4e45c52715a76fbae151efcd019e4160eec96 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/computability/language.lean | da3e23981ef011b1cf67829972decd95e53827f3 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,747 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import algebra.group_power.order
import data.list.join
import data.set.lattice
/-!
# Languages
This file contains the definition and operations on formal languages over a... |
17ccf4b2387a994e651bb976f473799735a7e9c8 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/meta2.lean | 092de79beece71870661eaae814cddf7cb221710 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 16,649 | lean | import Init.Lean.Meta
open Lean
open Lean.Meta
set_option trace.Meta true
set_option trace.Meta.isDefEq.step false
set_option trace.Meta.isDefEq.delta false
set_option trace.Meta.isDefEq.assign false
def print (msg : MessageData) : MetaM Unit :=
trace! `Meta.debug msg
def check (x : MetaM Bool) : MetaM Unit :=
unles... |
6bf4660bcb8144e6a3efd6ad73fdd4e865001e6e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/polynomial/cardinal.lean | 6d74d7eb4df8ec86989c0471d061c838e8bb2705 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 798 | lean | /-
Copyright (c) 2021 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.mv_polynomial.cardinal
import data.mv_polynomial.equiv
/-!
# Cardinality of Polynomial Ring
The reuslt in this file is that the cardinality of `polynomial R`... |
699646e923def490a165e7b14272e355e48e9571 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Parser/Attr.lean | 69785a09dc71401a5e905c5b437f5dbf8c48064b | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,048 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Parser.Basic
import Lean.Parser.Extra
namespace Lean.Parser
builtin_initialize
registerBuiltinParserAttribute `builtinPrioParser `prio Leadi... |
5266d4df8a1c9b6863dda66781f7a553d7c7c58e | be30445afb85fcb2041b437059d21f9a84dff894 | /abstract.hlean | 6daaf00e19db6e31375f6063e4e6cdb72557f0c1 | [
"Apache-2.0"
] | permissive | EgbertRijke/GraphModel | 784efde97299c4f3cb1760369e8a260e02caafd5 | 2a473880764093dd151554a913292ed465e80e62 | refs/heads/master | 1,609,477,731,119 | 1,476,299,056,000 | 1,476,299,056,000 | 58,213,801 | 6 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,772 | hlean | import types
open eq funext
universe variable u
-- We attempt to formalize a weak notion of model of type theory using only homotopy-invariant
-- tools. We have two examples in mind:
-- - it should be possible to obtain such a model from a univalent universe,
-- - given a univalent universe, there ... |
74863ca41b59ff3c0e6639015a65f331361a6152 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Util/Heartbeats.lean | 275eb4c09fdba59e5ca7bcb8dbc5599381b62e6e | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 840 | lean | /-
Copyright (c) 2023 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
namespace Mathport
@[extern "lean_set_max_heartbeat"]
opaque setMaxHeartbeat (max : USize) : BaseIO Unit
@[extern "lean_reset_heartbeat"]
opaque resetHeartbe... |
7d3e1d63944bd2231eb6a598184fed6848f045ed | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/linear_algebra/basis.lean | fda0c874741b2b7254601f69ccd8ed206b38804d | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 52,160 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp
-/
import algebra.big_operators.finsupp
import algebra.big_operators.finprod
import data.fintype.card
import linear_algebra.finsupp
i... |
61ab22257e4163ea7ff26767f60d2ee53b56e011 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/measure_theory/set_integral.lean | 4ba1b93072c392ee2c60069d1d00bc372d2796dc | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 14,976 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.bochner_integration
import measure_theory.indicator_function
import measure_theory.lebesgue_measure
/-!
# Set integral
Integrate a function over... |
f9f56aa338fd70563b0a21d297a10d27d8e23a5b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/unfold_rec3.lean | 8ee62ebf2aa29a0a20ab86401d5bb218e6a1a47d | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 244 | lean | open nat
definition nrec [recursor] := @nat.rec
definition myadd x y :=
nrec y (λ n r, succ r) x
theorem myadd_zero : ∀ n, myadd n 0 = n :=
begin
intro n, induction n with n ih,
reflexivity,
esimp [myadd],
state,
rewrite ih
end
|
4afb46ee3ebbb8aa34eb53c1733a2c7681407d17 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/group_power/identities.lean | ad41dc3407a13aaa8278eaf69ec1517218b069d7 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,195 | lean | /-
Copyright (c) 2020 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bryan Gin-ge Chen, Kevin Lacker
-/
import tactic.ring
/-!
# Identities
This file contains some "named" commutative ring identities.
-/
variables {R : Type*} [comm_ring R]
{a b x₁ ... |
65e188ba795e24620270f63d3cebc92a5a389acb | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/quotient.lean | a0c81928181a78ee3d3a20525a488cd2fffea77b | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 15,479 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Thomas Browning
-/
import algebra.hom.group_action
import data.fintype.big_operators
import dynamics.periodic_pts
import group_theory.group_action.conj_act
import group_the... |
cfc1df44ba2ce6246f6ace257b1cee098532b59a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/holor.lean | db5bee610d7f07b0c5bd07b4d1f43425440547f0 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 14,759 | lean | /-
Copyright (c) 2018 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import algebra.module.pi
import algebra.big_operators.basic
/-!
# Basic properties of holors
Holors are indexed collections of tensor coefficients. Confusin... |
bc3ccabcbcd48b8a833af5c6315014f5bf8aa62a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/adic_completion.lean | 0bf620df633aa5fbc6627e473a0a229a566d0d3b | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 7,702 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import linear_algebra.smodeq
import ring_theory.ideal.operations
/-!
# Completion of a module with respect to an ideal.
In this file we define the notions of Hausdorff, prec... |
2dc3034e0fce3d806a1fe26571e328ea5bb25832 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/category_theory/instances/topological_spaces.lean | 77ff2856e1f1278646f93121fa2b3e6a5764cbff | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 5,122 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Patrick Massot, Scott Morrison, Mario Carneiro
import category_theory.concrete_category
import category_theory.full_subcategory
import category_theory.functor_category
import ca... |
6e32e5c2964bec3bc2af1e6c722e84814244d9b3 | 6df8d5ae3acf20ad0d7f0247d2cee1957ef96df1 | /Exams/exam_1.lean | 8011a9c6a14579ef1f6e7a460918aa3bd8ec47e2 | [] | no_license | derekjohnsonva/CS2102 | 8ed45daa6658e6121bac0f6691eac6147d08246d | b3f507d4be824a2511838a1054d04fc9aef3304c | refs/heads/master | 1,648,529,162,527 | 1,578,851,859,000 | 1,578,851,859,000 | 233,433,207 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,628 | lean | -- CS2102 F19 Exam #1
--Derek Johnson dej3tc
--10/10/19
/-
#1 [10 points]
Complete the following definitions to give examples of
literal values of specified types. Use lambda expressions
to complete the questions involving function types. Make
functions (lambda expressions) simple: we don't care what
the functions... |
185847859f5bbaa3fbd272d3ad6c0cd8c2c04680 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/lie/classical.lean | 0427cc686d174634e62a8bec1d613e93ad691fd0 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 13,507 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.invertible
import algebra.lie.basic
import linear_algebra.matrix
/-!
# Classical Lie algebras
This file is the place to find definitions and basic properti... |
67f89994ce6ad78b850bfcabf98b3ccd9a632708 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20171217-issue-1552.lean | 1b1dde552e3472fb2f4480bec10668739ff173d3 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,136 | lean | structure Category :=
( Obj : Type )
( Hom : Obj → Obj → Type )
(compose : Π { X Y Z : Obj }, Hom X Y → Hom Y Z → Hom X Z)
(associativity : ∀ { W X Y Z : Obj } (f : Hom W X) (g : Hom X Y) (h : Hom Y Z),
compose (compose f g) h = compose f (compose g h))
attribute [ematch] Category.associativity
structur... |
720259c257d46e22a941d8aa8c8f920d31030f5f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/529.lean | 2cef8973f8b39df7a87468b239ab70bcb28e5bf3 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 422 | lean | import Lean
namespace Foo
def f (x y : Nat) := x + y + x
scoped infix:65 " ++ " => f
end Foo
open Foo in
def f1 (x : Nat) := x ++ x
#print f1
def f2 (x : Nat) := open Foo in x ++ x
#print f2
open Foo in
#print f1
open Lean.Parser.Command in
def syntaxMatcher : Unit :=
match Lean.Syntax.missing with
| `(dec... |
5582ef9f0bcd034d6c81014379f9ae3a06810f3b | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/series/tempLevel01.lean | f94acbebfd28a4be734b6731bc8aab820020f509 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,117 | lean | import game.series.L01defs
namespace xena
-- begin hide
-- if we want to use sigma notation, use
-- import algebra.big_operators
-- open_locale big_operators
-- https://leanprover-community.github.io/mathlib_docs/algebra/big_operators.html
-- end hide
/-
If $\sum a_n$ converges, then $a_n \to 0$.
We take the ap... |
46d686936d98b1140576cfc85e68949a1ca756e9 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/logic/axioms/classical.lean | 26a8b3f4a5865f330a6f7c1ed9482ef224497bec | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,813 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
-- logic.axioms.classical
-- ======================
import logic.quantifiers logic.cast algebra.relation
open eq.ops
axiom prop_complete (a : Prop) : ... |
b4f4889ec6eec31c56c9dc1de01f3fe8768977d2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/string/basic_auto.lean | 81ea8e834121accec7b4c242fb98e56a5b08c47a | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,198 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.list.basic
import Mathlib.Lean3Lib.init.data.char.basic
universes l u_1
namespace Mathlib
/- In ... |
19ed879ec59a617175139616f73703fc334ead98 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/geometry/manifold/conformal_groupoid.lean | 423283f79a1ec155c2ffbe5ba45f8fdf4b12f96b | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 1,056 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang
-/
import analysis.calculus.conformal
import geometry.manifold.charted_space
/-!
# Conformal Groupoid
In this file we define the groupoid of conformal maps on normed space... |
9d90053d907fa808ea2c6e94e5e6b33970cc5b88 | da3a76c514d38801bae19e8a9e496dc31f8e5866 | /library/init/meta/interactive.lean | 3b6616f5962463a7ce12f016e8a99ebaefc69888 | [
"Apache-2.0"
] | permissive | cipher1024/lean | 270c1ac5781e6aee12f5c8d720d267563a164beb | f5cbdff8932dd30c6dd8eec68f3059393b4f8b3a | refs/heads/master | 1,611,223,459,029 | 1,487,566,573,000 | 1,487,566,573,000 | 83,356,543 | 0 | 0 | null | 1,488,229,336,000 | 1,488,229,336,000 | null | UTF-8 | Lean | false | false | 23,658 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.rewrite_tactic init.meta.simp_tactic
import init.meta.smt.congruence_closure init.category.combinators
import init... |
7ae15ab595e5d9a12a4b9a304b9794c2cd92304f | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/tactic/omega/int/main.lean | 7fa0b5ae7bd6f840b804f985b0151106ece08b41 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 6,297 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Main procedure for linear integer arithmetic. -/
import tactic.omega.prove_unsats
import tactic.omega.int.dnf
import tactic.omega.misc
open tactic
namespace omega
namespace int... |
657065186feebc9dffc2bc19821d2eec53dd19bb | 9cba98daa30c0804090f963f9024147a50292fa0 | /geom/spacetime.lean | f77dc0de1a7792099b64c4140175d9c6ed8f904b | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 19,483 | lean | import .geom3d
import ..time.time
open_locale affine
section foo
universes u
#check add_maps
abbreviation geom3d_stamped_frame :=
(mk_prod_spc (geom3d_std_space) time_std_space).frame_type
abbreviation geom3d_stamped_space (f : geom3d_stamped_frame) := spc scalar f
def geom3d_stamped_std_frame :=
(mk_pro... |
d99b2a8a05de7414c9bba338c55fe266da5188bf | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/PreDefinition.lean | f8a296e3e2438e8af02a24156226d4a684a2e415 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 323 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.Structural
import Lean.Elab.PreDefinition.Main
import Lean.Elab.PreDefinition.MkInhabita... |
0c34c8aec9eb69b8c9ae17874762f3ac04110c9f | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/sym2.lean | cfe2cf630195ca570f66fc0d4ecb6db18eee5040 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 10,271 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kyle Miller.
-/
import tactic.linarith
import data.sym
open function
open sym
/-!
# The symmetric square
This file defines the symmetric square, which is `α × α` modulo
swapping. This i... |
193280ee396c44dfbeba9c783fd7ffeb4fe581d2 | b7fc5b86b12212bea5542eb2c9d9f0988fd78697 | /src/solutions/wednesday/topological_spaces.lean | f55ec7ba2f18ccddfab0c1e2748a60d74c0368c1 | [] | no_license | stjordanis/lftcm2020 | 3b16591aec853c8546d9c8b69c0bf3f5f3956fee | 1f3485e4dafdc587b451ec5144a1d8d3ec9b411e | refs/heads/master | 1,675,958,865,413 | 1,609,901,722,000 | 1,609,901,722,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,529 | lean | import tactic
import data.set.finite
import data.real.basic -- for metrics
/-
# (Re)-Building topological spaces in Lean
Mathlib has a large library of results on topological spaces, including various
constructions, separation axioms, Tychonoff's theorem, sheaves, Stone-Čech
compactification, Heine-Cantor, to name bu... |
0ca02b89eda87e824be88da10b138c840c499bc9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/category/NonemptyFinLinOrd.lean | b8a1b4a25f0f19fe548fff7126c5436472700d88 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 3,251 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.fintype.order
import order.category.LinearOrder
/-!
# Nonempty finite linear orders
This defines `NonemptyFinLinOrd`, the category of nonempty finite li... |
f9ba55fcbe44b1f3ad383e48bc17d9ee0ad79d23 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/number_theory/function_field.lean | 745e5f77ad3f2a9dfaef2536d8902b377c176c65 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,283 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Ashvni Narayanan
-/
import ring_theory.algebraic
import ring_theory.localization
import ring_theory.integrally_closed
/-!
# Function fields
This file defines a function fie... |
98885f5a0b5f88e5e95296a4326e3f5836853db5 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/linear_algebra/matrix.lean | 01350ea12c5f6c5160909cec235f772ee7cdb652 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,431 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Patrick Massot, Casper Putz
-/
import linear_algebra.finite_dimensional
import linear_algebra.nonsingular_inverse
import linear_algebra.multilinear
import linear_algebra... |
3b7adf3b0ce13f18f8acda910edbdabcc2191daf | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/intromacro.lean | d62157ee14f96a37997073e7718da9efbae055c4 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 571 | lean | new_frontend
structure S :=
(x y z : Nat := 0)
def f1 : Nat × Nat → S → Nat :=
by {
intro (x, y);
intro ⟨a, b, c⟩;
exact x+y+a
}
theorem ex1 : f1 (10, 20) { x := 10 } = 40 :=
rfl
def f2 : Nat × Nat → S → Nat :=
by {
intro (a, b) { y := y, .. };
exact a+b+y
}
#eval f2 (10, 20) { y := 5 }
theorem ex2 : f2... |
180e43aad29d13f2aa0240db03b827107b41e5fc | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/let1.lean | 38cb8b8dffdac511f76be480b728fb9cfc2e8be2 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 177 | lean | import standard
check
let f x y := x ∧ y,
g x := f x x,
a := g true
in λ (x : a),
let h x y := f x (g y),
b := h
in b
|
398914ded65320cb82b95f1180093794af72d331 | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/control/monad/state.lean | f0449e5f521f276ee3fb959ae08b2c70e8fc6f4a | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 374 | lean |
universes u v
namespace state_t
variables {σ α : Type u}
variables {m : Type u → Type u}
variables [monad m]
variables [is_lawful_monad m]
open is_lawful_monad
lemma get_bind (s : σ) (f : σ → state_t σ m α)
: (get >>= f).run s = (f s).run s :=
by { simp [bind,state_t.bind,get,state_t.get,monad_state.lift,pure_bind,... |
c78b342881c086ca47568e2b13a66bd41ad8ca1b | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world10/level4.lean | 04e0c686e9a233e44bcb4047003ce5b6501860a6 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 294 | lean | import game.world10.level3 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 4: `zero_le`
Another easy one.
-/
/- Lemma
For all naturals $a$, $0\leq a$.
-/
lemma zero_le (a : mynat) : 0 ≤ a :=
begin [nat_num_game]
use a,
rw zero_add,
refl,
end
end mynat -- hide
|
a925e70d835005673fd7332333ef42b7ff5c3ab4 | da3a76c514d38801bae19e8a9e496dc31f8e5866 | /library/init/meta/vm.lean | e752435a83738fcc6e8b4f99ee63f686adb987cb | [
"Apache-2.0"
] | permissive | cipher1024/lean | 270c1ac5781e6aee12f5c8d720d267563a164beb | f5cbdff8932dd30c6dd8eec68f3059393b4f8b3a | refs/heads/master | 1,611,223,459,029 | 1,487,566,573,000 | 1,487,566,573,000 | 83,356,543 | 0 | 0 | null | 1,488,229,336,000 | 1,488,229,336,000 | null | UTF-8 | Lean | false | false | 6,394 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.data.option.basic
meta constant vm_obj : Type
inductive vm_obj_kind
| simple | constructor | closure | native_closure... |
8f73b3abea4848b848f3ec659708ded51fd3ce6b | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/algebra/order/floor.lean | be5a80187cd7a3eecf444a3bc9c8939999596123 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 9,543 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import algebra.order.floor
import topology.order.basic
/-!
# Topological facts about `int.floor`, `int.ceil` and `int.fract`
This file proves statements about l... |
218e771b921761af8438910de79e6b7657fb6eeb | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/valuation/basic.lean | 6d4bc91c8e0d14cca52390033c2c73c44651be2d | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 15,590 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Johan Commelin, Patrick Massot
-/
import algebra.linear_ordered_comm_group_with_zero
import algebra.group_power
import ring_theory.ideal.operations
import algebra.punit... |
a068e3c98a399bf631942423bc0ff220dfef520f | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Elab/StrategyAttrs.lean | 12709cf1d9f38069f5fbe0906bd03930033d4b35 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,649 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Attributes
namespace Lean
/-
Elaborator strategies available in the Lean3 elaborator.
We want to support a more general approach, ... |
05c4786c150eae4a7e2ccae8f3ea89bb16422998 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/e4.lean | bba6aba47bffe57f4a230012327da86484cdfd38 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 665 | lean | prelude
definition Prop := Sort.{0}
definition false : Prop := ∀x : Prop, x
check false
theorem false.elim (C : Prop) (H : false) : C
:= H C
definition Eq {A : Type} (a b : A)
:= ∀ P : A → Prop, P a → P b
check Eq
infix `=`:50 := Eq
theorem refl {A : Type} (a : A) : a = a
:= λ P H, H
definition true : Prop
:= fa... |
a1b50cc5d09b66ab9bfcb2f2bad04b108c58e09b | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/pushJoinThroughUnionOnRight.lean | ef36d7190af50de50a93c1329022c00fcc4d4616 | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,804 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..UDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
definition rule:
forall ( Γ scm_t scm_account scm_bonus scm_dept scm_emp: Schema) (rel_t: relation scm_t) (rel_accoun... |
aefd61c1cef32b14a165d4caa3886042c59e44af | 3af272061d36e7f3f0521cceaa3a847ed4e03af9 | /src/hecke_operator.lean | f983bcf9e89e0146d3e448db5516119a5e85612f | [] | no_license | semorrison/kbb | fdab0929d21dca880d835081814225a95f946187 | 229bd06e840bc7a7438b8fee6802a4f8024419e3 | refs/heads/master | 1,585,351,834,355 | 1,539,848,241,000 | 1,539,848,241,000 | 147,323,315 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,071 | lean | import .SL2Z_generators
import .modular_forms
local notation `ℍ` := upper_half_space
local notation `Mat` := integral_matrices_with_determinant
lemma pos_det' {m : ℤ} (h : m > 0) {A : Mat m} : ↑(A.a) * ↑(A.d) - ↑(A.b) * ↑(A.c) > (0 : ℝ) :=
begin
cases A with a b c d det,
rw ←det at h,
rw [←int.cast_mul, ←int.c... |
7792c70ac2e8129aca98a5c4336b63ea237a9348 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/match_pattern2.lean | f0e3c6cee3e74b751f3694683d6f1a7f593b67f4 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,423 | lean | open tactic list expr
private meta definition pattern_telescope : expr → list expr → tactic (list expr × expr × expr)
| e ps :=
if expr.is_pi e = tt then do
n ← mk_fresh_name,
p ← return $ local_const n (binding_name e) (binding_info e) (binding_domain e),
new_e ← return $ instantiate_var (binding_... |
6b2983a4cc1e0e79660a4a9ba7136eaa43c18efc | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/Tactic/Match.lean | 2d856a4b6e8350ec01dfb6d12d4e6ff3e7eb50b0 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,170 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Match
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.Induction
namespace Lean.Elab.Tactic
structure AuxMatchTermState :=
(nextId... |
b448d9d854b37a85cae62fae86b88e6aecfd52e4 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/measure_theory/set_integral.lean | 53dc9298204dee5ad25e9b32132f015ecb3c076b | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 14,712 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.bochner_integration
import measure_theory.indicator_function
import measure_theory.lebesgue_measure
/-!
# Set integral
Integrate a function ove... |
256d5d9828e87ec9364b0254e2d45509fa28c5b4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/specific_groups/dihedral.lean | 8fb3cbccb2f80e110d697751deab2c68b19a3dcf | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,528 | lean | /-
Copyright (c) 2020 Shing Tak Lam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import data.zmod.basic
import group_theory.order_of_element
/-!
# Dihedral Groups
We define the dihedral groups `dihedral_group n`, with elements `r i` and `sr i` for... |
fc22ab8236e74e372614014c6d0b019558dfbc73 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Meta/Tactic/Cases.lean | 3633caa6898706376b55cb11d48e097dbfb31f7b | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,995 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Induction
import Lean.Meta.Tactic.Injection
import Lean.Meta.Tactic.Assert
import Lean.Meta.Tactic.Subst... |
bf050da66c475f40b2c68700e96f290c77aecde6 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/CoreM.lean | ab84d1d1c165073ea7e8ee4f56d0fbb2f22c35df | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 13,437 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.RecDepth
import Lean.Util.Trace
import Lean.Log
import Lean.Eval
import Lean.ResolveName
import Lean.Elab.InfoTree.Types
import Lean.MonadE... |
1d345bb17a9560e96cd151899b9ee06a57a85710 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/rel_iso.lean | 7abe2d404713da5ce927b42c5ee45a238e8d321e | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,469 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.group.defs
import data.equiv.set
import logic.embedding
import order.rel_classes
/-!
# Relation homomorphisms, embeddings, isomorphisms
This file def... |
99cf52574057fefad7e4db5b05008fd3a9da0251 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/order/fixed_points.lean | a403c99fdf957eb7bb904f22e3d08d0e0218a6dc | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 8,788 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
Fixed point construction on complete lattices.
-/
import order.complete_lattice
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
/-- The se... |
095cfcb81fa34a950728755714f10b5154dec78c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/to_interval_mod.lean | 2f0e79874c36a25cfe0c1cd2b75951401a233b33 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 22,615 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.module.basic
import algebra.order.archimedean
import algebra.periodic
import group_theory.quotient_group
/-!
# Reducing to an interval modulo its length
... |
8b89373c67da2bda60d29c1166f7be86bf943507 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/finsupp/lattice.lean | 8144dd6568635b6e565eb87730e7e861f9c7f9d9 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 4,240 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.finsupp.basic
import algebra.ordered_group
/-!
# Lattice structure on finsupps
This file provides instances of ordered structures on finsupps.
-/
open... |
d81bd98998132476f272c0f2a3d3a5f5863f7b1b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/filter/interval_auto.lean | c9b2b97cb7b019969bbe971d82e9ff3379fea76b | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,821 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.intervals.ord_connected
import Mathlib.order.filter.lift
import Mathlib.ord... |
fff4daed97953b63b9af5e16199aac24aaff3ee6 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/algebra/tower.lean | 67678dd229c7fe2340f1795c19f07757d74e2799 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,909 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.subalgebra
/-!
# Towers of algebras
In this file we prove basic facts about towers of algebra.
An algebra tower A/S/R is expressed by having instance... |
08fedf41a3ce6e81ea2e4500f249347db29bc4cd | a8a8012e62ebc4c8550b92736c0b20faab882ba0 | /ccat.hlean | 20d484a440b33d511e19eddedee4b0ce8165c396 | [] | no_license | fpvandoorn/Bergen-Lean | d02d173f79492498b0ee042ae6699a984108c6ef | 40638f1e04b6c681858127e85546c9012b62ab63 | refs/heads/master | 1,610,398,839,774 | 1,484,840,344,000 | 1,484,840,344,000 | 79,229,751 | 0 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 3,231 | hlean | -- A "concrete infinity-category", a subcategory of the inf-category of types
-- An object consists of a type plus some data
-- The arrows are the 'good' maps
import types.equiv
import .equiv
import .typeclass
open eq equiv is_equiv function typeclass
structure cCat.{u v} extends CC:typeclass.{u v} : Type.{(max u v)... |
40413a2352c24e212f28bb8df1c3295a7addf75b | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Compiler/IR/EmitC.lean | 81f40e17d916e7ee987c4983054f90144b6e5430 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 25,512 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Runtime
import Lean.Compiler.NameMangling
import Lean.Compiler.ExportAttr
import Lean.Compiler.InitAttr
import Lean.Compiler.IR.CompilerM
import... |
6567599d52b8ceffc308a991182af486e9d57acd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/quandle.lean | 866d9c0752fe89d7d449250e0af588251cfabc0d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 24,691 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import algebra.hom.equiv
import data.zmod.basic
import tactic.group
/-!
# Racks and Quandles
This file defines racks and quandles, algebraic structures for sets
that bije... |
dee4d0cacdf4fe1631fb7689ae3e7b95440d452d | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/real/pi.lean | 2da53d93d1554e0c32ffd92650e3a7698d93eff0 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,382 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import analysis.special_functions.trigonometric
namespace real
lemma pi_gt_sqrt_two_add_series (n : ℕ) : 2 ^ (n+1) * sqrt (2 - sqrt_two_add_series 0 n) < pi :=
... |
65bcabe36f25e05bf6bede2bf893a12a78ad44ac | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1968.lean | 4c82d8a6bafd7beb66f694d71ef578c846aafd23 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,316 | lean | inductive type
| bv : Nat → type
| bit : type
open type
-- This is a "parameterized List" where `plist f types` contains
-- an element of Type `f tp` for each corresponding element `tp ∈ types`.
inductive plist (f : type → Type) : List type → Type
| nil : plist f []
| cons {h:type} {r:List type} : f h → plist f r →... |
128cba9597371e8ee8d3e11cd68e80e8706c278b | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/data/finset/sort.lean | fe97168fd968c81914d201599596effe26faa2ef | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,210 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.finset.lattice
import data.multiset.sort
import data.list.nodup_equiv_fin
/-!
# Construct a sorted list from a finset.
-/
namespace finset
open multiset... |
d469d2daa9cc336802a24e1224a1242cba1ba00e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/def5.lean | 954f13833b53394cd339118b385671b1c318269c | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 97 | lean |
section
parameter (A : Type)
definition f : A → A :=
λ x, x
#check f
end
#check f
|
d7b7bc4768b674a80327e0b89a6548779a4c8621 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/algebra/group.lean | d01af58cfbc7cb1073c1f3119f09a276c9935d6c | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 16,842 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of topological groups.
-/
import data.equiv.algebra
import algebra.pointwise order.filter.pointwise
import group_theory.quotient... |
226ee6562c3bcccbc2bebf35af91ce9837cd866e | 4a092885406df4e441e9bb9065d9405dacb94cd8 | /src/Spa.lean | cd15b8f1eb19f620b680cb929083787c41380b5c | [
"Apache-2.0"
] | permissive | semorrison/lean-perfectoid-spaces | 78c1572cedbfae9c3e460d8aaf91de38616904d8 | bb4311dff45791170bcb1b6a983e2591bee88a19 | refs/heads/master | 1,588,841,765,494 | 1,554,805,620,000 | 1,554,805,620,000 | 180,353,546 | 0 | 1 | null | 1,554,809,880,000 | 1,554,809,880,000 | null | UTF-8 | Lean | false | false | 22,522 | lean | import ring_theory.localization
import ring_theory.subring
import continuous_valuations
import Huber_pair
import Huber_ring.localization
import for_mathlib.nonarchimedean.basic
import for_mathlib.data.set.finite
import for_mathlib.uniform_space.ring -- need completions of rings plus UMP
import for_mathlib.group -- som... |
f1a822956f2782baa11a6bc28503a056225ab5b8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/eisenstein_criterion.lean | f5966efa52132b9ae7058e4a91aa450c4cf7d754 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,553 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.prime
import ring_theory.polynomial.content
/-!
# Eisenstein's criterion
A proof of a slight generalisation of Eisenstein's criterion for the irreduci... |
ec7d56357796a2fec53a1ba8bd7b0fdc3e9a66c6 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/Omega.lean | bdd9f18efee484f379c00c135c7e9a8f200cb246 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,820 | lean | import .global
import .ideals
universes u
local notation `Ring` := CommRing.{u}
local notation `Set` := Type u
namespace Omega
def Ω_obj (A : Ring):= ideal A
def Ω_map (A B :Ring)(ψ : A ⟶ B) : Ω_obj A → Ω_obj B:= λ I,begin
exact ideal.map ψ I,
end
def Ω : Ring ⥤ Set :=
{
obj := λ A, ideal A,
map := λ A B... |
789989d77414204d40652a036f21b489765eff81 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/init/default.lean | 1f7bcbb7d07c2fbf70bce70ce26bffccff445ef9 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 450 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.datatypes init.reserved_notation init.tactic init.logic
import init.relation init.wf init.nat init.wf_k init.prod
import init.bool init.... |
2015af8982ac5c916f3226c31f33ecb94c564eac | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/algebra/module/multilinear.lean | efa86ed869ffc24e7a71c47c394f74073dd0ebf0 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 22,458 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.algebra.module.basic
import linear_algebra.multilinear.basic
/-!
# Continuous multilinear maps
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> An... |
4fd2d5c8cc559a66975f7267e5ba7151e5bdba9b | 959e3de53426c90b7318223ba1036f0845387f67 | /library/init/default.lean | c42e3d7b92ca1d587156d7cde86260aa9a2002d8 | [
"Apache-2.0"
] | permissive | huma23/lean | 2fdb93e43ac8708473f341a64d434802f1a42cdd | 75602eca5e23d2c426ef9103fb6eeb3130e36f1e | refs/heads/master | 1,586,375,625,362 | 1,543,501,870,000 | 1,543,501,870,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 555 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.core init.logic init.category init.data.basic
import init.propext init.cc_lemmas init.funext init.category.combinators init.function ini... |
a86e0da5c75a5bd8fadf4495ae3c74d1ee14f34e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed_space/dual.lean | d04111b91b3e1788cc9f8e7c7bac7f1e2fed206a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 10,130 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.normed_space.hahn_banach
import analysis.normed_space.is_R_or_C
import analysis.locally_convex.polar
/-!
# The topological dual of a normed space
... |
b7402549876e5e37ee5905ac2d1cbaa25f264c61 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/integral/integral_eq_improper.lean | c0814a8b2b8301b83676b59f59ea275f6fa6ec70 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 36,196 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Bhavik Mehta
-/
import measure_theory.integral.interval_integral
import order.filter.at_top_bot
import measure_theory.function.jacobian
/-!
# Links between an inte... |
e2033a2f495a6518420cec66ee05dfa198a8d1fb | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/CoreM.lean | d9d92813f8bb48dc337d69415f246aca4c6ab45d | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,511 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.RecDepth
import Lean.Util.Trace
import Lean.Environment
import Lean.Exception
import Lean.InternalExceptionId
import Lean.Eval
import Lean.... |
53739bd0ddbadf0bb9192b1241b3bc2c1718ceb5 | 510e96af568b060ed5858226ad954c258549f143 | /data/nat/sub.lean | fb7a836f37eae1da10a3c70503e606785392cc03 | [] | no_license | Shamrock-Frost/library_dev | cb6d1739237d81e17720118f72ba0a6db8a5906b | 0245c71e4931d3aceeacf0aea776454f6ee03c9c | refs/heads/master | 1,609,481,034,595 | 1,500,165,215,000 | 1,500,165,347,000 | 97,350,162 | 0 | 0 | null | 1,500,164,969,000 | 1,500,164,969,000 | null | UTF-8 | Lean | false | false | 6,258 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
Subtraction on the natural numbers, as well as min, max, and distance.
-/
namespace nat
/- interaction with inequalities -/
protected theorem le_s... |
3f7282b89029a1de943e7d3c050291b568759799 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/data/list/sort.lean | 14c930c1c7ff9f90a31c7010e5ce4e7888751007 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,206 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import data.list.perm
import data.list.chain
/-!
# Sorting algorithms on lists
In this file we define `list.sorted r l` to be an alias for `pairwise r l`. This alias i... |
d1544727d381534fc86c80b74165b747fb8b6663 | 0c6b99c0daded009943e570c13367c8cc7d3bcae | /chapter16.lean | bb2bc62a5695bf3d5f8ae4809d74560eeb559cb3 | [] | no_license | TateKennington/logic-and-proof-exercises | e3c5c5b12b6238b47b0c5acf8717923bd471a535 | acca8882026e7b643453eb096d3021cd043005bd | refs/heads/main | 1,687,638,489,616 | 1,626,858,474,000 | 1,626,858,474,000 | 371,871,374 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,403 | lean | import data.set data.int.basic data.set
open function int set
section
def g (x : ℤ) : ℤ := -x
def h (x : ℤ) : ℤ := 2 * x + 3
example : injective h :=
assume x₁ x₂,
assume :2 * x₁ + 3 = 2 * x₂ + 3,
have 2 * x₁ = 2 * x₂, from add_right_cancel this,
show x₁ = x₂, from mul_left_cancel' (dec_trivial)... |
4e2e15d8db1d88502b83f944b5e362fdf787f272 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/AddressSpace.lean | c3500e0edec08752d24c4b3aa9b76cf87bf9e7e0 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 739 | lean | namespace Papyrus
/-- A numerically indexed address space. -/
structure AddressSpace where
index : UInt32
deriving BEq, Repr
namespace AddressSpace
/-- The default address space (i.e., 0). -/
def default := mk 0
/-- Make an address space from a `Nat`. -/
def ofNat (n : Nat) := mk n.toUInt32
/-- Make an address... |
3d5a7450cbd283cabf2c1a5baf204c04eda7979e | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/nat/choose.lean | 5426c254164935a3056a4ad889c20472b05f26d6 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 6,297 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Bhavik Mehta, Patrick Stevens
-/
import tactic.linarith
import tactic.omega
import algebra.big_operators.ring
import algebra.big_operators.intervals
import algebra.big_oper... |
f2fc9b7188bb483cfacff08aab09fe3e38f7ad6e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/dedekind_domain/ideal.lean | be1aed2e252fddb8f7346bbf5958485a4e460aa4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 66,275 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import algebra.algebra.subalgebra.pointwise
import algebraic_geometry.prime_spectrum.maximal
import algebraic_geometry.prime_spectr... |
a359ba89b32423ac22a9933699e406a3e924d0ca | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2179.lean | bcafa61e52cc52016215fe1129384d70ab2204e9 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 138 | lean | import data.real.basic
-- BEGIN
def converges_to (s : ℕ → ℝ) (a : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, abs (s n - a) < ε
-- END |
ddbdea5b48a6c76e94efa5e97be7708010a35abe | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/calculus/mean_value.lean | 4238fa2836b406a1042067339034ebcec0f1d90c | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 74,794 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.local_extr
import analysis.convex.slope
import analysis.convex.normed
import data.is_R_or_C.basic
import topology.inst... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.