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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
680e1be9e87f9b67d14bf255f2b3780df5d667dc | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/subset_properties.lean | ae9fc95189963e2fe273a9a8e67bbcec3cad475d | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 58,324 | 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, Yury Kudryashov
-/
import topology.bases
import data.finset.order
import data.set.accumulate
/-!
# Properties of subsets of topological spaces
In this... |
cada352f8602bd0a9d9faa1b2dc831da0c35b93c | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/simple.lean | 7073a17c34b6e5685af6b6460341374c5ce1249a | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 572 | lean | prelude
definition Prop : Type.{1} := Type.{0}
section
parameter A : Type*
definition Eq (a b : A) : Prop
:= ∀P : A → Prop, P a → P b
theorem subst (P : A → Prop) (a b : A) (H1 : Eq a b) (H2 : P a) : P b
:= H1 P H2
theorem refl (a : A) : Eq a a
:= λ (P : A → Prop) (H : P a), H
theorem symm (a b : A)... |
7c6c6a0310c43d0417f96cb62a795a61071506a5 | 2ee768fce4d0783536570385ee340d97e2411436 | /src/q_def.lean | cee2fe91276945c6f72de9af11bcb6eed4e78a27 | [] | no_license | agjftucker/exists-unique | 835cf0c0ec622d49dbceb84be37db62e6ab8a6d0 | 1fba6035a08347f424c765d8a1c56b1a15c8abbe | refs/heads/master | 1,683,445,592,336 | 1,622,649,822,000 | 1,622,649,822,000 | 309,485,697 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,716 | lean | import data.finset.powerset
local prefix `𝒫`:100 := λ {α : Type} (s : finset α), {t // t ≤ s}
section q_definition
variables {α : Type*} [order_bot α] (r : α → α → Prop)
inductive q : α → Prop
| base : q ⊥
| succ {b c : α} : c < b → r c b → q c → q b
end q_definition
section
variables {α : Type*} [semilattice_su... |
9c4b3bb416874487c0d0bd2d7a78c29f5807d97f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/integration.lean | 20776ca4089eefe8e46359f4e8150dfea6026049 | [
"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 | 17,839 | lean | /-
Copyright (c) 2021 Martin Zinkevich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Martin Zinkevich, Vincent Beffara
-/
import measure_theory.integral.set_integral
import probability.independence
/-!
# Integration in Probability Theory
Integration results for ind... |
569c756c7f1b9ee5b7d252e1c3b78d1097805c26 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/algebra/functions.lean | 5efcd3262fd0c24e2fa1e045eead81ad6f15a59e | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,268 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.ordered_field
universe variables u
definition min {α : Type u} [decidable_linear_order α] (a b : α) : α := if a... |
a5c57b9b86bb3ed4120a7a64e3ca0f0cb2bc42cb | 5cb186111bc6de231aef3b26698e9235da128bb0 | /examples.lean | 6074f82134b449e8ac658e96bc75950be47cb409 | [] | no_license | Kha/syntax | 2f96982b920a24d9bdbbb48ad6acce1817e62f26 | af05028581955d9fd5af99be9cbb82f5c9226551 | refs/heads/master | 1,631,456,662,519 | 1,523,806,396,000 | 1,523,978,266,000 | 110,000,924 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,583 | lean | import macro
import hygiene
def sp : option span := none
def lambda_macro := {macro .
name := "lambda",
resolve := some $ λ sc node,
do [syntax.ident ident, body] ← pure node.args
| unreachable,
pure [sc, sc.insert (ident.name, ident.msc) ident.id]}
def resolve_name (msc : option macro_scope_id) (s... |
968f2e21f61f9e10d6af63d9aa5b1b114ba46296 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/convex/exposed.lean | dba73c3c2c651fb3bedfddcde58fbf8d71d2327f | [
"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 | 9,336 | 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 analysis.convex.extreme
import analysis.convex.function
import analysis.normed_space.ordered
/-!
# Exposed sets
This file defines exp... |
245aebfe3248afb7feb692d27c4bf925aba1e35f | 92b1c7f0343a6a5cd36bc0f623a7490da3f1e0f3 | /src/stump/algorithm_properties.lean | a58bb29f8ec4ab79d26018afcb2a257b560bac7b | [
"Apache-2.0"
] | permissive | jtristan/stump-learnable | 717453eb590af16e60c7d3806cc9e66492fab091 | aa3c089f41602efa08d31ef6b41e549456186d57 | refs/heads/master | 1,625,630,634,360 | 1,607,552,106,000 | 1,607,552,106,000 | 218,629,406 | 15 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 3,585 | lean | /-
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
-/
import .algorithm_definition
import .setup_properties
namespace stump
variables (μ: probability_measure ℍ) (target: ℍ) (n: ℕ)
lemma label_sample_correct_2:
∀ n, ∀ v: vec ℍ n, ∀ i: dfin (nat.succ n), (kth_projn (label_sample target n v) i).... |
397176c36e2e1b09d396c1506df27f044fe718d4 | 531456391187e1b7678c24ddaf3d6470b4dba971 | /library/init/meta/interactive.lean | 2111ac1b6bc7a7c4090c0a9b09de165c2ca84e7e | [
"Apache-2.0"
] | permissive | tigerneil/lean | 7e4834cb9b03027c0e3ba42efd8c1a4f52389c9c | 8f31cff99bca2c5dd7fcd425de1ff1cb8e4e150a | refs/heads/master | 1,606,890,672,381 | 1,499,580,201,000 | 1,499,580,305,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,136 | 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... |
020859466d38f27610f612b3058ca936537c311d | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/special_functions/trigonometric/inverse_deriv.lean | bdff998aeb4d3a21243eee4e8b7255b78484f666 | [
"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 | 7,694 | 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, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.trigonometric.inverse
import analysis.special_functions.trigonometric... |
b31eae897f887dfd4c3b2ea36234415b4b36aa24 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_12_contrapositive.lean | 82193ecf78e13da63bd0d84651e5ff7828aac5cb | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,762 | lean | import tactic.push_neg
import .src_11_lem_reductio
variables p q r : Prop
namespace mth1001
section contrapositive
/-
Recall that the contrapositive of the statement `p → q` is the statement `¬q → ¬p`.
Lean has a tactic `contrapose` that turns any goal of the form `p → q` into its contrapositive.
-/
example (h :... |
b4a4821f574b99c409e110e4eedb63e25c82cd54 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Meta/DiscrTreeTypes.lean | ef0d149a1f5fd955530f02f025f62559fb9b56c3 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,048 | 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.Expr
namespace Lean.Meta
/- See file `DiscrTree.lean` for the actual implementation and documentation. -/
namespace DiscrTree
inductive Key ... |
a643fba9988167710614558be7334bb949f8a48d | ee712cba63470502ae3b6e8fe7e5d109efaa0053 | /src/path_connectedness.lean | 29bfd0ce18f3ca0ee214102812617bc2b5285680 | [
"Apache-2.0"
] | permissive | chrisilouseph/Xena-Project-2020 | cf7837b039a113559a2118ccfa6134be43f8ce8a | 5fb76b50ace083a80508f6234887c7d24e1c88c3 | refs/heads/master | 1,670,447,937,865 | 1,598,513,203,000 | 1,598,513,203,000 | 290,692,541 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,497 | lean | /-
Copyright (c) 2020 Chrisil Ouseph. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chrisil Ouseph
-/
import topology.instances.complex tactic
/-!
# Path-Connectedness
This file defines path-connectedness for pairs of points of a topological space, path components
... |
b53134a356aae9d21e43214fb505759dde774a14 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/inner_product_space/dual.lean | 4057b1edfcab8abf3d748680d6b4ccf2257bbe8f | [
"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,398 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import analysis.inner_product_space.projection
import analysis.normed_space.dual
/-!
# The Fréchet-Riesz representation theorem
We consider an inner product space... |
168ca2fb188a5ade93fc968835818b592e7a23dc | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/ideal/operations.lean | 703b344f6c62ce2253312a96e27dd6910039c668 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 66,584 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.operations
import algebra.algebra.tower
import data.equiv.ring
import data.nat.choose.sum
import ring_theory.ideal.basic
import ring_theory.non_zero_divi... |
02a123dbb9d3f5a68ec80b3df88762f2a83cff2f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial/scale_roots.lean | 62e3173bc12a5ff6c7423d9a194c6dc5d1880158 | [] | 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 | 3,571 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Devon Tuma
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.basic
import Mathlib.ring_theory.non_zero_divisors
import Math... |
92596b61acf3535d525c740b7ea108a6c8d70f2c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/vector_bundle/constructions.lean | 210ae668d9ec674a2e733e155e1a7c60ad72c552 | [
"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 | 8,498 | lean | /-
Copyright © 2022 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Sébastien Gouëzel, Heather Macbeth, Floris van Doorn
-/
import topology.fiber_bundle.constructions
import topology.vector_bundle.basic
/-!
# Standard constructions o... |
0750f7bb926cc2a698bd7f793319dc60b46f086e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/sites/closed.lean | 930626b4b05c7e9b98bdd3becf8aabbf5e79f59e | [] | 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 | 10,048 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.sites.sheaf_of_types
import Mathlib.order.closure
import Mathlib.PostPort
univ... |
d39e70d7ca64db63e81cd9d9ae62861dbe83bb78 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/special_functions/polynomials.lean | 3544bb56b46c767b72d0821351aa38fd2cc49e5f | [
"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 | 10,717 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Devon Tuma
-/
import analysis.asymptotics.asymptotic_equivalent
import analysis.asymptotics.specific_asymptotics
import data.polynomial.erase_lead
/-!
# Limits rel... |
d9355ef78ebaf7ac54546d728c1f4b0654ccdadb | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/slim_check.lean | 1ec8baefcfbae60f788e842056b73730c49fa10a | [
"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 | 8,244 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import testing.slim_check.testable
import testing.slim_check.functions
import data.list.sort
/-!
## Finding counterexamples automatically using `slim_check`
A propositio... |
f1e904bb5713cd46adcb68827525f377f9008b73 | 91b8df3b248df89472cc0b753fbe2bac750aefea | /experiments/lean/src/ddl/basic.lean | 71183507ab704b7de17d30cfae3fd72cb4e17691 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yeslogic/fathom | eabe5c4112d3b4d5ec9096a57bb502254ddbdf15 | 3960a9466150d392c2cb103c5cb5fcffa0200814 | refs/heads/main | 1,685,349,769,736 | 1,675,998,621,000 | 1,675,998,621,000 | 28,993,871 | 214 | 11 | Apache-2.0 | 1,694,044,276,000 | 1,420,764,938,000 | Rust | UTF-8 | Lean | false | false | 234 | lean | namespace ddl
def relation (α : Type) :=
α → α → Prop
inductive multi {α : Type} (ρ : relation α) : relation α
| refl {x : α} : multi x x
| step {x y z : α} : ρ x y → multi y z → multi x z
end ddl
|
de5b540bbb193ba43d6e36ddf5dcad98c2010cef | 3268ab3a126f0fef71459fbf170dc38efe5d0506 | /move_to_lib.hlean | 282f919bc19c26b9c8831b4559b68b05d384ad6c | [
"Apache-2.0"
] | permissive | soraismus/Spectral | f043fed1a4e02ddfeba531769b2980eb817471f4 | 32512bf47db3a1b932856e7ed7c7830b1fc07ef0 | refs/heads/master | 1,585,628,705,579 | 1,538,609,948,000 | 1,538,609,974,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,390 | hlean | -- definitions, theorems and attributes which should be moved to files in the HoTT library
import homotopy.sphere2 homotopy.cofiber homotopy.wedge hit.prop_trunc hit.set_quotient eq2 types.pointed2 algebra.graph algebra.category.functor.equivalence
open eq nat int susp pointed sigma is_equiv equiv fiber algebra trunc... |
b5089b0aed781da8c5630ab9dbe53dbdd4989385 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/whenIO.lean | 220f43ea00a302bd938c6d1db3e2fcd343ad4ec4 | [
"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 | 177 | lean | import system.IO
definition when (b : bool) (a : IO unit) : IO unit :=
if b = tt then a else return ()
vm_eval when tt (put_str "hello\n")
vm_eval when ff (put_str "error\n")
|
57caa7959f7cec239437c00acae62e0dc2579d7f | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /src/Init/Data/Range.lean | 93e609bff6269814ba0d6c40ecc06527ecb94c9c | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,933 | 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
-/
prelude
import Init.Meta
namespace Std
-- We put `Range` in `Init` because we want the notation `[i:j]` without importing `Std`
-- We don't put `Range` in... |
1e808d03f3734c722ed625e63a08373cbab957fd | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /library/init/lean/compiler/ir.lean | 0401fb4c256142cd39a985fab05adbaf735813ed | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,172 | 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 init.lean.name init.lean.kvmap init.lean.format
prelude
/-
Implements (extended) λPure and λRc proposed in the article
"Counting Immutable Beans", S... |
ee100c5134d3e5844fd088fe22d3f6d0bb68013a | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/preadditive/biproducts.lean | 796635fe296bc819b5d9a3ec60fc842d228231f6 | [
"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 | 11,428 | 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 tactic.abel
import category_theory.limits.shapes.biproducts
import category_theory.preadditive
/-!
# Basic facts about morphisms between biproducts in preaddi... |
f4c3806b760306ddd00d3f1610f58c30dc6169f4 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Elab/Tactic/ElabTerm.lean | 7bce0c8d4ba24c60cbfd705a47d14d1edea2f00d | [
"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 | 4,658 | 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.CollectMVars
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Assert
import Lean.Elab.Tactic.Basic
import Lean.Elab.SyntheticMVars
na... |
a32cfbdfa2713da097cf6845cdc92757f9bd0e4d | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/01_Equality/02_type_judgments.lean | 132b0356dd516a2388f6aa18491b114c574128c3 | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 3,761 | lean | /- * Type judgments * -/
/-
Recall the inference rule for Leibniz equality.
T: Type, t : T
-------------- (eq.refl)
pf: t = t
Above the line in this inference rule, we meet a
new kind of judgment here: a type judgment. If X
is some type (such as string, bool, or nat), and
x is a value of that type, X, we... |
f0d81db5e413b03e3411bc3587fe7f08713f872c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/polynomial/degree/lemmas.lean | ed58c06990a275c66ac902b0219583c1ad09607d | [
"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 | 12,615 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.eval
/-!
# Theory of degrees of polynomials
Some of the main results include
- `nat_degree_comp_l... |
fe786ffca2dccf6ea577ff12c1b605a4b8d35013 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/real/basic.lean | 9e6ebbed8ef0986f3024298b39fd98a42fa0519c | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 42,462 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
The construction of the rea... |
cd07387da7930c7cc39fb3e1ca9c2e665eabdb7b | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Parser/Syntax.lean | a220c7fda7626988b58e65793e9dba44b6653064 | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 6,357 | 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.Parser.Command
import Lean.Parser.Tactic
namespace Lean
namespace Parser
builtin_initialize
registerBuiltinParserAttribut... |
42e38dcc5bc5fb8f40d2213f956c1acbfc4dcd20 | 66a6486e19b71391cc438afee5f081a4257564ec | /spectrum/smash.hlean | 1d9ab4a383bb15ef9269b1bf7e8a83b070ff8e54 | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 1,631 | hlean | import .spectrification ..homotopy.smash_adjoint
open pointed is_equiv equiv eq susp succ_str smash int
namespace spectrum
/- Smash product of a prespectrum and a type -/
definition smash_prespectrum (X : Type*) (Y : prespectrum) : prespectrum :=
prespectrum.mk (λ z, X ∧ Y z) begin
intro n, refine loop_susp_pint... |
f64c8d17ec8fb82939f7a13b41ae7c9aff3ec76d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/field_theory/finite/basic_auto.lean | 1b586fc93099149005debc41c95289ed08f69194 | [] | 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 | 7,000 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Joey van Langen, Casper Putz
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.apply_fun
import Mathlib.data.equiv.ring
import Mathlib.da... |
d28b88ae07da566360ce0d197997587c9f0a217e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/special_functions/log.lean | 278e57c7064ee442bdd728b0f6dba68d648dd74a | [
"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 | 8,716 | 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, Jean Lo, Calle Sönne
-/
import analysis.special_functions.exp
/-!
# Real logarithm
In this file we define `real.log` to be the logarithm of a re... |
c64caf16921395eecc1ac9a39c6a0d465997d386 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/polynomial/content.lean | 1780aade8448901f69fea5d55e9eff33af58ac25 | [
"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 | 16,255 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson
-/
import data.finset.gcd
import data.polynomial
import data.polynomial.erase_lead
import data.polynomial.cancel_leads
/-!
# Gauss's Lemma, and GCD structures on polynom... |
7fc8246dfe4dec2845cf12a9d105b0ba5f6cea16 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/computability/partrec_code.lean | c3d884085216644155abbc690b20ff9e3ac16462 | [
"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 | 38,623 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Godel numbering for partial recursive functions.
-/
import computability.partrec
open encodable denumerable
namespace nat.partrec
open nat (mkpair)
theorem rfind' {f}... |
b3fd935cd87dc16f3a8f41dc17dbde4fded2e1fd | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/ring_theory/witt_vector/is_poly.lean | b6bed47a64ee62b5fabd9288eafc0fa21c219afc | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,191 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import algebra.ring.ulift
import ring_theory.witt_vector.basic
import data.mv_polynomial.funext
/-!
# The `is_poly` predicate
`witt_vector.is_poly... |
45baab3a653019c9ac9988d676ba6569c1c1db43 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/adjunction/basic.lean | 47a1fa0a0ee1516e8061a61c55eef37a27e33a56 | [] | 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 | 22,895 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.equivalence
import Mathlib.data.equiv.basic
import ... |
9e68c0ba2c76f2d2916b02a8b2ed4d2a5d5d6db9 | 32a2d1642d7519c99693bc1d3b24069e4853dd1f | /tests/tactics.lean | 009c2e33ceebc7415689634bc64af2643e794c50 | [
"Apache-2.0"
] | permissive | Cedric0099/mathlib | 7edb81d5d68e280b4d21f6c0377dad1f9b8c0d71 | a97101d2df5d186848075a2d0452f6a04d8a13eb | refs/heads/master | 1,584,201,847,599 | 1,524,979,632,000 | 1,524,979,632,000 | 131,690,350 | 0 | 0 | null | 1,525,162,341,000 | 1,525,162,341,000 | null | UTF-8 | Lean | false | false | 3,331 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic data.set.lattice
example {a b : Prop} (h₀ : a → b) (h₁ : a) : b :=
begin
apply_assumption,
apply_assumption,
end
example {a b : Prop} (h₀ : a → b) (h₁ :... |
50d76602256bb98e5e909c414bd48dcc9c7c127d | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/category_theory/functor_category.lean | 9ada0840f12649c42b302bd03b9a5642b34b8206 | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 3,755 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
import category_theory.natural_transformation
namespace category_theory
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare th... |
579ebf5ac89e8dbeb242c2b87e44fe3d5c9aaf7f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/subobject/mono_over.lean | e4eb551d3a11be696fa1e45a0313572c36f97412 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,185 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.currying
import category_theory.limits.over
import category_theory.monad.adjunction
/-!
# Monomorphisms over a fixed object
As pr... |
fe407788853039116d1ec31bcc8d418ca42fa0ca | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monad/algebra.lean | 78ed13b12e57b3278bb353450afc201432a5bf4c | [] | 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 | 13,462 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monad.basic
import Mathlib.category_theory.adjunction.basic
i... |
7f8946ec2dc4352c7d254bc0c885121ff4068b0f | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/algebra/group_with_zero/basic.lean | 8e45bbb9915e192d8d738bbc3da9d357e6ac2bdc | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,199 | 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 logic.nontrivial
import algebra.group.units_hom
import algebra.group.inj_surj
import algebra.group_with_zero.defs
/-!
# Groups with an adjoined zero element
... |
fd84bab25c132d10ae44d41224664693b74480ec | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Tactic/Ext.lean | e5249490d87160d8ae69ae4d1dcbcd285e29e7ad | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,614 | lean | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import Lean
import Mathlib.Tactic.Cache
import Mathlib.Tactic.Rcases
open Tactic
namespace Mathlib.Tactic.Ext
open Lean Meta
def withExtHyps (struct : Name) (k : Arra... |
538eb28c8966fbfa6166e09951ab8740ef2b83f3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/parity.lean | b45eab4ca9d84b763e48ccf3d253877cfb21cd46 | [] | 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 | 4,735 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The `even` and `odd` predicates on the natural numbers.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.modeq
import Mathlib.PostPo... |
fe7e53e2922af8c6353486544449e0b91894f543 | f57749ca63d6416f807b770f67559503fdb21001 | /library/data/finset/partition.lean | b3b124224890f18a182924df5d82eb90f2997075 | [
"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 | 5,869 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Haitao Zhang
Partitions of a type A into finite subsets of A. Such a partition is represented by
a function f : A → finset A which maps every element a : A to its equivalence cl... |
ed5457618457ab9b74313ca5ebcd84c0767b44b6 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/lie/of_associative.lean | 5b3c39b2961fdb7d1251c13b6e634bb8c11bb5c3 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,397 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.basic
import algebra.lie.subalgebra
import algebra.algebra.subalgebra
/-!
# Lie algebras of associative algebras
This file defines the Lie algebra stru... |
e44af0a120f461d0b7c096ee9e437d4a038760ae | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/mv_polynomial/supported.lean | 702c58ffbe9b0e5ccca37187057a10495c1f5e34 | [
"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 | 3,741 | 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.variables
/-!
# Polynomials supported by a set of variables
This file contains the definition and lemmas about `mv_polynomial.supported`.
## ... |
b0371eda213d1ce7634a26b086349b0b1a140353 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/module/pi.lean | 335b179e5ab266eec05ea2f8631edcfae8ea2692 | [
"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 | 3,412 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.module.basic
import algebra.regular.smul
import algebra.ring.pi
import group_theory.group_action.pi
/-!
# Pi instances for modules
This fil... |
49672b1988c036e58a0343e72674a59490d5b63b | 7453f4f6074a6d5ce92b7bee2b29c409c061fbef | /src/Interpolation/mwe.lean | 20fce4eb5e98e1cff3e9507fe24415d77b93ee1c | [
"Apache-2.0"
] | permissive | stanescuUW/numerical-analysis-with-Lean | b7b26755b8e925279f3afc1caa16b0666fc77ef8 | 98e6974f8b68cc5232ceff40535d776a33444c73 | refs/heads/master | 1,670,371,433,242 | 1,598,204,960,000 | 1,598,204,960,000 | 282,081,575 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,604 | lean | import data.polynomial
import data.real.basic
noncomputable theory
open_locale big_operators
def binom_l (a : ℝ) : polynomial ℝ := polynomial.X - polynomial.C a
def lagrange_interpolant_v2 (n : ℕ) (i : ℕ) (xData : ℕ → ℝ): polynomial ℝ :=
∏ j in ( finset.range (n+1) \ {i} ),
((1 : ℝ)/(xData i - xData j)) • (... |
3f2d10db464e8909448c26bf6af95b5386f32b26 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/nat_antidiagonal.lean | a8bbee83862dc45ecadebf268fe849466eff50a5 | [] | 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,361 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.range
import Mathlib.PostPort
namespace Mathlib
namespace list
namespace nat
... |
0a6f9376eb87c103b9d7d06bae78e473ca0efd1c | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/data/real/pi.lean | 1a06eb9042499ce03026ca8c2a610b3e34a11028 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 10,798 | 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.complex.exponential
local attribute [instance, priority 0] nat.cast_coe
namespace real
variable (x : ℝ)
/-- the series `sqrt_two_add_series x ... |
ae588efdee9567b102b506d3ce4ffc7b616d6559 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/MultUnital.lean | d04725f51cbe12537029117cea3350087434787a | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,140 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section MultUnital
structure MultUnital (A : Type) : Type :=
(one : A)
(times : (A → (A → A)))
(lunit_one : (∀ {x : A} , (times one x) = x))
(runit_one : ... |
efd6437c51d4a581de39636b5066a145d42fa2dd | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/archimedean.lean | 6e2d0795e1f6f3a236e9ee5ac17e3fdc4e0ef668 | [
"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 | 10,030 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Archimedean groups and fields.
-/
import algebra.group_power algebra.field_power algebra.floor
import data.rat tactic.linarith
variables {α : Type*}
open_locale add_m... |
5317d226e07b53aaa5557c8ed4c1ad6645ef59ce | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /src/builtin/sum2.lean | d57843fa31e63004810899cbcd940eb2fa899428 | [
"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 | 3,449 | lean | import macros tactic
namespace sum
definition sum (A B : Type) := sig b : Bool, if b then A else B
theorem sum_if_l (A B : Type) : A == if true then A else B
:= by simp
theorem sum_if_r (A B : Type) : B == if false then A else B
:= by simp
definition inl {A : Type} (a : A) (B : Type) : sum A B
:= pair true (cast (s... |
d6180da03fc99f12a04a7dec9dd827d77fee6c2b | 690889011852559ee5ac4dfea77092de8c832e7e | /src/analysis/calculus/mean_value.lean | eb76db28f7cd86faac7ca2db43a46ecea3ec68e4 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 7,707 | 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
The mean value inequality: a bound on the derivative of a function implies that this function
is Lipschitz continuous for the same bound.
-/
import analysis.calcu... |
ad6f4d7bb726706994e828ed6072d81b216e2d20 | 37a833c924892ee3ecb911484775a6d6ebb8984d | /src/category_theory/tactics/comp_slice.lean | 335edc2c3ca84d5e05c95fa4561b51db15eb06e6 | [] | no_license | silky/lean-category-theory | 28126e80564a1f99e9c322d86b3f7d750da0afa1 | 0f029a2364975f56ac727d31d867a18c95c22fd8 | refs/heads/master | 1,589,555,811,646 | 1,554,673,665,000 | 1,554,673,665,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,346 | lean | import category_theory.category
open category_theory
-- TODO someone might like to generalise this tactic to work with other associative structures.
namespace tactic
meta def repeat_with_results {α : Type} (t : tactic α) : tactic (list α) :=
(do r ← t,
s ← repeat_with_results,
return (r :: s)) <|> return []... |
dc97e9a01ee5143805c6a83327fae870264542e1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/pretty_cases.lean | 2c691d61b8e0063b70ed4ba3d5e01dbbe8a2e325 | [] | 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,944 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.PostPort
namespace Mathlib
/-!
# `pretty_cases` tactic
When using `i... |
c907682880a3f6088cb01a9fa68785487327c24d | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2008-Indonesia_MO-Problem_2.lean | ff4a9da785dbb5475577e48239e8bd6829be2de7 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 185 | lean |
import data.real.basic
import data.real.nnreal
import data.real.sqrt
theorem exo (x y: nnreal):
1/(1 + nnreal.sqrt x)^2 + 1/(1 + nnreal.sqrt y)^2 >= 2 / (x + y + 2)
:=
sorry
|
b4b8cda80aca0cb7cdbeeb339fb0b6a14eb0861d | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/subquery.lean | 61d552cacda0a20d449f93792b50acce768e1e81 | [
"BSD-2-Clause"
] | permissive | kkpapa/Cosette | 9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce | fda8fdbbf0de6c1be9b4104b87bbb06cede46329 | refs/heads/master | 1,584,573,128,049 | 1,526,370,422,000 | 1,526,370,422,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,191 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
-- TODO: this should be easily solvable
lemma inlineCorrelatedSubquery :
forall (Γ s: Schema) (a : rel... |
bfd2f8427d5dd034592c734404171cf14f1e9dc5 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/ring_theory/free_ring.lean | 65704a5f1d7a46d4ab8aaa8834563a8afa58017f | [
"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 | 3,931 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin
-/
import group_theory.free_abelian_group data.equiv.algebra data.polynomial
universes u v
def free_ring (α : Type u) : Type u :=
free_abelian_group $ free_mono... |
f5bab05b6c641efcbc672a79bf33f711ef7a56c3 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Widget/InteractiveGoal.lean | bc00558b43520c6ed4ece22c0035c319f41ce7a2 | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 6,318 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Meta.PPGoal
import Lean.Widget.InteractiveCode
import Lean.Data.Lsp.Extra
/-! RPC procedures for retrieving tactic and term goals with embedde... |
1eb3710412dd5de7961016a872ff4dab56a33968 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/measure_theory/ae_eq_fun.lean | 6fbcbd76ddad9b4c29cfbea01912b8de6ebf14aa | [
"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 | 12,702 | lean | /-
Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Zhouhang Zhou
We define almost everywhere equal functions, and show that
• they form a vector space if the codomain is a vector space
• they form an... |
2056a24cbc06fae1e29c1faf4efe06da92ee1e19 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/cardinal_ordinal.lean | 8aef13934bd00a05650a821959e7e4ea705c6361 | [] | 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,583 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.set_theory.ordinal_arithmetic
import Mathlib.tactic.omega.default
import Mat... |
c211a534ea783e7fbff27e4e27787447126edc39 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/algebra/interval.lean | 87e8b7e140444a2461cfb918d3833468715c61d4 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 5,672 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Notation for intervals and some properties.
The mnemonic: o = open, c = closed, u = unbounded. For example, Iou a b is '(a, ∞).
-/
import .order data.set
open set
-- TOD... |
435848b7db3c6461b908088465c771c23cb8a23d | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/sigma.lean | 98fb47c2e5c1c1477504ec7a2edd7bfe9c4cfbd7 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,045 | 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... |
de8c76058fe4aaf54b029146530354249c8632d7 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/number_theory/pythagorean_triples.lean | 828f3268c0902f8d5fe7e1a9e971b37e279c4081 | [
"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 | 24,165 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Paul van Wamelen.
-/
import algebra.field
import algebra.gcd_monoid
import algebra.group_with_zero_power
import tactic.ring
import tactic.ring_exp
/-!
# Pythagorean Triples
The main ... |
9e7443edd42fd7baddc6224ce307dc2748d1fdef | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /src/Lean/Elab/Term.lean | 7c41939ba147aceb2505392b016db31528c73bed | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 59,069 | 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.ResolveName
import Lean.Util.Sorry
import Lean.Structure
import Lean.Meta.ExprDefEq
import Lean.Meta.AppBuilder
import Lean.Meta.SynthInstance
i... |
00b3ba5982e5a45e37ca3d3527a6033fb14b1b74 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/list/defs.lean | c4b07eb3ce684b35885500858831b1580ff2577b | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 18,718 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Extra definitions on lists.
-/
import data.option.defs logic.basic
namespace list
open functio... |
89cd714cc5985c75b75a154ea9b1bce53e318058 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/uniform_space/absolute_value.lean | 802e64e079a70474bbb611f66a7cb1a9f4a8f182 | [
"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 | 2,885 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import data.real.cau_seq
import topology.uniform_space.basic
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutativ... |
2c0989e5c23d5f5644adf451f37d4675711898f4 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/expr1.lean | 1249b077f6d6dcba732c3ec8292a2e707adadf9a | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,219 | lean | import Lean.Expr
open Lean
def tst1 : IO Unit :=
do let f := mkConst `f [];
let a := mkConst `a [];
let b := mkConst `b [];
let t := mkAppN f #[a, b, b];
let as₁ := t.getAppArgs;
let as₂ := t.getAppRevArgs;
IO.println as₁;
IO.println as₂;
«unless» (as₁.reverse == as₂) $ throw $ IO.user... |
5acc80f1fec40f68cacc05a00b5213a7be1111ef | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/interactive/complete_trailing_period.lean | 3e07de5ebe380eb2ae319119432575904e1c0443 | [
"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 | 75 | lean | prelude
inductive foo
def f := foo.
--^ "command": "complete"
|
a18834b771f3615e6ea4608a4cde886b106c4bf1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/LinearArith/Nat/Simp.lean | 75bd1b4a8a1686fb6615d093c255849f7d2e7530 | [
"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,796 | lean | /-
Copyright (c) 2022 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.LinearArith.Nat.Basic
namespace Lean.Meta.Linear.Nat
def simpCnstrPos? (e : Expr) : MetaM (Option (Expr × Expr)) := do
let (some... |
d44c57caa896e04f6741f5091f7af37fc1b85d1e | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/polynomial/div.lean | 6f08c8afbc73cad44bc504ac149262e9c98ef940 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,911 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.monic
import ring_theory.euclidean_domain
import ring_theory.multiplicity
/-!
# Division of univar... |
da551b2dad50787711a36404810959264f82c028 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/tools/super/cdcl_solver.lean | e3b939253b380737fba47b383c00308fa0c3392f | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,977 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause
open tactic expr monad super
namespace cdcl
@[reducible] meta def prop_var := expr
@[reducible] meta def proof_term := expr
@[reducible] meta def proof... |
6c04cd4ce49a0e4345dc7aa52d497e2023be11c0 | 618003631150032a5676f229d13a079ac875ff77 | /src/ring_theory/prod.lean | 442d790fafc19e1df9fb291d9750761e2bf3d2bc | [
"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 | 4,050 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Chris Hughes, Mario Carneiro, Yury Kudryashov
-/
import algebra.group.prod
import algebra.ring
/-!
# Semiring, ring etc structures on `R × S`
In this file we define ... |
4113386295786c39e2f56dcc3c083a8a7d468bd2 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Std.lean | 84ec85555d32ea985d788be105e74989ae154af8 | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 240 | 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 Std.Data
import Std.ShareCommon
import Std.Dynamic
import Std.System
|
79aa42a0f39ef99b169cc1303aa3974add98c645 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/linear_algebra/linear_pmap.lean | 698634f45b8fc2f5baa1b8f7d3a55928f10d6869 | [
"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 | 15,589 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import linear_algebra.basic
/-!
# Partially defined linear maps
A `linear_pmap R E F` is a linear map from a submodule of `E` to `F`. We define
a `semilattice_inf_... |
abdabd100f19e5069499eeefce6bbbb6400ba1ea | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Compiler/IR/PushProj.lean | 8a3a66846281b3b1cf2538b13f6e55f6e6802fcc | [
"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 | 2,155 | 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.Compiler.IR.Basic
import Lean.Compiler.IR.FreeVars
import Lean.Compiler.IR.NormIds
namespace Lean
namespace IR
partial def pushProjs : Array F... |
455f406cdfc801c78298e8850b143e11dffabaa1 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/MetavarContext.lean | edd08301b73fccc46530ff729ffacc7457f8611e | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53,561 | 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.Util.MonadCache
import Lean.LocalContext
namespace Lean
/-
The metavariable context stores metavariable declarations and their
assignments. It... |
70d94f6ee75dcd5331ac891947de691a2092c5a1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/option/basic.lean | b71147151cee4086a54a10857e6e360b524f2b75 | [
"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 | 18,244 | 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 logic.is_empty
import tactic.basic
import logic.relator
/-!
# Option of a type
This file develops the basic theory of option types.
If `α` is a type, then `... |
9f6f4095b2951f023862f7423984c620d4aa44af | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Init/System/IO.lean | 1753e5a4b99d9e0eb14188142b72379b28e7e030 | [
"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 | 20,471 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Control.EState
import Init.Control.Reader
import Init.Data.String
import Init.Data.ByteArr... |
d527c72a5c76b642822d904773051cad1062dc8d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/constructions/over/connected_auto.lean | 77103b71a089267f94a61a2bfa142923d9e87ded | [] | 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 | 3,270 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.over
import Mathlib.category_theory.limits.conne... |
1d837323fb95a744b9148a557b673c6e12f850aa | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Compiler/IR/NormIds.lean | 8ca07824ef0f12994878ef045e3f7d36600827c3 | [
"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 | 7,437 | 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.Control.Reader
import Init.Control.Conditional
import Init.Lean.Compiler.IR.Basic
namespace Lean
namespace IR
namespace UniqueIds
abbr... |
a7aed33487b93a3cd0ab7e19d28712dbeb36909f | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Elab/Tactic/Induction.lean | b39d820a9ed88ceb90798bb0fbea4f30bc10e00d | [
"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 | 24,345 | 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, Sebastian Ullrich
-/
import Lean.Parser.Term
import Lean.Meta.RecursorInfo
import Lean.Meta.CollectMVars
import Lean.Meta.Tactic.ElimInfo
import Lean.Meta.Tac... |
f2d0fd1e100ae3e5ef985992268a6b6eac261fe7 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/number_theory/sum_two_squares.lean | d0b3c684b794ebede7b7daf46dbce799711ab36b | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 3,154 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
Proof of Fermat's theorem on the sum of two squares. Every prime congruent to 1 mod 4 is the sum
of two squares
-/
import data.zsqrtd.gaussian_int data.zmod.quadratic_recip... |
b5d66b70602619d8aec997fe5cabb26696f88eae | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /test/traversable.lean | c9061ab1b1c050efac4e412628c488858ddee11c | [] | 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 | 722 | lean | import category.traversable.derive category.traversable.instances
@[derive traversable]
inductive foo_bar (α : Type) : Type
| left : α → foo_bar
| right : list α → foo_bar
@[derive traversable]
structure my_struct (α β : Type) : Type :=
(field1 : α)
(field2 : list α)
(other : ℕ)
(field3 : β)
@[derive trave... |
353c4d837111f075b432a2d5923bac86a43e59bd | 46125763b4dbf50619e8846a1371029346f4c3db | /src/data/real/ennreal.lean | ca1e33379160edafb06f02ca46b7293755bf7c19 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 42,564 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Yury Kudryashov
Extended non-negative reals
-/
import data.real.nnreal order.bounds data.set.intervals tactic.norm_num
noncomputable theory
open classical set lattice
... |
c61b40a0252fb5436622321f341cc79feaece58e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/metric_space/gluing.lean | e369594eef2fb664307d2d30883df10fdf39b37a | [
"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 | 32,286 | 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 topology.metric_space.isometry
/-!
# Metric space gluing
Gluing two metric spaces along a common subset. Formally, we are given
```
Φ
Z ---> X
... |
9d0067bcb0f2488504e8e981e580e8f43032394c | 4fa161becb8ce7378a709f5992a594764699e268 | /src/field_theory/mv_polynomial.lean | 5cf5ac8f3159e4ec24f30a79f0766aaff1f1d8cc | [
"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 | 9,106 | 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
Multivariate functions of the form `α^n → α` are isomorphic to multivariate polynomials in
`n` variables.
-/
import linear_algebra.finsupp_vector_space
import field_theo... |
f1595d36ff1621605b261c458773f1f16b5774ab | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Module/colimits.lean | d19e93239f8503cfc7c00982fc8c8691a23be1a5 | [
"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,429 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.concrete_category
import group_theory.quotient_group
import category_theory.limits.shapes.kernels
import algebra.category.Module.basic
... |
698241c522091a5b089515c405a9187694e5e8ff | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/closed/zero_auto.lean | 0458ab4840a46ad99ba1ab59661d8c9b7b294c25 | [] | 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 | 2,220 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.closed.cartesian
import Mathlib.category_theory.limits.shapes.zero
import Mathl... |
a1283e9a92681c4194622d40cc069535fc6a7594 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Lean/Compiler/IR/EmitC.lean | 0c3c5a304b37948be09d4d986672ebfee88a9be3 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,500 | 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.Control.Conditional
import Init.Lean.Runtime
import Init.Lean.Compiler.NameMangling
import Init.Lean.Compiler.ExportAttr
import Init.Lea... |
f066dca660958792c61f53f29f060eca7b63a910 | 56af0912bd25910f5caae91d6dd0603b0c032989 | /src/complex/your_solutions/Level_03_conj.lean | 4894ef88f788c13d6726a22be12a7b4abdde993c | [
"Apache-2.0"
] | permissive | isabella232/complex-number-game | ae36e0b1df9761d9df07049ca29c91ae44dbdc2d | 3d767f14041f9002e435bed3a3527fdd297c166d | refs/heads/master | 1,679,305,953,116 | 1,606,397,567,000 | 1,606,397,567,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,544 | lean | /-
Copyright (c) 2020 The Xena project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kevin Buzzard
Thanks: Imperial College London, leanprover-community
-/
-- import levels 1 and 2
import complex.Level_02_I
/-! # Level 3: Complex conjugation -/
namespace complex
-... |
0e2a1b452888aae2177b968bc9ff31510469843c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/group_action/units.lean | e686cca619c3972717d0cad82d43ca48b319597a | [
"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 | 5,560 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.group_action.defs
/-! # Group actions on and by `Mˣ`
This file provides the action of a unit on a type `α`, `has_smul Mˣ α`, in the presence of
`has_s... |
d3f7cb851fae6b38c0bffdf82b60a1e4a0bfe578 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/model_theory/basic.lean | 43217a27ae104f971c7b5d1edf5926e8dc17ba27 | [
"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 | 20,857 | lean | /-
Copyright (c) 2021 Aaron Anderson, Jesse Michael Han, Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jesse Michael Han, Floris van Doorn
-/
import data.nat.basic
import data.set_like
import data.set.lattice
import order.closure
/-!... |
b86ddee759b7b5851bb2471d862c14c86b489bb0 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/mv_polynomial/basic.lean | fd341330c356431b8627150e8dcad377e7f13bc6 | [
"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 | 4,221 | 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
-/
import algebra.char_p.basic
import linear_algebra.finsupp_vector_space
/-!
# Multivariate polynomials over commutative rings
This file contains basic facts about m... |
278b8271fd7881d1c2490747fe5b3357b2ea7b5c | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/data/fin.lean | a56e427b3f7b5c9a47bf45a55d6acbf9d96590af | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,206 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
import tactic.localized
import order.rel_iso
/-!
# The finite type with `n` elements
`fin n` is the type whose elements are natu... |
bc2b385e8eef92d1cf1cce354a548f624c770ba6 | 0dbd5f7001f62ee8d54ed48bada66bfeaf55e550 | /src/ent/modeq.lean | 98bc9550dce92ec6cb831c4e76d5dbe3203b26a8 | [] | no_license | rwbarton/lean-elementary-number-theory | 667203b08501792eef48217759539f6c1e2da25a | fabef0737fd2486e3f24f9e04652db4c182d5425 | refs/heads/master | 1,670,605,651,029 | 1,599,565,470,000 | 1,599,565,470,000 | 293,792,043 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 870 | lean | /- Additional lemmas on modular equality. -/
import data.nat.modeq
open nat
namespace modeq
variables {a r n k : ℕ}
lemma mod_of_modeq : a ≡ r [MOD n] → r < n → a % n = r :=
begin
rw modeq,
intros e l,
have h : r % n = r := mod_eq_of_lt l,
rw [e, h]
end
lemma rep_of_modeq : a ≡... |
a1ecaf1762d99a19d723b03c02542b898cd0ccc6 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/matrix/charpoly/coeff.lean | f844eaa2a03686198722f0b699852e316ccfb1aa | [
"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 | 10,796 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import algebra.polynomial.big_operators
import data.matrix.char_p
import field_theory.finite.basic
import group_theory.perm.cycles
import l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.