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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54044eb711bdf99a600af7dba0fb3d605b19d2e0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/choose/dvd.lean | bf3493b2700469f990e792135ce7d401fd3d0143 | [] | 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 | 695 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.choose.basic
import Mathlib.data.nat.prime
import Mathlib.PostPort
n... |
df9a4e0e130041ee93cc8c9a4fa77c3551517d6a | df561f413cfe0a88b1056655515399c546ff32a5 | /8-inequality-world/l13.lean | b7b906e5d6c4a63791dac3a566a97b52a671ff76 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 161 | lean | theorem not_succ_le_self (a : mynat) : ¬ (succ a ≤ a) :=
begin
intro h,
have h2 := (le_antisymm a (succ a)) (le_succ_self a) h,
exact (ne_succ_self a) h2,
end |
552da0dfa7d06cb93e25b08376e3bcf353681fff | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/data/rbtree/basic.lean | 8d6e012da16625abe78d215045122b3d8477dd3e | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 8,763 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
universe u
meta def tactic.interactive.blast_disjs : tactic unit :=
`[cases_type* or]
namespace rbnode
variables {α : Type u}
open color nat
inductive i... |
38b80351f3834b4bc1f28333367b613a135df312 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/nat/enat.lean | e098de36cb9e5cec696b03a8d4c58df7716393b5 | [
"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 | 14,604 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.pfun
import tactic.norm_num
import data.equiv.mul_add
/-!
# Natural numbers with infinity
The natural numbers and an extra `top` element `⊤`.
## Main defin... |
bf4a50d271d8bf8a7c4928d646771c7a99b365f3 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/types/default.hlean | 2ba8f0212ef1bab5842ff7bc280926d935c18732 | [
"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 | 283 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import .bool .unit .prod .sigma .pi .arrow .pointed .fiber
import .nat .int
import .eq .equiv .trunc .univ .W .type_functor
|
f63653ea119f896d1ee824a84065685639457767 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/matrix.lean | 2ce178ba29b1dce92040a9913b6cf6262d5e9d28 | [
"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 | 19,835 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, Eric Wieser
-/
import analysis.normed_space.basic
import analysis.normed_space.pi_Lp
import analysis.inner_product_space.pi_L2
/-!
# Matrices as a normed space
In t... |
181e089adeac4b4a395f88d89bfa28636add7c32 | 3618c6e11aa822fd542440674dfb9a7b9921dba0 | /src/solve_by_subst.lean | e595261f71dde08d8a37aec32cf03d7c80888372 | [] | no_license | ChrisHughes24/single_relation | 99ceedcc02d236ce46d6c65d72caa669857533c5 | 057e157a59de6d0e43b50fcb537d66792ec20450 | refs/heads/master | 1,683,652,062,698 | 1,683,360,089,000 | 1,683,360,089,000 | 279,346,432 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,176 | lean | import P
import coprod.free_group
import initial
/-!
# Solve by substitution
This file handles the special case that there is a letter with exactly
one occurence in the relation that does not occur in `T`.
-/
variables {ι : Type} [decidable_eq ι] (T : set ι) [decidable_pred T]
open multiplicative free_group semidirect... |
2c8e4145daeb857b48f194fbea8671ce2a6b4daf | f313d4982feee650661f61ed73f0cb6635326350 | /Mathlib/Data/ByteArray.lean | 7a4a9c821d3298310c25118f31ac969639c04a53 | [
"Apache-2.0"
] | permissive | shingtaklam1324/mathlib4 | 38c6e172eec1385944db5a70a3b5545c924980ee | 50610c343b7065e8eec056d641f859ceed608e69 | refs/heads/master | 1,683,032,333,313 | 1,621,942,699,000 | 1,621,942,699,000 | 371,130,608 | 0 | 0 | Apache-2.0 | 1,622,053,166,000 | 1,622,053,166,000 | null | UTF-8 | Lean | false | false | 4,163 | lean | import Mathlib.Data.Nat.Basic
import Mathlib.Data.Char
import Mathlib.Data.UInt
/-- A terminal byte slice, a suffix of a byte array. -/
structure ByteSliceT := (arr : ByteArray) (off : Nat)
namespace ByteSliceT
/-- The number of elements in the byte slice. -/
@[inline] def size (self : ByteSliceT) : Nat := self.arr.... |
a88e4aef08cb87c45429a3fc13e3cb733fa9f41b | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/setoid.lean | b10754c31d3e74ef22b0b0b6f32450abcfc5d8bd | [
"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 | 25,849 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston, Bryan Gin-ge Chen
-/
import data.quot data.set.lattice data.fintype order.galois_connection order.copy
/-!
# Equivalence relations
The first section of the fil... |
ce1934ffe8b78f61c1758123594d4820727dd5f5 | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/measure_theory/prod.lean | 9d87ae00b3a3c3b7d1dd45c1395432a4d2a628a2 | [
"Apache-2.0"
] | permissive | vozor/mathlib | 5921f55235ff60c05f4a48a90d616ea167068adf | f7e728ad8a6ebf90291df2a4d2f9255a6576b529 | refs/heads/master | 1,675,607,702,231 | 1,609,023,279,000 | 1,609,023,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,455 | 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.giry_monad
import measure_theory.set_integral
/-!
# The product measure
In this file we define and prove properties about the binary produ... |
7b42d8d61973fb1ec41ecea6e80db7814b56b4d4 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/data/nat/cast.lean | 3c278b282e341fd3f7311396922a3954a6b27504 | [
"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 | 6,385 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import algebra.ordered_group
import algebra.ring
namespace nat
variables {α : Type*}
section
... |
5db3e7cf36e204939072e89fd9f7c709f93f5d65 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/category_theory/limits/shapes/equalizers.lean | 531f22d9f08ec54e3270d60e6167c7f8e081c464 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,995 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import data.fintype.basic
import category_theory.epi_mono
import category_theory.limits.limits
import category_theory.limits.shapes.finite_limits
/-!
... |
544b010a1e96b54f7478ecbeef7a2d7adf0c05ad | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/padics/ring_homs_auto.lean | a335a89be5d5c14e1568dcc2c9f4baca58be6fa7 | [] | 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,831 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.padics.padic_integers
import Mathlib.PostPort
... |
9bdd36b2d1a21f236f297a4573b36b215e77da9e | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/set/map.lean | acc80bee7a275f3d4958cc89fe759cb540542013 | [
"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 | 5,149 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.set.map
Author: Jeremy Avigad, Andrew Zipperer
Functions between subsets of finite types, bundled with the domain and range.
-/
import data.set.function
open eq.ops set
record ma... |
2fb7add03a8e0f27fa3e690c793762a55296690e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/mk_dec_eq_instance_indices.lean | 5d8e75e518263381bfdc635d3bda55fea0952b3c | [
"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 | 866 | lean | open tactic
namespace X1
inductive Foo : unit -> Type
| mk : Foo () -> Foo ()
instance (u : unit) : decidable_eq (Foo u) := by mk_dec_eq_instance
end X1
namespace X2
inductive Foo : bool -> bool -> Type
| mk₁ : Foo tt tt
| mk₂ : Foo ff ff -> Foo tt ff
instance (idx₁ idx₂ : bool) : decidable_eq (Foo idx₁ idx₂) :=... |
2c0e39752d857e49c4dbe52fc14f32eb7d169511 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/extreme.lean | a17b098a6b44f672c70c89b46c5cd95fe5622016 | [] | 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 | 11,628 | 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 combinatorics.simplicial_complex.convex_independence
import linear_algebra.affine_space.finite_dimension... |
1955eadaab4f605da1358f5e2ff3b8b59253cb02 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/locally_convex/with_seminorms.lean | 38e1afa83d66589b1905ba3dbe8701cd03249e41 | [
"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 | 30,997 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll, Anatole Dedecker
-/
import analysis.seminorm
import analysis.locally_convex.bounded
import topology.algebra.filter_basis
import topology.algebra.module.locally_convex
/-!
#... |
423a7a1ce6e76231eb5b39cb13679c312aebef30 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/category_theory/adjunction/basic.lean | eb24730df76c51317a0fb33b6a50eab3e1689e7f | [
"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 | 18,121 | 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 category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare th... |
1e1dbbbb7ec4095a1a6712b26cf6345713271781 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/theories/number_theory/prime_factorization.lean | 82c9fa7b6141c7cc64e0bf7ac0e8678f85073efe | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,093 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Multiplicity and prime factors. We have:
mult p n := the greatest power of p dividing n if p > 1 and n > 0, and 0 otherwise.
prime_factors n := the finite set... |
65608f52b2992306fa252cf22d85badc9684015a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/homotopy/wedge.hlean | fc33ce52ca96320e57b3bced5c91601484344493 | [
"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 | 2,852 | hlean | /-
Copyright (c) 2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Ulrik Buchholtz
The Wedge Sum of Two pType Types
-/
import hit.pointed_pushout .connectedness
open eq pushout pointed unit trunc_index
definition pwedge (A B : T... |
892fe9d0cc95c7d3d5aa5337f9cac98d4e53ccda | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/float.lean | b70268145ddcd176c933445936af283926458f0f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,969 | lean |
def tst1 : IO Unit := do
IO.println (1 : Float)
IO.println ((1 : Float) + 2)
IO.println ((2 : Float) - 3)
IO.println ((3 : Float) * 2)
IO.println ((3 : Float) / 2)
IO.println (decide ((3 : Float) < 2))
IO.println (decide ((3 : Float) < 4))
IO.println ((3 : Float) == 2)
IO.println ((2 : Float) == 2)
... |
a5ba73671dfe4f1002edbf0dcfc1f543d0bb6f47 | 159fed64bfae88f3b6a6166836d6278f953bcbf9 | /Structure/Generic/Instances/ConstructibleFunctors.lean | a4c030ea4788845076d0a3e59cca5bc5f1dec937 | [
"MIT"
] | permissive | SReichelt/lean4-experiments | 3e56830c8b2fbe3814eda071c48e3c8810d254a8 | ff55357a01a34a91bf670d712637480089085ee4 | refs/heads/main | 1,683,977,454,907 | 1,622,991,121,000 | 1,622,991,121,000 | 340,765,677 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,605 | lean | #exit
import Structure.Generic.Axioms
import Structure.Generic.DerivedFunctors
open GeneralizedRelation
-- TODO: To make this work for groupoids, we need to add a configurable condition (I think).
class HasConstructibleFunctors (U V : Universe) [h : HasExternalFunctors U V]
[hU : Has... |
e302f43e2a00f2c2b709522a36d508946ce32995 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.32.lean | 86db4d5043baf2efffb4ea41451797c163a5a9ce | [] | 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 | 1,101 | lean | /- page 87 -/
import standard
namespace hide
inductive nat : Type :=
| zero : nat
| succ : nat → nat
namespace nat
definition add (m n : nat) : nat :=
nat.rec_on n m (fun n add_m_n, succ add_m_n)
notation 0 := zero
infix `+` := add
theorem add_zero (m : nat) : m + 0 = m := rfl
theorem add_succ (m n : nat) : m + s... |
f744cc7e0ba388f0694a8f2e1bb14dd1b7238e7d | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2000/IMO_2000_P6.lean | c19299756dea755d94d5611883f828abc8bb528c | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 639 | lean | import Geo.Geo.Core
namespace Geo
open Triangle
def IMO_2000_P6 : Prop :=
∀ (A₁ A₂ A₃ : Point),
acute ⟨A₁, A₂, A₃⟩ →
let Ks := Triple.map (λ (alt : Seg) => alt.dst) (altitudes ⟨A₁, A₂, A₃⟩);
-- Gergonne triangle is triangle with incenter contact points
let Ls := (gergonneTriangle ⟨A₁, A₂, A₃⟩).vertices;
let reflecte... |
7f9c1c06bcd64330d1babf23928c09adc5113888 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/rbtree/basic.lean | ef7962b46b6e3abe77ba143ea6ece301948be81c | [
"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,877 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import tactic.interactive
import data.rbtree.init
universe u
meta def tactic.interactive.blast_disjs : tactic unit :=
`[cases_type* or]
namespace rbnode
... |
f64f4cb0adf23aebbc92a18fe803af3f7ac600ed | 36cfb52a5926b96dc8a44d3b71d2f14a21ef8574 | /k_nn.lean | 083bb4d40eef1a93171292e7cdf245417c74dc55 | [] | no_license | minchaowu/relevance_filter | b46e3cc166b8225b19fac61b8f9911eeecdd42d8 | 3ae59d297ed5a07bd14749112e520b74209f10fd | refs/heads/master | 1,631,071,413,821 | 1,507,745,131,000 | 1,507,745,131,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,725 | lean |
import data.vector
import float sort util -- name clash: see https://github.com/leanprover/lean/issues/1841
open tactic
/--
builds the set of the names of all constants appearing in the expression e
-/
meta def collect_consts (e : expr) : name_set :=
e.fold mk_name_set
(λ e' _ l, match e' with
| expr.const nm ... |
eddcc6f117ec752538967ffa69af61dcdacb2bce | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/spectrum_of_a_ring/zariski_topology.lean | a0e12edd2d3d6c3eb727d78c203553368366b1ff | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,420 | lean | /-
Kenny's proof that Spec(A) is a topological space.
https://stacks.math.columbia.edu/tag/00E1
-/
import topology.basic
import topology.opens
import ring_theory.ideals
import group_theory.submonoid
import to_mathlib.topologcal_space
import spectrum_of_a_ring.spec
import spectrum_of_a_ring.properties
local attri... |
31e4b240772e2288f932f6204538ddbdc2917b78 | 67dc347ff8e6eaa780fd69518f3e69b2fa5eef96 | /src/smt2/solvers/z3.lean | 37d02a2d0cb77549b18787490d544dfb2927191c | [
"Apache-2.0"
] | permissive | Kha/smt2_interface | 74589568b30d32a500fb3a9abb299a28f19d75e9 | d92be33fbf4d56e3745e255ab423ba8da7d7695b | refs/heads/master | 1,619,785,421,091 | 1,518,453,826,000 | 1,518,453,826,000 | 121,273,425 | 0 | 0 | null | 1,518,453,882,000 | 1,518,453,882,000 | null | UTF-8 | Lean | false | false | 647 | lean | import system.io
import data.buffer
open io.proc
structure z3_instance : Type :=
(process : child)
def z3_instance.start : io z3_instance :=
z3_instance.mk <$> io.proc.spawn{
cmd := "z3",
args := ["-smt2", "-in"],
stdin := io.process.stdio.piped,
stdout := io.process.stdio.piped
... |
5417bd301451a2bac5fd18030979df48d8e89db1 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/data/rat/cast.lean | 75a2381505e07409e5ccd4dcbed32b3d5d5841df | [
"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 | 11,732 | 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, Mario Carneiro
-/
import data.rat.order
/-!
# Casts for Rational Numbers
## Summary
We define the canonical injection from ℚ into an arbitrary division ring and prove... |
7f6432ead4f933231ba523b119e07513d99786e5 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Elab/LetRec.lean | babffc7b41c0239b14308f0b07723cc31f7925e3 | [
"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 | 4,646 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Attributes
import Lean.Elab.Binders
import Lean.Elab.DeclModifiers
import Lean.Elab.SyntheticMVars
namespace Lean
namespace Elab
namespace... |
2c2f0ced19642c90381f108907ab5f170d61d02a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/level_bug3.lean | 987e94f0f6469e2fed8a284b53cda1414413d0b3 | [
"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 | 201 | lean | variables {a r : Type}
definition f (a) := Πr, (a -> r) -> r
lemma blah2 (sa : f a) (k : (a -> r)) :
sa r k = sa r k :=
sorry
lemma blah3 (sa : f a) (k : (a -> r)) :
sa r k = sa r k :=
rfl
|
9968b1f5df090e412fff05c6a0605df9e62b1749 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/matchWithSearch.lean | 970ec886eadae8ee8ac3bf11001719772860cd7d | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,603 | lean | inductive Color where
| Red
| Black
open Color
inductive rbnode : Nat → Color → Type where
| Leaf : rbnode 1 Black
| R {h}
(left : rbnode h Black)
(value : Int)
(right : rbnode h Black) : rbnode h Red
| B {h cl cr}
(left : rbnode h cl)
(value : Int)
(right : rbnode h cr) :... |
69d02fed48b93c777cf7eed05a3f2d2e3dbfd702 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /archive/100-theorems-list/93_birthday_problem.lean | 921d534c83eab756b1f01f933f5e602e382c9434 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 3,572 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import data.fintype.card_embedding
import probability.cond_count
import probability.notation
/-!
# Birthday Problem
This file proves Theorem 93 from the [100 Theore... |
6090418687b3f0bef47cd3cc27c31a01fa4749b3 | 93366ecea09eebeeb0b320567c6f71715434c3f0 | /src/bum/io.lean | 824dd298be24583430fef7c274a9382ff3468222 | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | o89/bum | 9c1286cedb878c1e14c618e81b33d365f62c8a8a | 18ffb2b46932ba767c50758a93cc99846ef1b46a | refs/heads/master | 1,670,171,693,018 | 1,669,086,393,000 | 1,669,086,393,000 | 205,409,352 | 8 | 6 | null | null | null | null | UTF-8 | Lean | false | false | 8,792 | lean | import Init.System.FilePath
import bum.configconverter
import Std.Data
open System (FilePath)
open IO.Process
def workdir := FilePath.mk "."
def Lean.deps := [
"-ldl", "-lgmp", "-lm", "-lstdc++",
"-Wl,--end-group", "-lleanrt", "-lStd", "-lInit", "-Wl,--start-group",
"-Wl,--end-group", "-lLean", "-lleancpp", "-... |
f4fc42d78d9ee5dc1da79b5deb102ca3207bf505 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/category/Bipointed.lean | bafe7996568ea454dbb35cb6aa47fcbc61512f7a | [
"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 | 6,898 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import category_theory.category.Pointed
/-!
# The category of bipointed types
This defines `Bipointed`, the category of bipointed types.
## TODO
Monoidal structure
-/... |
29a535bceea6bce1a3ba3df9047e2b80f0915dd5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/private.lean | 18f1f965c50c600120fdefb28c2c24d90af395c1 | [
"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 | 557 | lean | -- Issue 1
def foo := 10
def f (x : Nat) := x + x
namespace Bla
private def foo := "hello"
#check foo -- error: ambiguous overload. It should resolve to `Bla.foo`
end Bla
-- Issue 2
namespace Boo
def boo := 100
namespace Bla
private def boo := "hello"
#check boo -- resolving to `Boo.boo` instead of `Boo.Bla.b... |
7586838feabce00e64d4f248756e9636755ee544 | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /tests/lean/run/cases_bug.lean | ddacd3fb82997ad30d3583c600755dbb200a0854 | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 137 | lean | import logic.cast
theorem cast_heq : ∀ {A B : Type} (H : A = B) (a : A), cast H a == a
| A A (eq.refl A) a := heq_of_eq (cast_refl a)
|
eb369917df3b4bca1e5eebf7f3b4cd09e206d7bf | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/algebra/ordered/compact.lean | 474337ba60eb0ff0bd26b1ad0ef255d55b2e6772 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,582 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Yury Kudryashov
-/
import topology.algebra.ordered.basic
/-!
# Compactness of a closed interval
In this file we prove that a closed interval in a conditionally comple... |
00efccfe761bb4ca3a6a58e27da89c1000c2ad9e | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/compiler/StackOverflowTask.lean | 2006c37ac3513f4c5b4319e1c31363947cfb4717 | [
"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 | 134 | lean | partial def foo : Nat → Nat | n => foo n + 1
@[neverExtract]
def main : IO Unit := IO.println $ Task.get $ Task.mk $ fun _ => foo 0
|
6990a40cd3de56b2c140818c60ec73aaa787d802 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/jacobson_ideal.lean | 25625f43095f4bae99dc93826165d20c1ed6b5fc | [
"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 | 14,879 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Devon Tuma
-/
import ring_theory.ideal.quotient
import ring_theory.polynomial.basic
/-!
# Jacobson radical
The Jacobson radical of a ring `R` is defined to be the intersection... |
70ac848853cabe60158c9e2f5d03b4b43b31e3f2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/unsolvedIndCases.lean | b2d7f6d2391d000f8d374d7003c9a3df6fa39376 | [
"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 | 845 | lean | theorem ex1 (x : Nat) : 0 + x = x := by
cases x with
| zero => skip -- Error: unsolved goals
| succ y => skip -- Error: unsolved goals
theorem ex2 (x : Nat) : 0 + x = x := by
induction x with
| zero => skip -- Error: unsolved goals
| succ y ih => skip -- Error: unsolved goals
theorem ex3 (x : Nat) ... |
f88abe54179ddd489b7b85085ac2808528fb920a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/box_integral/partition/additive.lean | 96594987e60c40fafe527fbde59124a27a861441 | [
"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 | 9,804 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.box_integral.partition.split
import analysis.normed_space.operator_norm
/-!
# Box additive functions
We say that a function `f : box ι → M` from b... |
723e568af75755b9042c222907601c7d80bb61f9 | 0ec6b5eb2131429a4464b8e6c6f09897abba3de1 | /src/statement.lean | fad64a09a18bff2475d94195b82bfa11add2c00f | [] | no_license | kckennylau/local-langlands-abelian | ba1b86e9d956778cd28ac900ffec02b0f0ba172a | ee22666898357dab800a0432214a22c519ed26a9 | refs/heads/master | 1,584,671,060,846 | 1,545,151,246,000 | 1,545,151,246,000 | 137,111,892 | 8 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,069 | lean | import .torus .Weil_group .group_cohomology
universes u v w
noncomputable theory
local attribute [instance] classical.prop_decidable
variables {F : Type u} [local_field F]
variables {TR : Type v} [comm_ring TR] {T : algebra F TR} [cogroup T]
variables (ht : torus T) (W : Type w) [Weil_group F W]
attribut... |
f3f7672ca16b85a053f1ca8258df73870d3d1e76 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/ideal/cotangent.lean | 36b1376b88b13d32ee38f243487b204062c5bd97 | [
"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 | 7,777 | 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 ring_theory.ideal.operations
import algebra.module.torsion
import algebra.ring.idempotents
import linear_algebra.finite_dimensional
import ring_theory.ideal.local_ri... |
52a860f4fe8f42e89384e7b6d308cb739017fcec | 843cffbd2a25fd01677509247a92e9e8b33bec48 | /3. Propopositions and Proofs.lean | 144bd9a1471d6e4f3a9b37a037ae98c2311396d5 | [] | no_license | AlexandruBosinta/MyLeanPlayground | 9a78eba4a5c7a2b82edf84e1794a966f53f06c4f | 5dc50a590d784bfc27e7fb37b6361a6dcc1b2790 | refs/heads/master | 1,586,230,010,351 | 1,542,487,422,000 | 1,542,487,422,000 | 158,016,626 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,589 | lean |
variables p q r s : Prop
theorem t1 : p → q → p := λ hp, λ hq, hp
theorem t2 : ∀ (p q : Prop), p → q → p := λ (p q), λ hp, λ hq, hp
theorem t3 (h₁ : q → r) (h₂ : p → q) : p → r := λ hp, h₁ (h₂ hp)
example (h : p ∧ q) : p := and.elim_left h
variables (hp : p) (hq : q)
#check (⟨hp, hq⟩ : p ∧ q)
exam... |
9c8c48b65905582244f9adb76d17702822571366 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/number_theory/legendre_symbol/add_character.lean | 8d0904f7138cfaffe245c0619b34a0258dc19e47 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 15,540 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import tactic.basic
import field_theory.finite.galois_field
import number_theory.cyclotomic.primitive_roots
import field_theory.finite.trace
/-!
# Additive characters ... |
4a66292df44448bc2444d8e0a132b3d583f264e4 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/algebra/group_power/basic.lean | ac03f351cd620ae5644674c2c5086de775c07ec0 | [
"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 | 23,307 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.ordered_ring
import deprecated.group
/-!
# Power operations on monoids and groups
The power operation on monoids and groups.
We separa... |
608f7144ccf18120d36c5a61db5f18ebbf98ed3f | b9a81ebb9de684db509231c4469a7d2c88915808 | /src/super/splitting.lean | b2b56e4875a69dc2703ce2b038cd437f0891684e | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 2,653 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .prover_state
open monad expr list tactic
namespace super
private meta def find_components : list expr → list (list (expr × ℕ)) → list (list (expr × ℕ))
| (e::... |
d4faab527de4291db3343559df09f8549d82e161 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/algebra.lean | 0385a5a1eb1580aedd9c7929dd3852f4ccb66991 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 2,004 | lean | import ring_theory.algebra_operations
import ring_theory.localization
import for_mathlib.rings
local attribute [instance] set.pointwise_mul_semiring
namespace localization
variables {R : Type*} [comm_ring R] (s : set R) [is_submonoid s]
instance : algebra R (localization R s) :=
algebra.of_ring_hom of (by apply_ins... |
f12c663176195020f71842cde5ce6d3f4eb8a203 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/calculus/extend_deriv.lean | 2b1ef3254164b7821dc8708c367e8d6fa2b8ba19 | [
"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,649 | 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 analysis.calculus.mean_value
/-!
# Extending differentiability to the boundary
We investigate how differentiable functions inside a set extend to diffe... |
6ba01c7238c44d48a5af1a97274d03800c53dd4a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/sheaves/sheaf_condition/pairwise_intersections.lean | df5bed4ae9ab7a6d47591aea5de7cba8354a582e | [
"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 | 12,903 | 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 topology.sheaves.sheaf
import category_theory.limits.preserves.basic
import category_theory.category.pairwise
/-!
# Equivalent formulations of the sheaf cond... |
0140ae11947761f0b18fb001728322385fefe0d3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/representation_theory/group_cohomology/basic.lean | b2860c0192415d13b01581bb69c9babab927d347 | [
"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,689 | lean | /-
Copyright (c) 2023 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import algebra.homology.opposite
import representation_theory.group_cohomology.resolution
/-!
# The group cohomology of a `k`-linear `G`-representation
> THI... |
cedcf934905e03d088f28777d704a4e00ef979ae | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/category/constructions.lean | 628ace0d8794b808d534757469e2186e0c69ef3f | [
"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 | 16,686 | 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
-- This file contains basic constructions on categories, including common categories
import .natural_transformation
import data.unit data.sigma data.prod dat... |
caaf5429ed464bf7eb320fe96115af7effc8a0ac | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /tests/lean/run/aStructPerfIssue.lean | 917bc3f0d73a87ee137f018528cc81acf6f35431 | [
"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 | 10,295 | lean | noncomputable section
namespace MWE
universe u v w
inductive Id {A : Type u} : A → A → Type u
| refl {a : A} : Id a a
attribute [eliminator] Id.casesOn
infix:50 (priority := high) " = " => Id
@[match_pattern] abbrev idp {A : Type u} (a : A) : a = a := Id.refl
def Id.symm {A : Type u} {a b : A} (p : a = b) : b = a... |
3d654e18d643b41692002870a13af4ca7b7a3776 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/notation6.lean | bd1eea649a7db148f78e6a77244151c6ef9ded8d | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 134 | lean | import logic data.num
open num
notation `o` := 10
check 11
constant f : num → num
check o + 1
check f o + o + o
eval 9 + 1
eval o+4
|
904dc8d0825003ac506bab827d8b8471a625dc0b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/wrong_arity.lean | aab37aa129ef4083d3ed0e8d132eb5e36945774f | [
"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 | 115 | lean | open nat
theorem succ_ne_self : ∀ (n : ℕ), succ n ≠ n
| 0 h := absurd h (nat.succ_ne_zero 0)
| n := sorry
|
b9286c44cc1ba388b7d3bf7d19ad6a302908abe7 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/equiv/ring.lean | 1f2d0739fd3b2b3e39ee18f1a6fb88fb3e2f55e2 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,212 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Callum Sutton, Yury Kudryashov
-/
import data.equiv.mul_add
import algebra.field
import algebra.opposites
/-!
# (Semi)ring equivs
In this file we define extension of ... |
2b53604c874d60a0f476f8ac8a9f3f89d7f5949c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/convex/cone.lean | b45d9b5b99da675d4e8242646d3735378ce41f53 | [
"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 | 25,248 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis
-/
import analysis.convex.hull
import analysis.inner_product_space.basic
/-!
# Convex cones
In a `𝕜`-module `E`, we define a convex cone as a set `s... |
1a1794ca35f09c4092b0f24100b0b5d1fa09bdff | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/finish_auto.lean | 4cdacbc107474d519e4adc917cb7a26b44e4396c | [] | 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 | 8,120 | lean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Jesse Michael Han
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.hint
import Mathlib.PostPort
universes l u
namespace Mathlib
/-... |
0a4db7fcc4d215302d7f708a4b09a4f3d58f5b2b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/vmo2.lean | fb3591029599d156407008d14319361aa1c3f8df | [
"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 | 117 | lean | import .vmo1
#eval cheese -- should be comte
attribute [vm_override fromage] cheese
#eval cheese -- should be comte
|
60bd6fafa98b486a2713ffe115d83a3d2572d2c0 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebra/module/basic.lean | 4a6b21c9c1e201647ece4dad480734169900700b | [
"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 | 18,678 | 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 algebra.big_operators.basic
import algebra.group.hom
import group_theory.group_action.group
import algebra.s... |
4d659988e0e36a2fbbd737beeb3fe683f82c8460 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/myring/principal_ideal_domain.lean | 7ddcbad23c85f6b827c1e56d991ffb4a477a0b01 | [] | 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 | 926 | lean | import .integral_domain
import .ideal
namespace hidden
namespace myring
variables {α : Type} [myring α] (I J : myset α)
def principal_ideal (r : α) : myset α := { b | ∃ a, r * a = b }
theorem principal_ideal_ideal : ∀ r : α, is_ideal (principal_ideal r) :=
begin
intro r,
split, {
existsi (0: α),
rw mul... |
70702a43c1f80482db26e1a20047d7d5072a3969 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/algebra/lie_algebra.lean | cf1c78204997f06133aba9191b5d887cca7f92b7 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 16,242 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import ring_theory.algebra data.matrix.basic linear_algebra.linear_action
/-!
# Lie algebras
This file defines Lie rings, and Lie algebras over a commutative ring. It sho... |
5314649696b94fc76ea7b91d80496d43f50bb31d | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /src/graph_theory/scratch.lean | 45fc0d5c2515a47dd04eb316b0c08208a36e878e | [] | no_license | vbeffara/lean | b9ea4107deeaca6f4da98e5de029b62e4861ab40 | 0004b1d502ac3f4ccd213dbd23589d4c4f9fece8 | refs/heads/main | 1,652,050,034,756 | 1,651,610,858,000 | 1,651,610,858,000 | 225,244,535 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 787 | lean | import combinatorics.simple_graph.basic
variables {U V : Type*}
open simple_graph
def Φ₁ : (complete_bipartite_graph U V).dart → (U × V) ⊕ (V × U) :=
begin
rintro ⟨⟨x | x, y | y⟩, h⟩; { simp at h, contradiction } <|>
{ exact sum.inl (x, y) } <|> { exact sum.inr (x, y) }
end
def Φ₂ : (U × V) ⊕ (V × U) → (compl... |
43119cec36ad9e0b77e63d913a49e74ed416f04a | 137c667471a40116a7afd7261f030b30180468c2 | /src/category_theory/limits/shapes/pullbacks.lean | 302f8c867766b24419eb68e3ce59c3926234d767 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,559 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel, Bhavik Mehta
-/
import category_theory.limits.shapes.wide_pullbacks
import category_theory.limits.shapes.binary_products
/-!
# Pullbacks
We define a ca... |
ff8a5523e98f3eb6fe5aa0cb124330605abe09a1 | 9060db28f6353f040da7481ea5ebcdac426589ff | /fabstract/Bauer_A_InjBaireNat/realizability.lean | 42d9dbeb91bc34086c3bb1455341eb610a384c05 | [] | no_license | picrin/formalabstracts | 9ccd859fb34a9194fa5ded77ab1bc734ababe194 | 8ebd529598cfc8b6bd02530dd21b7bf3156de174 | refs/heads/master | 1,609,476,202,073 | 1,500,070,922,000 | 1,500,070,922,000 | 97,234,461 | 0 | 0 | null | 1,500,037,389,000 | 1,500,037,389,000 | null | UTF-8 | Lean | false | false | 349 | lean | -- the folklore does not yet contain anything about realizability toposes,
-- so we include partial formalization here. Eventually this should be
-- moved to folklore (see issue such-and-such).
import folklore.toposes
-- missing definition of what a PCA is
axiom PCA : Type
-- missing construction of realizability to... |
0936d9fbe28df5efbd6653c4b5a44381152b6656 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/equiv.lean | 10bc82c8bc2293e96d0b42b4205e9e469011044d | [
"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 | 16,524 | 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
In the standard library we cannot assume the univalence axiom.
We say two types are equivalent if they are isomorphic.
Two equivalent types have the same car... |
0026f5f9d1950e38ff5bdff8936383cd59a98f5e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/nat/parity.lean | 9ae0deccba1acf52182a5b4e9f109401622bccb3 | [
"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 | 8,883 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Benjamin Davidson
-/
import data.nat.modeq
/-!
# Parity of natural numbers
This file contains theorems about the `even` and `odd` predicates on the natural numbers.
##... |
99481c8c46e56b3d11531150d69353e80b0041a1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/sigma/basic.lean | d034de71c6190ada876da97ca762ed1561c0deea | [
"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 | 7,773 | 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 category_theory.natural_isomorphism
import category_theory.eq_to_hom
import data.sigma.basic
import category_theory.pi.basic
/-!
# Disjoint union of categories
W... |
fdd4aa26d4a4c8bdc2935363ac04e65608b671a5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/big_operators/finsupp.lean | 38376ff7a90271cbedf9db00d6c4829e643b1767 | [
"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 | 1,116 | 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.big_operators.pi
import data.finsupp
/-!
# Big operators for finsupps
This file contains theorems relevant to big operators in finitely supported functions.
-... |
0315e8707d1fc46510f1c6a60d6f5a0009562acd | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1513.lean | f82e90f451f2cef19999dfe0c9baa5661b046286 | [
"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 | 173 | lean | example (n : ℕ) (h : n = 0) : n = 0 :=
by rename n m
example (n : ℕ) : let x := 10 in n > 0 → x > 5 → n ≠ x → x + 1 = 1 + x :=
begin
intros,
rename x y
end
|
7f3ca49f410c67c06626845c082379096918857f | 10c7c971a1902d76057c52ce0529ebb491a69c44 | /ForAll&Exists.lean | b3637d6ed135932eb99a1fbb1651b08812ee1559 | [] | no_license | SzymonKubica/Lean | 5f6122e8dd9171239b36a9ce0515f6acbc49781a | 627bff2f001ba3f009c112c9332093e8de84863c | refs/heads/main | 1,675,563,490,768 | 1,608,538,609,000 | 1,608,538,609,000 | 307,184,347 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 732 | lean | import tactic
import data.real.basic
example: ∀ x : ℝ, ∃ y : ℝ, x + y > 0 :=
begin
intro x,
use 64-x,
simp,
norm_num,
end
-- ∃ y : ℝ, ∀ x : ℝ, x + y > 0 :=
-- Is not true, as we can prove the opposite.
example: ¬ (∃ y : ℝ, ∀ x : ℝ, x + y > 0) :=
begin
push_neg,
intro y,
use -73 - y,
... |
90409ee3f97222a1f2313be4a268d55b42fe5de0 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/namespace_bug.lean | 32059d1fe2babab73f591d298ab2ffd70073d6ea | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 92 | lean | namespace playground
namespace nat
check 2+3 -- Should produce error
end nat
end playground
|
606803c232c5b869723e00e8adba64a41b751746 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/polynomial/rational_root.lean | 8da6b38c335cfa4b774bfdcef06ca20cddf67edd | [
"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 | 5,027 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import ring_theory.integrally_closed
import ring_theory.polynomial.scale_roots
/-!
# Rational root theorem and integral root theorem
This file contains the rational root... |
c2974b6629118ef58f9bc319c8ca158c523427b6 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category/traversable/basic.lean | 2c52f15ccc8c6c9396301991ddfd3ac0a894e381 | [
"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 | 5,787 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import tactic.cache
import category.applicative
/-!
# Traversable type class
Type classes for traversing collections. The concepts and laws are taken from
<http://hackage... |
2223ed02f496694dd316e6534765d9ee6247e8d2 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/vector/map_accum_lemmas.lean | 3448b8f061dae154b00e858c098713b828301302 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,321 | lean | import ..list.map_accum_lemmas
import .zero_length_lemmas
universe variables u
namespace vector
variable {α : Type u}
variable {n : ℕ}
local infix `++`:65 := vector.append
-- Simplify map_accumr₂ over empty lists
@[simp]
theorem map_accumr₂_nil
{α β γ φ : Type}
(f : α → β → γ → γ × φ)
(x : vector α 0)
(y :... |
3d05d2e5f9ef20eb308e60db25baef38157ab85c | 82ad4119063bae9cb1cdabcb80c8f02d65e5b676 | /src/ivt.lean | 579b8a78ca23f9a3eba6d80cd7c1b9b5da6df304 | [] | no_license | shingtaklam1324/analysis-i | fb009497e0410af51c2cdd8a6f440c7349d0a10b | 928dd413014ca6668560c504592e0a15a83ea63a | refs/heads/master | 1,677,838,878,682 | 1,612,371,654,000 | 1,612,371,654,000 | 332,424,640 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,381 | lean | import data.real.basic
import topology.continuous_on
import topology.instances.real
import topology.basic
import tactic
import lecture1
open filter
open_locale filter topological_space
/-
One alternative definition of what a countinuous function is that if xₙ → a, then f(xₙ) → f(a).
For now, we will use the mathlib ... |
27dbc989a695822c90c466e3e186b384e172aad2 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Compiler/LCNF/Main.lean | 45e217882e8f4b25b8a0c5e8b4b01d81bf9b759d | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 3,951 | 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.Compiler.Options
import Lean.Compiler.LCNF.PassManager
import Lean.Compiler.LCNF.Passes
import Lean.Compiler.LCNF.PrettyPrinter
import Lean.Comp... |
6fd4f12fc47475be7de8b9a6dce6b5cf2536bad4 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Std/Data/PersistentHashMap.lean | 468d778d95fc8b23266b756968a08e05773b0c8a | [
"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 | 13,371 | 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
-/
namespace Std
universes u v w w'
namespace PersistentHashMap
inductive Entry (α : Type u) (β : Type v) (σ : Type w) where
| entry (key : α) (val : β) : ... |
4066b79a23a7a4277f88a663bb3dccb30dadf23d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/atomic_notation.lean | d39fef1c647bde9e045bc4164c146505b93e1899 | [
"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 | 91 | lean | open num
constant f : num → num
notation `o`:1 := (10:num)
check o + 1
check f o + o + o
|
e486eb0339a804b5feee1758b90c4ff84608598c | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/KeyedDeclsAttribute.lean | 50e390a9c379234d260f94cdf2c0004f8e6277f8 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,094 | 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.Attributes
import Lean.Compiler.InitAttr
import Lean.ToExpr
import Lean.Data.FormatMacro
/-!
A builder for attributes that a... |
b9ae2058423994472da853dd21a237dca3cc1ad9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/dynamic.lean | 1306d4aa0639c0f760c40f029d05fdbcb71d3cc6 | [
"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 | 267 | lean | deriving instance TypeName for Nat
deriving instance TypeName for String
example : (Dynamic.mk 42).get? String = none := by native_decide
example : (Dynamic.mk 42).get? Nat = some 42 := by native_decide
example : (Dynamic.mk 42).typeName = ``Nat := by native_decide
|
ee8dce29f4f352859c931b59dcaf238f30760a54 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/pkg/user_opt/lakefile.lean | f409768a7992a41659c5c77f7f73196963d15059 | [
"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 | 85 | lean | import Lake
open System Lake DSL
package user_opt
@[defaultTarget] lean_lib UserOpt
|
e1ac84ef992d8e81c2bb058c9d9775fc79089450 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/metric_space/lipschitz.lean | c7af01efbab012855d089b980fd3be1277b82efe | [
"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 | 27,535 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import logic.function.iterate
import data.set.intervals.proj_Icc
import topology.metric_space.basic
import ... |
4047e455e472c8b9c9a0c9773ae61b3d9832072b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monad/products.lean | 2062ee02cf3be160fbfbeabbcf56c5bda3ab094c | [
"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 | 4,095 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.over
import category_theory.monad.algebra
import category_theory.limits.shapes.binary_products
/-!
# Algebras for the coproduct monad
> THIS FILE... |
dd9d9db1291cd1910ec4ab8fc0c62efc76df7fbe | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/data/int/order.lean | 34bbc284c4e750b2160efd8c34b6159d28cfbaed | [
"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 | 2,931 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import order.conditionally_complete_lattice
/-!
## `ℤ` forms a conditionally complete linear order
The integers form a conditionally complete linear order.
-/
... |
5312074c685fbf8c5a7e4f0943a9fdfef068a1f0 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/set_theory/game/short.lean | 3f496f187f4c67f4424fda02e9bb99e36d88607d | [
"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 | 9,253 | 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 data.fintype.basic
import set_theory.cardinal.cofinality
import set_theory.game.basic
import set_theory.game.birthday
/-!
# Short games
A combinatorial game ... |
e1565b3b409bb5d57eeb2a77daaa0030249a0463 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/filter/ennreal_auto.lean | 3ad97ed2bf8b20e6d777b6bff66f41bc6606d36f | [] | 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,548 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.real.ennreal
import Mathlib.order.filter.countable_Inter
import Mathlib.order.liminf_limsu... |
5f562d69d021b963d9dee0b308b1539f0b722960 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finsupp/well_founded.lean | 9a9450b297ebcccd186fba440baa06e076c3412a | [
"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 | 3,428 | lean | /-
Copyright (c) 2022 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu
-/
import data.dfinsupp.well_founded
import data.finsupp.lex
/-!
# Well-foundedness of the lexicographic and product orders on `finsupp`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB... |
b44b285409d607b04e9fe3f5fbeb757c8da1b8e9 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Meta/AppBuilder.lean | d3e50c76b5f88cf6754f5f6d833c78aa52e46813 | [
"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 | 16,170 | 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.Structure
import Lean.Util.Recognizers
import Lean.Meta.SynthInstance
import Lean.Meta.Check
namespace Lean
namespace Meta
variables {m : Type ... |
72f88f42e8c4236230948aa31754f4ab858f6e06 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/algebra/field.lean | cf6e4f52ef38d22a361f2ef0e9f1416c11e79e71 | [
"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 | 9,489 | 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
-/
import algebra.ring logic.basic
open set
universe u
variables {α : Type u}
@[priority 100] -- see Note [lower instance priority]
instance division_r... |
5b800d245c431bd95a6ac692faeaa278e6b2521e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/sec_bug.lean | 25faf4ef67313c8b311f1b6ef751eb9f81c19efa | [
"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 | 83 | lean | namespace foo
section bla
definition tst := true
end bla
end foo
#check foo.tst
|
3e5805daac8adf7d99a5d7325307e4a732acf2f3 | 7850aae797be6c31052ce4633d86f5991178d3df | /stage0/src/Lean/Server/InfoUtils.lean | 632b74fb05446852991dca85ecb438daf5a01a2c | [
"Apache-2.0"
] | permissive | miriamgoetze/lean4 | 4dc24d4dbd360cc969713647c2958c6691947d16 | 062cc5d5672250be456a168e9c7b9299a9c69bdb | refs/heads/master | 1,685,865,971,011 | 1,624,107,703,000 | 1,624,107,703,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,110 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.DocString
import Lean.Elab.InfoTree
import Lean.Util.Sorry
namespace Lean.Elab
/--
For every branch, find the deepest node in that branch match... |
df50ed598bd42111f875d3c96e7e8ca53d162ad5 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/absolute_value.lean | 5156553a1eb70851063e9644156133fd9b7758ce | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,904 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Anne Baanen
-/
import algebra.ordered_field
/-!
# Absolute values
This file defines a bundled type of absolute values `absolute_value R S`.
## Main definitions
* `abs... |
1176897426e84beee836b40f98f3671cab32ee05 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-algebra-184.lean | e93d3bfceef2a2b0725fb6f1ff2ee7ec95484cee | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,757 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import tactic.gptf
import tactic.suggest
import data.real.basic
import data.real.nnreal
import data.real.sqrt
import data.complex.basic
import algebra.algebra.basic
example (... |
4dec82ffa1ba53051f9a3fdbf50d4b1ea897534f | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/list/perm.lean | 88df2a51d0e59ddc35d594abe917b01d193129db | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 56,863 | 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, Mario Carneiro
-/
import data.list.dedup
import data.list.lattice
import data.list.permutation
import data.list.zip
import data.list.range
impo... |
3c83d4e0c45da450b4f0724197d519e2ac39234d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/ordered_ring_auto.lean | c0544daf13bdf8cb3bf2d8e5b80eb29a818538ac | [] | 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 | 50,718 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ordered_group
import Mathlib.data.set.intervals.ba... |
3da809794c2ec324d9922b6a44f84c969f6f2e38 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/extra/print_tests.lean | 6af65c8c255ae4d4c306988d36c4abbb9deb5b7b | [
"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 | 80 | lean | #print notation
#print notation ∧ ∨
#print notation if
#print notation %
|
51d1928224285e0e15ce175fa3e981b9842550d6 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/tactic/core.lean | af90a4cc33f5dfe8751dbbb3afdd50dcd2f101e6 | [
"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 | 46,170 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic category.basic meta.expr meta.rb_map data.bool
namespace expr
open tactic
attribute [derive has_re... |
1dbd397024c027f30aa6df8db3ea1b09361122b4 | fe84e287c662151bb313504482b218a503b972f3 | /src/data/enumeration.lean | 1d79f0c6723fd590f87dbae89d701c5aeeacc1b8 | [] | 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 | 6,948 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
This file defines a typeclass for types α with an ordered
enumeration of the elements (as opposed to a `fintype`
instance, which is an unordered enumeration). This... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.