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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6e413d448502b2859d9286e6c17d20d8dc5b8f7d | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/analysis/calculus/lagrange_multipliers.lean | 311a1f93a418a9e55b4af0949c0aa7da7f56b53f | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 6,756 | 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.calculus.inverse
import linear_algebra.dual
/-!
# Lagrange multipliers
In this file we formalize the
[Lagrange multipliers](https://en.wikipedia.o... |
3e93f7d2a02c284e906a25133989b397a6330953 | 9c2e8d73b5c5932ceb1333265f17febc6a2f0a39 | /src/S4/full_language.lean | 5b52f2ea428cca39fa9a709c3d55321b5f7e2323 | [
"MIT"
] | permissive | minchaowu/ModalTab | 2150392108dfdcaffc620ff280a8b55fe13c187f | 9bb0bf17faf0554d907ef7bdd639648742889178 | refs/heads/master | 1,626,266,863,244 | 1,592,056,874,000 | 1,592,056,874,000 | 153,314,364 | 12 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 10,184 | lean | import .semantics
inductive fml
| var (n : nat)
| neg (φ : fml)
| and (φ ψ : fml)
| or (φ ψ : fml)
| impl (φ ψ : fml)
| box (φ : fml)
| dia (φ : fml)
open fml
def fml.to_string : fml → string
| (var n) := "P" ++ n.repr
| (neg ϕ) := "¬" ++ "(" ++ fml.to_string ϕ ++ ")"
| (and φ... |
7d282496ecc42266e97a248bcc329aa8aed320bd | 5ec8f5218a7c8e87dd0d70dc6b715b36d61a8d61 | /floats.lean | 13e71340d2ea813a5fe674ef1862684d8ab95a87 | [] | no_license | mbrodersen/kremlin | f9f2f9dd77b9744fe0ffd5f70d9fa0f1f8bd8cec | d4665929ce9012e93a0b05fc7063b96256bab86f | refs/heads/master | 1,624,057,268,130 | 1,496,957,084,000 | 1,496,957,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,815 | lean |
/- Formalization of floating-point numbers, using the Flocq library. -/
import .integers .lib .flocq .archi
namespace floats
open integers flocq word
/- Boolean-valued comparisons -/
def cmp_of_comparison : comparison → option ordering → bool
| Ceq (some ordering.eq) := tt
| Ceq _ := ff
| Cne (som... |
ef314ca9da6fbfb6906bdca78a0f7bad42e8da8e | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/rs.lean | 640534001f9ecc0d0557bf48de27c8df6a2f9730 | [
"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 | 378 | lean | rewrite_set S
variable bracket : Type → Bool
axiom bracket_eq (a : Bool) : bracket a = a
add_rewrite bracket_eq : S
add_rewrite and_truer and_comm not_true not_neq not_and exists_or_distribute exists_and_distributel : S
add_rewrite exists_rem eq_id forall_rem : S
add_rewrite Nat::add_zeror Nat::add_comm Nat::add_assoc ... |
fa51739235f45901a456468a2b4c22aa7fdc2643 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/combinatorics/composition.lean | d7dcb7f1871a34082fd98353be16103327be2c1e | [
"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 | 36,432 | 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 data.finset.sort
import algebra.big_operators.order
import algebra.big_operators.fin
/-!
# Compositions
A composition of a natural number `n` is a deco... |
323e91326da014b9e98034e58f58d2ef7fb1130a | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/logic/unique.lean | 97e6f34fc99cef3a1c03e3f4a96dc5720f3ac11e | [
"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 | 2,536 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
universes u v w
variables {α : Sort u} {β : Sort v} {γ : Sort w}
structure unique (α : Sort u) extends inhabited α :=
(uniq : ∀ a:α, a = default)
attribute [class... |
af03578c1c95296aae5c8394c446e58669be8ecc | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/nat/parity.lean | d170297006cace5095da6c10c69baa02e6d80dd5 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 3,358 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The `even` predicate on the natural numbers.
-/
import .modeq algebra.group_power
namespace nat
@[simp] theorem mod_two_ne_one {n : nat} : ¬ n % 2 = 1 ↔ n % 2 = 0 :=
by... |
1021cc95ea0b2fd0ed822e43696b4a73f7aa2859 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/sums/associator.lean | 2d11f2272160185d35e2484558164e5dccad2bd4 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,688 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.sums.basic
import Mathlib.PostPort
universes u v
namespace Mathlib
/-#
... |
b96d3961102439c747286b826bde0556c5d017c3 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/group/ulift.lean | de04426665198f33edeb04d6d5e91f090901d563 | [
"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 | 6,170 | 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 data.int.cast.defs
import algebra.hom.equiv
/-!
# `ulift` instances for groups and monoids
This file defines instances for group, monoid, semigroup and relat... |
f8bcbcc04eb0eb9ca2f17c6edfd3b88fca921e65 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast6.lean | c545005343ad1b97f39768de1dce24fd74524e6a | [
"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 | 220 | lean | set_option blast.strategy "preprocess"
lemma lemma1 (bv : nat → Type) (n m : nat) (H : n = m) (b1 : bv n) (b2 : bv m) (H2 : eq.rec_on H b1 = b2) : b1 = eq.rec_on (eq.symm H) b2 :=
by blast
reveal lemma1
print lemma1
|
3dab79e73bf9a6b9267f0639e99d0348a37cc009 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/def4.lean | a7f1bed40f7dc017a1e9e94e82fc2fe31bd10951 | [
"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 | 410 | lean |
inductive Foo : Bool → Type
| Z : Foo false
| O : Foo false → Foo true
| E : Foo true → Foo false
open Foo
def toNat : {b : Bool} → Foo b → Nat
| _, Z => 0
| _, O n => toNat n + 1
| _, E n => toNat n + 1
example : toNat (E (O Z)) = 2 :=
rfl
example : toNat Z = 0 :=
rfl
example (a : Foo false) : toNat (O a) ... |
ea1de4aa6d51be0cfe392151cf782482b2281bd4 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/trace.lean | ff569475b5e2b6ff32ce16b919c2a05f07df7c23 | [
"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,376 | lean | import Lean.CoreM
open Lean
structure MyState :=
(traceState : TraceState := {})
(s : Nat := 0)
abbrev M := CoreM
def tst1 : M Unit :=
do trace! `module ("hello" ++ MessageData.nest 9 (Format.line ++ "world"));
trace! `module.aux "another message";
pure ()
def tst2 (b : Bool) : M Unit :=
traceCtx `m... |
0e938c6383f2ab077d54f6f18e7cfe46d126f4d7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/partialApp.lean | 2dca230158e1d31a4edc306977b25088ce562f84 | [
"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 | 922 | lean |
def f (x : Nat) (y : Nat := 1) (w : Nat := 2) (z : Nat) :=
x + y + w - z
theorem ex1 (x z : Nat) : f (z := z) x = x + 1 + 2 - z :=
rfl
theorem ex2 (x z : Nat) : f x (z := z) = x + 1 + 2 - z :=
rfl
theorem ex3 (x y : Nat) : f x y = fun z => x + y + 2 - z :=
rfl
theorem ex4 : f = (fun x z => x + 1 + 2 - z) :=
rfl
... |
937c25ba590aa25d8c8786925a45a59a8482a891 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/affine_space/barycentric_coords.lean | bde394de87eea3c527772b7eade0a28721b276fd | [
"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,284 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import linear_algebra.affine_space.independent
/-!
# Barycentric coordinates
Suppose `P` is an affine space modelled on the module `V` over the ring `k`, and `p : ι → P` ... |
5e5b1dcd11b8ee72faec4ed2e7ed2170faddeff7 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/algebra/ordered_group.lean | 200e0431e16f7fede6a2eaf58875500220c8cadb | [
"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 | 30,319 | 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.ordered_monoid
set_option old_structure_cmd true
/-!
# Ordered groups
This file develops the basics... |
57a3e063fb75f0e29d4c4cf73a8a9a201314e698 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/order/filter/germ.lean | 87ea9b15959ab9be38bbfca0d3888f5092f39e5c | [
"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 | 21,563 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov, Abhimanyu Pallavi Sudhir
-/
import order.filter.basic
import algebra.pi_instances
/-!
# Germ of a function at a filter
The germ of a function `f : α → β` at a... |
2b4ac46df6cb98d79fd2cca24926c08d7721c8f0 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/group_theory/order_of_element.lean | 3b7c5f5875681b30a597395be19c200d943a0f45 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 39,264 | 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, Julian Kuelshammer
-/
import algebra.pointwise
import group_theory.coset
import dynamics.periodic_pts
import algebra.iterate_hom
/-!
# Order of an element
This file d... |
da5db5aef610190422a77ecb36653300c7c50d2d | bf532e3e865883a676110e756f800e0ddeb465be | /data/seq/wseq.lean | 406290984c7118831fa66c218dea25b151b8352a | [
"Apache-2.0"
] | permissive | aqjune/mathlib | da42a97d9e6670d2efaa7d2aa53ed3585dafc289 | f7977ff5a6bcf7e5c54eec908364ceb40dafc795 | refs/heads/master | 1,631,213,225,595 | 1,521,089,840,000 | 1,521,089,840,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,190 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.seq.seq data.seq.computation data.list.basic data.dlist
universes u v w
/-
coinductive wseq (α : Type u) : Type u
| nil : wseq α
| cons : α → wseq ... |
779b675fffdd1d3ad3b57de22b403a48d55a81e5 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/bounded_continuous_function.lean | 89ab5ee3539c03600afc89b4bb411c0509fa8ab8 | [
"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 | 22,117 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro
-/
import analysis.normed_space.basic topology.metric_space.lipschitz
/-!
# Bounded continuous functions
The type of bounded continuous function... |
5b98d751cff87703534027195b086a77eef64057 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/nat/main_auto.lean | be3bb185b4040574b61c771e4ddfb68aeba090f6 | [] | 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 | 676 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.prove_unsats
import Mathlib.tactic.omega.nat.dnf
import Mathlib.tactic.omega.nat.neg_elim... |
deb95caf9baf3e4649d259e81059556c4ba8e04c | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/ordered_group.lean | 047708bac624a939a67caef3c3258e0723f5ed52 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 28,125 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Ordered monoids and groups.
-/
import algebra.group order.bounded_lattice tactic.basic
universe u
variable {α : Type u}
section old_structure_cmd
set... |
7b96411a8c40471e80f075559dbb3055c2ac1283 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Data/Json/Parser.lean | 2408df3a648a2174d3b004f5f215d6a004c21e47 | [
"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 | 5,488 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Lean.Data.Json.Basic
import Lean.Data.Parsec
namespace Lean
open Std (RBNode RBNode.singleton RBNode.leaf)
namespace Json.Parser
open Lean.Pa... |
5d8868e2b3ba9f64ab915bdbaccdfeba33c50a8d | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/bounded_continuous_function.lean | 8b34dcd0f8fb3d40b5a3518755a1f605b13fee7c | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 23,559 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro
Type of bounded continuous functions taking values in a metric space, with
the uniform distance.
-/
import analysis.normed_space.basic topology.... |
9c2564e652a56b5d297c10b1ad2a1baa3de8b906 | 618003631150032a5676f229d13a079ac875ff77 | /src/analysis/analytic/basic.lean | 22b05164e0dfd2a85ab326f25c3a1e4052303c89 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 38,112 | 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 analysis.calculus.times_cont_diff
import tactic.omega
import analysis.special_functions.pow
/-!
# Analytic functions
A function is analytic in one dime... |
4c69f52aaf1402660243313a8e36acf28f72901b | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/e14.lean | c70cb9e1990d0467c585920294a876c3d8186f8c | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 878 | lean | prelude
inductive nat : Type :=
zero : nat,
succ : nat → nat
namespace nat end nat open nat
inductive list (A : Type) : Type :=
nil {} : list A,
cons : A → list A → list A
definition nil := @list.nil
definition cons := @list.cons
check nil
check nil.{1}
check @nil.{1} nat
check @nil nat
check cons nat.zero nil
in... |
2791fb7bdaf1fee06885508d055fc11efb87e8c8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/precissues.lean | 078cde74478d24ea402d4f56f50eee1dca29c5d9 | [
"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 | 692 | lean |
#check id fun x => x -- should work
#check 0
def f (x : Nat) (g : Nat → Nat) := g x
#check f 1 fun x => x -- should fail
#check 0
#check f 1 (fun x => x)
#check id have : True := ⟨⟩; this -- should fail
#check id let x := 10; x
#check 1
#check id (have : True := ⟨⟩; this)
#check 0 = have : Nat := 1; this
#c... |
2f043f5eaaa7e23d71aa9da8a40c5afbaa020afe | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/back_chaining4.lean | 0cd02cec1bca4007f12d8876860d77741ca4577b | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,171 | lean | -- Backward chaining with hypotheses
constants {P Q R S T U : Prop}
constants (Huq : U → Q) (Hur : U → R) (Hus : U → S) (Hut : U → T)
attribute [intro] Huq Hur Hus Hut
open tactic
definition lemma4 : (P → Q) → (Q → R) → (R → S) → (S → T) → P → T :=
by do
H1 ← intro `H1,
H2 ← intro `H2,
H3 ← intro `H3,
H4 ← in... |
8faac02ef9becc5cdfe760f56f22d85b6a4066c4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/category/UniformSpace.lean | 226cd5660816557c2fa0b36ba7dcaa52589610b0 | [
"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 | 7,335 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Patrick Massot, Scott Morrison
-/
import category_theory.adjunction.reflective
import category_theory.concrete_category.unbundled_hom
import category_theory.monad.limits
i... |
71b8600279614101e6f254e613b4a7edcc006e88 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/geometry/manifold/basic_smooth_bundle.lean | bbad592e2d01f0d164556245c4d4f0d83c4f2161 | [
"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 | 32,858 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.topological_fiber_bundle geometry.manifold.smooth_manifold_with_corners
/-!
# Basic smooth bundles
In general, a smooth bundle is a bundle ove... |
1d3920cfd1ec157ace4d629393dac2f60780d0b9 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/topology/metric_space/gromov_hausdorff_realized.lean | abf3a26ecb0609e5af02813e4138910823ca0695 | [
"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 | 26,919 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
Construction of a good coupling between nonempty compact metric spaces, minimizing
their Hausdorff distance. This construction is instrumental to study the Gromov-... |
f1cf6c328cea0d8c96d1a50828fd8305ef122b90 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Elab/Extra.lean | 3d4851f5366f51da6d824dd475fb3dcbf1bf0249 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 23,109 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.App
import Lean.Elab.BuiltinNotation
/-! # Auxiliary elaboration functions: AKA custom elaborators -/
namespace Lean.Elab.Term
open Meta
... |
b8472e1513561bbdddef524c0819b926aee8e2da | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep_2/Tools/function_space.lean | 85b4cb2beb1e7e3993d22934d0bf3e6ddfebeda7 | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,672 | lean | import .finite_dimensional_lemma
open linear_map is_basis
open_locale big_operators
universe variables v w
namespace classical_basis
--- TODO :: a quoi sert le namespace : smul_ite est déjà dans mathlib il vaut repérer où je l'utilise dans mon histoire !
---
/--
Definition of classical basis of `X → R`.
`ε... |
0f81eaa4d0d9932fe7cbd449aa96713e557e5af2 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/matrix.lean | 5ef07aca86ded3be73405646e09c056c789b4767 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,007 | lean | /-
Helper classes for Lean 3 users
-/
class One (α : Type u) where
one : α
instance [OfNat α (nat_lit 1)] : One α where
one := 1
instance [One α] : OfNat α (nat_lit 1) where
ofNat := One.one
class Zero (α : Type u) where
zero : α
instance [OfNat α (nat_lit 0)] : Zero α where
zero := 0
instance [Zero α] :... |
570b90c3565f9ed0986a259183c250acc61c4e6d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/sections.lean | 0f92a76a1b3f8300d51c78b120a187150fcf71b4 | [] | 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 | 814 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.forall2
import Mathlib.PostPort
universes u v
namespace Mathlib
namespace lis... |
ce7fae8b4f7d76cda0873574e8c5561c812f5e7f | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/tactic9.lean | 3f721190a3de148625a04b3a98dcd0141c9c64a8 | [
"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 | 204 | lean | (* import("tactic.lua") *)
definition f(a : Bool) : Bool := not a.
theorem T (a b : Bool) : a \/ b → (f b) → a := _.
disj_hyp
unfold f
exact
absurd
done
print environment 1. |
34f9f0959f8ffb9b0269379e07a2c98e20314613 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/category/Module/colimits.lean | 1bc29635f615ede9a85ba485a9c066f9856ccefa | [
"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 | 11,770 | 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 algebra.category.Module.basic
import category_theory.concrete_category.elementwise
/-!
# The category of R-modules has all colimits.
> THIS FILE IS SYNCHRONI... |
a07df026e01ce92259a7613fb2c4c752e2205a65 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/data/fin/ops.lean | cedd5223223857f538b808e4cd8853f5d4183b38 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,763 | lean | /-
Copyright (c) 2017 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 init.data.fin.basic
namespace fin
open nat
variable {n : nat}
def of_nat {n : nat} (a : nat) : fin (succ n) :=
⟨a % succ n, na... |
156f03a7c4687b3b40102212e1df5e742a0ea6a8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/quadratic_form/real.lean | f3ae98248de69a0371f166a30dfb86059d954114 | [
"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,478 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Kexing Ying, Eric Wieser
-/
import linear_algebra.quadratic_form.isometry
import analysis.special_functions.pow.real
import data.real.sign
/-!
# Real quadratic forms
> THIS... |
25ec0ee297a5e3be752ae296807596512a36e557 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/setoid.lean | 61e4b3407dbcb91bb541a947720750655ca34889 | [
"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 | 896 | 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
-/
prelude
import init.relation
universe variables u
structure [class] setoid (A : Type u) :=
(r : A → A → Prop) (iseqv : equivalence r)
namespace setoid
i... |
d518ded93e2672b6ad360c456129c243ee3b2781 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/isomorphism.lean | 8d3cea33103aae4b54d8dc75a7096b9effe27a84 | [
"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 | 15,293 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor
/-!
# Isomorphisms
This file defines isomorphisms between objects of a category.
## M... |
c863cc63841b8580f44b12463483d789fc70b6f1 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/metric_space/hausdorff_distance.lean | 1f431cd2059a10c06bc2df955b0e06950052463a | [
"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 | 32,470 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.metric_space.isometry topology.instances.ennreal
topology.metric_space.lipschitz
/-!
# Hausdorff distance
The Hausdorff distance on sub... |
ea6dae68b824f05f2fa8b0837b7a57d3101448f4 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/mynat/extra_pow.lean | 7531ad579a481cc13c0a9f22a24974817660c648 | [] | 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 | 3,847 | lean | -- vim: ts=2 sw=0 sts=-1 et ai tw=70
import .basic
import .le
import .lt
namespace hidden
namespace mynat
variables {m n k p a b c: mynat}
theorem lt_to_mul:
1 < k → n ≠ 0 → n < n * k :=
(λ h1k hnn0, lt_mul hnn0 h1k)
theorem lt_rhs_nonzero:
m < n → n ≠ 0 :=
begin
assume hmn hn0,
rw hn0 at hmn,
from lt_nzero... |
5b49fe7cf1c29e53ca66c2b77b444bfd397ae6c0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/polynomial/denoms_clearable.lean | bf5a0d881afeb78034e6857b5c470d1ba29243f9 | [
"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 | 4,676 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.erase_lead
import data.polynomial.eval
/-!
# Denominators of evaluation of polynomials at ratios
Let `i : R → K` be a homomorphism of semirings... |
26613e0e213df30fa26c0bad438bd951f46f7fbc | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/filter/archimedean.lean | e7e2997c605c8083296b1ef1d9bfa43cf2e1811f | [
"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 | 3,981 | 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, Yury Kudryashov
-/
import order.filter.at_top_bot
import algebra.archimedean
/-!
# `at_top` filter and archimedean (semi)rings/fields
In this file we prove that for a... |
236c66622d5f1c856abc5c9f8d09081fe31d2245 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/set_opt_tac.lean | 1ee88da502749a41882fccdd8406915c8baad82d | [
"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 | 314 | lean | open tactic bool
example (a b : nat) (H : a + b = 0) : a = a :=
by do
H ← get_local `H,
t ← infer_type H,
trace t,
set_bool_option `pp.all tt,
trace "after pp.all true",
trace t,
rfl ← mk_const `rfl,
apply rfl
print "set_bool_option tactic does not affect other commands"
check (0:nat) + 1
|
5bc46cd63ecbeaae30a837560ced93d74bc8b251 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/combinatorics/simple_graph/adj_matrix.lean | 230fce0cef9e53926f02a0bb12a687c421fd1df3 | [
"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 | 3,176 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import combinatorics.simple_graph.basic
import data.rel
import linear_algebra.matrix.trace
/-!
# Adjacency Matrices
This module defines the adjacency m... |
fda5a2ae75864538c49d6c8e82e6d9f6b53a93f7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/convex/specific_functions.lean | d5c55c7f462aecdf39378fc7279eeb5d5b5334a9 | [
"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 | 9,903 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Sébastien Gouëzel
-/
import analysis.calculus.mean_value
import analysis.special_functions.pow_deriv
/-!
# Collection of convex functions
In this file we prove that... |
98251fc2c07a2f8ee6f884dcdf1bfc0f60522c28 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/computability/language.lean | 2a2f1e673acfd4a8a9803a23f2e7cfd49b890124 | [
"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,855 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import algebra.hom.ring
import data.list.join
import data.set.lattice
/-!
# Languages
This file contains the definition and operations on formal languages over an alphabe... |
a666c092c6af454788d83a5f8335e2fe0f160346 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/field_theory/normal.lean | 23ffeba7e77bdb4d36a93a7a12f60371abae9cd5 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,248 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Thomas Browning, Patrick Lutz
-/
import field_theory.adjoin
import field_theory.tower
import group_theory.solvable
import ring_theory.power_basis
/-!
# Normal field extensions
... |
f2a85388753fc0f71a7e59afbbdb5c1d87070f64 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/localization/away.lean | 0ea25713791ebb4034ca9297bf25e1aab944a718 | [
"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,064 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston, Anne Baanen
-/
import ring_theory.adjoin_root
import ring_theory.localization.basic
/-!
# Localizations away from an element
... |
f8a9e7ca29424c0916ae7058858faa3e3c61b5d9 | b794ca1df49bc5a3bd3fd5552eed3bc4f63b8b93 | /src/mywork/sep_3_2021.lean | 57f14af1da55e0604da6f7d76d7b7bf0a194fffc | [] | no_license | akraisinger/cs2120f21 | 8235ac98375e04ffcec504cff5cab7833ee69e54 | 4ef83d7151bb6a284028092aa4f1d509c0eb8237 | refs/heads/main | 1,691,714,771,612 | 1,632,889,465,000 | 1,632,889,465,000 | 399,946,508 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,167 | lean | /-
Theorem: Equality is symmetric.
-/
theorem eq_symm :
∀ (T : Type) (x y : T), x = y → y = x :=
begin
assume (T : Type),
assume (x y : T),
assume (e : x = y),
rw e,
end
/-
Theorem: Equality is symmetric.
In other words, ∀ (T : Type) (x y : T), x = y → y = x
Proof: Assuming a type and x&y ... |
0591a5d88cb2b8b347c175e645dd866cee5bcc64 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.2.lean | c6209d2cdb63b4c5b12b0f48caa9ddbcc600d284 | [] | 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,075 | lean | /- page 12 -/
import standard
import standard
open bool nat
-- BEGIN
open prod -- makes notation for the product available
constants m n : nat
constant f : nat → nat -- type the arrow as "\to" or "\r"
constant f' : nat -> nat -- alternative ASCII notation
constant f'' : ℕ → ℕ -- \nat ... |
7d84f0f5f609a6114275bd952cb0f86ced498d9c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/continuous_function/cocompact_map.lean | 7b5b64c25d702fba53cec55bbdd93e017a8ab05f | [
"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,275 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import topology.continuous_function.basic
/-!
# Cocompact continuous maps
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspondin... |
458ccf571f8ced6f1161dd0b18f0b675289058e1 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/matrix/determinant.lean | 95a4b8e199953ad84071eb8f50f7e6569627e3b3 | [
"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 | 30,333 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Tim Baanen
-/
import data.matrix.pequiv
import data.matrix.block
import data.fintype.card
import group_theory.perm.fin
import group_theory.perm.sign
import algebra.... |
f4b5a398d2bdda87bce5e9166fceb5620abab2b3 | 87d5955e1100ba73f6b56149b659e85116fa215b | /group_theory/finfun.lean | 4301f1a21726ebcdf8f7e03d0fb7449a3a098ce9 | [
"Apache-2.0"
] | permissive | avigad/leanproved | 4d15a05f8544a67b9f589c5e656358e1485aef3c | 3cf0f5dda3ace82f6b7cdc159528ce3ebaef159f | refs/heads/master | 1,611,368,103,158 | 1,433,589,072,000 | 1,433,589,072,000 | 36,843,899 | 0 | 0 | null | 1,433,385,918,000 | 1,433,385,918,000 | null | UTF-8 | Lean | false | false | 3,890 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import data .extra
open nat function list
namespace fintype
open eq.ops
section list_to_fun
variables {A B : Type}
variable [finA : fintype A]
include... |
2c5d08687f3ee2c557732680187de6e47761a93e | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/theorem_proving_in_lean/not_p_iff_not_p.lean | d732873f526af54a96bfb155d0aac9974bbaf4df | [] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 209 | lean | variable p : Prop
example : ¬(p ↔ ¬p) :=
begin
intro h,
have hnp: ¬ p,
intro hp,
have hnp := iff.mp h hp,
exact hnp hp,
have hp: p,
exact iff.mpr h hnp,
exact hnp hp,
end
|
e2a48309f1ae4c030acbcbf908c4e42d71bf269b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/sections.lean | a389b765a290c61ca912d851537ab480d83aa900 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,448 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.forall2
/-!
# List sections
This file proves some stuff about `list.sections` (definition in `data.list.defs`). A section of a
list of lists `[l₁, ... |
500c03f6309dd44b44f5309655800229e6c63104 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/hull.lean | 535a17885c56f987950eca42b492dfeac0cf8820 | [
"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 | 7,289 | lean | /-
Copyright (c) 2020 Yury Kudriashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudriashov, Yaël Dillies
-/
import analysis.convex.basic
import order.closure
/-!
# Convex hull
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a ... |
f3b3feb4e93f77eb8f36eab6047654b0ba48b595 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/control/monad_fail_auto.lean | df0553ee23542713517bf5bbab5cca324bf0220f | [] | 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 | 734 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.control.lift
import Mathlib.Lean3Lib.init.data.string.basic
universes u v l
namespace Mathlib
class ... |
97f49550d0b9b258b311187992c38e8a5e561cac | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/opens_auto.lean | a43e19369833f36915c3a22517af8b287c8d9935 | [] | 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 | 14,784 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Floris van Doorn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.bases
import Mathlib.topology.homeomorph
import ... |
4a9685b175b9a7238c3e8f97bda4207b45b42d28 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/subgroup/pointwise.lean | ee899b4054625347ee60b55bd1deff0f6ab7e993 | [
"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 | 10,134 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.subgroup.basic
import group_theory.submonoid.pointwise
import group_theory.group_action.conj_act
/-! # Pointwise instances on `subgroup` and `add_subgr... |
abd5277212022a12a54b316fb804d3271ba3fb2d | 4a894698f2ae3f991490c25af3c13ea4435dac48 | /src/instructor/lectures/review_new_students.lean | b8c9fd866da447103b07ed9d57c5991bddee3a54 | [] | no_license | gnujey/cs2120f21 | 8a33f636346d59ade049dcc1726634f434ac1955 | 138d43446c443c1d15cd2f17fb607c4f0dff702f | refs/heads/main | 1,690,598,880,775 | 1,631,132,566,000 | 1,631,132,566,000 | 405,182,739 | 1 | 0 | null | 1,631,299,824,000 | 1,631,299,823,000 | null | UTF-8 | Lean | false | false | 1,870 | lean | /-
DEFINITION
-/
def x : ℕ := 7
example : ℕ := 5
/-
PROPOSITION
Any statement, claim, conjecture, that could have a truth value.
-/
def ev (n : ℕ) := n % 2 = 0
/-
5 is even
-/
example : ℕ := 5
example : ev 5 :=
begin
unfold ev,
-- give up, i'm stuck
end
/-
4 is even
-/
example : ev 4 :=
begin
unfold ev... |
4dbb93e3a929e228e521993bbdb7cb0f3d883ec2 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Meta/Tactic/Revert.lean | 6c8f488b349ba3da497db18119643528e8925561 | [
"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 | 884 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Util
namespace Lean.Meta
def revert (mvarId : MVarId) (fvars : Array FVarId) (preserveOrder : Bool := false) : MetaM (Array FVarId... |
93d13e0fdf4e1dfddf8c4cb21e54b3bba049dc07 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /test/examples.lean | 6d907777188aa22abce2bcac2005c9365c35816c | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 6,774 | lean | import tactic data.stream.basic data.set.basic data.finset data.multiset
category.traversable.derive meta.coinductive_predicates
open tactic
universe u
variable {α : Type}
example (s t u : set ℕ) (h : s ⊆ t ∩ u) (h' : u ⊆ s) : u ⊆ s → true :=
begin
dunfold has_subset.subset has_inter.inter at *,
-- trace_s... |
3f95c8726f9375c35904df687facf2688dce153c | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/combinatorics/simple_graph/degree_sum.lean | 4c381fdc6738925a27043acc6b661354b16d526d | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 8,336 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import combinatorics.simple_graph.basic
import algebra.big_operators.basic
import data.nat.parity
import data.zmod.parity
/-!
# Degree-sum formula and handshaking lemma
T... |
aea3e7739451bad500a859362fc70d864690645c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/succ_pred/limit.lean | f3033b25fb13db6a0c4f659ab9d66d26d0859317 | [
"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 | 10,453 | lean | /-
Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios
-/
import order.succ_pred.basic
/-!
# Successor and predecessor limits
We define the predicate `order.is_succ_limit` for "successor limits", v... |
cf64a15e5edb033c476aa769a2327f2cd2898f39 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170802-decidable_prime.lean | 5021f95e390fb16ac8c9bdbe9532cee70e82f290 | [
"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 | 443 | lean |
def decidable_and ( P Q : Prop ) [decidable P] [decidable Q]: decidable (P ∧ Q) :=
begin
induction _inst_1,
let b : ¬ (P ∧ Q) := by cc,
exact (is_false b),
induction _inst_2,
let b : ¬ (P ∧ Q) := by cc,
exact (is_false b),
let b : P ∧ Q := by cc,
exact (is_true b)
end
instance decidable_prime : decida... |
3191baaeea691c7924903cdad67713a941d78526 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /tactic/interactive.lean | 3d768afc7a055c72e02ca82bb3cdb8e7004f8432 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 12,880 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.dlist tactic.basic tactic.rcases tactic.generalize_proofs meta.expr
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:9001 :... |
537e3798ce8737bfe3d6f49c63c1010859aed62c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/2299.lean | 9a6c372bfc83ca0547ea3c6b8970dc266f048465 | [
"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 | 225 | lean | class Abs (α : Type _) where
abs : α → α
macro:max atomic("|" noWs) a:term noWs "|" : term => `(Abs.abs $a)
-- check that `|-` is not parsed as a single token.
example [Abs α] [Neg α] (n : α) : |-n| = |-n| := rfl
|
b93d26f8bd1ca5c18c46ad560cc5793dfe79ee03 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/ring.lean | 2d75a2894a5c55334b8572412a19fcc98f5cc212 | [
"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 | 28,707 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.norm_num
import data.int.range
/-!
# `ring`
Evaluate expressions in the language of commutative (semi)rings.
Based on <http://www.cs.ru.nl/~freek/cour... |
891ae46af29c37e58dca9361d8ddec3f76cf1c82 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/doc_commands.lean | d188b48d5677371cb76b658846665d6e65f1d96a | [
"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 | 17,283 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.fix_reflect_string
/-!
# Documentation commands
We generate html documentation from mathlib. It is convenient to collect lists of tactics, commands,... |
fad95cba99da9c6698779fd8467b9574697ca363 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/algebra/bilinear.lean | 9bf8544fe969b59e9f49cafc2443cbb059ea5399 | [
"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 | 5,048 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.basic
import linear_algebra.tensor_product
/-!
# Facts about algebras involving bilinear maps and tensor products
We move a few basic ... |
b1b804cdc47411962b0700a149a2f78524b59e1d | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/order/directed.lean | 627ac286a3896fff983aa06ffa64282ba3b4b256 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,054 | 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 order.lattice
import data.set.basic
universes u v w
variables {α : Type u} {β : Type v} {ι : Sort w} (r : α → α → Prop)
local infix ` ≼ ` : 50 := r
/-- A fa... |
0e4fa5863f0bafa5fe7f9c64495ccd1bb24c7543 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/analysis/normed_space/banach.lean | e7a51b13180ef4768c54bfece6444ed99925c25b | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,833 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.metric_space.baire
import analysis.normed_space.operator_norm
/-!
# Banach open mapping theorem
This file contains the Banach open mapping the... |
3658f9cd226106c313a6dace1930fb379bcb09c6 | b147e1312077cdcfea8e6756207b3fa538982e12 | /data/list/perm.lean | b5fdc705658bc29bd1ccb713f3e3d1358ed69d56 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,677 | 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
List permutations.
-/
import data.list.basic
namespace list
universe variables uu vv
variables {α : Type uu} {β : Type vv}
/-... |
ebb67937cd7b7e97b72e92f0708ee78751a4eeb2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/test/globs/Test/Subtest/1.lean | 9116a5ee3a7f8e5fb0b10cbbc3e9550df37ce6d2 | [
"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 | 36 | lean | #eval "visited Test/Subtest/1.lean"
|
7ae0869a3fc60b6e414836dc9c7df15a082a41dd | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/defs.lean | 7e9234c6067050bd43b1fcdda4ad70a26c492b64 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,929 | lean | import data.real.basic
import data.set.intervals
import tactic
export has_Sup (Sup) has_Inf (Inf)
namespace real_number_game
-- hide (need to choose this or P)
class nonemptyT (S : set ℝ) : Type :=
(x : ℝ)
(thm : x ∈ S)
-- hide (need to choose this or T)
class nonemptyP (S : set ℝ) : Prop :=
(thm' : ∃ x : ℝ, x ∈ S)... |
f48dbe91fb37286d505042a64f28dceefedb2bbd | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Data/Lsp/Extra.lean | 9d496c5ba78b4196847ffa113cc740b874ef0ce9 | [
"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 | 5,718 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.JsonRpc
import Lean.Data.Lsp.Basic
/-! This file contains Lean-specific extensions to LSP. See the structure... |
f2482f18a98b46a857dbda8bbf7fc6aa3fc27b17 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Util/Closure.lean | 0e51a8183f7d4032b0643da288f5d8a9244da99b | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,262 | 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.ShareCommon
import Init.Lean.MetavarContext
import Init.Lean.Environment
import Init.Lean.Util.FoldConsts
namespace Lean
namespace Clos... |
2f1ce6b03f145204d8ee807e6b92f40e4deeeb5b | d8870c0d7a56f998464cfef82fdac792d2fd9dac | /homework/hw04.lean | 3b31634f06c97855e2d7c9c28cb3b6d88e72a0f9 | [] | no_license | williamdemeo/math2001-spring2019 | 565b70405e7b92c5f93a295d2114729786350b78 | 1b3bf3e0bf53684b064b3f96210ce1022850ebf0 | refs/heads/master | 1,587,030,510,505 | 1,558,394,100,000 | 1,558,394,100,000 | 165,477,693 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 840 | lean | -- Math 2001 Homework 04 Lean Exercises
-- 5.3.6.
-- Prove ¬ (A ∧ B) → ¬ A ∨ ¬ B by replacing the sorry's below by proofs.
open classical
variables {A B C : Prop}
lemma step1 (h₁ : ¬ (A ∧ B)) (h₂ : A) : ¬ A ∨ ¬ B :=
have ¬ B, from sorry,
show ¬ A ∨ ¬ B, from or.inr this
lemma step2 (h₁ : ¬ (A ∧ B)) (h₂ : ¬ (¬ A ∨... |
29eb5ab2adea42a7206c74217aebfd4b09683f52 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/monoidal/discrete.lean | f056580d65f24d7ffbc2487f3dd5d21c651a15ce | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 1,809 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.natural_transformation
import category_theory.discrete_category
import algebra.group.hom
/-!
# Monoids as discrete monoidal categorie... |
fad9669f107f8efbca0093c19c41fe73037c7b4b | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/real/order.lean | c37c025e7fac74e173f8bd2e7ad6f6276e67c6f4 | [
"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 | 38,479 | 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).
To do:
o Rename things and... |
94e93eaea91312e568902b1f5cb92fde66ed936a | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /tests/lean/run/basic_monitor3.lean | b7f8e512d561c38c41b393d35bbd5ac0b2c585c8 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,574 | lean | meta def get_file (fn : name) : vm format :=
do {
d ← vm.get_decl fn,
some n ← return (vm_decl.olean d) | failure,
return (to_fmt n)
}
<|>
return (to_fmt "<curr file>")
meta def pos_info (fn : name) : vm format :=
do {
d ← vm.get_decl fn,
some (line, col) ← return (vm_decl.pos d) | failure,
... |
f40a5f0ace9f80c07c4e38f098a116b9f4f06554 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/polynomial/ring_division.lean | 2dfa0d08125592223c47ddbe28f3e05d8199ede0 | [
"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 | 36,742 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker, Johan Commelin
-/
import data.polynomial.algebra_map
import data.polynomial.degree.lemmas
import data.polynomial.div
import ... |
581b1a11298fc14357e2d65320a313e5cc0e0c13 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/dynamics/fixed_points/topology.lean | e55f0e24a83f94bfa5431b713083ed5a21a56968 | [] | 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,331 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.dynamics.fixed_points.basic
import Mathlib.topology.separation
import Mat... |
5939e42987bbe01cfa2acfcf1ccbcb89738cebfb | 1546f9083f4babf70df0329497d1ee05adc8c665 | /src/monoidal_categories_reboot/dagger_category.lean | 6121f04b0e17c54592d1ce00e3375aa17634b28b | [
"Apache-2.0"
] | permissive | khoek/monoidal-categories-reboot | 0899b0d4552ff039388042059c91f7207c6c34e5 | ed3df8ecce5d4e3d95cb858911bad12bb632cf8a | refs/heads/master | 1,588,877,903,131 | 1,554,987,273,000 | 1,554,987,273,000 | 180,791,863 | 0 | 0 | null | 1,554,987,295,000 | 1,554,987,295,000 | null | UTF-8 | Lean | false | false | 2,290 | lean | -- Copyright (c) 2018 Michael Jendrusch. All rights reserved.
import category_theory.category
import category_theory.functor
import category_theory.products
import category_theory.natural_isomorphism
import category_theory.tactics.obviously -- Give ourselves access to `rewrite_search`
import .slice_tactic
import .brai... |
cd59152d91edf6f0baf3df88bf000eda53568f1d | b7fc5b86b12212bea5542eb2c9d9f0988fd78697 | /src/hints/category_theory/exercise10/hint.lean | 29261decae7c26f4a685d7175599147213c2bcbc | [] | no_license | stjordanis/lftcm2020 | 3b16591aec853c8546d9c8b69c0bf3f5f3956fee | 1f3485e4dafdc587b451ec5144a1d8d3ec9b411e | refs/heads/master | 1,675,958,865,413 | 1,609,901,722,000 | 1,609,901,722,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,619 | lean | import category_theory.limits.shapes.zero
import category_theory.full_subcategory
import algebra.homology.chain_complex
import data.int.basic
/-!
Here's a partial solution.
It provides most of the data, but doesn't check required properties.
It starts becoming rough going at about this point,
when you start proving p... |
4ac6bf601b95c81c967e539a19f298067707f6c3 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /group_theory/quotient_group.lean | d1411a170a725b0e2045d1b0a28f7776030d81e8 | [
"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 | 6,544 | lean | /-
Copyright (c) 2018 Kevin Buzzard and Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot.
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import group_theory.coset
universes u v
varia... |
28ef97388096d2d22151a8e3ad863a0efc0bd9bb | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/eq2.hlean | 5563983616ebc25f29af2d129d43a4614d604d84 | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 4,644 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about 2-dimensional paths
-/
import .cubical.square
open function
namespace eq
variables {A B C : Type} {f : A → B} {a a' a₁ a₂ a₃ a₄ : A} {b b' : B}
... |
d162c3e289173069859b49a9e48702843e15ee10 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/meta/smt/interactive.lean | 65177d0d8454f860089a45281a18d11d9e3bbc26 | [
"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 | 10,191 | 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
-/
prelude
import init.meta.smt.smt_tactic init.meta.interactive
import init.meta.smt.rsimp
namespace smt_tactic
meta def save_info (p : pos) : smt_tactic uni... |
a47eaa0829f1111e2ae9d3b2bf447529b6c12b77 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /tactic/interactive.lean | 6165b4b4b3dc0b9054f7888b6e4664bfdfd28767 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,541 | 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... |
aebbaa008316b5707dbb88e43e24846236187d5f | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/calculus/parametric_integral.lean | 3d20e2e6674f22893c1e58cd58ff870fa3274b5c | [
"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,494 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import measure_theory.integral.set_integral
import analysis.calculus.mean_value
/-!
# Derivatives of integrals depending on parameters
A parametric integral is a fu... |
56812c3341bb901deb2c62c126d8339f25b65267 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/withLocationImplementationDetails.lean | 96d04eb46942b137e65a19eb6eb679864380880f | [
"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 | 119 | lean | axiom A : Nat
axiom B : Nat
axiom equality : A = B
example : A = 3 -> B = 3 := by
intro h
rewrite [equality] at *
|
3e06ca38713316c04064c1369a0fe9d8fb11da37 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/match_pattern2.lean | a5a53bed3bc19c685bee73900c9c86dcaf921198 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 1,418 | lean | open tactic list expr
private meta definition pattern_telescope : expr → list expr → tactic (list expr × expr × expr)
| e ps :=
if expr.is_pi e = tt then do
n ← mk_fresh_name,
p ← return $ local_const n (binding_name e) (binding_info e) (binding_domain e),
new_e ← return $ instantiate_var (binding_... |
bc9f20760eba2619a0d59c37c4b121dd8bd44f51 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/data/vector.lean | d09a98260aa5a7f43bbf7837a95570a7b862a7bd | [
"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 | 3,588 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Tuples are lists of a fixed size.
It is implemented as a subtype.
-/
import data.list
universes u v w
def vector (α : Type u) (n : ℕ) := { l : list α // l^.l... |
262c4184fded3570406ba745229c70c6e9becf2d | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/limits/functor_category.lean | cbafd2c3d1fcc0488270c4695f756c0b9ecc13a6 | [
"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 | 10,661 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.preserves.limits
open category_theory category_theory.category
namespace category_theory.limits
universes v v₂ u -- declare the `v`'s... |
cc0d8df4ad37f1a85461390631c4fc8817f0c6b1 | 0ddf2dd8409bcb923d11603846800bd9699616ea | /category.lean | 64bc6d4ed784092b8ceb2ef84a334dc94ac1bf7e | [] | no_license | tounaishouta/Lean | 0cbaaa9340e7f8f884504ea170243e07a54f0566 | 1d75311f5506ca2bfd8b7ccec0b7d70c3319d555 | refs/heads/master | 1,610,229,383,935 | 1,459,950,226,000 | 1,459,950,226,000 | 50,836,185 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,945 | lean | import standard
namespace category
structure Category : Type :=
(Ob : Type)
(Hom : Ob → Ob → Type)
(comp : Π {x y z : Ob}, Hom y z → Hom x y → Hom x z)
(id : Π x : Ob, Hom x x)
(comp_assoc : ∀ {x y z w : Ob} {f : Hom x y} {g : Hom y z} {h : Hom z w},
comp (comp h g) f = comp h (comp g f))
(comp_id : ∀... |
d8834230cca1915659446ac51f99974b3211ef58 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/tensor_product.lean | fe3a5edcf8001b53cd4a4e67fbd28035922f1eb5 | [
"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 | 39,076 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin
-/
import linear_algebra.finite_dimensional
import ring_theory.adjoin.basic
import linear_algebra.direct_sum.finsupp
/-!
# The tensor product of R-alge... |
a63ea9a8302f07cd56ae17c52d175927a644fcd9 | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/tools/get_module_info.lean | db6b132e746c742e82fc57119ef29024b2839d81 | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 1,356 | lean | import ..utils.util
import all
section main
open tactic
meta def list.drop_until {α} [decidable_eq α] : list α → (α → bool) → list α
| arg@(x::xs) y := if (bnot $ y x) then list.drop_until xs y else arg
| [] _ := []
meta def get_top_level_module_name (decl_nm : name) : tactic string := do {
env ← tactic.get_env,
... |
52dffa0da5066cef6a852490d8177c198958577c | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /src/graph_theory/pushforward.lean | dec2da5ac51b7ab40853e4e568dd313f66b9001b | [] | 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 | 9,461 | lean | import combinatorics.simple_graph.basic combinatorics.simple_graph.connectivity data.set.basic
import graph_theory.basic
open function set classical
variables {V V' V'' : Type*} {x y z : V} {x' y' z' : V'} {f : V → V'} {g : V' → V''}
variables {G G₁ G₂ : simple_graph V} {G' G'₁ G'₂ : simple_graph V'} {G'' : simple_gra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.