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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46ba0712dd343fabd6ec417f17bda7b97bd3ee9e | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/lectures/lecture_19.lean | 08c97ad2b1bb1f6939b5707ce6d6210871d77bfa | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,483 | lean | import data.set
/-
PART II: BASIC SET THEORY
Give formal and English language proofs of
the following conjectures.
-/
def evens : set ℕ := { n | n%2 = 0}
example : ({ 0, 2 } : set ℕ) ⊆ evens :=
begin
show ∀ n, n = 0 ∨ n = 2 → n ∈ evens,
assume n,
assume h,
cases h,
-- case: n = 0
rw h,
unfo... |
1f205ab2628a72766ccd3c7c7cc2e061dbfcacc2 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/myring/integral_domain.lean | dc3e02295451ff2099e27016a7ecd5f4cf203228 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 5,904 | lean | import .order
#check le_antisymm
namespace hidden
-- nontriviality axiom?
class integral_domain (α : Type) extends myring α :=
(mul_integral_left (a b : α) : a ≠ 0 → b * a = 0 → b = 0)
namespace integral_domain
variables {α : Type} [integral_domain α]
variables (a b c : α)
theorem mul_integral_right : a ≠ 0 → a * b... |
de69988ad9fccc1a11a74397846777001425b2e1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monoidal/of_has_finite_products_auto.lean | 9388b7f121666bc1a58f358eb5376043cced3f78 | [] | 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 | 6,523 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monoidal.braided
import Mathlib.category_theory.limits.shapes.... |
61f7ddffdc94600b7abec9e0ad9aa77663613da9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_geometry/morphisms/basic.lean | 322daeb6e98163004a5d018b482bb30881a28990 | [
"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 | 28,193 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.AffineScheme
import algebraic_geometry.pullbacks
import category_theory.morphism_property
/-!
# Properties of morphisms between Schemes
We provi... |
b551a5e284c9aa7f86ead71424e8f54f54976937 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world06/level07.lean | d9a028b334b731f75678fccad4563a24e524981f | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 142 | lean | lemma imp_trans (P Q R : Prop) : (P → Q) → ((Q → R) → (P → R)) :=
begin
intros hpq hqr,
intro p,
apply hqr,
apply hpq,
exact p,
end
|
7014cd75fc92712b6ef2f6b77dcf3642780d797b | 5ca7b1b12d14c4742e29366312ba2c2ef8201b21 | /src/game/world4/level1.lean | d14dbc0f1846d13df0ac168e4f57f2d9a5c7142f | [
"Apache-2.0"
] | permissive | MatthiasHu/natural_number_game | 2e464482ef3001863430b0336133b6697b275ba3 | 2d764f72669ae30861f6a1057fce0257f3e466c4 | refs/heads/master | 1,609,719,110,419 | 1,576,345,737,000 | 1,576,345,737,000 | 240,296,314 | 0 | 0 | Apache-2.0 | 1,581,608,357,000 | 1,581,608,356,000 | null | UTF-8 | Lean | false | false | 1,595 | lean | import game.world3.level9 -- hide
import mynat.pow -- new import
namespace mynat -- hide
-- World name : Power world
/- Axiom : pow_zero (a : mynat) :
a ^ 0 = 1
-/
/- Axiom : pow_succ (a b : mynat) :
a ^ succ(b) = a ^ b * b
-/
/-
# Power World
A new world with seven levels. And a new import!
This import gives yo... |
7b2b3c3e7f66af61ce6d054d7a2db5f93d6c38e3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/sym/basic.lean | eee663f3077c12544ecca453420061e8a1b78431 | [
"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 | 11,483 | 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 data.multiset.basic
import data.vector.basic
import data.setoid.basic
import tactic.apply_fun
/-!
# Symmetric powers
This file defines symmetric powers of a type. ... |
609b34321903954abaaad9ac79863fa0471ef58a | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/rules/addRedundantSemijoinRule.lean | 5c5db2660a27b59c3d9fd6291a1b394fad9c7496 | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 2,654 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..meta.TDP ..meta.canonize
import ..meta.ucongr
import ..meta.cosette_tactics
set_option profiler true
variable i : const datatypes.int
open SQL
open Pred
open Expr
open Proj
theorem rule :
forall (Γ scm_dept scm_emp : Schema)
... |
9213693bb2628ca22349a5d57d026ebab74b4767 | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love02_tactical_proofs_demo.lean | 9094f1215bad166386c0797900bbf8fb033ef3ef | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 4,636 | lean | /- LoVe Demo 2: Tactical Proofs -/
import .love01_definitions_and_lemma_statements_demo
namespace LoVe
/- Tactic Mode -/
lemma fst_of_two_props :
∀a b : Prop, a → b → a :=
begin
intros a b,
intros ha hb,
apply ha
end
lemma fst_of_two_props₂ (a b : Prop) (ha : a) (hb : b) :
a :=
begin
apply ha
end
/-... |
8c5cf24f68d38cde9fce76f14fbe9b42be8561f6 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/perm/support.lean | e1944f2fcaffc2ae99af74a7aace1674a0b65439 | [
"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 | 20,219 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Aaron Anderson, Yakov Pechersky
-/
import data.finset.card
import data.fintype.basic
import group_theory.perm.basic
/-!
# Support of a permutation
## Main definitions
In... |
35f125ed06f1b83ea9dae3713342285d00ce0010 | 7d5ad87afb17e514aee234fcf0a24412eed6384f | /old/language_functions.lean | 23cdc408e0ff413933696839a1002cd17bd01970 | [] | no_license | digama0/flypitch | 764f849eaef59c045dfbeca142a0f827973e70c1 | 2ec14b8da6a3964f09521d17e51f363d255b030f | refs/heads/master | 1,586,980,069,651 | 1,547,078,141,000 | 1,547,078,283,000 | 164,965,135 | 1 | 0 | null | 1,547,082,858,000 | 1,547,082,857,000 | null | UTF-8 | Lean | false | false | 189 | lean | inductive term : Type
|
structure Language :=
language :: (relations : Type) (functions : Type ) (arityF : functions → nat) (arityR : relations → nat)
variable L : Language |
22a5f3f097f2cf5145f9cc74d34c8b61c552a60b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/indicator_function.lean | eb82980b938190f2cd7bf5a582985d416ea9a0a0 | [] | 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 | 16,370 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.pi
import Mathlib.group_theory.group_action.default
import Mathlib.data.support... |
a37be47ff3c5843779b8664011ce112bce4b0e8e | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /test/qpf.lean | 90893a74a262553500d7d0b434177dc4852d39af | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 6,111 | lean | import data.qpf.univariate.basic
import control.bifunctor
universes u
variables {F : Type u → Type u} [functor F]
namespace qpf
section box
variables (F)
/-- apply a functor to a set of values. taken from
[Basil Fürer, Andreas Lochbihler, Joshua Schneider, Dmitriy Traytel *Quotients of Bounded Natural Functors*][f... |
e661ffb00242cf13e4cb00b3532d2dd62926e51b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/local_homeomorph.lean | 4c1bd0645075e8c8cab6f50d486513b15013d49d | [
"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 | 53,038 | 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 logic.equiv.local_equiv
import topology.sets.opens
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of topological spac... |
f5b727b453ae32c69aa795c141ea2e5a20970cc0 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/vm_sorry.lean | a72a4c8f1526cc677ee07d6815ef6dd67ac9f54b | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 419 | lean | def half_baked : bool → ℕ
| tt := 42
| ff := sorry
#eval (half_baked tt)
#eval (half_baked ff)
meta def my_partial_fun : bool → ℕ
| tt := 42
| ff := undefined
#eval (my_partial_fun ff)
open expr tactic
run_cmd (do v ← to_expr ``(half_baked ff) >>= whnf,
trace $ to_string v^.is_sorry)
example : 0 = ... |
294c0c0c938fc65b004e46bbfd4c815e33a2f5a2 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/topology/metric_space/gromov_hausdorff.lean | d3b3385baf46a60eea6df4b072f43af8e03b05e3 | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 56,216 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.metric_space.closeds set_theory.cardinal topology.metric_space.gromov_hausdorff_realized
topology.metric_space.completion
/-!
# Gromov-Hausdorf... |
fed1b40b89a56e39165fee1761f2bc8c54750be4 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/glued.lean | 74d1452b4ea8b01576c0d232b80a286cced069a2 | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 7,174 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import logic.relation
import combinatorics.simplicial_complex.closure
namespace affine
open set relation
open_locale classical
variables {a b... |
bce96dd05b317a369b81b9a4159dfdf8e1e5ff0b | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/exercises_sources/wednesday/morning/structures.lean | 2171f5abbd7363981329c9156eb9c599c517d8c3 | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 18,224 | lean | import data.rat.basic
import data.nat.parity
import tactic.basic
open nat
noncomputable theory -- definitions are allowed to not compute in this file
open_locale classical -- use classical logic in this file
/-!
## Structures and Classes
In this session we will discuss structures together,
and then you can solve th... |
be50ab29d28893533289567a4b74abc9955036ca | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/free.lean | 8398be9f536453ea480160c0b5f864b4728b7cf0 | [
"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 | 22,611 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.equiv.basic
import control.applicative
/-!
# Free constructions
## Main definitions
* `free_magma α`: free magma (structure with binary operation without any axi... |
46a3828a462d9abaeea3a5e14141784e57f9f679 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/field_theory/separable.lean | c55260cd321af9d3822090d9db937974ad3b5a20 | [
"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 | 20,560 | 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.polynomial.big_operators
import field_theory.minimal_polynomial
import field_theory.splitting_field
/-!
# Separable polynomials
We define a polynomial to be... |
83861af8dd383dcc163d425d15488acc64cac96b | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/Match/CaseValues.lean | 3ff67584b172a34ee0c7baa44e75a5a6293e2191 | [
"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 | 4,571 | 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.Tactic.Subst
import Lean.Meta.Tactic.Clear
import Lean.Meta.Match.Value
namespace Lean.Meta
structure CaseValueSubgoal where
mvarId : M... |
1413d3936da5348d74d27b557872a6be34730a05 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Widget/Basic.lean | 4fe67fa7eac3857cb2e3ef24a7169c74e1f7c15a | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 980 | lean | import Lean.Elab.InfoTree
import Lean.Message
import Lean.Server.Rpc.Basic
namespace Lean.Widget
open Elab Server
/-- Elaborator information with elaborator context.
This is used to tag different parts of expressions in `ppExprTagged`.
This is the input to the RPC call `Lean.Widget.InteractiveDiagnostics.infoToInte... |
d8384a897b813a3fdb79856b809aaecf1f3beb40 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Meta/Match.lean | d6d356dc47d957795e5535d62ffe99432e7a6c55 | [
"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 | 382 | 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.Meta.Match.MatchPatternAttr
import Lean.Meta.Match.Match
import Lean.Meta.Match.CaseValues
import Lean.Meta.Match.CaseArraySizes
namespace Lean... |
a62504bda3484ebd33d6315a73bcd5e2bbd177b7 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/1968.lean | 10808ba211ab0536cb9793b6e3e9f995a54fe8fd | [
"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 | 1,320 | 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... |
eeafe2e38e7fccdfb7424cb242919dd72dccafda | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/geometry/manifold/algebra/structures.lean | 8c9ba21590fa21bd1449dbbc778cad145e13f772 | [] | 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 | 1,990 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.geometry.manifold.algebra.lie_group
import Mathlib.PostPort
universes u_1 u_2 u_3 u_4 l ... |
9ee3475c1bbea44706914ca49a66c3dd64529ae3 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/urysohns_lemma.lean | f008808ef1feb32459423d5e2c55515d7168b1cb | [
"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 | 12,646 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.normed_space.add_torsor
import linear_algebra.affine_space.ordered
import topology.continuous_function.basic
/-!
# Urysohn's lemma
In this f... |
d3163cb1a00d8f79a75b0189612ec6233f05b584 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/DSL/Config.lean | 05c09499ec086f5bb4cd47139e5f147237ef2ec4 | [
"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 | 2,270 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lean.Elab.ElabRules
import Lake.DSL.Extensions
namespace Lake.DSL
open Lean Elab Term
/--
A dummy default constant for `__dir__` to make it type check
outside Lakefi... |
832945efefdb20ec52d94bb5ba2b4e33fc9e6473 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/bigctor.lean | b14a8e8b2cf5b839fe1e2b39123416546343c3b3 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 1,321 | lean | structure Foo where
x1 : Nat := 0
x2 : Nat := 0
x3 : Nat := 0
x4 : Nat := 0
x5 : Nat := 0
x6 : Nat := 0
x7 : Nat := 0
x8 : Nat := 0
x9 : Nat := 0
x10 : Nat := 0
y1 : Nat := 0
y2 : Nat := 0
y3 : Nat := 0
y4 : Nat := 0
y5 : Nat := 0
y6 : Nat := 0
y7 : Nat := 0
y8 : Nat... |
e683c7bb1983a074563953db1539a13f5a8a9fe7 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/semigroup.lean | 61c4aca3dca73735d5e1abcf3f1cac2ce61101ae | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,898 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import topology.separation
/-!
# Idempotents in topological semigroups
This file provides a sufficient condition for a semigroup `M` to contain an idempotent (i.e. an
eleme... |
947bff0601cae3608a4c4575a88924f6313fdc3b | 28d9ae48dddad2ebe8cb28027b15e9c9d996e0ed | /src/num.lean | ed1fb0ab7220d8ca80faf671cd131b31fd52e5fd | [] | no_license | ImperialCollegeLondon/british-natural-number-game | 0f76ac920488db62b3d391bd60d650e725f90938 | 593dede2c911e0651b8d177365180b659d7b2acf | refs/heads/master | 1,669,990,486,571 | 1,596,886,731,000 | 1,596,886,731,000 | 285,931,256 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,244 | lean | import cs
namespace xena
/-- The type of nonnegative binary numbers, using `pos_num`.
13 = 1101(base 2) = pos (bit1 (bit0 (bit1 one))) -/
@[derive has_reflect, derive decidable_eq]
inductive num : Type
| zero : num
| pos : pos_num → num
instance : has_zero num := ⟨num.zero⟩
instance : has_one num := ⟨num.po... |
2dc098da18ff1e0dca53e99d42a0cb8ebecd0b73 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/algebra/module_auto.lean | 963675ba9bb27bf183b558cc45f476fe096af819 | [] | 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 | 98,402 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.algebra.ring
import Mathlib.top... |
afad6972e076fe4dd24d3020a58fedf4cd55fc6a | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/type-mismatch-witness.lean | 07e3a859e7b1b80f747d435f1e825a21a20fe496 | [
"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 | 537 | lean | structure Category :=
(Obj : Type)
(Hom : Obj → Obj → Type)
structure Functor (C : Category) (D : Category) :=
(onObjects : C^.Obj → D^.Obj)
(onMorphisms : Π { X Y : C^.Obj },
C^.Hom X Y → D^.Hom (onObjects X) (onObjects Y))
lemma Functors_pointwise_equal
{ C D : Category }
{ F G : Fun... |
d2052cc221cc0f3a28976cb2381754d6dcef1ec2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/module/basic_auto.lean | 74e54e4305580ee484b6f3f349575d89fb33b671 | [] | 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 | 18,558 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.big_operators.basic
import Mathl... |
6797badb8e24fb336e2dae93c0df47a0f409bf94 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/topology/continuous_on.lean | f7f2b15208de20f21a8433bb95ad6f641c742fd7 | [
"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 | 27,000 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
`nhds_within` of `nhds`
`contin... |
4c0e09d2e993dbf882b472cc3a6f58470ac65d76 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/root.lean | 53aa28e1fd6bdedeffe7c823ac914edeb16393c8 | [
"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 | 2,037 | lean | namespace Foo
def y := 10
def _root_.Bla.f (x : Nat) := x + y
#check Bla.f
example : Bla.f 5 = 15 := rfl
def _root_.g (x : Nat) :=
match x with
| 0 => 1
| x+1 => 2*g x
def _root_.Boo.g (x : Nat) :=
match x with
| 0 => 1
| x+1 => 3 * Boo.g x
protected def _root_.h (x : Nat) := x -- Error
example : g ... |
26689e5f087f8f03a4dff8e66a1f26312c8a95c8 | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/src/uexp/u_semiring.lean | d41bec446c9e91ab85ac0394f68afc45480cc480 | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 7,830 | lean | -- definition of u-semiring
class denotation (A: Type) (B:Type) :=
(denote : A → B)
--def denote {A B: Type} [denotation A B] : A → B := @denotation.denote
constant datatype: Type
inductive tree (A:Type)
| node : tree → tree → tree
| leaf : A → tree
| empty {} : tree
definition Schema := tree datatype
constant d... |
f22f8bb7369b0c139a1f26019b4db2fb5d4ecfac | 6b7c9c6393bac7cb1c64582a1c62597e24f5bb80 | /src/tactic/gptf/default.lean | e04f98fa6e0dc9413c1ed31e18e706d712dc0f6d | [
"Apache-2.0"
] | permissive | alreadydone/lean-gptf | 56a7d9cbd9400af72fb143d60c8774b8cfbc09cb | b4ab1eb2da0178f3dcdc49771d9fed6b50e35d98 | refs/heads/master | 1,679,371,993,063 | 1,614,479,778,000 | 1,614,479,778,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24 | lean | import tactic.gptf.gptf
|
d680982bad733e0cb6c3f938fe41e9ff3439a586 | 3ed5a65c1ab3ce5d1a094edce8fa3287980f197b | /src/herstein/ex2_3/Q_08.lean | ae43ac155e63938c87afab77463b0a5d179231d0 | [] | no_license | group-study-group/herstein | 35d32e77158efa2cc303c84e1ee5e3bc80831137 | f5a1a72eb56fa19c19ece0cb3ab6cf7ffd161f66 | refs/heads/master | 1,586,202,191,519 | 1,548,969,759,000 | 1,548,969,759,000 | 157,746,953 | 0 | 0 | null | 1,542,412,901,000 | 1,542,302,366,000 | Lean | UTF-8 | Lean | false | false | 3,643 | lean | import data.fintype
universe u
example {G : Type u} [group G] [fintype G] [decidable_eq G] (x : G) : ∃ n : ℕ, x ^ (n + 1) = 1 :=
begin
-- The above means
-- G is a type in some universe, is a group, has finite terms, equality of terms is "doable"...
let f : fin (fintype.card G) → G := λ n , x ^ (n.... |
ae219af17c9c7b80f8bcf6df67deea746c6add85 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/classical.lean | 8531e99b7976d840cdd635da70e6fe8a7552a5a4 | [
"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 | 6,461 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.data.subtype.basic init.funext
open subtype
namespace classical
universes u v
/- the axiom -/
-- In the presence of cla... |
325980604575399419d6aaf7ef916388fc2a5653 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/HashSet.lean | 43f77c721f58db23c96348abd01b9b6f9f358ed5 | [
"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 | 7,114 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
namespace Lean
universe u v w
def HashSetBucket (α : Type u) :=
{ b : Array (List α) // b.size.isPowerOfTwo }
def HashSetBucket.update {α : Type u} (data... |
713b2ea4dc875ee2c270e26322919f18e7776c85 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /examples/lean/ex2.lean | 8ab3b057e17206e891407500335db93e823695bc | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 406 | lean | import macros.
theorem simple (p q r : Bool) : (p → q) ∧ (q → r) → p → r
:= assume H_pq_qr H_p,
let P_pq := and_eliml H_pq_qr,
P_qr := and_elimr H_pq_qr
in P_qr (P_pq H_p)
set_option pp::implicit true.
print environment 1.
theorem simple2 (a b c : Bool) : (a → b → c) → (a → b) → a → c
:= assume H_... |
b635a055ed909861531473021c42d15b54673fd9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/constructions/prod.lean | cff97ef13873a3919f11b0c73ca2fb3849499228 | [
"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 | 55,420 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.measure.giry_monad
import dynamics.ergodic.measure_preserving
import measure_theory.integral.set_integral
import measure_theory.measure.open... |
7e9be07cd11ac0de47031ce9c9a2e43ef5d02b08 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Parser/Module.lean | d079ee4e3b1ff6b208a5fc1571f598e6366bd0ac | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,333 | 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, Sebastian Ullrich
-/
import Lean.Message
import Lean.Parser.Command
namespace Lean
namespace Parser
namespace Module
def «prelude» := parser! "prelude"
def... |
1400a228e360eb222d1790b23a64b017e192896d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/set_theory/cardinal_ordinal.lean | 111844e743f4b55d0639853366afc31eaf3e025e | [
"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 | 37,552 | 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, Floris van Doorn
-/
import set_theory.ordinal_arithmetic
import tactic.linarith
import logic.small
/-!
# Cardinals and ordinals
Relationships between... |
40a28ff5e5011a36f8f77135435dccf214f16595 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/algebra/continued_fractions/basic.lean | 41e8d8fb797dbcf1eabf10f5f891c6e7fd887f47 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 13,256 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import data.seq.seq
/-!
# Basic Definitions/Theorems for Continued Fractions
## Summary
We define generalised, simple, and regular continued fractions and funct... |
9dce9cd5148d37c422f67eee2f4281939f92acee | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/group_theory/congruence.lean | 912a7516c00d92a3b878ec9d5bebb5be13275ebf | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,998 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import data.setoid.basic
import algebra.group.pi
import algebra.group.prod
import data.equiv.mul_add
import group_theory.submonoid.operations
/-!
# Congruence ... |
aa69e6520022ad1012a7011d2e5d7d9172a9c923 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /11_Tactic-Style_Proofs.org.52.lean | 3f1123bffcef0483dc3b28a04bdc5284f39d5677 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 190 | lean | import standard
import algebra.ring
open algebra
example {A : Type} [s : comm_ring A] (a b c : A) : a * 0 + 0 * b + c * 0 + 0 * a = 0 :=
begin
rewrite [+mul_zero, +zero_mul, +add_zero]
end
|
fd499a6eeb793391cf55cd319cb630f21eccb2f0 | ef4d3feecef33d1c1b4bd3a023b85e6a58f9e708 | /theorem-proving-in-lean/ch4/Exercises.lean | f39d01da021d1dc157421304a17a94eb5761927b | [] | no_license | MikeMKH/kata | 1b7da1b8d2cc115c912f2b06b583a8e675a449e1 | 305b054a37517dbe4d09545d41f024937f536c20 | refs/heads/master | 1,585,594,368,426 | 1,542,835,119,000 | 1,542,835,119,000 | 16,891,298 | 0 | 0 | null | 1,542,835,120,000 | 1,392,575,890,000 | Racket | UTF-8 | Lean | false | false | 3,036 | lean | -- https://leanprover.github.io/theorem_proving_in_lean/quantifiers_and_equality.html#exercises
variables (α : Type) (p q : α → Prop)
-- 1
example : (∀ x, p x ∧ q x) ↔ (∀ x, p x) ∧ (∀ x, q x) :=
iff.intro
(assume h : ∀ x, p x ∧ q x,
show (∀ x, p x) ∧ (∀ x, q x),
from and.intro
(take x, and... |
0af286ba4d430d601fa5b03c9310e272cd642aaf | 6de8ea38e7f58ace8fbf74ba3ad0bf3b3d1d7ab5 | /homework2/Problem2/solutions.lean | 2f9a0b87d52c7667e527bbc0556319e755ba21ff | [] | no_license | KinanBab/CS591K1-Labs | 72f4e2c7d230d4e4f548a343a47bf815272b1f58 | d4569bf99d20c22cd56721024688cda247d1447f | refs/heads/master | 1,587,016,758,873 | 1,558,148,366,000 | 1,558,148,366,000 | 165,329,114 | 5 | 2 | null | 1,550,689,848,000 | 1,547,252,664,000 | TeX | UTF-8 | Lean | false | false | 2,716 | lean | import .lambda
-- Problem 2: Lambda Calculus and Church Numerals (30 points for full credit, >=45 possible points with bonus)
-- From nat to Church Numerals
@[simp] def zero := term.abs 1 (term.abs 0 (term.var 0)) -- λf. λx. x
@[simp] def succ :=
term.abs 2
(term.abs 1
(term.abs 0
(term.app
... |
669fff7a7d169921655a1e6365c8f0180e9c1d8e | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world07/level05.lean | 8b69edd763d349c76f2b47aeb1b31d2b84a2b88d | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 195 | lean | lemma iff_trans (P Q R : Prop) : (P ↔ Q) → (Q ↔ R) → (P ↔ R) :=
begin
intros hpq hqr,
split,
intro p,
apply hqr.1,
apply hpq.1,
exact p,
intro r,
apply hpq.2,
apply hqr.2,
exact r,
end
|
b1d6843b4373a2379fe5d8693d970da23426a8f1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/locally_ringed_space.lean | 65c77096f56c85cab5f1bd57d314dd917d17eefa | [
"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 | 10,124 | 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 algebraic_geometry.ringed_space
import algebraic_geometry.stalks
/-!
# The category of locally ringed spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> An... |
76a5013825ee8936951589ca749ec5e44466cab3 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/ring_theory/principal_ideal_domain.lean | d308b79071aa0d956a110446c6c4a311c4ab9124 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 6,740 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes, Morenikeji Neri
-/
import algebra.euclidean_domain
import ring_theory.ideals ring_theory.noetherian ring_theory.unique_factorization_domain
variables {α : Type*}
open set... |
fadab963bae5d929596f912fcc9589bf448e1a13 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/set_theory/ordinal.lean | f8718eca89c4271cda04c4300851ed466150b002 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 138,199 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Ordinal arithmetic.
Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
-/
import order.order_iso set_theory.cardinal data.sum
noncomputable... |
3f43c3c8ca65a7c52cc8e4eb6623367240c9d105 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/group/hom.lean | 16ffd1e431a392c5c5060f47e7c2215ac1a85eb0 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 11,167 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group.basic
/-!
# monoid and group homomorphisms
This... |
870e81f4f38e47ee00ef032190755afa8ea1fee5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/trace.lean | 150eb34e9dbd16fdbf5e3ab791f5d9982834b587 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,425 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.to_lin
import linear_algebra.matrix.trace
/-!
# Trace of a linear map
This file defines the ... |
f860d1d0f50625791cbb17e42c408d3d31e72a8d | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/topology/metric_space/isometry.lean | 57cb5875d6bc87dd56c1b0619ee92350426524f9 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,636 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.basic
/-!
# Isometries
We define isometries, i.e., maps between emetric spaces that prese... |
4f4c916d60a8ee0b4f45ad5793f13a707bf97126 | e30ff3aabdac29f8ea40ad76887544d0f9be9018 | /ircbot/modules/admin.lean | 6f058ee86d3acde4834cd45daeb6331b6894c89b | [] | no_license | forked-from-1kasper/leanbot | bdef0efa3e4d0eb75b06c1707fb4e35086bb57fa | c61c8c7fdad7b05877e0d232719ce23d2999557f | refs/heads/master | 1,651,846,081,986 | 1,646,404,009,000 | 1,646,404,009,000 | 127,132,795 | 12 | 1 | null | 1,605,183,650,000 | 1,522,237,998,000 | Lean | UTF-8 | Lean | false | false | 1,116 | lean | import ircbot.types ircbot.support ircbot.parsing
import data.buffer.parser
open types support parser
namespace modules.admin
def CorrectIdent := do
optional (ch '~'), word ← many_char1 $ sat (λ c, c ≠ ' ' ∧ c ≠ '@'),
ch '@', ip ← sep_by1 (ch '.') parsing.Number,
pure (word, ip)
def is_admin : person → bool
| ... |
92b38e5bea2cd2fb74d0ebc33788ef881db00e1f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/geometry/manifold/local_invariant_properties.lean | d93795dcc5cbb11d76f0b3580c9d08b66c1157eb | [
"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 | 24,083 | 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 geometry.manifold.charted_space
/-!
# Local properties invariant under a groupoid
We study properties of a triple `(g, s, x)` where `g` is a function b... |
3a1391e6e4c29d33cee37eba3f87d91ec909c685 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/319.lean | 01e22ceeab32d68749d0f8a78993218d014e07b8 | [
"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 | 380 | lean | class Class.{u} where
dummy : PUnit.{u}
def notWork [Class.{u}] : PUnit := Class.dummy
def alsoNotWork [Class.{1}] : PUnit := Class.dummy
def work [Class.{u}] : PUnit.{u} := Class.dummy
def alsoWork [Class.{u}] := Class.dummy.{u}
class Category.{v, u} (Ob : Type u) where
Hom : Ob → Ob → Type v
variable (C : Typ... |
88dc8bc87870f02caf71fbed7118f8929e066d39 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /08_Building_Theories_and_Proofs.org.41.lean | e03155ece1c50af0b63f510399822025dae91d6a | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 256 | lean | import standard
import standard
namespace my_namespace
export bool (hiding measurable)
export nat
export list
end my_namespace
check my_namespace.band
check my_namespace.add
check my_namespace.append
open my_namespace
check band
check add
check append
|
24e136e06353cdb52365c4b2acf1fc8cbab8b14c | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/mv_polynomial/basic.lean | 9c6834dc8e3b8025194abc09c9169a8bef616f3e | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,762 | 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, Johan Commelin, Mario Carneiro
-/
import data.polynomial.eval
import data.finsupp.antidiagonal
import algebra.algebra.tower
/-!
# Multivariate polynomials
This file ... |
192197244f403eb75f65c0b08791c107dc45c065 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo2006_q5.lean | ec9929b2d4c1c1abe2669a845948899a46d2a343 | [
"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 | 9,598 | lean | /-
Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios
-/
import data.polynomial.ring_division
import dynamics.periodic_pts
/-!
# IMO 2006 Q5
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any change... |
871ed51856aa0c25d82ff8ab2b124243359f3a2c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/set/default.lean | b4f2189cfbba9a6303d363873a84297763e58062 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 202 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import .basic .function .map .finite .card .filter
|
449b46f46a17168f9ac3a31ea38448a093465613 | fe84e287c662151bb313504482b218a503b972f3 | /src/commutative_algebra/jacobson.lean | e23659d060566c2b29a7b30f2e88467336aa40d6 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,409 | lean | import algebra.ring ring_theory.ideal.basic
import tactic.ring
import commutative_algebra.nilpotent algebra.geom_sum
open commutative_algebra
variables (A : Type*) [comm_ring A]
def is_local := (1 : A) ≠ 0 ∧ ∀ (a : A), (is_unit a) ∨ (is_unit (1 - a))
def is_jacobson (a : A) := ∀ (x : A), is_unit (1 + a * x)
def j... |
3ca3fb775fea80c18adc7636601c62f9f583ba79 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/ring_theory/subring.lean | 4db231b475a71b43db9e6c261166d91a28bd3124 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,182 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors : Ashvni Narayanan
-/
import deprecated.subring
import group_theory.subgroup
import ring_theory.subsemiring
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subrin... |
b856ad123f9cf72f8531311f9f6c7d2c81309a02 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/homotopy/equiv.lean | c0542004305c3c8c4ba2864b0efb2c9c34722319 | [
"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 | 5,292 | lean | /-
Copyright (c) 2021 Shing Tak Lam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import topology.homotopy.basic
/-!
# Homotopy equivalences between topological spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require ... |
93f6fca1bf8b203ec2bcf9ece2e10636f3c212dd | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/convex/between.lean | 6c1c1e94a8834f3c074853e3ebb5416967e171d6 | [
"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 | 33,022 | 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 data.set.intervals.group
import analysis.convex.segment
import linear_algebra.affine_space.finite_dimensional
import tactic.field_simp
import algebra.char_p.invert... |
1eb754978335b0389bd1bc4515f4a7be03178084 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/category/Group/preadditive.lean | 41fa01176c83bab2f64ad7d3fa9f93cf0b7483b4 | [
"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 | 602 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Group.basic
import category_theory.preadditive
/-!
# The category of additive commutative groups is preadditive.
-/
open category_theory
univ... |
73cac99868266fd84d8c944aaf7db0d1ab2fc6ce | b73bd2854495d87ad5ce4f247cfcd6faa7e71c7e | /src/game/world3/level1.lean | 2bf8e616e651c75c3caf63cd601a789474c6561f | [] | no_license | agusakov/category-theory-game | 20db0b26270e0c95a3d5605498570273d72f731d | 652dd7e90ae706643b2a597e2c938403653e167d | refs/heads/master | 1,669,201,216,310 | 1,595,740,057,000 | 1,595,740,057,000 | 280,895,295 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,294 | lean | import category_theory.category.default
universes v u -- The order in this declaration matters: v often needs to be explicitly specified while u often can be omitted
namespace category_theory
variables (C : Type u) [category.{v} C]
/-
# Category world
## Level 7: Monomorphisms & epimorphisms
A monomorphism `f : ... |
187ebeb43b18000ef9578dcc96b81356ec021ceb | fb874bbe08e5843959092135244ee64bc3e4dbbb | /tests/syntax-tests/highlighted/Lean/test.lean | 51918c6a72a4924217ba261df76294639abb488f | [
"Apache-2.0",
"MIT"
] | permissive | sharkdp/bat | 40dee33e4c3be1201f71ada25e963ef8b3f066b5 | 1893405cbf6a0676db4cf93e64939eb29a0ca6cb | refs/heads/master | 1,693,467,908,872 | 1,686,601,946,000 | 1,693,237,829,000 | 130,464,961 | 43,494 | 1,495 | Apache-2.0 | 1,694,663,147,000 | 1,524,307,943,000 | Rust | UTF-8 | Lean | false | false | 4,733 | lean | [38;2;249;38;114mimport[0m[38;2;248;248;242m data.matrix.notation[0m
[38;2;249;38;114mimport[0m[38;2;248;248;242m data.vector2[0m
[38;2;117;113;94m/-![0m
[38;2;117;113;94mHelpers that don't currently fit elsewhere...[0m
[38;2;117;113;94m-/[0m
[38;2;249;38;114mlemma[0m[38;2;248;248;242m [0m[38;2;1... |
3c25f1e11f6a2474007e089ec36dd96015774f35 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/prod/pprod.lean | 14e086446e510e36604f63bcc2bb7e7efb93c659 | [
"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 | 1,452 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import logic.basic
/-!
# Extra facts about `pprod`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/496
> Any changes to... |
ddb49c8819a5f30d4befb2f711f638cb57e2dc06 | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/hott/inv_bug.hlean | b154d50b3e20b81d238bd56110a800bfb527a1c4 | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 462 | hlean | open nat
open eq.ops
inductive even : nat → Type :=
| even_zero : even zero
| even_succ_of_odd : ∀ {a}, odd a → even (succ a)
with odd : nat → Type :=
| odd_succ_of_even : ∀ {a}, even a → odd (succ a)
example : even 1 → empty :=
begin
intro He1,
cases He1 with (a, Ho0),
cases Ho0
end
example : even 3 →... |
cfa12ba05ed9d8ea88522b0beea2970a272f846f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/modular_forms/slash_invariant_forms.lean | 701fe0e66479ac364884a894ae16ab58a87d4667 | [
"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 | 6,427 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import number_theory.modular_forms.slash_actions
/-!
# Slash invariant forms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresp... |
02a90b638cbc401b3af2ca9b45b0259884fba20c | b147e1312077cdcfea8e6756207b3fa538982e12 | /algebra/group.lean | 3f758169c238e8c07900ba37b1cd11af2e5040b4 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,211 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Various multiplicative and additive structures.
-/
import tactic.interactive data.option
section pending_1857
/- Transport multiplicative to additive... |
bc4d6d300d19272a83d82836837c201d6cb19c33 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/monoidal/CommMon_.lean | f4076c128f449c8e9f12582b68224d21ecbdaf6f | [
"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,346 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.braided
import category_theory.monoidal.Mon_
/-!
# The category of commutative monoids in a braided monoidal category.
-/
universes ... |
6a301bc5575e51325b2ed45a47c3c9ab93979c9a | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/uniform_space/equicontinuity.lean | f8fa1f416697536884622b6a3159e80bbed57271 | [
"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 | 22,658 | lean | /-
Copyright (c) 2022 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import topology.uniform_space.uniform_convergence_topology
/-!
# Equicontinuity of a family of functions
Let `X` be a topological space and `α` a `uniform_space... |
09113f9ead5457221e1090366f8f965f13c6b5aa | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/booltst.lean | 9b02fd5afb403d933db9389b908cc0d4d429cf34 | [
"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 | 36 | lean | import standard
using bool
check '0 |
4cd39421dde480bfb9a3eca630693149c1786836 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Init/Data/Ord.lean | f4cdff4861b40d7f369555fcd5e831ad8c4d7494 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 870 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Dany Fabian
-/
prelude
import Init.Data.Int
import Init.Data.String
inductive Ordering where
| lt | eq | gt
deriving Inhabited
class Ord (α : Type u) where
compare : α → ... |
759f7a03b3562be3f936839967e1cca06fdc0534 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/group/hom.lean | 43641eccaca0a4ec6be9409924e468c4930ccc22 | [
"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 | 35,548 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group.commute
import algebra.group_with_zero.defs
/-!
... |
eab5040dfb5f0f096804ffedbe7b2364ac24212d | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/set/function.lean | b6d31bac1ca3b59d6eacf6deb7b78d9f63c8a6a0 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,179 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov
-/
import data.set.basic
import logic.function.conjugate
/-!
# Functions over sets
## Main definitions
### P... |
ff3caf5a8dcb9481b32e5bb16c9f94b679fa2e7a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/doc_string4.lean | 043598de06186e51a06bde0d0884e3f89dae705e | [
"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 | 3,727 | lean | /-!
# Arithmetic expressions for a simple imperative language.
-/
namespace imp
open tactic
/-- Variable names -/
@[reducible] def uname := string
/--
#brief Arithmetic expressions abstract syntax tree.
We encode x + 1 as
```
#check aexp.plus (aexp.var "x") (aexp.val 1)
```
-/
inductive aexp
| val : nat → aexp
| v... |
edc3e8d1c1e00248f4ce1e6c32f692a4686ab269 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/algebra/group/default.lean | 895ff3a011520c9bc97b9ac255b03ace6a5a9034 | [
"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 | 525 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Michael Howes
Various multiplicative and additive structures.
-/
import algebra.group.to_additive
import algebra.group.basic
import algebra.group.uni... |
a1f6c15c864c58b7de9fb1966117532d77baa715 | bde6690019e9da475b0c91d5a066e0f6681a1179 | /library/standard/quotient.lean | b241f87cf9e0424d41d15c03ba595d7f5ef92086 | [
"Apache-2.0"
] | permissive | leodemoura/libraries | ae67d491abc580407aa837d65736d515bec39263 | 14afd47544daa9520ea382d33ba7f6f05c949063 | refs/heads/master | 1,473,601,302,073 | 1,403,713,370,000 | 1,403,713,370,000 | 19,831,525 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,968 | lean | ----------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Floris van Doorn
-----------------------------------------------------------... |
1380721a1f440af931b5c12f7e3c89bc2b1cdd3c | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/metric_space/closeds.lean | e17a1fa6d0400b869ae971b5a5d0bfd6c5915243 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 21,565 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.metric_space.hausdorff_distance topology.opens analysis.specific_limits
/-!
# Closed subsets
This file defines the metric and emetric space st... |
9b6912abdad4783407e105fca6a1bbd65946ae8f | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/algebra/subalgebra.lean | 1dca93162e417d878d0cda557ccc4c49d6445be6 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,133 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.operations
import data.set.Union_lift
/-!
# Subalgebras over Commutative Semiring
In this file we define `subalgebra`s and the usual o... |
6577febd5027f708e41581e10f5f94a46c968347 | ec5a7ae10c533e1b1f4b0bc7713e91ecf829a3eb | /ijcar16/examples/cc4.lean | 0567899f6ec782b868c269fb4a91910ed9208f58 | [
"MIT"
] | permissive | leanprover/leanprover.github.io | cf248934af7c7e9aeff17cf8df3c12c5e7e73f1a | 071a20d2e059a2c3733e004c681d3949cac3c07a | refs/heads/master | 1,692,621,047,417 | 1,691,396,994,000 | 1,691,396,994,000 | 19,366,263 | 18 | 27 | MIT | 1,693,989,071,000 | 1,399,006,345,000 | Lean | UTF-8 | Lean | false | false | 546 | lean | /-
Example/test file for the congruence closure procedure described in the paper:
"Congruence Closure for Intensional Type Theory"
Daniel Selsam and Leonardo de Moura
The tactic `by blast` has been configured in this file to use just
the congruence closure procedure using the command
set_option blast.strategy... |
18d3a90c4e85488dea60df2e9eb45fa02f9e218c | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/complex/exponential.lean | 293b3023c382cdb3a4539628d8b358c177ace0bb | [
"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 | 47,786 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.geom_sum
import data.nat.choose
import data.complex.basic
local notation `abs'` := _root_.abs
open is_absolute_value
open_locale... |
0792437717d45c6cea0c47e1fbf5bfb55e198eb6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/ring/cone.lean | a07fdc0f99c79f49d1ef2a494ef2eab783eefbe3 | [
"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 | 2,546 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro
-/
import algebra.order.ring.defs
/-!
# Constructing an ordered ring from a ring with a specified positive cone.
-/
/-! ### Positive ... |
cf888678ede257d6a551d069f21ef45aea5b8f95 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/tprod_auto.lean | 0ef3a2e151fea099434c1b12d6084398c4dcb9a9 | [] | 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,810 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.nodup
import Mathlib.PostPort
universes u_1 u_2 u_3
namespace Mathlib
/-!... |
79cebefadf2b381e3222efa93be4897346072457 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/card.lean | be6e5f6be0c7c0ccaa95ea567a7fe4cfdb4cf5e2 | [
"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 | 41,861 | 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 data.fintype.basic
import data.finset.card
import data.list.nodup_equiv_fin
import tactic.positivity
import tactic.wlog
/-!
# Cardinalities of finite types
>... |
9f78f12e87686a2949b66f536a7e572a38ad1591 | 1ff7dcfdecccca050d9f9b22bfc95c79e751b6e2 | /examples/test.lean | 716436d511f03086a49bed1c9fc7a006f82c7b5f | [
"Apache-2.0"
] | permissive | enjoysmath/lean-client-python | a8d8557b8c0e6ccaa9f85ff358ac196d35cfa719 | efeb257b7e672d02c1005a6624251ad6dd392451 | refs/heads/master | 1,688,510,086,908 | 1,626,699,128,000 | 1,629,887,964,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 165 | lean | lemma zero_max (m : ℕ) : max 0 m = m :=
begin
apply max_eq_right,
exact nat.zero_le m,
end
example (m n : ℕ) : m + n = n + m :=
by simp only [nat.add_comm]
|
87567aeeab287ecbc41c6a68d7c2abf9fc1c65be | c46a31beec236d29b6c02e7d7683691bcfbb3014 | /src/utils/int_refl.lean | 41c479e69a06ddb1072f6a9790790bfc2bcfda43 | [] | no_license | UVM-M52/quiz-5-maddiestrauss | a88b9bfbdd486a521ee280f9b7b551bcb48f23c6 | 214529615e08bbcdd3d6600c89432ec985e6ba3a | refs/heads/master | 1,617,897,187,103 | 1,584,922,038,000 | 1,584,922,038,000 | 248,787,429 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,825 | lean |
@[derive decidable_eq]
inductive horner : list int → Type
| cnst : int → horner []
| lift (x : int) {xs : list int} : horner xs → horner (x :: xs)
| mult {x : int} {xs : list int} : horner xs → horner (x :: xs) → horner (x :: xs)
run_cmd mk_simp_attr `horner_calc
namespace horner
def sizeof' : Π {xs : list int}, h... |
f1c239f3c274388e190dd82d912bd68f18ca009b | 4727251e0cd73359b15b664c3170e5d754078599 | /test/apply_rules.lean | ca0595b9b710ece2b656fc76d44eace9a5266cab | [
"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 | 1,619 | lean |
import data.nat.basic
open nat
example {a b c d e : nat} (h1 : a ≤ b) (h2 : c ≤ d) (h3 : 0 ≤ e) :
a + c * e + a + c + 0 ≤ b + d * e + b + d + e :=
add_le_add (add_le_add (add_le_add (add_le_add h1 (mul_le_mul_of_nonneg_right h2 h3)) h1 ) h2) h3
example {a b c d e : nat} (h1 : a ≤ b) (h2 : c ≤ d) (h3 : 0 ≤ e) :
a + ... |
59d163c021cd1b32fb014bee220830957b18e799 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/fib_brec.lean | c6ae2a01084c4aebf6889dc2e21d4895544bdf80 | [
"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,082 | lean | import data.nat.basic data.prod
open prod
namespace nat
namespace manual
definition brec_on {C : nat → Type} (n : nat) (F : Π (n : nat), @nat.below C n → C n) : C n :=
have general : C n × @nat.below C n, from
nat.rec_on n
(pair (F zero poly_unit.star) poly_unit.star)
(λ (n₁ : nat) (r₁ : C n₁ × @... |
617e268b6f8e2beeef054c844d91c410a0f535ba | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/choose/dvd.lean | 93ea56cefc05fa006fe6032633d8857806ed4640 | [
"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 | 1,959 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Patrick Stevens
-/
import data.nat.choose.basic
import data.nat.prime
import data.rat.floor
/-!
# Divisibility properties of binomial coefficients
-/
namespace nat
open_l... |
d934940ca91b4e8267d5aa15c52b83e6ddab355d | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/deriv.lean | 322960cf4e4bd41b76e5408d715d7c0753bad755 | [
"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,773 | lean | /- Benchmark for new code generator -/
import Init.System.IO
inductive Expr
| Val : Int → Expr
| Var : String → Expr
| Add : Expr → Expr → Expr
| Mul : Expr → Expr → Expr
| Pow : Expr → Expr → Expr
| Ln : Expr → Expr
namespace Expr
unsafe def pown : Int → Int → Int
| a, 0 => 1
| a, 1 => a
| a, n =>
let b := pown... |
e497167b9c0d4d15d20d68993267b1d87afb11b5 | 534c92d7322a8676cfd1583e26f5946134561b54 | /src/Exercises/01_Propositions/Q0101/Q0001.lean | 2c20f45145d647c80066b1d750fc6082bbb22165 | [
"Apache-2.0"
] | permissive | kbuzzard/mathematics-in-lean | 53f387174f04d6077f434e27c407aee9425837f7 | 3fad7bb7e888dabef94921101af8671b78a4304a | refs/heads/master | 1,586,812,457,439 | 1,546,893,744,000 | 1,546,893,744,000 | 163,450,734 | 8 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 67 | lean | example (P Q R : Prop) (HP : P) (HQ : Q) : P :=
begin
sorry,
end
|
42e3a450ada04c6218aa0a2b3920ee73c02be34c | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/abelian/exact.lean | 28f65b7dcb0ee6185bbdbca9a2cf7881ed6b9352 | [
"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 | 4,377 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.abelian.basic
import algebra.homology.exact
import tactic.tfae
/-!
# Exact sequences in abelian categories
In an abelian category, we get sever... |
d743b88c21840b656fdd841636b5a37fd9f7d170 | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/universal/strongly_concrete.lean | 1edc43293ee7819bf5b11be21963b537f691bb32 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 773 | lean | -- -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- -- Released under Apache 2.0 license as described in the file LICENSE.
-- -- Authors: Scott Morrison
-- import category_theory.universal.continuous
-- import category_theory.concrete
-- import category_theory.functor.isomorphism
-- open category_theory
... |
27346ac31479984a8fd42324be3b42d0ac9b1eba | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/valuation/integral.lean | 88d0f3f0f0ed7f2994d579fbb730a95199430a6c | [] | 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 | 1,039 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.integral_closure
import Mathlib.ring_theory.valuation.integers
import Mathlib.PostPort
u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.