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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db917b418ef655a0154dbd944f2d411dd4b619e1 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch6/ex0101.lean | da1becf0c66fa37ec415e9f567351e25d08c0d97 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27 | lean | -- import foo bar.baz.blah
|
b985258bca957bb22d6b10090331d7ef91736866 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/init/datatypes.hlean | 7e626f8acbcd0369f45f9033a00e99381200119b | [
"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,992 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jakob von Raumer
Basic datatypes
-/
prelude
notation [parsing_only] `Type'` := Type.{_+1}
notation [parsing_only] `Type₊` := Type.{_+1}
notation `Type₀` := ... |
2ba003d59003d57e802c1960523948e75f96d3ca | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/coe3.lean | b43a217e0d99cab3c1938468bb5555032d4dd1d0 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 320 | lean | constants A B₁ B₂ C D : Type
constant A_to_B₁ : has_coe A B₁
constant A_to_B₂ : has_coe A B₂
constant B₁_to_C : has_coe B₁ C
constant B₂_to_D : has_coe B₂ D
attribute [instance] A_to_B₁ A_to_B₂ B₁_to_C B₂_to_D
constant a : A
constant f : C → C
constant g : D → D
check f a
check g a
|
07b34b8d782acd5924540ea7905f5ed19dd72d5b | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/measure_theory/measure_space.lean | ee4d8c420c3bf681273e409aefbd3f2570eba5c9 | [
"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 | 35,089 | 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
Measure spaces -- measures
Measures are restricted to a measurable space (associated by the type class `measurable_space`).
This allows us to prove equ... |
dc41d34658203c8894edc11532dfed30097a0ed0 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/nat/digits.lean | 68f0f37b266987ccb8069d1fc006d799d921ea65 | [
"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 | 22,248 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Shing Tak Lam, Mario Carneiro
-/
import data.int.modeq
import data.nat.log
import data.list.indexes
import tactic.interval_cases
import tactic.linarith
/-!
# Digits of... |
74a5c2d260fa25603300efd6f499043059c42838 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/contraction_auto.lean | 731552b4a0eaf5a36e2c8eb0a6f4802d02301852 | [] | 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,558 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.dual
import Mathlib.PostPort
universes u v
namespace Mathlib
/-!
# Contraction... |
55de764cca107a994a7f69ba51cf0526c56320cd | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Meta/SynthInstance.lean | 308b8ae989e7be1f2dbabdcbe4be3456dd9f1e66 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 34,026 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Leonardo de Moura
Type class instance synthesizer using tabled resolution.
-/
import Lean.Meta.Basic
import Lean.Meta.Instances
import Lean.Meta.AbstractMVars
im... |
87d6c66883051542a1967254c4ac4871150399d4 | 26b290e100179c46233060ff9972c0758106c196 | /test/cpdt2.lean | f4deeedd02987cb4c0be4887d42cca9ec3f96caa | [] | no_license | seanpm2001/LeanProver_Mini_Crush | f95f9e06230b171dd84cc49808f5b2f8378c5e03 | cea4166b1b2970fba47907798e7fe0511e426cfd | refs/heads/master | 1,688,908,222,650 | 1,547,825,246,000 | 1,547,825,246,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,780 | lean | /-
CPDT Chapter 2, Introducing Inductive Types
-/
import mini_crush
universe variable u
export nat (succ)
def is_zero : ℕ → bool
| 0 := tt
| (succ _) := ff
def plus : ℕ → ℕ → ℕ
| 0 m := m
| (succ n') m := succ (plus n' m)
theorem n_plus_0 (n : ℕ) : plus n 0 = n :=
by mini_crush
lemma plus_S (n1 n2 :... |
d45564d345ac898c54d512d149866eb262a684e6 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/measure_theory/integration.lean | bf26a73a00be0331f290d5ddebffc7eac3f6f367 | [
"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 | 57,211 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
25782420e1d09dc611dcd0e20592bd46a0ce2d49 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/noetherian_space.lean | 1d2ad9f3991d0380512a9c71685ed5a03ceb5d6d | [
"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,363 | 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 order.compactly_generated
import topology.sets.closeds
/-!
# Noetherian space
A Noetherian space is a topological space that satisfies any of the following equival... |
d22f7b9afc547afb9dfbc29d1819dc7955047980 | 3af272061d36e7f3f0521cceaa3a847ed4e03af9 | /src/matrix_groups.lean | 1247fb59e3b6e66091135b7028d3f771d0a077a4 | [] | no_license | semorrison/kbb | fdab0929d21dca880d835081814225a95f946187 | 229bd06e840bc7a7438b8fee6802a4f8024419e3 | refs/heads/master | 1,585,351,834,355 | 1,539,848,241,000 | 1,539,848,241,000 | 147,323,315 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 649 | lean | import .determinants
universe u
def GL (n : ℕ) (R : Type u) [ring R] := units (matrix (fin n) (fin n) R)
namespace GL
variables {n : ℕ} {R : Type u} [comm_ring R]
instance : group (GL n R) := by unfold GL; apply_instance
def det : GL n R → units R := units.map matrix.det
instance : is_group_hom (det : GL n R → u... |
975c40752cbdcfa5b81244e15d908fce841711f8 | 845976968546725c9fa2976823b4102f4827056d | /src/limits.lean | c5a459ae65cb87c8262585e77ec5357cf4a45e40 | [
"Apache-2.0"
] | permissive | PatrickMassot/M1P1-lean | 37b2f56af7ce9765dbef1940062487914eb3b712 | 4000dc5f449020e4f1a4820fc807383a3df42d85 | refs/heads/master | 1,587,280,512,253 | 1,548,801,138,000 | 1,548,801,138,000 | 168,042,050 | 0 | 0 | null | 1,548,711,613,000 | 1,548,711,613,000 | null | UTF-8 | Lean | false | false | 14,616 | lean | /- limits.lean
Limits of sequences.
Part of the M1P1 Lean project.
This file contains the basic definition of the limit of a sequence, and
proves basic properties about it.
It is full of comments in an attempt to make it more comprehensible to
mathematicians with little Lean experience, although by far the best
way... |
7ac5dec30445abadde3ca73ab9f1883d1e94d067 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/homology/homological_complex.lean | 4d183ab8b5dae49eba11bdfb3c2730039d2f5174 | [
"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 | 31,516 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import algebra.homology.complex_shape
import category_theory.subobject.limits
import category_theory.graded_object
/-!
# Homological complexes.
A `h... |
bebbb497404e5f9394d13f8bff11fb0cccc28b79 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/constructions.lean | 359ade011ce014c4a96ae511f3fe28c6ea3d3d89 | [
"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 | 46,455 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.maps
/-!
# Constructions of new topological spaces from old ones
This file constructs products, sums, subtypes and q... |
6bad573efcd6945731b6ccc6269c6ef55543dd76 | 13133fade54057ee588bc056e4eaa14a24773d23 | /Definitions/double_factorial_def.lean | 0997c8bac6be97265c807e941d40ad79fa4f710b | [] | no_license | lkloh/lean-project-15815 | 444cbdca1d1a2dfa258c76c41a6ff846392e13d1 | 2cb657c0e41baa318193f7dce85974ff37d80883 | refs/heads/master | 1,611,402,038,933 | 1,432,020,760,000 | 1,432,020,760,000 | 33,372,120 | 0 | 0 | null | 1,431,932,928,000 | 1,428,078,840,000 | Lean | UTF-8 | Lean | false | false | 503 | lean | import data.nat
open nat
-- even factorial
-- #0 -> 0, 0!! = 1
-- #1 -> 2, 2!! = 2
-- #2 -> 4, 4!! = 8
-- #3 -> 6, 6!! = 48
-- ...
definition efac : nat → nat
| efac 0 := 1
| efac 1 := 2
| efac (n+1) := efac(n) * (2*(n+1))
eval efac 0
eval efac 1
eval efac 2
eval efac 3
-- odd factorial
-- #0 -> 1, 1!! = 1
-- #... |
af7f2fe57bc556d06d231727bea6959a35074f81 | 367134ba5a65885e863bdc4507601606690974c1 | /src/geometry/manifold/mfderiv.lean | ae6853b41dd1c2d0586857fd592e454ba13d2d14 | [
"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 | 65,183 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners ... |
ee440ee45605183afd2c6739f8a9a26f88699539 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/big_operators/intervals.lean | 1c8260ea535dece31ab49b825f5253efec12adc2 | [
"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 | 10,540 | 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
-/
import algebra.big_operators.basic
import algebra.module.basic
import data.nat.interval
import tactic.linarith
/-!
# Results about big operators over intervals
We ... |
528186449b8eb41a620bf5306ad0e61a21c2b246 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/mazur_ulam.lean | 2906940622db4d3bb720b1de5c0e08eff1e8242a | [
"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 | 6,836 | 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 topology.instances.real_vector_space
import analysis.normed_space.affine_isometry
import linear_algebra.affine_space.midpoint
/-!
# Mazur-Ulam Theorem
Mazu... |
f00a003617083bbe298a445f63b8a757c3871365 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/part_enat.lean | 599f44cb6f70efc182e63ff60497ae13d4da72de | [
"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 | 22,058 | 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 algebra.hom.equiv.basic
import data.part
import data.enat.lattice
import tactic.norm_num
/-!
# Natural numbers with infinity
> THIS FILE IS SYNCHRONIZED WITH MAT... |
a59f0331bf9a3591de9da0261c8d3e338b950c46 | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/util/finite.lean | c2ddc30d9a51153bb022186b54176a0e4bb20fcd | [] | no_license | PatrickMassot/lean-category-theory | 0f56a83464396a253c28a42dece16c93baf8ad74 | ef239978e91f2e1c3b8e88b6e9c64c155dc56c99 | refs/heads/master | 1,629,739,187,316 | 1,512,422,659,000 | 1,512,422,659,000 | 113,098,786 | 0 | 0 | null | 1,512,424,022,000 | 1,512,424,022,000 | null | UTF-8 | Lean | false | false | 3,539 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import ..tactics
import .Two
namespace categories.util.finite
structure Bijection ( U V : Type ) :=
( morphism : U → V )
( inverse : V → U )
( witness_1 ... |
f9f2184dc9aee777aceacebd717337acc61591ae | 09b3e1beaeff2641ac75019c9f735d79d508071d | /Mathlib/Data/List/Basic.lean | b448eb9b763ca2b1ce6b3b9f1937e8eef67650ff | [
"Apache-2.0"
] | permissive | abentkamp/mathlib4 | b819079cc46426b3c5c77413504b07541afacc19 | f8294a67548f8f3d1f5913677b070a2ef5bcf120 | refs/heads/master | 1,685,309,252,764 | 1,623,232,534,000 | 1,623,232,534,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,672 | lean | import Mathlib.Logic.Basic
import Mathlib.Data.Nat.Basic
import Mathlib.Mem
namespace List
/-- The same as append, but with simpler defeq. (The one in the standard library is more efficient,
because it is implemented in a tail recursive way.) -/
@[simp] def append' : List α → List α → List α
| [], r => r
| a::l, r => ... |
c8dce219f842d0b878086faf1f573d379be8553a | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/set/basic.lean | a9a3cf7906887fc533e1879e81729a4dac45f7cb | [
"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 | 65,816 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
import tactic.basic tactic.finish data.subtype logic.unique
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have ... |
bc1b4c738b7db8f25c2a55336361931028d12ed0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/omega/nat/form.lean | cd4bfb5b6e4f6cb584d048c5e774737211ac9da4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,874 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Linear natural number arithmetic preformulas in pre-normalized preform.
-/
import tactic.omega.nat.preterm
namespace omega
namespace nat
/-- Intermediate shadow syntax ... |
25c7bc8a7988d17f02ed11a9da87cc3387e7a68d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/interactive/class_bug.lean | 17f1d989c524916b61b8a86ef7c95b01fad344a7 | [
"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 | 165 | lean | import data.nat.basic
open nonempty inhabited nat classical
theorem int_inhabited [instance] : inhabited nat := inhabited.mk zero
check epsilon (λ x : nat, true)
|
5c59407d743caa43c20aa0c03f6e041409cf9aa7 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/ring_theory/algebraic.lean | 2e530e70ac41eefc0076806142add958e419f53f | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,903 | 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 linear_algebra.finite_dimensional
import ring_theory.integral_closure
import data.polynomial.integral_normalization
/-!
# Algebraic elements and algebraic ex... |
5d1caffc5dddf86ce14548fc19a40fd0d411cc49 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Simp/JpCases.lean | a012e1842f8f951fbda6e4954633ca7fbf459ced | [
"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 | 12,129 | 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.LCNF.DependsOn
import Lean.Compiler.LCNF.InferType
import Lean.Compiler.LCNF.Internalize
import Lean.Compiler.LCNF.Simp.Basic
import Le... |
7e7293af458888609b3cb1ba6798c222bdfcaa4f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/random.lean | e7ce38e1c5d122fbcc8df228af20fdb853d7d19a | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 2,487 | lean | import system.io
universes u
def tst1 : nat :=
let s := mk_std_gen, /- create standard random number generator -/
(v, s') := rand_nat s 0 100 /- generate a random nat in [0, 100]. -/
in v
#eval tst1
def tst2 : bool × bool × bool × bool :=
let s := mk_std_gen, /- create standard random nu... |
f13202a3d0a49aa6c04f0088db26460c06fd4524 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/adjunction/adjoint_functor_theorems.lean | 9b99b59f433abe0f1c4f4158d4256f141893c665 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,545 | 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.generator
import category_theory.limits.cone_category
import category_theory.limits.constructions.weakly_initial
import category_theory.limits.func... |
5305f7cfe82a14adcb0e1d57bd98daf47b769e29 | e0e64c424bf126977aef10e58324934782979062 | /src/wk3/exercises/sols/sols1.lean | 2481dc26c6288f1caefc2d6348ee502d3b4f4555 | [] | no_license | jamesa9283/LiaLeanTutor | 34e9e133a4f7dd415f02c14c4a62351bb9fd8c21 | c7ac1400f26eb2992f5f1ee0aaafb54b74665072 | refs/heads/master | 1,686,146,337,422 | 1,625,227,392,000 | 1,625,227,392,000 | 373,130,175 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,543 | lean | import tactic linear_algebra.linear_independent
variables {ι : Type*} {R : Type*} {V' : Type*} {M : Type*}
section one
variables {v : ι → M} [semiring R] [add_comm_monoid M] [module R M] {a b : R}
lemma linear_independent_empty_type' (h : ¬ nonempty ι) : linear_independent R v :=
begin
rw [linear_independent_iff],... |
be38d0e9592f296275e70347cf157c29e7813bd4 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/floor.lean | d0c111a25f1e2e43cbc6fd876c5ad4da9c829655 | [
"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 | 11,780 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Kappelmann
-/
import tactic.linarith
import tactic.abel
import algebra.ordered_group
import data.set.intervals.basic
/-!
# Floor and Ceil
## Summary
We define ... |
1281736907b66999f83086eb7b785124608ce4c3 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/test.lean | 73aa98901b9d5a89c7fd40ba3e9dd6086497f824 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,251 | lean | example (a b c : ℕ) : a * (b * c) = a * (c * b) :=
begin
conv
begin -- | a * (b * c) = a * (c * b)
to_lhs, -- | a * (b * c)
congr, -- 2 goals : | a and | b * c
skip, -- | b * c
rw mul_comm, -- | c * b
end
end
example : (λ x : ℕ, 0 + x) = (λ x, x) :=
begin
conv
begin ... |
fd994735f01354ab6dfad426cc3568e462926abb | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20180110-mathlib-problem.lean | 46359b2d7246192d86db78cc3395b9a198c06920 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 218 | lean | universes u
variables {α : Type u}
open nat
open list
theorem nth_le_mem : ∀ (l : list α) n h, nth_le l n h ∈ l
| (a :: l) 0 h := mem_cons_self _ _
| (a :: l) (n+1) h := mem_cons_of_mem _ (nth_le_mem l n _) |
c9cfd7952b1c66a86f9cdfc416f92eb3be9c6e93 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/prod_sigma.lean | c720d8312cb34ec709ce05274ece12194d6f27f0 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,544 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.list.big_operators.basic
/-!
# Lists in product and sigma types
This file proves basic properties of `list.product` and `list.sigm... |
311a114fde5b7200972f2c6a597bf0db81bc0276 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/category/functor/yoneda.hlean | 3a5c79bbcd32f72ffe42e4480a9d24513ad2f8c7 | [
"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 | 6,523 | 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
Yoneda embedding and Yoneda lemma
-/
import .examples .attributes
open category eq functor prod.ops is_trunc iso is_equiv category.set nat_trans lift
namespace y... |
8234f107a9f7303040d3cd8aedddc0c7c5a26dbc | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/PreDefinition/WF/Eqns.lean | ad46ef9aac1a10c444f02b72895ec3cc996355f1 | [
"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 | 10,373 | 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.Rewrite
import Lean.Meta.Tactic.Split
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.Eqns
namespace Lean.Elab.... |
48126def90c5a971e52d21ca50eb7d954e2d30c2 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/measure_theory/measure/regular.lean | 3e466fa4adec0f5a17fe21f98f3f1c702d15245b | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,395 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris Van Doorn
-/
import measure_theory.constructions.borel_space
/-!
# Regular measures
A measure is `regular` if it satisfies the following properties:
* it is finite on comp... |
6f0b4e414e867bb81ce7c9caac896c40a62ebdfc | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/geometry/euclidean/basic.lean | 85c22598a87d0e6e7022928dadd11be302a69ef4 | [
"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 | 48,470 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import analysis.normed_space.inner_product
import algebra.quadratic_discriminant
import analysis.normed_space.add_torsor
import data.matrix.notation
import linear_algebra... |
39007e30f3787b95d42cd9604490407f8681ba15 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/order/algebra.lean | cc23ac67fb579d3685912e1b4be6cb207844624a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,709 | 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 algebra.algebra.basic
import algebra.order.smul
/-!
# Ordered algebras
An ordered algebra is an ordered semiring, which is an algebra over an ordered commut... |
8cbaa4c3b801d4bac2dffc8dd253543b47d70e5c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/eqnsAtSimp2.lean | 8d7424a2af757e342f1353b445037ac3a98ab76a | [
"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 | 833 | lean | mutual
@[simp] def isEven : Nat → Bool
| 0 => true
| n+1 => isOdd n
@[simp] def isOdd : Nat → Bool
| 0 => false
| n+1 => isEven n
end
termination_by' measure fun
| PSum.inl n => n
| PSum.inr n => n
decreasing_by apply Nat.lt_succ_self
theorem isEven_double (x : Nat) : isEven (2 * x) = true := b... |
8feb06741a20236f55ee0892decd4b34c9793759 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/fractional_ideal.lean | 25ac66134cc51b53dc42d4af5debd8a64ff77318 | [
"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 | 52,120 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Filippo A. E. Nuccio
-/
import algebra.big_operators.finprod
import ring_theory.integral_closure
import ring_theory.localization.integer
import ring_theory.localization.submo... |
4279038e665722b5e9bd052d6f8bc718543b5eeb | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /linear_algebra/prod_module.lean | b3200e1d127a38c48bdd324935d3f333c62f6895 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 3,313 | 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
Semigroup, monoid, group and module structures on product spaces.
-/
import data.prod linear_algebra.basic algebra.pi_instances
open set function
namespace prod
variab... |
5be1fc60be6c5a449f025b6d5937dbcd69f6cb5d | 4fa161becb8ce7378a709f5992a594764699e268 | /src/topology/metric_space/baire.lean | 70d3756823cfc4f80dab261308267bd8fee3f081 | [
"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 | 15,119 | 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.specific_limits
/-!
# Baire theorem
In a complete metric space, a countable intersection of dense open subsets is dense.
The good concept und... |
2990a2056dedc9c9c7dc2d819f01e24d0a640430 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/bicategory/single_obj.lean | 8612984699bfb1d3448c2df9e6a088a6fab604aa | [
"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,841 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.bicategory.End
import category_theory.monoidal.functor
/-!
# Promoting a monoidal category to a single object bicategory.
> THIS FILE IS SYNC... |
f992f035d8f16c4efd11cba45a4fc273d41c2170 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/init/tactic.lean | bf5195651af4e384bfc65f0ce0f53f9ced3b74f0 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,658 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.tactic
Author: Leonardo de Moura
This is just a trick to embed the 'tactic language' as a Lean
expression. We should view 'tactic' as automation that when execute
produces... |
0d0cbe039173ae5ddd00ae01df18d50fdd39439b | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/nat/basic.lean | 40924c761f9ffabce9eb90846dbd57c47f719bf9 | [
"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 | 10,706 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad
Basic operations on the natural numbers.
-/
import logic.connectives data.num algebra.binary algebra.ring
open binary eq.ops
name... |
0523d8cedfe0ed93bf815270112f6519ba6ac29c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/2249.lean | 7599f37858f00d29686ab02aa873b34da6efb4eb | [
"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 | 352 | lean | import Lean
macro (name := fooParser) "foo" x:(ppSpace ident)* : term =>
`([$(x.map (Lean.mkIdent ·.getId)),*])
namespace Lean.Parser.Term
macro (name := barParser) "bar" x:(ppSpace ident)* : term =>
`([$(x.map (Lean.mkIdent ·.getId)),*])
variable (a : Nat)
#check foo a -- ok
#check bar a -- ok (used to be: unkn... |
89526383f2c26ec912cd0834ad73d3473acbac58 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/linear_algebra/dimension.lean | 5c7ee8c0294e46d9ce7199fe13f1dc09613bdc66 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,665 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes Hölzl, Sander Dahmen
-/
import linear_algebra.basis
import set_theory.ordinal
/-!
# Dimension of modules and vector spaces
## Main definitions
* The dimension... |
0d8a3b1ab9916c7e8386a4e34eaf95bb37eaebd2 | 88892181780ff536a81e794003fe058062f06758 | /src/lib/tactic/dmatch.lean | 3438b1179723610cc618f9aefa1db7b136975fbb | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,721 | lean | import tactic.interactive
import category.traversable
universes u
--open lean
--open lean.parser
--example (list : ℕ) := list.map
@[irreducible]
def freeze {α : Sort u} (x : α) : α := x
def dup {α : Sort u} (x : α) : Σ' (y : α), x = y := ⟨x, rfl⟩
def ex (x : ℕ) : 0 = x ∨ ∃ y, y + 1 = x :=
let ⟨y, h⟩ := dup x,
hy ... |
64f0fd8275846cd1754203c6d79fbcffd0f1b42f | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/data/padics/padic_norm.lean | 6b3f3732cf0b21bd7097bc645e2289532ae66993 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 18,554 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.gcd_domain
import algebra.field_power
import ring_theory.multiplicity
import data.real.cau_seq
/-!
# p-adic norm
This file defines the p-adic valua... |
1a4ab18315e0df21645106504cf89e5a44e21d1f | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/typeOf.lean | 839936fc6333316a025580fffbd745c1fa0a27ce | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 611 | lean |
def f1 (x : Nat) (b : Bool) : typeOf! x :=
let r : typeOf! (x+1) := x+1;
r + 1
theorem ex1 : f1 1 true = 3 :=
rfl
def f2 (x : Nat) (b : Bool) : typeOf! x :=
let r : typeOf! b := x+1; -- error
r + 1
def f3 (x : Nat) (b : Bool) : typeOf! b :=
let r (x!1 : typeOf! x) : typeOf! b := x > 1;
r x
def f4 (x : Nat) : Nat ... |
4666aee9a984322e40830eb9edf53ce9981e3af5 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/metric_space/isometry.lean | 70a2c19b7cf31fe3cbf371b2dd1bd599d8a8ec9c | [
"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 | 13,045 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
We define isometries, i.e., maps between emetric spaces that preserve
the edistance (on metric spaces, these are exactly th... |
bfad3e52f5e1fd2edd5aac4c3af34376316a8f49 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/omit.lean | 5032c601f187b221a5d88c0a6e1f648ee3fd1cd5 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 285 | lean | section
variable A : Type
variable a : A
variable c : A
omit A
include A
include A
omit A
variable B : Type
variable b : B
variable d : B
include A
include a
include c
definition foo := b
inductive tst (C : Type) :=
mk : tst C
end
check foo
check tst
|
5bb778586bf6f69b8eb8f1c8d31c4eedfabb6d7e | 41e069072396dcd54bd9fdadb27cfd35fd07016a | /src/apps/topo_translation.lean | 4ca9f94100cd692c89065a58d70a5ee311f843c1 | [
"MIT"
] | permissive | semorrison/ModalTab | 438ad601bd2631ab9cfe1e61f0d1337a36e2367e | cc94099194a2b69f84eb7a770b7aac711825179f | refs/heads/master | 1,585,939,884,891 | 1,540,961,947,000 | 1,540,961,947,000 | 155,500,181 | 0 | 0 | MIT | 1,540,961,175,000 | 1,540,961,175,000 | null | UTF-8 | Lean | false | false | 2,294 | lean | import .topological_semantics
open nnf
-- local attribute [instance] classical.prop_decidable
@[simp] def topo_to_kripke {α : Type} (tm : topo_model α) : kripke α :=
{ rel := λ s t, s ∈ @closure _ tm.to_topological_space {t},
val := λ n s, tm.v n s }
theorem trans_force_left {α : Type} {tm : topo_model α} : Π {s}... |
28a017afd0802957964da2f72b5af841dd929920 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/order/locally_finite.lean | 40c3ec825ac8441b72a2b9ff8ebdc97247be2cf9 | [
"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 | 43,764 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.preimage
import data.set.intervals.unordered_interval
/-!
# Locally finite orders
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fi... |
29bfd7f5885dca4dc5562ba5b74605ad6fafd77d | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/topology/algebra/module.lean | 9bb5b15aabf93a4d1bf511e6e6fb87999bd9bcbe | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,179 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov
-/
import topology.algebra.ring
import ring_theory.algebra
/-!
# Theory of topological modules and continuous linear ... |
284424dee0549f7b02ad132f3500acd720285f8f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/ac_tactics.lean | 5d45636e72b6ce2757f5be0cd0bda9a1531dc0c3 | [] | 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 | 385 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
namespace Mathlib
namespace tactic
/- (flat_assoc op assoc e) -/
/- (perm_ac op assoc... |
7e36b9e8c1c42e8fe541bbd9e7c7ce7fdced9918 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/lakefile.lean | e43a7760e10343d6b731266f49b0f2a82320718e | [
"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 | 155 | lean | import Lake.DSL
open System Lake DSL
package lake
lean_lib Lake
@[default_target]
lean_exe lake where
root := `Lake.Main
supportInterpreter := true
|
8de84c8e4ca783fe2f4549fbbfb4f389f1ddafc5 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/measure_theory/simple_func_dense.lean | f2d8bf38243ff57195a5482dce69824f87999c15 | [
"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 | 10,626 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.l1_space
/-!
# Density of simple functions
Show that each Borel measurable function can be approximated,
both pointwise and in ... |
9de0939409bc4abb41908372fb4ee5a2c7bb6b21 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/int/div.lean | 02016221bc340bb7656d0da8419b141d1d31c47f | [
"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 | 29,545 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Definitions and properties of div and mod, following the SSReflect library.
Following SSReflect and the SMTlib standard, we define a % b so that 0 ≤ a % b < |b| when b ≠ ... |
1fca26a9a2eb04c3de91a06df4bd26136099450d | 92b50235facfbc08dfe7f334827d47281471333b | /hott/algebra/category/iso.hlean | c14026a8f6bb2d97c7ec5784486c870bc34e8431 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 14,013 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
-/
import .precategory types.sigma arity
open eq category prod equiv is_equiv sigma sigma.ops is_trunc
namespace iso
structure split_mono [clas... |
97688fd5c325e06e3cfd1a6e5e8d6c5cdfe70b3e | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/nat/interval.lean | 8f08f8d3eee8900a0be39419f6a7655d556f09a2 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,017 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.locally_finite
/-!
# Finite intervals of naturals
This file proves that `ℕ` is a `locally_finite_order` and calculates the cardinality of its
interva... |
a090ab68deec6c396cf07feedd177154537df246 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/fibrant.lean | f503ff6d2fb5b58abd35c3c337aa52de7e49d92e | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 97 | lean | import hott.fibrant
open prod sum fibrant
theorem test_fibrant : fibrant (nat × (nat ⊎ nat))
|
388b74aaa270c7c0081762870683543b40d9315e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/norm_fin.lean | 2651c4ce3dd0e661b817d78f1db7564ab027e2a9 | [
"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,653 | lean | import tactic.norm_fin
example : (5 : fin 7) = fin.succ (fin.succ 8) := by norm_num
example : (12 : fin 7) = 5 := by norm_num
example : (11 : fin 7) = 4 := by norm_num
example : (12 : fin 6) = 0 := by norm_num
example : (11 : fin 6) = 5 := by norm_num
example : (1 : fin 1) = 0 := by norm_num
example : fin.succ (4 : fi... |
15029310a7a3c7de821f08d55f28be23f359a00e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/nat/cast.lean | 91db8b000ee0655903ce816331ce32ce6a08c3f2 | [
"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 | 13,139 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.order.field
import data.nat.basic
/-!
# Cast of naturals
This file defines the *canonical* homomorphism from the natural numbers into a type `α` with... |
db81e8cdd39dbb442c83674474e42b4a428140a5 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/421.lean | 75c78a90799dd855e2b30fdf55aa25b9f6a5a868 | [
"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 | 177 | lean | inductive Con : Type
| nil : Con
| foo : Con
inductive Conw : Con → Prop
| nilw : Conw Con.nil
example (x : Conw Con.nil) : x = Conw.nilw := by
cases x
traceState
rfl
|
a76009eac571281038bd8e09ff22f2e6de263d90 | 6329dd15b8fd567a4737f2dacd02bd0e8c4b3ae4 | /src/game/world1/level13.lean | bfd189f501fbd6bdeb4a4574a9d1cabd616e1a19 | [
"Apache-2.0"
] | permissive | agusakov/mathematics_in_lean_game | 76e455a688a8826b05160c16c0490b9e3d39f071 | ad45fd42148f2203b973537adec7e8a48677ba2a | refs/heads/master | 1,666,147,402,274 | 1,592,119,137,000 | 1,592,119,137,000 | 272,111,226 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,002 | lean | import data.real.basic --imports the real numbers
import tactic.maths_in_lean_game -- hide
namespace calculating -- hide
/-
#Calculating
## Level 13: `calc` keyword
Let's try some more examples. The theorem `two_mul a` says
that `a + a = 2 * a`. The theorems `add_mul` and `mul_add`
express the distributivity of mult... |
3db8e177405a21e9a1686f083f7b1fdd0ebfde69 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/inst_bug.lean | efed8ad740b857155797c155bf2f7e20ae0fc122 | [
"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 | 336 | lean | inductive [class] is_equiv (A B : Type*) (f : A → B) : Type*
definition inverse (A B : Type*) (f : A → B) [H : is_equiv A B f] := Type*
definition foo (A : Type*) (B : A → Type*) (h : A → A) (g : Π(a : A), B a → B a)
[H : Π(a : A), is_equiv _ _ (g a)] (x : A) : Type* :=
inverse (B (h x)) (B (h x)) (g (h ... |
4cd704350e04a7d771d6ab0de6672a64aee5e353 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monoidal/internal/functor_category.lean | 020d5b2297deaa4a8f14731b6ef45eae3640961b | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,185 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monoidal.CommMon_
import Mathlib.category_theory.monoidal.functor_category
... |
95d8959ebd73f12cfdbd930bf87f108657b3ca19 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/theories/analysis/complex_norm.lean | 97a60298d21337e4d7bb9e43a82df395bd39ad19 | [
"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 | 3,223 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Instantiate the complex numbers as a normed space, by temporarily making it an inner product space
over the reals.
-/
import theories.analysis.inner_product data.complex
o... |
3640511d46ffa9508f30f11b80965ff1662b3350 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp12.lean | f9f476314c84519b92e6b66070f4b696f44c4285 | [
"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 | 450 | lean | variables a b c d e f : Nat
rewrite_set simple
add_rewrite Nat::add_assoc Nat::add_comm Nat::add_left_comm Nat::distributer Nat::distributel : simple
(*
local opts = options({"simplifier", "single_pass"}, true)
local t = parse_lean("f + (c + f + d) + (e * (a + c) + (d + a))")
print(t)
for i = 1, 10 do
local t2... |
70abd8f6b9ea58333586933f847f2f0ce2f00765 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Data/Array/BinSearch.lean | 5656bcaab88f143f94728f75550ca5cc351091d1 | [
"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 | 2,580 | 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.Data.Array.Basic
universes u v
namespace Array
-- TODO: remove the [Inhabited α] parameters as soon as we have the tactic framework for... |
237479ec4f5de591f377660413d8c5fd648619e4 | f313d4982feee650661f61ed73f0cb6635326350 | /Mathlib/Plugin.lean | 17009d028f4f0e7e0ce112522f3694fd427bf86b | [
"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 | 58 | lean | import Mathlib.Tactic.Basic
import Mathlib.Tactic.NormNum
|
ebdf7f1d3cf8737df09ca7f72ce5fa5d53a7ff49 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/multiset/nodup.lean | 1108e40e090bc6be1c1d50b20f9a047a6f537531 | [
"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 | 9,961 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.powerset
import data.multiset.range
/-!
# The `nodup` predicate for multisets without duplicate elements.
-/
namespace multiset
open lis... |
dbd13245c5e906dafed68ecf63b0780d5546b5d9 | 398b53a5e02ce35196531591f84bb2f6b034ce5a | /dfa.lean | b8d972c33be2732957f9f63280bc5d20be6c2170 | [
"MIT"
] | permissive | crockeo/math-exercises | 64f07a9371a72895bbd97f49a854dcb6821b18ab | cf9150ef9e025f1b7929ba070a783e7a71f24f31 | refs/heads/master | 1,607,910,221,030 | 1,581,231,762,000 | 1,581,231,762,000 | 234,595,189 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,100 | lean | --------------
-- Learning --
namespace dfa
-- Defining a DFA as a tuple of its components
structure DFA (Q) (Γ) (δ : Q → Γ → Q) (q0 : Q) (F : set Q)
-- Defining whether a DFA accepts a string
def arg_accept (Q)
(Γ)
(δ : Q → Γ → Q)
(F : set Q) : Q → list Γ →... |
a93565a747e208f2974b51c00c9fc60c9cadfc6d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/rat/init.lean | 988264f5e30f5fcc2adf4071b1a2699ae4d90077 | [
"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 | 2,350 | 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 tactic.ext
import logic.basic
/-!
# The definition of the Rational Numbers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
1147b38c87da82cac548ca3b28a174686a1dc630 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Expr.lean | 629348f10cd7c9b7921804b5471f61dc4b30d34f | [
"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 | 62,277 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.KVMap
import Lean.Level
namespace Lean
/-- Literal values for `Expr`. -/
inductive Literal where
/-- Natural number literal -/
| natV... |
c83947414501534261aa5f670b8be285bee47cdd | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/manifold/instances/real.lean | 533dcf5c7af9a59c905798eec46035572eab371e | [
"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 | 13,712 | 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 geometry.manifold.smooth_manifold_with_corners
import analysis.inner_product_space.pi_L2
/-!
# Constructing examples of manifolds over ℝ
We introduce t... |
d34bdcdedab61cc954849c8ed57650023826c8d7 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Init/Data/Range.lean | 1ea3b0d173a82fbfbbadbd70296db4066f2857e5 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,461 | 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... |
cd4aaa459dc720903003530582d742831e2c2686 | 11e28114d9553ecd984ac4819661ffce3068bafe | /src/refine.lean | eea3ebd5f46a0612d82fda3f13b49b6a0647bdb2 | [
"MIT"
] | permissive | EdAyers/lean-subtask | 9a26eb81f0c8576effed4ca94342ae1281445c59 | 04ac5a6c3bc3bfd190af4d6dcce444ddc8914e4b | refs/heads/master | 1,586,516,665,621 | 1,558,701,948,000 | 1,558,701,948,000 | 160,983,035 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 9,250 | lean | /- Author: E.W.Ayers © 2019 -/
import .M
namespace robot
open strategy task tactic expr
meta def strategy.merge : strategy → strategy → M strategy
|(Use r₁) (Use r₂) := do
r ← hypothetically' (do
unify r₁.lhs r₂.lhs,
unify r₁.rhs r₂.rhs,
rule_app.instantiate_mvars r₁
),
pure $ Use... |
53199068976ff5ef15b1eaa09a6f2ffeae2c3236 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Compiler/IR/LiveVars.lean | f93de87be4b023c8a46490216d297c0c73e5bb8f | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 6,957 | 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
namespace Lean.IR
/- Remark: in the paper "Counting Immutable Beans" the concepts of
fre... |
796602dcf6798f93f4fac994075e7a045b010937 | a88f0086fb3e2025ebb21e0ba2f2725774c6979f | /src/ring_theory/algebraic.lean | 4fa0ff6d6760863c1755f88c760d8cf53042fcc7 | [
"Apache-2.0"
] | permissive | Kha/stdlib | b5a4456c35def0ca8f1bf2d32dbeebd7639cbc4d | e44b105c72ec77120f43a7a7dd1cd49867a65a41 | refs/heads/master | 1,609,528,111,500 | 1,572,963,395,000 | 1,572,963,395,000 | 98,516,307 | 0 | 1 | null | 1,501,146,352,000 | 1,501,146,352,000 | null | UTF-8 | Lean | false | false | 3,433 | 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 ring_theory.integral_closure
/-!
# Algebraic elements and algebraic extensions
An element of an R-algebra is algebraic over R if it is the root of a nonzero... |
2c5109ca008d810fcb970ab93d3a1e126d6f96b5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/uniform.lean | e8c1bab9550df627da99c3840736260d6fba6a3f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,146 | 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 analysis.convex.strict_convex_space
/-!
# Uniformly convex spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding P... |
341ff63a74649f0ccd85ffca3c2eed19e4ef84f8 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/real/division.lean | 0db408acc6cacd615379c3eea434afa9e6658064 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,242 | 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).
At this point, we no longer... |
3e52d1e135310c1aa321b2d630655ecf008d7bb7 | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /hw9/hw9.lean | d225a92ea03aac9edd3913b45f60e753dbe507a4 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,419 | lean | /-
Justin Ngo
jmn4fms
4/28/20
Sullivan 2102-001
-/
/-
HOMEWORK #9
There is no need to import our previous definitions.
For this homework you will just use Lean's built-in
notations and definitions.
-/
/-
Prove the following. Note that you can read each of
the propositions to be proved as either a logical
statemen... |
67f08816429a2dd91a14cd4b5600994db5ca74a0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/multiequalizer.lean | b0930c9f55178d476ad7874dd1ef85cac2a9924a | [
"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 | 26,301 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.limits.shapes.products
import category_theory.limits.shapes.equalizers
import category_theory.limits.cone_category
import category_theory.adjunction
/... |
851260ea9eaae15121e7f5fd08a9417c5c9dc55d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/special_linear_group.lean | 468f7ab965eb8c10ae2d85fb793b313117ea1595 | [
"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 | 7,029 | 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 linear_algebra.matrix.nonsingular_inverse
import linear_algebra.matrix.to_lin
/-!
# The Special Linear group $SL(n, R)$
This file defines the elements of the Speci... |
a5edf4550b33ce09987b0309271407a5610ec80c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/noncomm_ring.lean | 361bfc53c859e79563e930780cc07a8ecdc6a24f | [] | 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 | 534 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Oliver Nash
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.abel
import Mathlib.PostPort
namespace Mathlib
namespace tactic
namesp... |
fa29633557741fb0871c55f4740170d596c07e26 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/chain.lean | c5dc64f36be91e4cb0e1e19f803b55f72e2502c9 | [] | 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 | 11,468 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.pairwise
import Mathlib.logic.relation
import Mathlib... |
f97948b5097f1fe19a3f6a3613ba7a9c2fccb8b1 | dc253be9829b840f15d96d986e0c13520b085033 | /spectrum/spectrification.hlean | ac24b0256fc887c1535e4bc0a5f8d16923c5dc47 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 11,821 | hlean | import .basic ..colimit.pointed
open eq pointed succ_str is_equiv equiv spectrum.smap seq_colim nat
namespace spectrum
/- Prespectrification -/
definition is_sconnected {N : succ_str} {X Y : gen_prespectrum N} (h : X →ₛ Y) : Type :=
Π (E : gen_spectrum N), is_equiv (λ g : Y →ₛ E, g ∘ₛ h)
-- We introduce a p... |
00c12da96be34266eef0ae62e14e8adce12b2387 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/inst.lean | 45a47859d162d590828936ce3ca08efa2cae3da5 | [
"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 | 625 | lean | set_option pp.notation false
class inductive C (A : Type*)
| mk : A → C
definition val {A : Type*} (c : C A) : A :=
C.rec (λa, a) c
constant wizard (A : Type*) : A
attribute [instance, priority std.priority.max]
noncomputable definition C_wizard (A : Type*) : C A :=
C.mk (wizard A)
attribute [instance]
definition C... |
8c5b32af97cbd911cec6a79354f5e9e1067c3021 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/data/list/basic.lean | 7fd836cf925ab551ee3cf40f84ac0dac60197758 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 155,139 | 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
-/
import algebra.group
import deprecated.group
import data.nat.basic
import order.rel_classes
/... |
8ad519841f20b3105bb1e272e07b73e6f959939c | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/logic/basic.lean | 409126ddd35a718d56b4bbceaf243eea160d2973 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 48,709 | 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
-/
import tactic.doc_commands
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Implementation notes
Theorems tha... |
9e3ebe6714ffc15c39c785788f34aea96a1e2b9f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/bitwise.lean | 7136032a61913b16317fb9bc4dccae1c3d75cdaa | [
"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 | 8,564 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import tactic.linarith
/-!
# Bitwise operations on natural numbers
In the first half of this file, we provide theorems for reasoning about natural numbers from their
... |
873d86455cbf44859c2a6e4c751ecbbecd821c5c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/lazy_list.lean | 624f166a6daa9a9b92e2a6c6c25a0a742c9f7c4e | [
"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 | 3,811 | 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.lint
/-!
# Lazy lists
The type `lazy_list α` is a lazy list with elements of type `α`.
In the VM, these are potentially infinite lists
where... |
af10369bc79e2b2ce3908df0b1244c7ed07f26f7 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /tactic/interactive.lean | 6d180e22215a2bb2f38be9e898b1983e7902d93e | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,872 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import data.dlist data.dlist.basic data.prod category.basic
tactic.basic tactic.rcases tactic.generalize_proofs
ta... |
2e2ac8e43493b54e9b07d1ac4be91ad978639282 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/sum/order.lean | 2760d76e20a32b7aa8d42eab95f267e9adbb79a0 | [
"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 | 22,768 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.hom.basic
/-!
# Orders on a sum type
This file defines the disjoint sum and the linear (aka lexicographic) sum of two orders and provides
relation instance... |
2c19d71f0f868a5ac141262465e568fbe95d5fc5 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/analysis/complex/exponential.lean | b84f9e0043cf52d64b7ac1cc72678a07bd4ca14d | [
"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 | 82,353 | 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 tactic.linarith data.complex.exponential analysis.specific_limits
group_theory.quotient_group analysis.comple... |
3c905a68562bfa589c76216782ba7f0583fe3141 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/StxQuot.lean | 94676f106fef20f1f5600643f6b35a08385399c3 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,956 | lean | import Lean
open Lean
open Lean.Elab
def run {α} [ToString α] : Unhygienic α → String := toString ∘ Unhygienic.run
#eval run `(Nat.one)
#eval run `($Syntax.missing)
namespace Lean.Syntax
#eval run `($missing)
#eval run `($(missing))
#eval run `($(id Syntax.missing) + 1)
#eval run $ let id := Syntax.missing; `($id + ... |
f9e17299f96c6a4c22361a02d65eb369f4a4d6b3 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/data/fin/basic.lean | d55ab57c7ee24393b02a4a06405709bb2ae69a98 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 1,101 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.nat.basic
open nat
structure fin (n : nat) := (val : nat) (is_lt : val < n)
attribute [pp_using_anonymous_constructor] fin
namespa... |
cf8c86d35ffaeae636fafdec3deb4281be4a34f6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/order/monoid.lean | f03f7d9a1c43be26de2d84db1695c9cb27b4a8b5 | [
"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 | 50,817 | 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, Johannes Hölzl
-/
import algebra.group.with_one
import algebra.group.prod
import algebra.hom.equiv
import algebra.order.monoid_lemmas
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.